diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevision.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevision.java index 37e715b50d9a..102101aaf0f0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevision.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevision.java @@ -106,13 +106,13 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
- * Is deprecated, may not be used, only preserved for historical
- * purposes.
+ * Is archived and can no longer receive traffic, only preserved for
+ * historical purposes.
*
*
- * DEPRECATED = 2;
+ * ARCHIVED = 3;
*/
- DEPRECATED(2),
+ ARCHIVED(3),
UNRECOGNIZED(-1),
;
@@ -152,13 +152,13 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Is deprecated, may not be used, only preserved for historical
- * purposes.
+ * Is archived and can no longer receive traffic, only preserved for
+ * historical purposes.
*
*
- * DEPRECATED = 2;
+ * ARCHIVED = 3;
*/
- public static final int DEPRECATED_VALUE = 2;
+ public static final int ARCHIVED_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -188,8 +188,8 @@ public static State forNumber(int value) {
return STATE_UNSPECIFIED;
case 1:
return ACTIVE;
- case 2:
- return DEPRECATED;
+ case 3:
+ return ARCHIVED;
default:
return null;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionProto.java
index 58081b9a2330..eb7756b02a67 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionProto.java
@@ -59,28 +59,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ield_behavior.proto\032\031google/api/resource"
+ ".proto\0326google/cloud/aiplatform/v1beta1/"
+ "reasoning_engine.proto\032\037google/protobuf/"
- + "timestamp.proto\"\274\004\n\036ReasoningEngineRunti"
+ + "timestamp.proto\"\272\004\n\036ReasoningEngineRunti"
+ "meRevision\022\021\n\004name\030\001 \001(\tB\003\340A\010\022G\n\004spec\030\003 "
+ "\001(\01324.google.cloud.aiplatform.v1beta1.Re"
+ "asoningEngineSpecB\003\340A\005\0224\n\013create_time\030\004 "
+ "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Y\n\005"
+ "state\030\005 \001(\0162E.google.cloud.aiplatform.v1"
+ "beta1.ReasoningEngineRuntimeRevision.Sta"
- + "teB\003\340A\003\":\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022"
- + "\n\n\006ACTIVE\020\001\022\016\n\nDEPRECATED\020\002:\360\001\352A\354\001\n8aipl"
- + "atform.googleapis.com/ReasoningEngineRun"
- + "timeRevision\022oprojects/{project}/locatio"
- + "ns/{location}/reasoningEngines/{reasonin"
- + "g_engine}/runtimeRevisions/{runtime_revi"
- + "sion}*\037reasoningEngineRuntimeRevisions2\036"
- + "reasoningEngineRuntimeRevisionB\372\001\n#com.g"
- + "oogle.cloud.aiplatform.v1beta1B#Reasonin"
- + "gEngineRuntimeRevisionProtoP\001ZCcloud.goo"
- + "gle.com/go/aiplatform/apiv1beta1/aiplatf"
- + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat"
- + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V"
- + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be"
- + "ta1b\006proto3"
+ + "teB\003\340A\003\"8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022"
+ + "\n\n\006ACTIVE\020\001\022\014\n\010ARCHIVED\020\003:\360\001\352A\354\001\n8aiplat"
+ + "form.googleapis.com/ReasoningEngineRunti"
+ + "meRevision\022oprojects/{project}/locations"
+ + "/{location}/reasoningEngines/{reasoning_"
+ + "engine}/runtimeRevisions/{runtime_revisi"
+ + "on}*\037reasoningEngineRuntimeRevisions2\036re"
+ + "asoningEngineRuntimeRevisionB\372\001\n#com.goo"
+ + "gle.cloud.aiplatform.v1beta1B#ReasoningE"
+ + "ngineRuntimeRevisionProtoP\001ZCcloud.googl"
+ + "e.com/go/aiplatform/apiv1beta1/aiplatfor"
+ + "mpb;aiplatformpb\252\002\037Google.Cloud.AIPlatfo"
+ + "rm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1b"
+ + "eta1\352\002\"Google::Cloud::AIPlatform::V1beta"
+ + "1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_runtime_revision.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_runtime_revision.proto
index 28a8e097863c..f75aafdd31e4 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_runtime_revision.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_runtime_revision.proto
@@ -47,9 +47,9 @@ message ReasoningEngineRuntimeRevision {
// Is deployed and ready to be used.
ACTIVE = 1;
- // Is deprecated, may not be used, only preserved for historical
- // purposes.
- DEPRECATED = 2;
+ // Is archived and can no longer receive traffic, only preserved for
+ // historical purposes.
+ ARCHIVED = 3;
}
// Identifier. The resource name of the ReasoningEngineRuntimeRevision.
diff --git a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json
index 055c8ab36f6b..43936ae6fec9 100644
--- a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json
+++ b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json
@@ -1826,6 +1826,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.alloydb.v1.Instance$ObservabilityInstanceInfo",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.alloydb.v1.Instance$ObservabilityInstanceInfo$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.alloydb.v1.Instance$PscAutoConnectionConfig",
"queryAllDeclaredConstructors": true,
@@ -1898,6 +1916,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.alloydb.v1.Instance$QueryInsightsInstanceInfo",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.alloydb.v1.Instance$QueryInsightsInstanceInfo$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.alloydb.v1.Instance$ReadPoolConfig",
"queryAllDeclaredConstructors": true,
diff --git a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json
index 4acef6e024a0..eec7cc7efcb1 100644
--- a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json
+++ b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json
@@ -1907,6 +1907,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.alloydb.v1alpha.Instance$ObservabilityInstanceInfo",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.alloydb.v1alpha.Instance$ObservabilityInstanceInfo$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.alloydb.v1alpha.Instance$PscAutoConnectionConfig",
"queryAllDeclaredConstructors": true,
@@ -2015,6 +2033,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.alloydb.v1alpha.Instance$QueryInsightsInstanceInfo",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.alloydb.v1alpha.Instance$QueryInsightsInstanceInfo$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.alloydb.v1alpha.Instance$ReadPoolConfig",
"queryAllDeclaredConstructors": true,
diff --git a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json
index cf325d99a88d..acb4df63f141 100644
--- a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json
+++ b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json
@@ -1907,6 +1907,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.alloydb.v1beta.Instance$ObservabilityInstanceInfo",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.alloydb.v1beta.Instance$ObservabilityInstanceInfo$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.alloydb.v1beta.Instance$PscAutoConnectionConfig",
"queryAllDeclaredConstructors": true,
@@ -2015,6 +2033,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.alloydb.v1beta.Instance$QueryInsightsInstanceInfo",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.alloydb.v1beta.Instance$QueryInsightsInstanceInfo$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.alloydb.v1beta.Instance$ReadPoolConfig",
"queryAllDeclaredConstructors": true,
diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java
index 69001baac073..4960363105cb 100644
--- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java
+++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java
@@ -1763,7 +1763,9 @@ public void getInstanceTest() throws Exception {
.setWritableNode(Instance.Node.newBuilder().build())
.addAllNodes(new ArrayList+ * Output only. Whether Query Insights is enabled. + *+ * + *
bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The enabled.
+ */
+ boolean getEnabled();
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record application tags. + *+ * + *
bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The recordApplicationTags.
+ */
+ boolean getRecordApplicationTags();
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record client address. + *+ * + *
bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The recordClientAddress.
+ */
+ boolean getRecordClientAddress();
+
+ /**
+ *
+ *
+ * + * Output only. Maximum query string length. + *+ * + *
uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The queryStringLength.
+ */
+ int getQueryStringLength();
+
+ /**
+ *
+ *
+ * + * Output only. Number of query execution plans captured per minute. + *+ * + *
uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The queryPlansPerMinute.
+ */
+ int getQueryPlansPerMinute();
+ }
+
+ /**
+ *
+ *
+ * + * Instance level Query Insights information, which is read-only and available + * in the output only. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo} + */ + public static final class QueryInsightsInstanceInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo) + QueryInsightsInstanceInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "QueryInsightsInstanceInfo"); + } + + // Use QueryInsightsInstanceInfo.newBuilder() to construct. + private QueryInsightsInstanceInfo(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private QueryInsightsInstanceInfo() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.class, + com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + + /** + * + * + *
+ * Output only. Whether Query Insights is enabled. + *+ * + *
bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 2;
+ private boolean recordApplicationTags_ = false;
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record application tags. + *+ * + *
bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The recordApplicationTags.
+ */
+ @java.lang.Override
+ public boolean getRecordApplicationTags() {
+ return recordApplicationTags_;
+ }
+
+ public static final int RECORD_CLIENT_ADDRESS_FIELD_NUMBER = 3;
+ private boolean recordClientAddress_ = false;
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record client address. + *+ * + *
bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The recordClientAddress.
+ */
+ @java.lang.Override
+ public boolean getRecordClientAddress() {
+ return recordClientAddress_;
+ }
+
+ public static final int QUERY_STRING_LENGTH_FIELD_NUMBER = 4;
+ private int queryStringLength_ = 0;
+
+ /**
+ *
+ *
+ * + * Output only. Maximum query string length. + *+ * + *
uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The queryStringLength.
+ */
+ @java.lang.Override
+ public int getQueryStringLength() {
+ return queryStringLength_;
+ }
+
+ public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 5;
+ private int queryPlansPerMinute_ = 0;
+
+ /**
+ *
+ *
+ * + * Output only. Number of query execution plans captured per minute. + *+ * + *
uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The queryPlansPerMinute.
+ */
+ @java.lang.Override
+ public int getQueryPlansPerMinute() {
+ return queryPlansPerMinute_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (enabled_ != false) {
+ output.writeBool(1, enabled_);
+ }
+ if (recordApplicationTags_ != false) {
+ output.writeBool(2, recordApplicationTags_);
+ }
+ if (recordClientAddress_ != false) {
+ output.writeBool(3, recordClientAddress_);
+ }
+ if (queryStringLength_ != 0) {
+ output.writeUInt32(4, queryStringLength_);
+ }
+ if (queryPlansPerMinute_ != 0) {
+ output.writeUInt32(5, queryPlansPerMinute_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (enabled_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_);
+ }
+ if (recordApplicationTags_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, recordApplicationTags_);
+ }
+ if (recordClientAddress_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, recordClientAddress_);
+ }
+ if (queryStringLength_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, queryStringLength_);
+ }
+ if (queryPlansPerMinute_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, queryPlansPerMinute_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo other =
+ (com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo) obj;
+
+ if (getEnabled() != other.getEnabled()) return false;
+ if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false;
+ if (getRecordClientAddress() != other.getRecordClientAddress()) return false;
+ if (getQueryStringLength() != other.getQueryStringLength()) return false;
+ if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled());
+ hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags());
+ hash = (37 * hash) + RECORD_CLIENT_ADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordClientAddress());
+ hash = (37 * hash) + QUERY_STRING_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryStringLength();
+ hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryPlansPerMinute();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Instance level Query Insights information, which is read-only and available + * in the output only. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. Whether Query Insights is enabled. + *+ * + *
bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether Query Insights is enabled. + *+ * + *
bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The enabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnabled(boolean value) {
+
+ enabled_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether Query Insights is enabled. + *+ * + *
bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ enabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean recordApplicationTags_;
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record application tags. + *+ * + *
bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The recordApplicationTags.
+ */
+ @java.lang.Override
+ public boolean getRecordApplicationTags() {
+ return recordApplicationTags_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record application tags. + *+ * + *
bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The recordApplicationTags to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecordApplicationTags(boolean value) {
+
+ recordApplicationTags_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record application tags. + *+ * + *
bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRecordApplicationTags() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ recordApplicationTags_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean recordClientAddress_;
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record client address. + *+ * + *
bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The recordClientAddress.
+ */
+ @java.lang.Override
+ public boolean getRecordClientAddress() {
+ return recordClientAddress_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record client address. + *+ * + *
bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The recordClientAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecordClientAddress(boolean value) {
+
+ recordClientAddress_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record client address. + *+ * + *
bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRecordClientAddress() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ recordClientAddress_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int queryStringLength_;
+
+ /**
+ *
+ *
+ * + * Output only. Maximum query string length. + *+ * + *
uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The queryStringLength.
+ */
+ @java.lang.Override
+ public int getQueryStringLength() {
+ return queryStringLength_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Maximum query string length. + *+ * + *
uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The queryStringLength to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQueryStringLength(int value) {
+
+ queryStringLength_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Maximum query string length. + *+ * + *
uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQueryStringLength() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ queryStringLength_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int queryPlansPerMinute_;
+
+ /**
+ *
+ *
+ * + * Output only. Number of query execution plans captured per minute. + *+ * + *
uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The queryPlansPerMinute.
+ */
+ @java.lang.Override
+ public int getQueryPlansPerMinute() {
+ return queryPlansPerMinute_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Number of query execution plans captured per minute. + *+ * + *
uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The queryPlansPerMinute to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQueryPlansPerMinute(int value) {
+
+ queryPlansPerMinute_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Number of query execution plans captured per minute. + *+ * + *
uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQueryPlansPerMinute() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ queryPlansPerMinute_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo)
+ private static final com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo();
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return Whether the enabled field is set.
+ */
+ boolean hasEnabled();
+
+ /**
+ *
+ *
+ * + * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return The enabled.
+ */
+ boolean getEnabled();
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return Whether the preserveComments field is set.
+ */
+ boolean hasPreserveComments();
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return The preserveComments.
+ */
+ boolean getPreserveComments();
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return Whether the trackWaitEvents field is set.
+ */
+ boolean hasTrackWaitEvents();
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return The trackWaitEvents.
+ */
+ boolean getTrackWaitEvents();
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the trackWaitEventTypes field is set.
+ */
+ boolean hasTrackWaitEventTypes();
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The trackWaitEventTypes.
+ */
+ boolean getTrackWaitEventTypes();
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return Whether the maxQueryStringLength field is set.
+ */
+ boolean hasMaxQueryStringLength();
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return The maxQueryStringLength.
+ */
+ int getMaxQueryStringLength();
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return Whether the recordApplicationTags field is set.
+ */
+ boolean hasRecordApplicationTags();
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return The recordApplicationTags.
+ */
+ boolean getRecordApplicationTags();
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return Whether the queryPlansPerMinute field is set.
+ */
+ boolean hasQueryPlansPerMinute();
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return The queryPlansPerMinute.
+ */
+ int getQueryPlansPerMinute();
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return Whether the trackActiveQueries field is set.
+ */
+ boolean hasTrackActiveQueries();
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return The trackActiveQueries.
+ */
+ boolean getTrackActiveQueries();
+ }
+
+ /**
+ *
+ *
+ * + * Observability Instance specific configuration. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig} + */ + public static final class ObservabilityInstanceConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) + ObservabilityInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ObservabilityInstanceConfig"); + } + + // Use ObservabilityInstanceConfig.newBuilder() to construct. + private ObservabilityInstanceConfig(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ObservabilityInstanceConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.class, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + + /** + * + * + *
+ * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return Whether the enabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasEnabled() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 2;
+ private boolean preserveComments_ = false;
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return Whether the preserveComments field is set.
+ */
+ @java.lang.Override
+ public boolean hasPreserveComments() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return The preserveComments.
+ */
+ @java.lang.Override
+ public boolean getPreserveComments() {
+ return preserveComments_;
+ }
+
+ public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 3;
+ private boolean trackWaitEvents_ = false;
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return Whether the trackWaitEvents field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackWaitEvents() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return The trackWaitEvents.
+ */
+ @java.lang.Override
+ public boolean getTrackWaitEvents() {
+ return trackWaitEvents_;
+ }
+
+ public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 4;
+ private boolean trackWaitEventTypes_ = false;
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the trackWaitEventTypes field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackWaitEventTypes() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The trackWaitEventTypes.
+ */
+ @java.lang.Override
+ public boolean getTrackWaitEventTypes() {
+ return trackWaitEventTypes_;
+ }
+
+ public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 5;
+ private int maxQueryStringLength_ = 0;
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return Whether the maxQueryStringLength field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxQueryStringLength() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return The maxQueryStringLength.
+ */
+ @java.lang.Override
+ public int getMaxQueryStringLength() {
+ return maxQueryStringLength_;
+ }
+
+ public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 6;
+ private boolean recordApplicationTags_ = false;
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return Whether the recordApplicationTags field is set.
+ */
+ @java.lang.Override
+ public boolean hasRecordApplicationTags() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return The recordApplicationTags.
+ */
+ @java.lang.Override
+ public boolean getRecordApplicationTags() {
+ return recordApplicationTags_;
+ }
+
+ public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 7;
+ private int queryPlansPerMinute_ = 0;
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return Whether the queryPlansPerMinute field is set.
+ */
+ @java.lang.Override
+ public boolean hasQueryPlansPerMinute() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return The queryPlansPerMinute.
+ */
+ @java.lang.Override
+ public int getQueryPlansPerMinute() {
+ return queryPlansPerMinute_;
+ }
+
+ public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 8;
+ private boolean trackActiveQueries_ = false;
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return Whether the trackActiveQueries field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackActiveQueries() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return The trackActiveQueries.
+ */
+ @java.lang.Override
+ public boolean getTrackActiveQueries() {
+ return trackActiveQueries_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeBool(1, enabled_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeBool(2, preserveComments_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeBool(3, trackWaitEvents_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeBool(4, trackWaitEventTypes_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeInt32(5, maxQueryStringLength_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeBool(6, recordApplicationTags_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeInt32(7, queryPlansPerMinute_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ output.writeBool(8, trackActiveQueries_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, preserveComments_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trackWaitEvents_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEventTypes_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxQueryStringLength_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, recordApplicationTags_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, queryPlansPerMinute_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, trackActiveQueries_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig other =
+ (com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) obj;
+
+ if (hasEnabled() != other.hasEnabled()) return false;
+ if (hasEnabled()) {
+ if (getEnabled() != other.getEnabled()) return false;
+ }
+ if (hasPreserveComments() != other.hasPreserveComments()) return false;
+ if (hasPreserveComments()) {
+ if (getPreserveComments() != other.getPreserveComments()) return false;
+ }
+ if (hasTrackWaitEvents() != other.hasTrackWaitEvents()) return false;
+ if (hasTrackWaitEvents()) {
+ if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false;
+ }
+ if (hasTrackWaitEventTypes() != other.hasTrackWaitEventTypes()) return false;
+ if (hasTrackWaitEventTypes()) {
+ if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false;
+ }
+ if (hasMaxQueryStringLength() != other.hasMaxQueryStringLength()) return false;
+ if (hasMaxQueryStringLength()) {
+ if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false;
+ }
+ if (hasRecordApplicationTags() != other.hasRecordApplicationTags()) return false;
+ if (hasRecordApplicationTags()) {
+ if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false;
+ }
+ if (hasQueryPlansPerMinute() != other.hasQueryPlansPerMinute()) return false;
+ if (hasQueryPlansPerMinute()) {
+ if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false;
+ }
+ if (hasTrackActiveQueries() != other.hasTrackActiveQueries()) return false;
+ if (hasTrackActiveQueries()) {
+ if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasEnabled()) {
+ hash = (37 * hash) + ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled());
+ }
+ if (hasPreserveComments()) {
+ hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments());
+ }
+ if (hasTrackWaitEvents()) {
+ hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents());
+ }
+ if (hasTrackWaitEventTypes()) {
+ hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes());
+ }
+ if (hasMaxQueryStringLength()) {
+ hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxQueryStringLength();
+ }
+ if (hasRecordApplicationTags()) {
+ hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags());
+ }
+ if (hasQueryPlansPerMinute()) {
+ hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryPlansPerMinute();
+ }
+ if (hasTrackActiveQueries()) {
+ hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Observability Instance specific configuration. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return Whether the enabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasEnabled() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ /**
+ *
+ *
+ * + * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @param value The enabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnabled(boolean value) {
+
+ enabled_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ enabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean preserveComments_;
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return Whether the preserveComments field is set.
+ */
+ @java.lang.Override
+ public boolean hasPreserveComments() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return The preserveComments.
+ */
+ @java.lang.Override
+ public boolean getPreserveComments() {
+ return preserveComments_;
+ }
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @param value The preserveComments to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPreserveComments(boolean value) {
+
+ preserveComments_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPreserveComments() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ preserveComments_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean trackWaitEvents_;
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return Whether the trackWaitEvents field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackWaitEvents() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return The trackWaitEvents.
+ */
+ @java.lang.Override
+ public boolean getTrackWaitEvents() {
+ return trackWaitEvents_;
+ }
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @param value The trackWaitEvents to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTrackWaitEvents(boolean value) {
+
+ trackWaitEvents_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTrackWaitEvents() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ trackWaitEvents_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean trackWaitEventTypes_;
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
+ * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the trackWaitEventTypes field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackWaitEventTypes() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
+ * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The trackWaitEventTypes.
+ */
+ @java.lang.Override
+ public boolean getTrackWaitEventTypes() {
+ return trackWaitEventTypes_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
+ * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The trackWaitEventTypes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTrackWaitEventTypes(boolean value) {
+
+ trackWaitEventTypes_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
+ * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTrackWaitEventTypes() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ trackWaitEventTypes_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int maxQueryStringLength_;
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return Whether the maxQueryStringLength field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxQueryStringLength() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return The maxQueryStringLength.
+ */
+ @java.lang.Override
+ public int getMaxQueryStringLength() {
+ return maxQueryStringLength_;
+ }
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @param value The maxQueryStringLength to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxQueryStringLength(int value) {
+
+ maxQueryStringLength_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxQueryStringLength() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ maxQueryStringLength_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean recordApplicationTags_;
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return Whether the recordApplicationTags field is set.
+ */
+ @java.lang.Override
+ public boolean hasRecordApplicationTags() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return The recordApplicationTags.
+ */
+ @java.lang.Override
+ public boolean getRecordApplicationTags() {
+ return recordApplicationTags_;
+ }
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @param value The recordApplicationTags to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecordApplicationTags(boolean value) {
+
+ recordApplicationTags_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRecordApplicationTags() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ recordApplicationTags_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int queryPlansPerMinute_;
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return Whether the queryPlansPerMinute field is set.
+ */
+ @java.lang.Override
+ public boolean hasQueryPlansPerMinute() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return The queryPlansPerMinute.
+ */
+ @java.lang.Override
+ public int getQueryPlansPerMinute() {
+ return queryPlansPerMinute_;
+ }
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @param value The queryPlansPerMinute to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQueryPlansPerMinute(int value) {
+
+ queryPlansPerMinute_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQueryPlansPerMinute() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ queryPlansPerMinute_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean trackActiveQueries_;
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return Whether the trackActiveQueries field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackActiveQueries() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return The trackActiveQueries.
+ */
+ @java.lang.Override
+ public boolean getTrackActiveQueries() {
+ return trackActiveQueries_;
+ }
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @param value The trackActiveQueries to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTrackActiveQueries(boolean value) {
+
+ trackActiveQueries_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTrackActiveQueries() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ trackActiveQueries_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig)
+ private static final com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig();
+ }
+
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser- * Observability feature status for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool enabled = 1;
- *
- * @return Whether the enabled field is set.
- */
- boolean hasEnabled();
-
- /**
- *
- *
- *
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Observability feature status for an instance.
*
*
- * optional bool enabled = 1;
+ * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The enabled.
*/
@@ -4066,25 +6799,10 @@ public interface ObservabilityInstanceConfigOrBuilder
*
*
* - * Preserve comments in query string for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool preserve_comments = 2;
- *
- * @return Whether the preserveComments field is set.
- */
- boolean hasPreserveComments();
-
- /**
- *
- *
- *
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Preserve comments in query string for an instance.
*
*
- * optional bool preserve_comments = 2;
+ * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The preserveComments.
*/
@@ -4094,27 +6812,10 @@ public interface ObservabilityInstanceConfigOrBuilder
*
*
* - * Track wait events during query execution for an instance. - * This flag is turned "on" by default but tracking is enabled only after - * observability enabled flag is also turned on. - *- * - *
optional bool track_wait_events = 3;
- *
- * @return Whether the trackWaitEvents field is set.
- */
- boolean hasTrackWaitEvents();
-
- /**
- *
- *
- *
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Track wait events during query execution for an instance.
*
*
- * optional bool track_wait_events = 3;
+ * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackWaitEvents.
*/
@@ -4125,30 +6826,10 @@ public interface ObservabilityInstanceConfigOrBuilder
*
*
* Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
- *
- *
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return Whether the trackWaitEventTypes field is set.
- */
- boolean hasTrackWaitEventTypes();
-
- /**
- *
- *
- *
- * Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * instance.
*
*
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackWaitEventTypes.
*/
@@ -4158,23 +6839,10 @@ public interface ObservabilityInstanceConfigOrBuilder
*
*
* - * Query string length. The default value is 10k. - *- * - *
optional int32 max_query_string_length = 5;
- *
- * @return Whether the maxQueryStringLength field is set.
- */
- boolean hasMaxQueryStringLength();
-
- /**
- *
- *
- *
- * Query string length. The default value is 10k.
+ * Output only. Query string length. The default value is 10k.
*
*
- * optional int32 max_query_string_length = 5;
+ * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The maxQueryStringLength.
*/
@@ -4184,25 +6852,10 @@ public interface ObservabilityInstanceConfigOrBuilder
*
*
* - * Record application tags for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool record_application_tags = 6;
- *
- * @return Whether the recordApplicationTags field is set.
- */
- boolean hasRecordApplicationTags();
-
- /**
- *
- *
- *
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Record application tags for an instance.
*
*
- * optional bool record_application_tags = 6;
+ * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The recordApplicationTags.
*/
@@ -4212,27 +6865,11 @@ public interface ObservabilityInstanceConfigOrBuilder
*
*
* - * Number of query execution plans captured by Insights per minute - * for all queries combined. The default value is 200. - * Any integer between 0 to 200 is considered valid. - *- * - *
optional int32 query_plans_per_minute = 7;
- *
- * @return Whether the queryPlansPerMinute field is set.
- */
- boolean hasQueryPlansPerMinute();
-
- /**
- *
- *
- *
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Number of query execution plans captured by Insights per
+ * minute for all queries combined.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The queryPlansPerMinute.
*/
@@ -4242,44 +6879,21 @@ public interface ObservabilityInstanceConfigOrBuilder
*
*
* - * Track actively running queries on the instance. - * If not set, this flag is "off" by default. - *- * - *
optional bool track_active_queries = 8;
- *
- * @return Whether the trackActiveQueries field is set.
- */
- boolean hasTrackActiveQueries();
-
- /**
- *
- *
- *
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Track actively running queries on the instance.
*
*
- * optional bool track_active_queries = 8;
+ * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackActiveQueries.
*/
boolean getTrackActiveQueries();
}
- /**
- *
- *
- * - * Observability Instance specific configuration. - *- * - * Protobuf type {@code google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig} - */ - public static final class ObservabilityInstanceConfig extends com.google.protobuf.GeneratedMessage + /** Protobuf type {@code google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo} */ + public static final class ObservabilityInstanceInfo extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) - ObservabilityInstanceConfigOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo) + ObservabilityInstanceInfoOrBuilder { private static final long serialVersionUID = 0L; static { @@ -4289,61 +6903,42 @@ public static final class ObservabilityInstanceConfig extends com.google.protobu /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "ObservabilityInstanceConfig"); + "ObservabilityInstanceInfo"); } - // Use ObservabilityInstanceConfig.newBuilder() to construct. - private ObservabilityInstanceConfig(com.google.protobuf.GeneratedMessage.Builder> builder) { + // Use ObservabilityInstanceInfo.newBuilder() to construct. + private ObservabilityInstanceInfo(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); } - private ObservabilityInstanceConfig() {} + private ObservabilityInstanceInfo() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor; + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_fieldAccessorTable + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.class, - com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.Builder.class); + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.class, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.Builder.class); } - private int bitField0_; - public static final int ENABLED_FIELD_NUMBER = 1; + public static final int ENABLED_FIELD_NUMBER = 2; private boolean enabled_ = false; /** * * *
- * Observability feature status for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool enabled = 1;
- *
- * @return Whether the enabled field is set.
- */
- @java.lang.Override
- public boolean hasEnabled() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- *
- *
- *
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Observability feature status for an instance.
*
*
- * optional bool enabled = 1;
+ * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The enabled.
*/
@@ -4352,35 +6947,17 @@ public boolean getEnabled() {
return enabled_;
}
- public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 2;
+ public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 3;
private boolean preserveComments_ = false;
/**
*
*
* - * Preserve comments in query string for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool preserve_comments = 2;
- *
- * @return Whether the preserveComments field is set.
- */
- @java.lang.Override
- public boolean hasPreserveComments() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- *
- *
- *
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Preserve comments in query string for an instance.
*
*
- * optional bool preserve_comments = 2;
+ * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The preserveComments.
*/
@@ -4389,37 +6966,17 @@ public boolean getPreserveComments() {
return preserveComments_;
}
- public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 3;
+ public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 4;
private boolean trackWaitEvents_ = false;
/**
*
*
* - * Track wait events during query execution for an instance. - * This flag is turned "on" by default but tracking is enabled only after - * observability enabled flag is also turned on. - *- * - *
optional bool track_wait_events = 3;
- *
- * @return Whether the trackWaitEvents field is set.
- */
- @java.lang.Override
- public boolean hasTrackWaitEvents() {
- return ((bitField0_ & 0x00000004) != 0);
- }
-
- /**
- *
- *
- *
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Track wait events during query execution for an instance.
*
*
- * optional bool track_wait_events = 3;
+ * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackWaitEvents.
*/
@@ -4428,7 +6985,7 @@ public boolean getTrackWaitEvents() {
return trackWaitEvents_;
}
- public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 4;
+ public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 5;
private boolean trackWaitEventTypes_ = false;
/**
@@ -4436,33 +6993,10 @@ public boolean getTrackWaitEvents() {
*
*
* Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
- *
- *
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return Whether the trackWaitEventTypes field is set.
- */
- @java.lang.Override
- public boolean hasTrackWaitEventTypes() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- *
- *
- *
- * Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * instance.
*
*
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackWaitEventTypes.
*/
@@ -4471,33 +7005,17 @@ public boolean getTrackWaitEventTypes() {
return trackWaitEventTypes_;
}
- public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 5;
+ public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 6;
private int maxQueryStringLength_ = 0;
/**
*
*
* - * Query string length. The default value is 10k. - *- * - *
optional int32 max_query_string_length = 5;
- *
- * @return Whether the maxQueryStringLength field is set.
- */
- @java.lang.Override
- public boolean hasMaxQueryStringLength() {
- return ((bitField0_ & 0x00000010) != 0);
- }
-
- /**
- *
- *
- *
- * Query string length. The default value is 10k.
+ * Output only. Query string length. The default value is 10k.
*
*
- * optional int32 max_query_string_length = 5;
+ * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The maxQueryStringLength.
*/
@@ -4506,35 +7024,17 @@ public int getMaxQueryStringLength() {
return maxQueryStringLength_;
}
- public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 6;
+ public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 7;
private boolean recordApplicationTags_ = false;
/**
*
*
* - * Record application tags for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool record_application_tags = 6;
- *
- * @return Whether the recordApplicationTags field is set.
- */
- @java.lang.Override
- public boolean hasRecordApplicationTags() {
- return ((bitField0_ & 0x00000020) != 0);
- }
-
- /**
- *
- *
- *
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Record application tags for an instance.
*
*
- * optional bool record_application_tags = 6;
+ * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The recordApplicationTags.
*/
@@ -4543,37 +7043,18 @@ public boolean getRecordApplicationTags() {
return recordApplicationTags_;
}
- public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 7;
+ public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 8;
private int queryPlansPerMinute_ = 0;
/**
*
*
* - * Number of query execution plans captured by Insights per minute - * for all queries combined. The default value is 200. - * Any integer between 0 to 200 is considered valid. - *- * - *
optional int32 query_plans_per_minute = 7;
- *
- * @return Whether the queryPlansPerMinute field is set.
- */
- @java.lang.Override
- public boolean hasQueryPlansPerMinute() {
- return ((bitField0_ & 0x00000040) != 0);
- }
-
- /**
- *
- *
- *
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Number of query execution plans captured by Insights per
+ * minute for all queries combined.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The queryPlansPerMinute.
*/
@@ -4582,35 +7063,17 @@ public int getQueryPlansPerMinute() {
return queryPlansPerMinute_;
}
- public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 8;
+ public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 9;
private boolean trackActiveQueries_ = false;
/**
*
*
* - * Track actively running queries on the instance. - * If not set, this flag is "off" by default. - *- * - *
optional bool track_active_queries = 8;
- *
- * @return Whether the trackActiveQueries field is set.
- */
- @java.lang.Override
- public boolean hasTrackActiveQueries() {
- return ((bitField0_ & 0x00000080) != 0);
- }
-
- /**
- *
- *
- *
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Track actively running queries on the instance.
*
*
- * optional bool track_active_queries = 8;
+ * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackActiveQueries.
*/
@@ -4633,29 +7096,29 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeBool(1, enabled_);
+ if (enabled_ != false) {
+ output.writeBool(2, enabled_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeBool(2, preserveComments_);
+ if (preserveComments_ != false) {
+ output.writeBool(3, preserveComments_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeBool(3, trackWaitEvents_);
+ if (trackWaitEvents_ != false) {
+ output.writeBool(4, trackWaitEvents_);
}
- if (((bitField0_ & 0x00000008) != 0)) {
- output.writeBool(4, trackWaitEventTypes_);
+ if (trackWaitEventTypes_ != false) {
+ output.writeBool(5, trackWaitEventTypes_);
}
- if (((bitField0_ & 0x00000010) != 0)) {
- output.writeInt32(5, maxQueryStringLength_);
+ if (maxQueryStringLength_ != 0) {
+ output.writeInt32(6, maxQueryStringLength_);
}
- if (((bitField0_ & 0x00000020) != 0)) {
- output.writeBool(6, recordApplicationTags_);
+ if (recordApplicationTags_ != false) {
+ output.writeBool(7, recordApplicationTags_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
- output.writeInt32(7, queryPlansPerMinute_);
+ if (queryPlansPerMinute_ != 0) {
+ output.writeInt32(8, queryPlansPerMinute_);
}
- if (((bitField0_ & 0x00000080) != 0)) {
- output.writeBool(8, trackActiveQueries_);
+ if (trackActiveQueries_ != false) {
+ output.writeBool(9, trackActiveQueries_);
}
getUnknownFields().writeTo(output);
}
@@ -4666,78 +7129,54 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, preserveComments_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trackWaitEvents_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEventTypes_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxQueryStringLength_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, recordApplicationTags_);
- }
- if (((bitField0_ & 0x00000040) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, queryPlansPerMinute_);
- }
- if (((bitField0_ & 0x00000080) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, trackActiveQueries_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
+ if (enabled_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enabled_);
}
- if (!(obj instanceof com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig)) {
- return super.equals(obj);
+ if (preserveComments_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, preserveComments_);
}
- com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig other =
- (com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) obj;
-
- if (hasEnabled() != other.hasEnabled()) return false;
- if (hasEnabled()) {
- if (getEnabled() != other.getEnabled()) return false;
+ if (trackWaitEvents_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEvents_);
}
- if (hasPreserveComments() != other.hasPreserveComments()) return false;
- if (hasPreserveComments()) {
- if (getPreserveComments() != other.getPreserveComments()) return false;
+ if (trackWaitEventTypes_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, trackWaitEventTypes_);
}
- if (hasTrackWaitEvents() != other.hasTrackWaitEvents()) return false;
- if (hasTrackWaitEvents()) {
- if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false;
+ if (maxQueryStringLength_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, maxQueryStringLength_);
}
- if (hasTrackWaitEventTypes() != other.hasTrackWaitEventTypes()) return false;
- if (hasTrackWaitEventTypes()) {
- if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false;
+ if (recordApplicationTags_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, recordApplicationTags_);
}
- if (hasMaxQueryStringLength() != other.hasMaxQueryStringLength()) return false;
- if (hasMaxQueryStringLength()) {
- if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false;
+ if (queryPlansPerMinute_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, queryPlansPerMinute_);
}
- if (hasRecordApplicationTags() != other.hasRecordApplicationTags()) return false;
- if (hasRecordApplicationTags()) {
- if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false;
+ if (trackActiveQueries_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, trackActiveQueries_);
}
- if (hasQueryPlansPerMinute() != other.hasQueryPlansPerMinute()) return false;
- if (hasQueryPlansPerMinute()) {
- if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false;
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
}
- if (hasTrackActiveQueries() != other.hasTrackActiveQueries()) return false;
- if (hasTrackActiveQueries()) {
- if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false;
+ if (!(obj instanceof com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo)) {
+ return super.equals(obj);
}
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo other =
+ (com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo) obj;
+
+ if (getEnabled() != other.getEnabled()) return false;
+ if (getPreserveComments() != other.getPreserveComments()) return false;
+ if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false;
+ if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false;
+ if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false;
+ if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false;
+ if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false;
+ if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -4749,109 +7188,92 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- if (hasEnabled()) {
- hash = (37 * hash) + ENABLED_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled());
- }
- if (hasPreserveComments()) {
- hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments());
- }
- if (hasTrackWaitEvents()) {
- hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents());
- }
- if (hasTrackWaitEventTypes()) {
- hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes());
- }
- if (hasMaxQueryStringLength()) {
- hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER;
- hash = (53 * hash) + getMaxQueryStringLength();
- }
- if (hasRecordApplicationTags()) {
- hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags());
- }
- if (hasQueryPlansPerMinute()) {
- hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER;
- hash = (53 * hash) + getQueryPlansPerMinute();
- }
- if (hasTrackActiveQueries()) {
- hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries());
- }
+ hash = (37 * hash) + ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled());
+ hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments());
+ hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents());
+ hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes());
+ hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxQueryStringLength();
+ hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags());
+ hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryPlansPerMinute();
+ hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig
- parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -4869,7 +7291,7 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig prototype) {
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@@ -4884,36 +7306,27 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
return builder;
}
- /**
- *
- *
- * - * Observability Instance specific configuration. - *- * - * Protobuf type {@code google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig} - */ + /** Protobuf type {@code google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
- * Observability feature status for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool enabled = 1;
- *
- * @return Whether the enabled field is set.
- */
- @java.lang.Override
- public boolean hasEnabled() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- *
- *
- *
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Observability feature status for an instance.
*
*
- * optional bool enabled = 1;
+ * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The enabled.
*/
@@ -5180,11 +7563,10 @@ public boolean getEnabled() {
*
*
*
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Observability feature status for an instance.
*
*
- * optional bool enabled = 1;
+ * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The enabled to set.
* @return This builder for chaining.
@@ -5201,11 +7583,10 @@ public Builder setEnabled(boolean value) {
*
*
*
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Observability feature status for an instance.
*
*
- * optional bool enabled = 1;
+ * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -5222,28 +7603,10 @@ public Builder clearEnabled() {
*
*
* - * Preserve comments in query string for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool preserve_comments = 2;
- *
- * @return Whether the preserveComments field is set.
- */
- @java.lang.Override
- public boolean hasPreserveComments() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- *
- *
- *
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Preserve comments in query string for an instance.
*
*
- * optional bool preserve_comments = 2;
+ * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The preserveComments.
*/
@@ -5256,11 +7619,10 @@ public boolean getPreserveComments() {
*
*
*
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Preserve comments in query string for an instance.
*
*
- * optional bool preserve_comments = 2;
+ * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The preserveComments to set.
* @return This builder for chaining.
@@ -5277,11 +7639,10 @@ public Builder setPreserveComments(boolean value) {
*
*
*
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Preserve comments in query string for an instance.
*
*
- * optional bool preserve_comments = 2;
+ * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -5298,30 +7659,10 @@ public Builder clearPreserveComments() {
*
*
* - * Track wait events during query execution for an instance. - * This flag is turned "on" by default but tracking is enabled only after - * observability enabled flag is also turned on. - *- * - *
optional bool track_wait_events = 3;
- *
- * @return Whether the trackWaitEvents field is set.
- */
- @java.lang.Override
- public boolean hasTrackWaitEvents() {
- return ((bitField0_ & 0x00000004) != 0);
- }
-
- /**
- *
- *
- *
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Track wait events during query execution for an instance.
*
*
- * optional bool track_wait_events = 3;
+ * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackWaitEvents.
*/
@@ -5334,80 +7675,51 @@ public boolean getTrackWaitEvents() {
*
*
*
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Track wait events during query execution for an instance.
*
*
- * optional bool track_wait_events = 3;
+ * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The trackWaitEvents to set.
* @return This builder for chaining.
*/
public Builder setTrackWaitEvents(boolean value) {
-
- trackWaitEvents_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
-
- /**
- *
- *
- * - * Track wait events during query execution for an instance. - * This flag is turned "on" by default but tracking is enabled only after - * observability enabled flag is also turned on. - *- * - *
optional bool track_wait_events = 3;
- *
- * @return This builder for chaining.
- */
- public Builder clearTrackWaitEvents() {
- bitField0_ = (bitField0_ & ~0x00000004);
- trackWaitEvents_ = false;
+
+ trackWaitEvents_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
- private boolean trackWaitEventTypes_;
-
/**
*
*
*
- * Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * Output only. Track wait events during query execution for an instance.
*
*
- *
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the trackWaitEventTypes field is set.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public boolean hasTrackWaitEventTypes() {
- return ((bitField0_ & 0x00000008) != 0);
+ public Builder clearTrackWaitEvents() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ trackWaitEvents_ = false;
+ onChanged();
+ return this;
}
+ private boolean trackWaitEventTypes_;
+
/**
*
*
*
* Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * instance.
*
*
- *
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackWaitEventTypes.
*/
@@ -5421,14 +7733,10 @@ public boolean getTrackWaitEventTypes() {
*
*
* Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * instance.
*
*
- *
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The trackWaitEventTypes to set.
* @return This builder for chaining.
@@ -5446,14 +7754,10 @@ public Builder setTrackWaitEventTypes(boolean value) {
*
*
* Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * instance.
*
*
- *
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -5470,26 +7774,11 @@ public Builder clearTrackWaitEventTypes() {
*
*
* - * Query string length. The default value is 10k. - *- * - *
optional int32 max_query_string_length = 5;
- *
- * @return Whether the maxQueryStringLength field is set.
- */
- @java.lang.Override
- public boolean hasMaxQueryStringLength() {
- return ((bitField0_ & 0x00000010) != 0);
- }
-
- /**
- *
- *
- *
- * Query string length. The default value is 10k.
+ * Output only. Query string length. The default value is 10k.
*
*
- * optional int32 max_query_string_length = 5;
+ * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The maxQueryStringLength.
*/
@@ -5502,10 +7791,11 @@ public int getMaxQueryStringLength() {
*
*
*
- * Query string length. The default value is 10k.
+ * Output only. Query string length. The default value is 10k.
*
*
- * optional int32 max_query_string_length = 5;
+ * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @param value The maxQueryStringLength to set.
* @return This builder for chaining.
@@ -5522,10 +7812,11 @@ public Builder setMaxQueryStringLength(int value) {
*
*
*
- * Query string length. The default value is 10k.
+ * Output only. Query string length. The default value is 10k.
*
*
- * optional int32 max_query_string_length = 5;
+ * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return This builder for chaining.
*/
@@ -5542,28 +7833,10 @@ public Builder clearMaxQueryStringLength() {
*
*
* - * Record application tags for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool record_application_tags = 6;
- *
- * @return Whether the recordApplicationTags field is set.
- */
- @java.lang.Override
- public boolean hasRecordApplicationTags() {
- return ((bitField0_ & 0x00000020) != 0);
- }
-
- /**
- *
- *
- *
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Record application tags for an instance.
*
*
- * optional bool record_application_tags = 6;
+ * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The recordApplicationTags.
*/
@@ -5576,11 +7849,10 @@ public boolean getRecordApplicationTags() {
*
*
*
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Record application tags for an instance.
*
*
- * optional bool record_application_tags = 6;
+ * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The recordApplicationTags to set.
* @return This builder for chaining.
@@ -5597,11 +7869,10 @@ public Builder setRecordApplicationTags(boolean value) {
*
*
*
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Record application tags for an instance.
*
*
- * optional bool record_application_tags = 6;
+ * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -5618,30 +7889,11 @@ public Builder clearRecordApplicationTags() {
*
*
* - * Number of query execution plans captured by Insights per minute - * for all queries combined. The default value is 200. - * Any integer between 0 to 200 is considered valid. - *- * - *
optional int32 query_plans_per_minute = 7;
- *
- * @return Whether the queryPlansPerMinute field is set.
- */
- @java.lang.Override
- public boolean hasQueryPlansPerMinute() {
- return ((bitField0_ & 0x00000040) != 0);
- }
-
- /**
- *
- *
- *
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Number of query execution plans captured by Insights per
+ * minute for all queries combined.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The queryPlansPerMinute.
*/
@@ -5654,12 +7906,11 @@ public int getQueryPlansPerMinute() {
*
*
*
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Number of query execution plans captured by Insights per
+ * minute for all queries combined.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The queryPlansPerMinute to set.
* @return This builder for chaining.
@@ -5676,12 +7927,11 @@ public Builder setQueryPlansPerMinute(int value) {
*
*
*
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Number of query execution plans captured by Insights per
+ * minute for all queries combined.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -5698,28 +7948,10 @@ public Builder clearQueryPlansPerMinute() {
*
*
* - * Track actively running queries on the instance. - * If not set, this flag is "off" by default. - *- * - *
optional bool track_active_queries = 8;
- *
- * @return Whether the trackActiveQueries field is set.
- */
- @java.lang.Override
- public boolean hasTrackActiveQueries() {
- return ((bitField0_ & 0x00000080) != 0);
- }
-
- /**
- *
- *
- *
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Track actively running queries on the instance.
*
*
- * optional bool track_active_queries = 8;
+ * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackActiveQueries.
*/
@@ -5732,11 +7964,10 @@ public boolean getTrackActiveQueries() {
*
*
*
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Track actively running queries on the instance.
*
*
- * optional bool track_active_queries = 8;
+ * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The trackActiveQueries to set.
* @return This builder for chaining.
@@ -5753,11 +7984,10 @@ public Builder setTrackActiveQueries(boolean value) {
*
*
*
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Track actively running queries on the instance.
*
*
- * optional bool track_active_queries = 8;
+ * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -5768,26 +7998,26 @@ public Builder clearTrackActiveQueries() {
return this;
}
- // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig)
+ // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo)
}
- // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig)
- private static final com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig
+ // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo)
+ private static final com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig();
+ DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo();
}
- public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig
+ public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser+ * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the queryInsightsInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasQueryInsightsInfo() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The queryInsightsInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo getQueryInsightsInfo() {
+ return queryInsightsInfo_ == null
+ ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.getDefaultInstance()
+ : queryInsightsInfo_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfoOrBuilder
+ getQueryInsightsInfoOrBuilder() {
+ return queryInsightsInfo_ == null
+ ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.getDefaultInstance()
+ : queryInsightsInfo_;
+ }
+
public static final int OBSERVABILITY_CONFIG_FIELD_NUMBER = 26;
private com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observabilityConfig_;
@@ -16878,7 +19177,7 @@ public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig getQuery
*/
@java.lang.Override
public boolean hasObservabilityConfig() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
@@ -16918,6 +19217,76 @@ public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig getObser
: observabilityConfig_;
}
+ public static final int OBSERVABILITY_INSTANCE_INFO_FIELD_NUMBER = 44;
+ private com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observabilityInstanceInfo_;
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the observabilityInstanceInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasObservabilityInstanceInfo() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The observabilityInstanceInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo
+ getObservabilityInstanceInfo() {
+ return observabilityInstanceInfo_ == null
+ ? com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.getDefaultInstance()
+ : observabilityInstanceInfo_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfoOrBuilder
+ getObservabilityInstanceInfoOrBuilder() {
+ return observabilityInstanceInfo_ == null
+ ? com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.getDefaultInstance()
+ : observabilityInstanceInfo_;
+ }
+
public static final int READ_POOL_CONFIG_FIELD_NUMBER = 14;
private com.google.cloud.alloydb.v1.Instance.ReadPoolConfig readPoolConfig_;
@@ -16935,7 +19304,7 @@ public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig getObser
*/
@java.lang.Override
public boolean hasReadPoolConfig() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
@@ -17300,7 +19669,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
*/
@java.lang.Override
public boolean hasClientConnectionConfig() {
- return ((bitField0_ & 0x00000100) != 0);
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
@@ -17380,7 +19749,7 @@ public boolean getSatisfiesPzs() {
*/
@java.lang.Override
public boolean hasPscInstanceConfig() {
- return ((bitField0_ & 0x00000200) != 0);
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
@@ -17442,7 +19811,7 @@ public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig getPscInstanceConf
*/
@java.lang.Override
public boolean hasNetworkConfig() {
- return ((bitField0_ & 0x00000400) != 0);
+ return ((bitField0_ & 0x00001000) != 0);
}
/**
@@ -17633,7 +20002,7 @@ public com.google.cloud.alloydb.v1.Instance.ActivationPolicy getActivationPolicy
*/
@java.lang.Override
public boolean hasConnectionPoolConfig() {
- return ((bitField0_ & 0x00000800) != 0);
+ return ((bitField0_ & 0x00002000) != 0);
}
/**
@@ -17730,7 +20099,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
}
com.google.protobuf.GeneratedMessage.serializeStringMapTo(
output, internalGetDatabaseFlags(), DatabaseFlagsDefaultEntryHolder.defaultEntry, 13);
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (((bitField0_ & 0x00000200) != 0)) {
output.writeMessage(14, getReadPoolConfig());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ipAddress_)) {
@@ -17753,22 +20122,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(21, getQueryInsightsConfig());
}
- if (((bitField0_ & 0x00000100) != 0)) {
+ if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(23, getClientConnectionConfig());
}
if (satisfiesPzs_ != false) {
output.writeBool(24, satisfiesPzs_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(26, getObservabilityConfig());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(publicIpAddress_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 27, publicIpAddress_);
}
- if (((bitField0_ & 0x00000200) != 0)) {
+ if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(28, getPscInstanceConfig());
}
- if (((bitField0_ & 0x00000400) != 0)) {
+ if (((bitField0_ & 0x00001000) != 0)) {
output.writeMessage(29, getNetworkConfig());
}
for (int i = 0; i < outboundPublicIpAddresses_.size(); i++) {
@@ -17780,9 +20149,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
.getNumber()) {
output.writeEnum(35, activationPolicy_);
}
- if (((bitField0_ & 0x00000800) != 0)) {
+ if (((bitField0_ & 0x00002000) != 0)) {
output.writeMessage(37, getConnectionPoolConfig());
}
+ if (((bitField0_ & 0x00000100) != 0)) {
+ output.writeMessage(44, getObservabilityInstanceInfo());
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeMessage(47, getQueryInsightsInfo());
+ }
getUnknownFields().writeTo(output);
}
@@ -17849,7 +20224,7 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, databaseFlags__);
}
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getReadPoolConfig());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ipAddress_)) {
@@ -17881,24 +20256,24 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(21, getQueryInsightsConfig());
}
- if (((bitField0_ & 0x00000100) != 0)) {
+ if (((bitField0_ & 0x00000400) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(23, getClientConnectionConfig());
}
if (satisfiesPzs_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, satisfiesPzs_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000080) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(26, getObservabilityConfig());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(publicIpAddress_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(27, publicIpAddress_);
}
- if (((bitField0_ & 0x00000200) != 0)) {
+ if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getPscInstanceConfig());
}
- if (((bitField0_ & 0x00000400) != 0)) {
+ if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getNetworkConfig());
}
{
@@ -17914,10 +20289,18 @@ public int getSerializedSize() {
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, activationPolicy_);
}
- if (((bitField0_ & 0x00000800) != 0)) {
+ if (((bitField0_ & 0x00002000) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(37, getConnectionPoolConfig());
}
+ if (((bitField0_ & 0x00000100) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 44, getObservabilityInstanceInfo());
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(47, getQueryInsightsInfo());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -17967,10 +20350,19 @@ public boolean equals(final java.lang.Object obj) {
if (hasQueryInsightsConfig()) {
if (!getQueryInsightsConfig().equals(other.getQueryInsightsConfig())) return false;
}
+ if (hasQueryInsightsInfo() != other.hasQueryInsightsInfo()) return false;
+ if (hasQueryInsightsInfo()) {
+ if (!getQueryInsightsInfo().equals(other.getQueryInsightsInfo())) return false;
+ }
if (hasObservabilityConfig() != other.hasObservabilityConfig()) return false;
if (hasObservabilityConfig()) {
if (!getObservabilityConfig().equals(other.getObservabilityConfig())) return false;
}
+ if (hasObservabilityInstanceInfo() != other.hasObservabilityInstanceInfo()) return false;
+ if (hasObservabilityInstanceInfo()) {
+ if (!getObservabilityInstanceInfo().equals(other.getObservabilityInstanceInfo()))
+ return false;
+ }
if (hasReadPoolConfig() != other.hasReadPoolConfig()) return false;
if (hasReadPoolConfig()) {
if (!getReadPoolConfig().equals(other.getReadPoolConfig())) return false;
@@ -18061,10 +20453,18 @@ public int hashCode() {
hash = (37 * hash) + QUERY_INSIGHTS_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getQueryInsightsConfig().hashCode();
}
+ if (hasQueryInsightsInfo()) {
+ hash = (37 * hash) + QUERY_INSIGHTS_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryInsightsInfo().hashCode();
+ }
if (hasObservabilityConfig()) {
hash = (37 * hash) + OBSERVABILITY_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getObservabilityConfig().hashCode();
}
+ if (hasObservabilityInstanceInfo()) {
+ hash = (37 * hash) + OBSERVABILITY_INSTANCE_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getObservabilityInstanceInfo().hashCode();
+ }
if (hasReadPoolConfig()) {
hash = (37 * hash) + READ_POOL_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getReadPoolConfig().hashCode();
@@ -18283,7 +20683,9 @@ private void maybeForceBuilderInitialization() {
internalGetWritableNodeFieldBuilder();
internalGetNodesFieldBuilder();
internalGetQueryInsightsConfigFieldBuilder();
+ internalGetQueryInsightsInfoFieldBuilder();
internalGetObservabilityConfigFieldBuilder();
+ internalGetObservabilityInstanceInfoFieldBuilder();
internalGetReadPoolConfigFieldBuilder();
internalGetClientConnectionConfigFieldBuilder();
internalGetPscInstanceConfigFieldBuilder();
@@ -18342,11 +20744,21 @@ public Builder clear() {
queryInsightsConfigBuilder_.dispose();
queryInsightsConfigBuilder_ = null;
}
+ queryInsightsInfo_ = null;
+ if (queryInsightsInfoBuilder_ != null) {
+ queryInsightsInfoBuilder_.dispose();
+ queryInsightsInfoBuilder_ = null;
+ }
observabilityConfig_ = null;
if (observabilityConfigBuilder_ != null) {
observabilityConfigBuilder_.dispose();
observabilityConfigBuilder_ = null;
}
+ observabilityInstanceInfo_ = null;
+ if (observabilityInstanceInfoBuilder_ != null) {
+ observabilityInstanceInfoBuilder_.dispose();
+ observabilityInstanceInfoBuilder_ = null;
+ }
readPoolConfig_ = null;
if (readPoolConfigBuilder_ != null) {
readPoolConfigBuilder_.dispose();
@@ -18488,68 +20900,82 @@ private void buildPartial0(com.google.cloud.alloydb.v1.Instance result) {
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
+ result.queryInsightsInfo_ =
+ queryInsightsInfoBuilder_ == null
+ ? queryInsightsInfo_
+ : queryInsightsInfoBuilder_.build();
+ to_bitField0_ |= 0x00000040;
+ }
+ if (((from_bitField0_ & 0x00020000) != 0)) {
result.observabilityConfig_ =
observabilityConfigBuilder_ == null
? observabilityConfig_
: observabilityConfigBuilder_.build();
- to_bitField0_ |= 0x00000040;
+ to_bitField0_ |= 0x00000080;
}
- if (((from_bitField0_ & 0x00020000) != 0)) {
+ if (((from_bitField0_ & 0x00040000) != 0)) {
+ result.observabilityInstanceInfo_ =
+ observabilityInstanceInfoBuilder_ == null
+ ? observabilityInstanceInfo_
+ : observabilityInstanceInfoBuilder_.build();
+ to_bitField0_ |= 0x00000100;
+ }
+ if (((from_bitField0_ & 0x00080000) != 0)) {
result.readPoolConfig_ =
readPoolConfigBuilder_ == null ? readPoolConfig_ : readPoolConfigBuilder_.build();
- to_bitField0_ |= 0x00000080;
+ to_bitField0_ |= 0x00000200;
}
- if (((from_bitField0_ & 0x00040000) != 0)) {
+ if (((from_bitField0_ & 0x00100000) != 0)) {
result.ipAddress_ = ipAddress_;
}
- if (((from_bitField0_ & 0x00080000) != 0)) {
+ if (((from_bitField0_ & 0x00200000) != 0)) {
result.publicIpAddress_ = publicIpAddress_;
}
- if (((from_bitField0_ & 0x00100000) != 0)) {
+ if (((from_bitField0_ & 0x00400000) != 0)) {
result.reconciling_ = reconciling_;
}
- if (((from_bitField0_ & 0x00200000) != 0)) {
+ if (((from_bitField0_ & 0x00800000) != 0)) {
result.etag_ = etag_;
}
- if (((from_bitField0_ & 0x00400000) != 0)) {
+ if (((from_bitField0_ & 0x01000000) != 0)) {
result.annotations_ = internalGetAnnotations();
result.annotations_.makeImmutable();
}
- if (((from_bitField0_ & 0x00800000) != 0)) {
+ if (((from_bitField0_ & 0x02000000) != 0)) {
result.clientConnectionConfig_ =
clientConnectionConfigBuilder_ == null
? clientConnectionConfig_
: clientConnectionConfigBuilder_.build();
- to_bitField0_ |= 0x00000100;
+ to_bitField0_ |= 0x00000400;
}
- if (((from_bitField0_ & 0x01000000) != 0)) {
+ if (((from_bitField0_ & 0x04000000) != 0)) {
result.satisfiesPzs_ = satisfiesPzs_;
}
- if (((from_bitField0_ & 0x02000000) != 0)) {
+ if (((from_bitField0_ & 0x08000000) != 0)) {
result.pscInstanceConfig_ =
pscInstanceConfigBuilder_ == null
? pscInstanceConfig_
: pscInstanceConfigBuilder_.build();
- to_bitField0_ |= 0x00000200;
+ to_bitField0_ |= 0x00000800;
}
- if (((from_bitField0_ & 0x04000000) != 0)) {
+ if (((from_bitField0_ & 0x10000000) != 0)) {
result.networkConfig_ =
networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build();
- to_bitField0_ |= 0x00000400;
+ to_bitField0_ |= 0x00001000;
}
- if (((from_bitField0_ & 0x08000000) != 0)) {
+ if (((from_bitField0_ & 0x20000000) != 0)) {
outboundPublicIpAddresses_.makeImmutable();
result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_;
}
- if (((from_bitField0_ & 0x10000000) != 0)) {
+ if (((from_bitField0_ & 0x40000000) != 0)) {
result.activationPolicy_ = activationPolicy_;
}
- if (((from_bitField0_ & 0x20000000) != 0)) {
+ if (((from_bitField0_ & 0x80000000) != 0)) {
result.connectionPoolConfig_ =
connectionPoolConfigBuilder_ == null
? connectionPoolConfig_
: connectionPoolConfigBuilder_.build();
- to_bitField0_ |= 0x00000800;
+ to_bitField0_ |= 0x00002000;
}
result.bitField0_ |= to_bitField0_;
}
@@ -18644,20 +21070,26 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance other) {
if (other.hasQueryInsightsConfig()) {
mergeQueryInsightsConfig(other.getQueryInsightsConfig());
}
+ if (other.hasQueryInsightsInfo()) {
+ mergeQueryInsightsInfo(other.getQueryInsightsInfo());
+ }
if (other.hasObservabilityConfig()) {
mergeObservabilityConfig(other.getObservabilityConfig());
}
+ if (other.hasObservabilityInstanceInfo()) {
+ mergeObservabilityInstanceInfo(other.getObservabilityInstanceInfo());
+ }
if (other.hasReadPoolConfig()) {
mergeReadPoolConfig(other.getReadPoolConfig());
}
if (!other.getIpAddress().isEmpty()) {
ipAddress_ = other.ipAddress_;
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00100000;
onChanged();
}
if (!other.getPublicIpAddress().isEmpty()) {
publicIpAddress_ = other.publicIpAddress_;
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00200000;
onChanged();
}
if (other.getReconciling() != false) {
@@ -18665,11 +21097,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance other) {
}
if (!other.getEtag().isEmpty()) {
etag_ = other.etag_;
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00800000;
onChanged();
}
internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x01000000;
if (other.hasClientConnectionConfig()) {
mergeClientConnectionConfig(other.getClientConnectionConfig());
}
@@ -18685,7 +21117,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance other) {
if (!other.outboundPublicIpAddresses_.isEmpty()) {
if (outboundPublicIpAddresses_.isEmpty()) {
outboundPublicIpAddresses_ = other.outboundPublicIpAddresses_;
- bitField0_ |= 0x08000000;
+ bitField0_ |= 0x20000000;
} else {
ensureOutboundPublicIpAddressesIsMutable();
outboundPublicIpAddresses_.addAll(other.outboundPublicIpAddresses_);
@@ -18822,25 +21254,25 @@ public Builder mergeFrom(
{
input.readMessage(
internalGetReadPoolConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00080000;
break;
} // case 114
case 122:
{
ipAddress_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00100000;
break;
} // case 122
case 128:
{
reconciling_ = input.readBool();
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00400000;
break;
} // case 128
case 138:
{
etag_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00800000;
break;
} // case 138
case 146:
@@ -18852,7 +21284,7 @@ public Builder mergeFrom(
internalGetMutableAnnotations()
.getMutableMap()
.put(annotations__.getKey(), annotations__.getValue());
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x01000000;
break;
} // case 146
case 154:
@@ -18887,40 +21319,40 @@ public Builder mergeFrom(
input.readMessage(
internalGetClientConnectionConfigFieldBuilder().getBuilder(),
extensionRegistry);
- bitField0_ |= 0x00800000;
+ bitField0_ |= 0x02000000;
break;
} // case 186
case 192:
{
satisfiesPzs_ = input.readBool();
- bitField0_ |= 0x01000000;
+ bitField0_ |= 0x04000000;
break;
} // case 192
case 210:
{
input.readMessage(
internalGetObservabilityConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
break;
} // case 210
case 218:
{
publicIpAddress_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00200000;
break;
} // case 218
case 226:
{
input.readMessage(
internalGetPscInstanceConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x02000000;
+ bitField0_ |= 0x08000000;
break;
} // case 226
case 234:
{
input.readMessage(
internalGetNetworkConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x10000000;
break;
} // case 234
case 274:
@@ -18933,16 +21365,31 @@ public Builder mergeFrom(
case 280:
{
activationPolicy_ = input.readEnum();
- bitField0_ |= 0x10000000;
+ bitField0_ |= 0x40000000;
break;
} // case 280
case 298:
{
input.readMessage(
internalGetConnectionPoolConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x20000000;
+ bitField0_ |= 0x80000000;
break;
} // case 298
+ case 354:
+ {
+ input.readMessage(
+ internalGetObservabilityInstanceInfoFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00040000;
+ break;
+ } // case 354
+ case 378:
+ {
+ input.readMessage(
+ internalGetQueryInsightsInfoFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00010000;
+ break;
+ } // case 378
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -21956,13 +24403,259 @@ public Builder clearQueryInsightsConfig() {
if (queryInsightsConfigBuilder_ == null) {
queryInsightsConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig,
- com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.Builder,
- com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder>(
- getQueryInsightsConfig(), getParentForChildren(), isClean());
- queryInsightsConfig_ = null;
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig,
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig.Builder,
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder>(
+ getQueryInsightsConfig(), getParentForChildren(), isClean());
+ queryInsightsConfig_ = null;
+ }
+ return queryInsightsConfigBuilder_;
+ }
+
+ private com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo queryInsightsInfo_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo,
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.Builder,
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfoOrBuilder>
+ queryInsightsInfoBuilder_;
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the queryInsightsInfo field is set.
+ */
+ public boolean hasQueryInsightsInfo() {
+ return ((bitField0_ & 0x00010000) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The queryInsightsInfo.
+ */
+ public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo getQueryInsightsInfo() {
+ if (queryInsightsInfoBuilder_ == null) {
+ return queryInsightsInfo_ == null
+ ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.getDefaultInstance()
+ : queryInsightsInfo_;
+ } else {
+ return queryInsightsInfoBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setQueryInsightsInfo(
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo value) {
+ if (queryInsightsInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ queryInsightsInfo_ = value;
+ } else {
+ queryInsightsInfoBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00010000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setQueryInsightsInfo(
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.Builder builderForValue) {
+ if (queryInsightsInfoBuilder_ == null) {
+ queryInsightsInfo_ = builderForValue.build();
+ } else {
+ queryInsightsInfoBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00010000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeQueryInsightsInfo(
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo value) {
+ if (queryInsightsInfoBuilder_ == null) {
+ if (((bitField0_ & 0x00010000) != 0)
+ && queryInsightsInfo_ != null
+ && queryInsightsInfo_
+ != com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo
+ .getDefaultInstance()) {
+ getQueryInsightsInfoBuilder().mergeFrom(value);
+ } else {
+ queryInsightsInfo_ = value;
+ }
+ } else {
+ queryInsightsInfoBuilder_.mergeFrom(value);
+ }
+ if (queryInsightsInfo_ != null) {
+ bitField0_ |= 0x00010000;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearQueryInsightsInfo() {
+ bitField0_ = (bitField0_ & ~0x00010000);
+ queryInsightsInfo_ = null;
+ if (queryInsightsInfoBuilder_ != null) {
+ queryInsightsInfoBuilder_.dispose();
+ queryInsightsInfoBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.Builder
+ getQueryInsightsInfoBuilder() {
+ bitField0_ |= 0x00010000;
+ onChanged();
+ return internalGetQueryInsightsInfoFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfoOrBuilder
+ getQueryInsightsInfoOrBuilder() {
+ if (queryInsightsInfoBuilder_ != null) {
+ return queryInsightsInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return queryInsightsInfo_ == null
+ ? com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.getDefaultInstance()
+ : queryInsightsInfo_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo,
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.Builder,
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfoOrBuilder>
+ internalGetQueryInsightsInfoFieldBuilder() {
+ if (queryInsightsInfoBuilder_ == null) {
+ queryInsightsInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo,
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo.Builder,
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfoOrBuilder>(
+ getQueryInsightsInfo(), getParentForChildren(), isClean());
+ queryInsightsInfo_ = null;
}
- return queryInsightsConfigBuilder_;
+ return queryInsightsInfoBuilder_;
}
private com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observabilityConfig_;
@@ -21986,7 +24679,7 @@ public Builder clearQueryInsightsConfig() {
* @return Whether the observabilityConfig field is set.
*/
public boolean hasObservabilityConfig() {
- return ((bitField0_ & 0x00010000) != 0);
+ return ((bitField0_ & 0x00020000) != 0);
}
/**
@@ -22034,7 +24727,7 @@ public Builder setObservabilityConfig(
} else {
observabilityConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
return this;
}
@@ -22057,7 +24750,7 @@ public Builder setObservabilityConfig(
} else {
observabilityConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
return this;
}
@@ -22076,7 +24769,7 @@ public Builder setObservabilityConfig(
public Builder mergeObservabilityConfig(
com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig value) {
if (observabilityConfigBuilder_ == null) {
- if (((bitField0_ & 0x00010000) != 0)
+ if (((bitField0_ & 0x00020000) != 0)
&& observabilityConfig_ != null
&& observabilityConfig_
!= com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig
@@ -22089,7 +24782,7 @@ public Builder mergeObservabilityConfig(
observabilityConfigBuilder_.mergeFrom(value);
}
if (observabilityConfig_ != null) {
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
}
return this;
@@ -22107,7 +24800,7 @@ public Builder mergeObservabilityConfig(
*
*/
public Builder clearObservabilityConfig() {
- bitField0_ = (bitField0_ & ~0x00010000);
+ bitField0_ = (bitField0_ & ~0x00020000);
observabilityConfig_ = null;
if (observabilityConfigBuilder_ != null) {
observabilityConfigBuilder_.dispose();
@@ -22130,7 +24823,7 @@ public Builder clearObservabilityConfig() {
*/
public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.Builder
getObservabilityConfigBuilder() {
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
return internalGetObservabilityConfigFieldBuilder().getBuilder();
}
@@ -22185,6 +24878,254 @@ public Builder clearObservabilityConfig() {
return observabilityConfigBuilder_;
}
+ private com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo
+ observabilityInstanceInfo_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo,
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.Builder,
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfoOrBuilder>
+ observabilityInstanceInfoBuilder_;
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the observabilityInstanceInfo field is set.
+ */
+ public boolean hasObservabilityInstanceInfo() {
+ return ((bitField0_ & 0x00040000) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The observabilityInstanceInfo.
+ */
+ public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo
+ getObservabilityInstanceInfo() {
+ if (observabilityInstanceInfoBuilder_ == null) {
+ return observabilityInstanceInfo_ == null
+ ? com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.getDefaultInstance()
+ : observabilityInstanceInfo_;
+ } else {
+ return observabilityInstanceInfoBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setObservabilityInstanceInfo(
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo value) {
+ if (observabilityInstanceInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ observabilityInstanceInfo_ = value;
+ } else {
+ observabilityInstanceInfoBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00040000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setObservabilityInstanceInfo(
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.Builder builderForValue) {
+ if (observabilityInstanceInfoBuilder_ == null) {
+ observabilityInstanceInfo_ = builderForValue.build();
+ } else {
+ observabilityInstanceInfoBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00040000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeObservabilityInstanceInfo(
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo value) {
+ if (observabilityInstanceInfoBuilder_ == null) {
+ if (((bitField0_ & 0x00040000) != 0)
+ && observabilityInstanceInfo_ != null
+ && observabilityInstanceInfo_
+ != com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo
+ .getDefaultInstance()) {
+ getObservabilityInstanceInfoBuilder().mergeFrom(value);
+ } else {
+ observabilityInstanceInfo_ = value;
+ }
+ } else {
+ observabilityInstanceInfoBuilder_.mergeFrom(value);
+ }
+ if (observabilityInstanceInfo_ != null) {
+ bitField0_ |= 0x00040000;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearObservabilityInstanceInfo() {
+ bitField0_ = (bitField0_ & ~0x00040000);
+ observabilityInstanceInfo_ = null;
+ if (observabilityInstanceInfoBuilder_ != null) {
+ observabilityInstanceInfoBuilder_.dispose();
+ observabilityInstanceInfoBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.Builder
+ getObservabilityInstanceInfoBuilder() {
+ bitField0_ |= 0x00040000;
+ onChanged();
+ return internalGetObservabilityInstanceInfoFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfoOrBuilder
+ getObservabilityInstanceInfoOrBuilder() {
+ if (observabilityInstanceInfoBuilder_ != null) {
+ return observabilityInstanceInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return observabilityInstanceInfo_ == null
+ ? com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.getDefaultInstance()
+ : observabilityInstanceInfo_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo,
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.Builder,
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfoOrBuilder>
+ internalGetObservabilityInstanceInfoFieldBuilder() {
+ if (observabilityInstanceInfoBuilder_ == null) {
+ observabilityInstanceInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo,
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo.Builder,
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfoOrBuilder>(
+ getObservabilityInstanceInfo(), getParentForChildren(), isClean());
+ observabilityInstanceInfo_ = null;
+ }
+ return observabilityInstanceInfoBuilder_;
+ }
+
private com.google.cloud.alloydb.v1.Instance.ReadPoolConfig readPoolConfig_;
private com.google.protobuf.SingleFieldBuilder<
com.google.cloud.alloydb.v1.Instance.ReadPoolConfig,
@@ -22205,7 +25146,7 @@ public Builder clearObservabilityConfig() {
* @return Whether the readPoolConfig field is set.
*/
public boolean hasReadPoolConfig() {
- return ((bitField0_ & 0x00020000) != 0);
+ return ((bitField0_ & 0x00080000) != 0);
}
/**
@@ -22249,7 +25190,7 @@ public Builder setReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPoolCo
} else {
readPoolConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00080000;
onChanged();
return this;
}
@@ -22271,7 +25212,7 @@ public Builder setReadPoolConfig(
} else {
readPoolConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00080000;
onChanged();
return this;
}
@@ -22288,7 +25229,7 @@ public Builder setReadPoolConfig(
*/
public Builder mergeReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPoolConfig value) {
if (readPoolConfigBuilder_ == null) {
- if (((bitField0_ & 0x00020000) != 0)
+ if (((bitField0_ & 0x00080000) != 0)
&& readPoolConfig_ != null
&& readPoolConfig_
!= com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance()) {
@@ -22300,7 +25241,7 @@ public Builder mergeReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPool
readPoolConfigBuilder_.mergeFrom(value);
}
if (readPoolConfig_ != null) {
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00080000;
onChanged();
}
return this;
@@ -22317,7 +25258,7 @@ public Builder mergeReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPool
* .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14;
*/
public Builder clearReadPoolConfig() {
- bitField0_ = (bitField0_ & ~0x00020000);
+ bitField0_ = (bitField0_ & ~0x00080000);
readPoolConfig_ = null;
if (readPoolConfigBuilder_ != null) {
readPoolConfigBuilder_.dispose();
@@ -22338,7 +25279,7 @@ public Builder clearReadPoolConfig() {
* .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14;
*/
public com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder getReadPoolConfigBuilder() {
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00080000;
onChanged();
return internalGetReadPoolConfigFieldBuilder().getBuilder();
}
@@ -22459,7 +25400,7 @@ public Builder setIpAddress(java.lang.String value) {
throw new NullPointerException();
}
ipAddress_ = value;
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00100000;
onChanged();
return this;
}
@@ -22478,7 +25419,7 @@ public Builder setIpAddress(java.lang.String value) {
*/
public Builder clearIpAddress() {
ipAddress_ = getDefaultInstance().getIpAddress();
- bitField0_ = (bitField0_ & ~0x00040000);
+ bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
return this;
}
@@ -22502,7 +25443,7 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
ipAddress_ = value;
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00100000;
onChanged();
return this;
}
@@ -22584,7 +25525,7 @@ public Builder setPublicIpAddress(java.lang.String value) {
throw new NullPointerException();
}
publicIpAddress_ = value;
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00200000;
onChanged();
return this;
}
@@ -22606,7 +25547,7 @@ public Builder setPublicIpAddress(java.lang.String value) {
*/
public Builder clearPublicIpAddress() {
publicIpAddress_ = getDefaultInstance().getPublicIpAddress();
- bitField0_ = (bitField0_ & ~0x00080000);
+ bitField0_ = (bitField0_ & ~0x00200000);
onChanged();
return this;
}
@@ -22633,7 +25574,7 @@ public Builder setPublicIpAddressBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
publicIpAddress_ = value;
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00200000;
onChanged();
return this;
}
@@ -22679,7 +25620,7 @@ public boolean getReconciling() {
public Builder setReconciling(boolean value) {
reconciling_ = value;
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00400000;
onChanged();
return this;
}
@@ -22700,7 +25641,7 @@ public Builder setReconciling(boolean value) {
* @return This builder for chaining.
*/
public Builder clearReconciling() {
- bitField0_ = (bitField0_ & ~0x00100000);
+ bitField0_ = (bitField0_ & ~0x00400000);
reconciling_ = false;
onChanged();
return this;
@@ -22771,7 +25712,7 @@ public Builder setEtag(java.lang.String value) {
throw new NullPointerException();
}
etag_ = value;
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00800000;
onChanged();
return this;
}
@@ -22789,7 +25730,7 @@ public Builder setEtag(java.lang.String value) {
*/
public Builder clearEtag() {
etag_ = getDefaultInstance().getEtag();
- bitField0_ = (bitField0_ & ~0x00200000);
+ bitField0_ = (bitField0_ & ~0x00800000);
onChanged();
return this;
}
@@ -22812,7 +25753,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
etag_ = value;
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00800000;
onChanged();
return this;
}
@@ -22837,7 +25778,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
if (!annotations_.isMutable()) {
annotations_ = annotations_.copy();
}
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x01000000;
onChanged();
return annotations_;
}
@@ -22935,7 +25876,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
}
public Builder clearAnnotations() {
- bitField0_ = (bitField0_ & ~0x00400000);
+ bitField0_ = (bitField0_ & ~0x01000000);
internalGetMutableAnnotations().getMutableMap().clear();
return this;
}
@@ -22962,7 +25903,7 @@ public Builder removeAnnotations(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map+ * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the queryInsightsInfo field is set.
+ */
+ boolean hasQueryInsightsInfo();
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The queryInsightsInfo.
+ */
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo getQueryInsightsInfo();
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfoOrBuilder
+ getQueryInsightsInfoOrBuilder();
+
/**
*
*
@@ -814,6 +867,59 @@ java.lang.String getDatabaseFlagsOrDefault(
com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfigOrBuilder
getObservabilityConfigOrBuilder();
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the observabilityInstanceInfo field is set.
+ */
+ boolean hasObservabilityInstanceInfo();
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The observabilityInstanceInfo.
+ */
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo getObservabilityInstanceInfo();
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfoOrBuilder
+ getObservabilityInstanceInfoOrBuilder();
+
/**
*
*
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java
index 3d5106806a28..893098a43545 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java
@@ -168,10 +168,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceConfig_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -492,7 +500,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\tSECONDARY\020\002:u\352Ar\n"
+ "\036alloydb.googleapis.com/Cluster\022:projects/{project"
+ "}/locations/{location}/clusters/{cluster}*\010clusters2\007clusterR\001\001B\010\n"
- + "\006source\"\307$\n"
+ + "\006source\"\377)\n"
+ "\010Instance\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\003\022\024\n"
+ "\014display_name\030\002 \001(\t\022\020\n"
@@ -517,9 +525,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005nodes\030\024 \003(\0132&"
+ ".google.cloud.alloydb.v1.Instance.NodeB\003\340A\003\022\\\n"
+ "\025query_insights_config\030\025 \001(\0132=.goo"
- + "gle.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig\022[\n"
- + "\024observability_config\030\032"
- + " \001(\0132=.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig\022J\n"
+ + "gle.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig\022]\n"
+ + "\023query_insights_info\030/"
+ + " \001(\0132;.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceInfoB\003\340A\003\022[\n"
+ + "\024observability_config\030\032 \001(\0132=.google.cloud.al"
+ + "loydb.v1.Instance.ObservabilityInstanceConfig\022e\n"
+ + "\033observability_instance_info\030, \001"
+ + "(\0132;.google.cloud.alloydb.v1.Instance.ObservabilityInstanceInfoB\003\340A\003\022J\n"
+ "\020read_pool_config\030\016"
+ " \001(\01320.google.cloud.alloydb.v1.Instance.ReadPoolConfig\022\027\n\n"
+ "ip_address\030\017 \001(\tB\003\340A\003\022&\n"
@@ -527,21 +539,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\tB\013\340A\003\342\214\317\327\010\002\010\002\022\030\n"
+ "\013reconciling\030\020 \001(\010B\003\340A\003\022\014\n"
+ "\004etag\030\021 \001(\t\022G\n"
- + "\013annotations\030\022 \003(\01322.googl"
- + "e.cloud.alloydb.v1.Instance.AnnotationsEntry\022_\n"
- + "\030client_connection_config\030\027 \001(\01328"
- + ".google.cloud.alloydb.v1.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r"
+ + "\013annotations\030\022 \003(\01322.google."
+ + "cloud.alloydb.v1.Instance.AnnotationsEntry\022_\n"
+ + "\030client_connection_config\030\027 \001(\01328.g"
+ + "oogle.cloud.alloydb.v1.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r"
+ "satisfies_pzs\030\030 \001(\010B\003\340A\003\022U\n"
- + "\023psc_instance_config\030\034 \001(\01323"
- + ".google.cloud.alloydb.v1.Instance.PscInstanceConfigB\003\340A\001\022T\n"
- + "\016network_config\030\035 \001(\013"
- + "27.google.cloud.alloydb.v1.Instance.InstanceNetworkConfigB\003\340A\001\0221\n"
+ + "\023psc_instance_config\030\034 \001(\01323.g"
+ + "oogle.cloud.alloydb.v1.Instance.PscInstanceConfigB\003\340A\001\022T\n"
+ + "\016network_config\030\035 \001(\01327"
+ + ".google.cloud.alloydb.v1.Instance.InstanceNetworkConfigB\003\340A\001\0221\n"
+ "\034outbound_public_ip_addresses\030\" \003("
+ "\tB\013\340A\003\342\214\317\327\010\002\010\002\022R\n"
+ "\021activation_policy\030#"
+ " \001(\01622.google.cloud.alloydb.v1.Instance.ActivationPolicyB\003\340A\001\022[\n"
- + "\026connection_pool_config\030% \001(\01326.google.c"
- + "loud.alloydb.v1.Instance.ConnectionPoolConfigB\003\340A\001\0328\n\r"
+ + "\026connection_pool_config\030% \001(\01326.google.clo"
+ + "ud.alloydb.v1.Instance.ConnectionPoolConfigB\003\340A\001\0328\n\r"
+ "MachineConfig\022\021\n"
+ "\tcpu_count\030\001 \001(\005\022\024\n"
+ "\014machine_type\030\004 \001(\t\032R\n"
@@ -559,7 +571,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "H\002\210\001\001B\032\n"
+ "\030_record_application_tagsB\030\n"
+ "\026_record_client_addressB\031\n"
- + "\027_query_plans_per_minute\032\360\003\n"
+ + "\027_query_plans_per_minute\032\302\001\n"
+ + "\031QueryInsightsInstanceInfo\022\024\n"
+ + "\007enabled\030\001 \001(\010B\003\340A\003\022$\n"
+ + "\027record_application_tags\030\002 \001(\010B\003\340A\003\022\"\n"
+ + "\025record_client_address\030\003 \001(\010B\003\340A\003\022 \n"
+ + "\023query_string_length\030\004 \001(\r"
+ + "B\003\340A\003\022#\n"
+ + "\026query_plans_per_minute\030\005 \001(\r"
+ + "B\003\340A\003\032\360\003\n"
+ "\033ObservabilityInstanceConfig\022\024\n"
+ "\007enabled\030\001 \001(\010H\000\210\001\001\022\036\n"
+ "\021preserve_comments\030\002 \001(\010H\001\210\001\001\022\036\n"
@@ -576,7 +596,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\030_max_query_string_lengthB\032\n"
+ "\030_record_application_tagsB\031\n"
+ "\027_query_plans_per_minuteB\027\n"
- + "\025_track_active_queries\032$\n"
+ + "\025_track_active_queries\032\252\002\n"
+ + "\031ObservabilityInstanceInfo\022\024\n"
+ + "\007enabled\030\002 \001(\010B\003\340A\003\022\036\n"
+ + "\021preserve_comments\030\003 \001(\010B\003\340A\003\022\036\n"
+ + "\021track_wait_events\030\004 \001(\010B\003\340A\003\022#\n"
+ + "\026track_wait_event_types\030\005 \001(\010B\003\340A\003\022$\n"
+ + "\027max_query_string_length\030\006 \001(\005B\003\340A\003\022$\n"
+ + "\027record_application_tags\030\007 \001(\010B\003\340A\003\022#\n"
+ + "\026query_plans_per_minute\030\010 \001(\005B\003\340A\003\022!\n"
+ + "\024track_active_queries\030\t \001(\010B\003\340A\003\032$\n"
+ "\016ReadPoolConfig\022\022\n\n"
+ "node_count\030\001 \001(\005\032v\n"
+ "\026ClientConnectionConfig\022\037\n"
@@ -595,13 +624,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "(compute.googleapis.com/ServiceAttachment\022&\n"
+ "\031allowed_consumer_projects\030\002 \003(\tB\003\340A\001\022\031\n"
+ "\014psc_dns_name\030\007 \001(\tB\003\340A\003\022X\n"
- + "\025psc_interface_configs\030\010"
- + " \003(\01324.google.cloud.alloydb.v1.Instance.PscInterfaceConfigB\003\340A\001\022\\\n"
- + "\024psc_auto_connections\030\t \003(\01329.google.cloud"
- + ".alloydb.v1.Instance.PscAutoConnectionConfigB\003\340A\001\032\352\002\n"
+ + "\025psc_interface_configs\030\010 \003(\01324.googl"
+ + "e.cloud.alloydb.v1.Instance.PscInterfaceConfigB\003\340A\001\022\\\n"
+ + "\024psc_auto_connections\030\t \003("
+ + "\01329.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfigB\003\340A\001\032\352\002\n"
+ "\025InstanceNetworkConfig\022t\n"
- + "\034authorized_external_networks\030\001 \003(\0132I.goog"
- + "le.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n"
+ + "\034authorized_external_networks\030\001 \003(\0132I.google.cloud.alloydb.v1.Inst"
+ + "ance.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n"
+ "\020enable_public_ip\030\002 \001(\010B\003\340A\001\022&\n"
+ "\031enable_outbound_public_ip\030\003 \001(\010B\003\340A\001\0227\n"
+ "\007network\030\004 \001(\tB&\340A\003\372A \n"
@@ -612,8 +641,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\024ConnectionPoolConfig\022\024\n"
+ "\007enabled\030\014 \001(\010B\003\340A\001\022U\n"
+ "\005flags\030\r"
- + " \003(\0132A.g"
- + "oogle.cloud.alloydb.v1.Instance.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n"
+ + " \003(\0132A.google.cloud.alloydb.v1.I"
+ + "nstance.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n"
+ "\014pooler_count\030\016 \001(\005B\003\340A\003\032,\n\n"
+ "FlagsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
@@ -639,7 +668,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\tPROMOTING\020\t\"X\n"
+ "\014InstanceType\022\035\n"
+ "\031INSTANCE_TYPE_UNSPECIFIED\020\000\022\013\n"
- + "\007PRIMARY\020\001\022\r\n"
+ + "\007PRIMARY\020\001\022\r"
+ + "\n"
+ "\tREAD_POOL\020\002\022\r\n"
+ "\tSECONDARY\020\003\"N\n"
+ "\020AvailabilityType\022!\n"
@@ -650,8 +680,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\035ACTIVATION_POLICY_UNSPECIFIED\020\000\022\n\n"
+ "\006ALWAYS\020\001\022\t\n"
+ "\005NEVER\020\002:\216\001\352A\212\001\n"
- + "\037alloydb.googleapis.com/Instance\022Oprojects/{project}/locations"
- + "/{location}/clusters/{cluster}/instances/{instance}*"
+ + "\037alloydb.googleapis.com/Instance\022Oprojects/{pr"
+ + "oject}/locations/{location}/clusters/{cluster}/instances/{instance}*"
+ "\tinstances2\010instanceR\001\001\"\251\002\n"
+ "\016ConnectionInfo\022\014\n"
+ "\004name\030\001 \001(\t\022\027\n\n"
@@ -659,9 +689,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021public_ip_address\030\005 \001("
+ "\tB\013\340A\003\342\214\317\327\010\002\010\002\022\031\n"
+ "\014instance_uid\030\004 \001(\tB\003\340A\003:\254\001\352A\250\001\n"
- + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{project}/locations/{lo"
- + "cation}/clusters/{cluster}/instances/{in"
- + "stance}/connectionInfo*\017connectionInfos2\016connectionInfo\"\205\r\n"
+ + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{projec"
+ + "t}/locations/{location}/clusters/{cluste"
+ + "r}/instances/{instance}/connectionInfo*\017connectionInfos2\016connectionInfo\"\205\r\n"
+ "\006Backup\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\003\022\024\n"
+ "\014display_name\030\002 \001(\t\022\020\n"
@@ -686,15 +716,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017encryption_info\030\r"
+ " \001(\0132\'.google.cloud.alloydb.v1.EncryptionInfoB\003\340A\003\022\014\n"
+ "\004etag\030\016 \001(\t\022E\n"
- + "\013annotations\030\020 \003(\013"
- + "20.google.cloud.alloydb.v1.Backup.AnnotationsEntry\022\027\n\n"
+ + "\013annotations\030\020"
+ + " \003(\01320.google.cloud.alloydb.v1.Backup.AnnotationsEntry\022\027\n\n"
+ "size_bytes\030\021 \001(\003B\003\340A\003\0224\n"
+ "\013expiry_time\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Q\n"
- + "\017expiry_quantity\030\024 \001(\01323.goo"
- + "gle.cloud.alloydb.v1.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r"
+ + "\017expiry_quantity\030\024"
+ + " \001(\01323.google.cloud.alloydb.v1.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r"
+ "satisfies_pzs\030\025 \001(\010B\003\340A\003\022G\n"
- + "\020database_version\030\026"
- + " \001(\0162(.google.cloud.alloydb.v1.DatabaseVersionB\003\340A\003\022B\n"
+ + "\020database_version\030\026 \001"
+ + "(\0162(.google.cloud.alloydb.v1.DatabaseVersionB\003\340A\003\022B\n"
+ "\004tags\030\031 \003(\0132).google.cloud.alloydb.v1.Backup.TagsEntryB"
+ "\t\340A\004\340A\005\340A\001\032W\n"
+ "\023QuantityBasedExpiry\022\034\n"
@@ -717,25 +747,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\010DELETING\020\004\"J\n"
+ "\004Type\022\024\n"
+ "\020TYPE_UNSPECIFIED\020\000\022\r\n"
- + "\tON_DEMAND\020\001\022\r\n"
- + "\tAUTOMATED\020\002\022\016\n"
+ + "\tON_DEMAND\020\001\022\r"
+ "\n"
+ + "\tAUTOMATED\020\002\022\016\n\n"
+ "CONTINUOUS\020\003:p\352Am\n"
- + "\035alloydb.googleapis.com/Backup\0228projects/{project}/locations/"
- + "{location}/backups/{backup}*\007backups2\006backupR\001\001\"\374\010\n"
+ + "\035alloydb.googleapis.com/Backup\0228projects/{pro"
+ + "ject}/locations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\374\010\n"
+ "\025SupportedDatabaseFlag\022`\n"
- + "\023string_restrictions\030\007 \001(\0132A.google.cloud.al"
- + "loydb.v1.SupportedDatabaseFlag.StringRestrictionsH\000\022b\n"
- + "\024integer_restrictions\030\010 \001("
- + "\0132B.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\n"
+ + "\023string_restrictions\030\007 \001(\0132A"
+ + ".google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictionsH\000\022b\n"
+ + "\024integer_restrictions\030\010 \001(\0132B.google.cloud.alloydb"
+ + ".v1.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\n"
+ "\030recommended_string_value\030\n"
+ " \001(\tH\001\022@\n"
+ "\031recommended_integer_value\030\013"
+ " \001(\0132\033.google.protobuf.Int64ValueH\001\022\014\n"
+ "\004name\030\001 \001(\t\022\021\n"
+ "\tflag_name\030\002 \001(\t\022L\n\n"
- + "value_type\030\003 \001(\01628.google.clou"
- + "d.alloydb.v1.SupportedDatabaseFlag.ValueType\022\037\n"
+ + "value_type\030\003 \001"
+ + "(\01628.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType\022\037\n"
+ "\027accepts_multiple_values\030\004 \001(\010\022G\n"
+ "\025supported_db_versions\030\005"
+ " \003(\0162(.google.cloud.alloydb.v1.DatabaseVersion\022\033\n"
@@ -756,24 +786,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021SCOPE_UNSPECIFIED\020\000\022\014\n"
+ "\010DATABASE\020\001\022\023\n"
+ "\017CONNECTION_POOL\020\002:\227\001\352A\223\001\n"
- + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224projects/{project}"
- + "/locations/{location}/flags/{flag}*\026supp"
- + "ortedDatabaseFlags2\025supportedDatabaseFlagB\016\n"
+ + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224pr"
+ + "ojects/{project}/locations/{location}/fl"
+ + "ags/{flag}*\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n"
+ "\014restrictionsB\023\n"
+ "\021recommended_value\"\372\002\n"
+ "\004User\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\003\022\025\n"
+ "\010password\030\002 \001(\tB\003\340A\004\022\033\n"
+ "\016database_roles\030\004 \003(\tB\003\340A\001\022>\n"
- + "\tuser_type\030\005"
- + " \001(\0162&.google.cloud.alloydb.v1.User.UserTypeB\003\340A\001\022\035\n"
+ + "\tuser_type\030\005 \001(\0162&.goog"
+ + "le.cloud.alloydb.v1.User.UserTypeB\003\340A\001\022\035\n"
+ "\020keep_extra_roles\030\006 \001(\010B\003\340A\004\"Q\n"
+ "\010UserType\022\031\n"
+ "\025USER_TYPE_UNSPECIFIED\020\000\022\024\n"
+ "\020ALLOYDB_BUILT_IN\020\001\022\024\n"
+ "\020ALLOYDB_IAM_USER\020\002:y\352Av\n"
- + "\033alloydb.googleapis.com/User\022Gprojects/{project}/locations"
- + "/{location}/clusters/{cluster}/users/{user}*\005users2\004userR\001\001\"\346\002\n"
+ + "\033alloydb.googleapis.com/User\022Gprojects/{pr"
+ + "oject}/locations/{location}/clusters/{cluster}/users/{user}*\005users2\004userR\001\001\"\346\002\n"
+ "\010Database\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\010\022\027\n"
+ "\007charset\030\002 \001(\tB\006\340A\001\340A\005\022\031\n"
@@ -782,47 +812,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021database_template\030\006 \001(\tB\006\340A\004\340A\005\022&\n"
+ "\024is_template_database\030\007"
+ " \001(\010B\003\340A\001H\000\210\001\001:\216\001\352A\212\001\n"
- + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/locations"
- + "/{location}/clusters/{cluster}/databases/{database}*"
- + "\tdatabases2\010databaseR\001\001B\027\n"
- + "\025_is_template_database*^\n"
- + "\014InstanceView\022\035\n"
- + "\031INSTANCE_VIEW_UNSPECIFIED\020\000\022\027\n"
- + "\023INSTANCE_VIEW_BASIC\020\001\022\026\n"
- + "\022INSTANCE_VIEW_FULL\020\002*g\n"
- + "\013ClusterView\022\034\n"
- + "\030CLUSTER_VIEW_UNSPECIFIED\020\000\022\026\n"
- + "\022CLUSTER_VIEW_BASIC\020\001\022\"\n"
- + "\036CLUSTER_VIEW_CONTINUOUS_BACKUP\020\002*\235\001\n"
- + "\017DatabaseVersion\022 \n"
- + "\034DATABASE_VERSION_UNSPECIFIED\020\000\022\023\n"
- + "\013POSTGRES_13\020\001\032\002\010\001\022\017\n"
- + "\013POSTGRES_14\020\002\022\017\n"
- + "\013POSTGRES_15\020\003\022\017\n"
- + "\013POSTGRES_16\020\004\022\017\n"
- + "\013POSTGRES_17\020\005\022\017\n"
- + "\013POSTGRES_18\020\006*N\n"
- + "\020SubscriptionType\022!\n"
- + "\035SUBSCRIPTION_TYPE_UNSPECIFIED\020\000\022\014\n"
- + "\010STANDARD\020\001\022\t\n"
- + "\005TRIAL\020\002B\247\005\n"
- + "\033com.google.cloud.alloydb.v1B\016ResourcesProtoP\001Z5cloud.g"
- + "oogle.com/go/alloydb/apiv1/alloydbpb;all"
- + "oydbpb\252\002\027Google.Cloud.AlloyDb.V1\312\002\027Googl"
- + "e\\Cloud\\AlloyDb\\V1\352\002\032Google::Cloud::AlloyDB::V1\352A\246\001\n"
- + "(cloudkms.googleapis.com/Cry",
- "ptoKeyVersion\022zprojects/{project}/locati"
- + "ons/{location}/keyRings/{key_ring}/crypt"
- + "oKeys/{crypto_key}/cryptoKeyVersions/{cr"
- + "ypto_key_version}\352AN\n\036compute.googleapis"
- + ".com/Network\022,projects/{project}/global/"
- + "networks/{network}\352Ax\n!cloudkms.googleap"
- + "is.com/CryptoKey\022Sprojects/{project}/loc"
- + "ations/{location}/keyRings/{key_ring}/cr"
- + "yptoKeys/{crypto_key}\352Aw\n(compute.google"
- + "apis.com/ServiceAttachment\022Kprojects/{pr"
- + "oject}/regions/{region}/serviceAttachmen"
- + "ts/{service_attachment}b\006proto3"
+ + "\037alloydb.googleapis.com/Database\022Oprojects/{pr"
+ + "oject}/locations/{location}/clusters/{cluster}/databases/{database}*\tdatabases2\010",
+ "databaseR\001\001B\027\n\025_is_template_database*^\n\014"
+ + "InstanceView\022\035\n\031INSTANCE_VIEW_UNSPECIFIE"
+ + "D\020\000\022\027\n\023INSTANCE_VIEW_BASIC\020\001\022\026\n\022INSTANCE"
+ + "_VIEW_FULL\020\002*g\n\013ClusterView\022\034\n\030CLUSTER_V"
+ + "IEW_UNSPECIFIED\020\000\022\026\n\022CLUSTER_VIEW_BASIC\020"
+ + "\001\022\"\n\036CLUSTER_VIEW_CONTINUOUS_BACKUP\020\002*\235\001"
+ + "\n\017DatabaseVersion\022 \n\034DATABASE_VERSION_UN"
+ + "SPECIFIED\020\000\022\023\n\013POSTGRES_13\020\001\032\002\010\001\022\017\n\013POST"
+ + "GRES_14\020\002\022\017\n\013POSTGRES_15\020\003\022\017\n\013POSTGRES_1"
+ + "6\020\004\022\017\n\013POSTGRES_17\020\005\022\017\n\013POSTGRES_18\020\006*N\n"
+ + "\020SubscriptionType\022!\n\035SUBSCRIPTION_TYPE_U"
+ + "NSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\t\n\005TRIAL\020\002B\247\005"
+ + "\n\033com.google.cloud.alloydb.v1B\016Resources"
+ + "ProtoP\001Z5cloud.google.com/go/alloydb/api"
+ + "v1/alloydbpb;alloydbpb\252\002\027Google.Cloud.Al"
+ + "loyDb.V1\312\002\027Google\\Cloud\\AlloyDb\\V1\352\002\032Goo"
+ + "gle::Cloud::AlloyDB::V1\352A\246\001\n(cloudkms.go"
+ + "ogleapis.com/CryptoKeyVersion\022zprojects/"
+ + "{project}/locations/{location}/keyRings/"
+ + "{key_ring}/cryptoKeys/{crypto_key}/crypt"
+ + "oKeyVersions/{crypto_key_version}\352AN\n\036co"
+ + "mpute.googleapis.com/Network\022,projects/{"
+ + "project}/global/networks/{network}\352Ax\n!c"
+ + "loudkms.googleapis.com/CryptoKey\022Sprojec"
+ + "ts/{project}/locations/{location}/keyRin"
+ + "gs/{key_ring}/cryptoKeys/{crypto_key}\352Aw"
+ + "\n(compute.googleapis.com/ServiceAttachme"
+ + "nt\022Kprojects/{project}/regions/{region}/"
+ + "serviceAttachments/{service_attachment}b"
+ + "\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -1128,7 +1149,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"WritableNode",
"Nodes",
"QueryInsightsConfig",
+ "QueryInsightsInfo",
"ObservabilityConfig",
+ "ObservabilityInstanceInfo",
"ReadPoolConfig",
"IpAddress",
"PublicIpAddress",
@@ -1170,8 +1193,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"QueryStringLength",
"QueryPlansPerMinute",
});
- internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor =
+ internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_descriptor =
internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(3);
+ internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceInfo_descriptor,
+ new java.lang.String[] {
+ "Enabled",
+ "RecordApplicationTags",
+ "RecordClientAddress",
+ "QueryStringLength",
+ "QueryPlansPerMinute",
+ });
+ internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor =
+ internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(4);
internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor,
@@ -1185,8 +1220,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"QueryPlansPerMinute",
"TrackActiveQueries",
});
+ internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_descriptor =
+ internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(5);
+ internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceInfo_descriptor,
+ new java.lang.String[] {
+ "Enabled",
+ "PreserveComments",
+ "TrackWaitEvents",
+ "TrackWaitEventTypes",
+ "MaxQueryStringLength",
+ "RecordApplicationTags",
+ "QueryPlansPerMinute",
+ "TrackActiveQueries",
+ });
internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor =
- internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(4);
+ internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(6);
internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor,
@@ -1194,7 +1244,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"NodeCount",
});
internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_descriptor =
- internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(5);
+ internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(7);
internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_descriptor,
@@ -1202,7 +1252,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"RequireConnectors", "SslConfig",
});
internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_descriptor =
- internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(6);
+ internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(8);
internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_descriptor,
@@ -1210,7 +1260,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"NetworkAttachmentResource",
});
internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_descriptor =
- internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(7);
+ internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(9);
internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_descriptor,
@@ -1218,7 +1268,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ConsumerProject", "ConsumerNetwork", "IpAddress", "Status", "ConsumerNetworkStatus",
});
internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor =
- internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(8);
+ internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(10);
internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor,
@@ -1230,7 +1280,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"PscAutoConnections",
});
internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_descriptor =
- internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(9);
+ internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(11);
internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_descriptor,
@@ -1251,7 +1301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"CidrRange",
});
internal_static_google_cloud_alloydb_v1_Instance_ConnectionPoolConfig_descriptor =
- internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(10);
+ internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(12);
internal_static_google_cloud_alloydb_v1_Instance_ConnectionPoolConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1_Instance_ConnectionPoolConfig_descriptor,
@@ -1268,7 +1318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Key", "Value",
});
internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_descriptor =
- internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(11);
+ internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(13);
internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_descriptor,
@@ -1276,7 +1326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Key", "Value",
});
internal_static_google_cloud_alloydb_v1_Instance_DatabaseFlagsEntry_descriptor =
- internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(12);
+ internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(14);
internal_static_google_cloud_alloydb_v1_Instance_DatabaseFlagsEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1_Instance_DatabaseFlagsEntry_descriptor,
@@ -1284,7 +1334,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Key", "Value",
});
internal_static_google_cloud_alloydb_v1_Instance_AnnotationsEntry_descriptor =
- internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(13);
+ internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedType(15);
internal_static_google_cloud_alloydb_v1_Instance_AnnotationsEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1_Instance_AnnotationsEntry_descriptor,
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto
index 18730aa4a086..5ed63b964a31 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto
+++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -851,6 +851,27 @@ message Instance {
optional uint32 query_plans_per_minute = 5;
}
+ // Instance level Query Insights information, which is read-only and available
+ // in the output only.
+ message QueryInsightsInstanceInfo {
+ // Output only. Whether Query Insights is enabled.
+ bool enabled = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Whether to record application tags.
+ bool record_application_tags = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Whether to record client address.
+ bool record_client_address = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Maximum query string length.
+ uint32 query_string_length = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of query execution plans captured per minute.
+ uint32 query_plans_per_minute = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
// Observability Instance specific configuration.
message ObservabilityInstanceConfig {
// Observability feature status for an instance.
@@ -890,6 +911,37 @@ message Instance {
optional bool track_active_queries = 8;
}
+ message ObservabilityInstanceInfo {
+ // Output only. Observability feature status for an instance.
+ bool enabled = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Preserve comments in query string for an instance.
+ bool preserve_comments = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Track wait events during query execution for an instance.
+ bool track_wait_events = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Track wait event types during query execution for an
+ // instance.
+ bool track_wait_event_types = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Query string length. The default value is 10k.
+ int32 max_query_string_length = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Record application tags for an instance.
+ bool record_application_tags = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of query execution plans captured by Insights per
+ // minute for all queries combined.
+ int32 query_plans_per_minute = 8
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Track actively running queries on the instance.
+ bool track_active_queries = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
// Configuration for a read pool instance.
message ReadPoolConfig {
// Read capacity, i.e. number of nodes in a read pool instance.
@@ -1229,9 +1281,23 @@ message Instance {
// Configuration for query insights.
QueryInsightsInstanceConfig query_insights_config = 21;
+ // Output only. Instance level Query Insights information, which is read-only
+ // and available in the output only. Contains the effective query insights
+ // settings for this instance, by merging customer's provided
+ // `QueryInsightsInstanceConfig` with the Query Insights defaults.
+ QueryInsightsInstanceInfo query_insights_info = 47
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Configuration for observability.
ObservabilityInstanceConfig observability_config = 26;
+ // Output only. Instance level observability information, contains the
+ // effective values of observability settings for this instance, by merging
+ // customer's provided `ObservabilityInstanceConfig` with the
+ // Observability defaults.
+ ObservabilityInstanceInfo observability_instance_info = 44
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Read pool instance configuration.
// This is required if the value of instanceType is READ_POOL.
ReadPoolConfig read_pool_config = 14;
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfo.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfo.java
index a97d6cfc8a37..27a34dc2c237 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfo.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfo.java
@@ -271,7 +271,7 @@ public com.google.protobuf.ByteString getPublicIpAddressBytes() {
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1456
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1535
* @return A list containing the pemCertificateChain.
*/
@java.lang.Deprecated
@@ -292,7 +292,7 @@ public com.google.protobuf.ProtocolStringList getPemCertificateChainList() {
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1456
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1535
* @return The count of pemCertificateChain.
*/
@java.lang.Deprecated
@@ -313,7 +313,7 @@ public int getPemCertificateChainCount() {
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1456
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1535
* @param index The index of the element to return.
* @return The pemCertificateChain at the given index.
*/
@@ -335,7 +335,7 @@ public java.lang.String getPemCertificateChain(int index) {
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1456
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1535
* @param index The index of the value to return.
* @return The bytes of the pemCertificateChain at the given index.
*/
@@ -1370,7 +1370,7 @@ private void ensurePemCertificateChainIsMutable() {
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1456
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1535
* @return A list containing the pemCertificateChain.
*/
@java.lang.Deprecated
@@ -1392,7 +1392,7 @@ public com.google.protobuf.ProtocolStringList getPemCertificateChainList() {
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1456
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1535
* @return The count of pemCertificateChain.
*/
@java.lang.Deprecated
@@ -1413,7 +1413,7 @@ public int getPemCertificateChainCount() {
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1456
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1535
* @param index The index of the element to return.
* @return The pemCertificateChain at the given index.
*/
@@ -1435,7 +1435,7 @@ public java.lang.String getPemCertificateChain(int index) {
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1456
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1535
* @param index The index of the value to return.
* @return The bytes of the pemCertificateChain at the given index.
*/
@@ -1457,7 +1457,7 @@ public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) {
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1456
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1535
* @param index The index to set the value at.
* @param value The pemCertificateChain to set.
* @return This builder for chaining.
@@ -1487,7 +1487,7 @@ public Builder setPemCertificateChain(int index, java.lang.String value) {
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1456
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1535
* @param value The pemCertificateChain to add.
* @return This builder for chaining.
*/
@@ -1516,7 +1516,7 @@ public Builder addPemCertificateChain(java.lang.String value) {
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1456
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1535
* @param values The pemCertificateChain to add.
* @return This builder for chaining.
*/
@@ -1542,7 +1542,7 @@ public Builder addAllPemCertificateChain(java.lang.Iterablebool is_template = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
*
* @deprecated google.cloud.alloydb.v1alpha.Database.is_template is deprecated. See
- * google/cloud/alloydb/v1alpha/resources.proto;l=1853
+ * google/cloud/alloydb/v1alpha/resources.proto;l=1932
* @return The isTemplate.
*/
@java.lang.Override
@@ -1410,7 +1410,7 @@ public Builder setCharacterTypeBytes(com.google.protobuf.ByteString value) {
*
*
* @deprecated google.cloud.alloydb.v1alpha.Database.is_template is deprecated. See
- * google/cloud/alloydb/v1alpha/resources.proto;l=1853
+ * google/cloud/alloydb/v1alpha/resources.proto;l=1932
* @return The isTemplate.
*/
@java.lang.Override
@@ -1431,7 +1431,7 @@ public boolean getIsTemplate() {
*
*
* @deprecated google.cloud.alloydb.v1alpha.Database.is_template is deprecated. See
- * google/cloud/alloydb/v1alpha/resources.proto;l=1853
+ * google/cloud/alloydb/v1alpha/resources.proto;l=1932
* @param value The isTemplate to set.
* @return This builder for chaining.
*/
@@ -1456,7 +1456,7 @@ public Builder setIsTemplate(boolean value) {
*
*
* @deprecated google.cloud.alloydb.v1alpha.Database.is_template is deprecated. See
- * google/cloud/alloydb/v1alpha/resources.proto;l=1853
+ * google/cloud/alloydb/v1alpha/resources.proto;l=1932
* @return This builder for chaining.
*/
@java.lang.Deprecated
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/DatabaseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/DatabaseOrBuilder.java
index a0373e183f7d..62b76685a046 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/DatabaseOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/DatabaseOrBuilder.java
@@ -167,7 +167,7 @@ public interface DatabaseOrBuilder
* bool is_template = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
*
* @deprecated google.cloud.alloydb.v1alpha.Database.is_template is deprecated. See
- * google/cloud/alloydb/v1alpha/resources.proto;l=1853
+ * google/cloud/alloydb/v1alpha/resources.proto;l=1932
* @return The isTemplate.
*/
@java.lang.Deprecated
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Instance.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Instance.java
index 4d27c2620fd5..eb3273deeefa 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Instance.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Instance.java
@@ -4212,34 +4212,19 @@ public com.google.protobuf.Parser- * Observability feature status for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool enabled = 1;
- *
- * @return Whether the enabled field is set.
- */
- boolean hasEnabled();
-
- /**
- *
- *
- *
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Whether Query Insights is enabled.
*
*
- * optional bool enabled = 1;
+ * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The enabled.
*/
@@ -4249,492 +4234,3361 @@ public interface ObservabilityInstanceConfigOrBuilder
*
*
*
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Whether to record application tags.
*
*
- * optional bool preserve_comments = 2;
+ * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the preserveComments field is set.
+ * @return The recordApplicationTags.
*/
- boolean hasPreserveComments();
+ boolean getRecordApplicationTags();
/**
*
*
*
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Whether to record client address.
*
*
- * optional bool preserve_comments = 2;
+ * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The preserveComments.
+ * @return The recordClientAddress.
*/
- boolean getPreserveComments();
+ boolean getRecordClientAddress();
/**
*
*
*
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Maximum query string length.
*
*
- * optional bool track_wait_events = 3;
+ * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the trackWaitEvents field is set.
+ * @return The queryStringLength.
*/
- boolean hasTrackWaitEvents();
+ int getQueryStringLength();
/**
*
*
*
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Number of query execution plans captured per minute.
*
*
- * optional bool track_wait_events = 3;
+ * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The trackWaitEvents.
+ * @return The queryPlansPerMinute.
*/
- boolean getTrackWaitEvents();
+ int getQueryPlansPerMinute();
+ }
- /**
- *
- *
- * - * Output only. Track wait event types during query execution for an - * instance. This flag is turned "on" by default but tracking is enabled - * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by internal API. - *- * - *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return Whether the trackWaitEventTypes field is set.
- */
- boolean hasTrackWaitEventTypes();
+ /**
+ *
+ *
+ * + * Instance level Query Insights information, which is read-only and available + * in the output only. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo} + */ + public static final class QueryInsightsInstanceInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo) + QueryInsightsInstanceInfoOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
- * Output only. Track wait event types during query execution for an - * instance. This flag is turned "on" by default but tracking is enabled - * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by internal API. - *- * - *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return The trackWaitEventTypes.
- */
- boolean getTrackWaitEventTypes();
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "QueryInsightsInstanceInfo");
+ }
- /**
- *
- *
- * - * Query string length. The default value is 10k. - *- * - *
optional int32 max_query_string_length = 5;
- *
- * @return Whether the maxQueryStringLength field is set.
- */
- boolean hasMaxQueryStringLength();
+ // Use QueryInsightsInstanceInfo.newBuilder() to construct.
+ private QueryInsightsInstanceInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
- /**
- *
- *
- * - * Query string length. The default value is 10k. - *- * - *
optional int32 max_query_string_length = 5;
- *
- * @return The maxQueryStringLength.
- */
- int getMaxQueryStringLength();
+ private QueryInsightsInstanceInfo() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.alloydb.v1alpha.ResourcesProto
+ .internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.alloydb.v1alpha.ResourcesProto
+ .internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.class,
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.Builder.class);
+ }
+
+ public static final int ENABLED_FIELD_NUMBER = 1;
+ private boolean enabled_ = false;
/**
*
*
*
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Whether Query Insights is enabled.
*
*
- * optional bool record_application_tags = 6;
+ * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the recordApplicationTags field is set.
+ * @return The enabled.
*/
- boolean hasRecordApplicationTags();
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 2;
+ private boolean recordApplicationTags_ = false;
/**
*
*
*
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Whether to record application tags.
*
*
- * optional bool record_application_tags = 6;
+ * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The recordApplicationTags.
*/
- boolean getRecordApplicationTags();
+ @java.lang.Override
+ public boolean getRecordApplicationTags() {
+ return recordApplicationTags_;
+ }
- /**
- *
- *
- * - * Number of query execution plans captured by Insights per minute - * for all queries combined. The default value is 200. - * Any integer between 0 to 200 is considered valid. - *- * - *
optional int32 query_plans_per_minute = 7;
- *
- * @return Whether the queryPlansPerMinute field is set.
- */
- boolean hasQueryPlansPerMinute();
+ public static final int RECORD_CLIENT_ADDRESS_FIELD_NUMBER = 3;
+ private boolean recordClientAddress_ = false;
/**
*
*
*
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Whether to record client address.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The queryPlansPerMinute.
+ * @return The recordClientAddress.
*/
- int getQueryPlansPerMinute();
+ @java.lang.Override
+ public boolean getRecordClientAddress() {
+ return recordClientAddress_;
+ }
- /**
- *
- *
- * - * Track actively running queries on the instance. - * If not set, this flag is "off" by default. - *- * - *
optional bool track_active_queries = 8;
- *
- * @return Whether the trackActiveQueries field is set.
- */
- boolean hasTrackActiveQueries();
+ public static final int QUERY_STRING_LENGTH_FIELD_NUMBER = 4;
+ private int queryStringLength_ = 0;
/**
*
*
*
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Maximum query string length.
*
*
- * optional bool track_active_queries = 8;
+ * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The trackActiveQueries.
+ * @return The queryStringLength.
*/
- boolean getTrackActiveQueries();
+ @java.lang.Override
+ public int getQueryStringLength() {
+ return queryStringLength_;
+ }
- /**
- *
- *
- * - * Track client address for an instance. - * If not set, default value is "off". - *- * - *
optional bool track_client_address = 9;
- *
- * @return Whether the trackClientAddress field is set.
- */
- boolean hasTrackClientAddress();
+ public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 5;
+ private int queryPlansPerMinute_ = 0;
/**
*
*
*
- * Track client address for an instance.
- * If not set, default value is "off".
+ * Output only. Number of query execution plans captured per minute.
*
*
- * optional bool track_client_address = 9;
+ * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The trackClientAddress.
+ * @return The queryPlansPerMinute.
*/
- boolean getTrackClientAddress();
+ @java.lang.Override
+ public int getQueryPlansPerMinute() {
+ return queryPlansPerMinute_;
+ }
- /**
- *
- *
- * - * Whether assistive experiences are enabled for this AlloyDB instance. - *- * - *
optional bool assistive_experiences_enabled = 10;
- *
- * @return Whether the assistiveExperiencesEnabled field is set.
- */
- boolean hasAssistiveExperiencesEnabled();
+ private byte memoizedIsInitialized = -1;
- /**
- *
- *
- * - * Whether assistive experiences are enabled for this AlloyDB instance. - *+ @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (recordApplicationTags_ != false) { + output.writeBool(2, recordApplicationTags_); + } + if (recordClientAddress_ != false) { + output.writeBool(3, recordClientAddress_); + } + if (queryStringLength_ != 0) { + output.writeUInt32(4, queryStringLength_); + } + if (queryPlansPerMinute_ != 0) { + output.writeUInt32(5, queryPlansPerMinute_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (recordApplicationTags_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, recordApplicationTags_); + } + if (recordClientAddress_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, recordClientAddress_); + } + if (queryStringLength_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, queryStringLength_); + } + if (queryPlansPerMinute_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, queryPlansPerMinute_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo other = + (com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false; + if (getRecordClientAddress() != other.getRecordClientAddress()) return false; + if (getQueryStringLength() != other.getQueryStringLength()) return false; + if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags()); + hash = (37 * hash) + RECORD_CLIENT_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordClientAddress()); + hash = (37 * hash) + QUERY_STRING_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getQueryStringLength(); + hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER; + hash = (53 * hash) + getQueryPlansPerMinute(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** * - *
optional bool assistive_experiences_enabled = 10;
*
- * @return The assistiveExperiencesEnabled.
+ * + * Instance level Query Insights information, which is read-only and available + * in the output only. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo} */ - boolean getAssistiveExperiencesEnabled(); - } + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. Whether Query Insights is enabled. + *+ * + *
bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether Query Insights is enabled. + *+ * + *
bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The enabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnabled(boolean value) {
+
+ enabled_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether Query Insights is enabled. + *+ * + *
bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ enabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean recordApplicationTags_;
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record application tags. + *+ * + *
bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The recordApplicationTags.
+ */
+ @java.lang.Override
+ public boolean getRecordApplicationTags() {
+ return recordApplicationTags_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record application tags. + *+ * + *
bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The recordApplicationTags to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecordApplicationTags(boolean value) {
+
+ recordApplicationTags_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record application tags. + *+ * + *
bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRecordApplicationTags() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ recordApplicationTags_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean recordClientAddress_;
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record client address. + *+ * + *
bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The recordClientAddress.
+ */
+ @java.lang.Override
+ public boolean getRecordClientAddress() {
+ return recordClientAddress_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record client address. + *+ * + *
bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The recordClientAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecordClientAddress(boolean value) {
+
+ recordClientAddress_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record client address. + *+ * + *
bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRecordClientAddress() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ recordClientAddress_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int queryStringLength_;
+
+ /**
+ *
+ *
+ * + * Output only. Maximum query string length. + *+ * + *
uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The queryStringLength.
+ */
+ @java.lang.Override
+ public int getQueryStringLength() {
+ return queryStringLength_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Maximum query string length. + *+ * + *
uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The queryStringLength to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQueryStringLength(int value) {
+
+ queryStringLength_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Maximum query string length. + *+ * + *
uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQueryStringLength() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ queryStringLength_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int queryPlansPerMinute_;
+
+ /**
+ *
+ *
+ * + * Output only. Number of query execution plans captured per minute. + *+ * + *
uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The queryPlansPerMinute.
+ */
+ @java.lang.Override
+ public int getQueryPlansPerMinute() {
+ return queryPlansPerMinute_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Number of query execution plans captured per minute. + *+ * + *
uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The queryPlansPerMinute to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQueryPlansPerMinute(int value) {
+
+ queryPlansPerMinute_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Number of query execution plans captured per minute. + *+ * + *
uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQueryPlansPerMinute() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ queryPlansPerMinute_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo)
+ private static final com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo();
+ }
+
+ public static com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return Whether the enabled field is set.
+ */
+ boolean hasEnabled();
+
+ /**
+ *
+ *
+ * + * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return The enabled.
+ */
+ boolean getEnabled();
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return Whether the preserveComments field is set.
+ */
+ boolean hasPreserveComments();
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return The preserveComments.
+ */
+ boolean getPreserveComments();
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return Whether the trackWaitEvents field is set.
+ */
+ boolean hasTrackWaitEvents();
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return The trackWaitEvents.
+ */
+ boolean getTrackWaitEvents();
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the trackWaitEventTypes field is set.
+ */
+ boolean hasTrackWaitEventTypes();
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The trackWaitEventTypes.
+ */
+ boolean getTrackWaitEventTypes();
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return Whether the maxQueryStringLength field is set.
+ */
+ boolean hasMaxQueryStringLength();
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return The maxQueryStringLength.
+ */
+ int getMaxQueryStringLength();
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return Whether the recordApplicationTags field is set.
+ */
+ boolean hasRecordApplicationTags();
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return The recordApplicationTags.
+ */
+ boolean getRecordApplicationTags();
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return Whether the queryPlansPerMinute field is set.
+ */
+ boolean hasQueryPlansPerMinute();
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return The queryPlansPerMinute.
+ */
+ int getQueryPlansPerMinute();
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return Whether the trackActiveQueries field is set.
+ */
+ boolean hasTrackActiveQueries();
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return The trackActiveQueries.
+ */
+ boolean getTrackActiveQueries();
+
+ /**
+ *
+ *
+ * + * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @return Whether the trackClientAddress field is set.
+ */
+ boolean hasTrackClientAddress();
+
+ /**
+ *
+ *
+ * + * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @return The trackClientAddress.
+ */
+ boolean getTrackClientAddress();
+
+ /**
+ *
+ *
+ * + * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @return Whether the assistiveExperiencesEnabled field is set.
+ */
+ boolean hasAssistiveExperiencesEnabled();
+
+ /**
+ *
+ *
+ * + * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @return The assistiveExperiencesEnabled.
+ */
+ boolean getAssistiveExperiencesEnabled();
+ }
+
+ /**
+ *
+ *
+ * + * Observability Instance specific configuration. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig} + */ + public static final class ObservabilityInstanceConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) + ObservabilityInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ObservabilityInstanceConfig"); + } + + // Use ObservabilityInstanceConfig.newBuilder() to construct. + private ObservabilityInstanceConfig(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ObservabilityInstanceConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.class, + com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + + /** + * + * + *
+ * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return Whether the enabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasEnabled() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 2;
+ private boolean preserveComments_ = false;
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return Whether the preserveComments field is set.
+ */
+ @java.lang.Override
+ public boolean hasPreserveComments() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return The preserveComments.
+ */
+ @java.lang.Override
+ public boolean getPreserveComments() {
+ return preserveComments_;
+ }
+
+ public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 3;
+ private boolean trackWaitEvents_ = false;
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return Whether the trackWaitEvents field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackWaitEvents() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return The trackWaitEvents.
+ */
+ @java.lang.Override
+ public boolean getTrackWaitEvents() {
+ return trackWaitEvents_;
+ }
+
+ public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 4;
+ private boolean trackWaitEventTypes_ = false;
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the trackWaitEventTypes field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackWaitEventTypes() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The trackWaitEventTypes.
+ */
+ @java.lang.Override
+ public boolean getTrackWaitEventTypes() {
+ return trackWaitEventTypes_;
+ }
+
+ public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 5;
+ private int maxQueryStringLength_ = 0;
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return Whether the maxQueryStringLength field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxQueryStringLength() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return The maxQueryStringLength.
+ */
+ @java.lang.Override
+ public int getMaxQueryStringLength() {
+ return maxQueryStringLength_;
+ }
+
+ public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 6;
+ private boolean recordApplicationTags_ = false;
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return Whether the recordApplicationTags field is set.
+ */
+ @java.lang.Override
+ public boolean hasRecordApplicationTags() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return The recordApplicationTags.
+ */
+ @java.lang.Override
+ public boolean getRecordApplicationTags() {
+ return recordApplicationTags_;
+ }
+
+ public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 7;
+ private int queryPlansPerMinute_ = 0;
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return Whether the queryPlansPerMinute field is set.
+ */
+ @java.lang.Override
+ public boolean hasQueryPlansPerMinute() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return The queryPlansPerMinute.
+ */
+ @java.lang.Override
+ public int getQueryPlansPerMinute() {
+ return queryPlansPerMinute_;
+ }
+
+ public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 8;
+ private boolean trackActiveQueries_ = false;
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return Whether the trackActiveQueries field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackActiveQueries() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return The trackActiveQueries.
+ */
+ @java.lang.Override
+ public boolean getTrackActiveQueries() {
+ return trackActiveQueries_;
+ }
+
+ public static final int TRACK_CLIENT_ADDRESS_FIELD_NUMBER = 9;
+ private boolean trackClientAddress_ = false;
+
+ /**
+ *
+ *
+ * + * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @return Whether the trackClientAddress field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackClientAddress() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @return The trackClientAddress.
+ */
+ @java.lang.Override
+ public boolean getTrackClientAddress() {
+ return trackClientAddress_;
+ }
+
+ public static final int ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER = 10;
+ private boolean assistiveExperiencesEnabled_ = false;
+
+ /**
+ *
+ *
+ * + * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @return Whether the assistiveExperiencesEnabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasAssistiveExperiencesEnabled() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @return The assistiveExperiencesEnabled.
+ */
+ @java.lang.Override
+ public boolean getAssistiveExperiencesEnabled() {
+ return assistiveExperiencesEnabled_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeBool(1, enabled_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeBool(2, preserveComments_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeBool(3, trackWaitEvents_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeBool(4, trackWaitEventTypes_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeInt32(5, maxQueryStringLength_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeBool(6, recordApplicationTags_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeInt32(7, queryPlansPerMinute_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ output.writeBool(8, trackActiveQueries_);
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ output.writeBool(9, trackClientAddress_);
+ }
+ if (((bitField0_ & 0x00000200) != 0)) {
+ output.writeBool(10, assistiveExperiencesEnabled_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, preserveComments_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trackWaitEvents_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEventTypes_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxQueryStringLength_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, recordApplicationTags_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, queryPlansPerMinute_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, trackActiveQueries_);
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, trackClientAddress_);
+ }
+ if (((bitField0_ & 0x00000200) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(10, assistiveExperiencesEnabled_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig other =
+ (com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) obj;
+
+ if (hasEnabled() != other.hasEnabled()) return false;
+ if (hasEnabled()) {
+ if (getEnabled() != other.getEnabled()) return false;
+ }
+ if (hasPreserveComments() != other.hasPreserveComments()) return false;
+ if (hasPreserveComments()) {
+ if (getPreserveComments() != other.getPreserveComments()) return false;
+ }
+ if (hasTrackWaitEvents() != other.hasTrackWaitEvents()) return false;
+ if (hasTrackWaitEvents()) {
+ if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false;
+ }
+ if (hasTrackWaitEventTypes() != other.hasTrackWaitEventTypes()) return false;
+ if (hasTrackWaitEventTypes()) {
+ if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false;
+ }
+ if (hasMaxQueryStringLength() != other.hasMaxQueryStringLength()) return false;
+ if (hasMaxQueryStringLength()) {
+ if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false;
+ }
+ if (hasRecordApplicationTags() != other.hasRecordApplicationTags()) return false;
+ if (hasRecordApplicationTags()) {
+ if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false;
+ }
+ if (hasQueryPlansPerMinute() != other.hasQueryPlansPerMinute()) return false;
+ if (hasQueryPlansPerMinute()) {
+ if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false;
+ }
+ if (hasTrackActiveQueries() != other.hasTrackActiveQueries()) return false;
+ if (hasTrackActiveQueries()) {
+ if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false;
+ }
+ if (hasTrackClientAddress() != other.hasTrackClientAddress()) return false;
+ if (hasTrackClientAddress()) {
+ if (getTrackClientAddress() != other.getTrackClientAddress()) return false;
+ }
+ if (hasAssistiveExperiencesEnabled() != other.hasAssistiveExperiencesEnabled()) return false;
+ if (hasAssistiveExperiencesEnabled()) {
+ if (getAssistiveExperiencesEnabled() != other.getAssistiveExperiencesEnabled())
+ return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasEnabled()) {
+ hash = (37 * hash) + ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled());
+ }
+ if (hasPreserveComments()) {
+ hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments());
+ }
+ if (hasTrackWaitEvents()) {
+ hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents());
+ }
+ if (hasTrackWaitEventTypes()) {
+ hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes());
+ }
+ if (hasMaxQueryStringLength()) {
+ hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxQueryStringLength();
+ }
+ if (hasRecordApplicationTags()) {
+ hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags());
+ }
+ if (hasQueryPlansPerMinute()) {
+ hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryPlansPerMinute();
+ }
+ if (hasTrackActiveQueries()) {
+ hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries());
+ }
+ if (hasTrackClientAddress()) {
+ hash = (37 * hash) + TRACK_CLIENT_ADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackClientAddress());
+ }
+ if (hasAssistiveExperiencesEnabled()) {
+ hash = (37 * hash) + ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashBoolean(getAssistiveExperiencesEnabled());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Observability Instance specific configuration. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return Whether the enabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasEnabled() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ /**
+ *
+ *
+ * + * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @param value The enabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnabled(boolean value) {
+
+ enabled_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ enabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean preserveComments_;
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return Whether the preserveComments field is set.
+ */
+ @java.lang.Override
+ public boolean hasPreserveComments() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return The preserveComments.
+ */
+ @java.lang.Override
+ public boolean getPreserveComments() {
+ return preserveComments_;
+ }
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @param value The preserveComments to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPreserveComments(boolean value) {
+
+ preserveComments_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPreserveComments() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ preserveComments_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean trackWaitEvents_;
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return Whether the trackWaitEvents field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackWaitEvents() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return The trackWaitEvents.
+ */
+ @java.lang.Override
+ public boolean getTrackWaitEvents() {
+ return trackWaitEvents_;
+ }
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @param value The trackWaitEvents to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTrackWaitEvents(boolean value) {
+
+ trackWaitEvents_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTrackWaitEvents() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ trackWaitEvents_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean trackWaitEventTypes_;
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
+ * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the trackWaitEventTypes field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackWaitEventTypes() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
+ * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The trackWaitEventTypes.
+ */
+ @java.lang.Override
+ public boolean getTrackWaitEventTypes() {
+ return trackWaitEventTypes_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
+ * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The trackWaitEventTypes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTrackWaitEventTypes(boolean value) {
+
+ trackWaitEventTypes_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
+ * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTrackWaitEventTypes() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ trackWaitEventTypes_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int maxQueryStringLength_;
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return Whether the maxQueryStringLength field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxQueryStringLength() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return The maxQueryStringLength.
+ */
+ @java.lang.Override
+ public int getMaxQueryStringLength() {
+ return maxQueryStringLength_;
+ }
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @param value The maxQueryStringLength to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxQueryStringLength(int value) {
+
+ maxQueryStringLength_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxQueryStringLength() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ maxQueryStringLength_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean recordApplicationTags_;
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return Whether the recordApplicationTags field is set.
+ */
+ @java.lang.Override
+ public boolean hasRecordApplicationTags() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return The recordApplicationTags.
+ */
+ @java.lang.Override
+ public boolean getRecordApplicationTags() {
+ return recordApplicationTags_;
+ }
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @param value The recordApplicationTags to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecordApplicationTags(boolean value) {
+
+ recordApplicationTags_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRecordApplicationTags() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ recordApplicationTags_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int queryPlansPerMinute_;
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return Whether the queryPlansPerMinute field is set.
+ */
+ @java.lang.Override
+ public boolean hasQueryPlansPerMinute() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return The queryPlansPerMinute.
+ */
+ @java.lang.Override
+ public int getQueryPlansPerMinute() {
+ return queryPlansPerMinute_;
+ }
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @param value The queryPlansPerMinute to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQueryPlansPerMinute(int value) {
+
+ queryPlansPerMinute_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQueryPlansPerMinute() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ queryPlansPerMinute_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean trackActiveQueries_;
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return Whether the trackActiveQueries field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackActiveQueries() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return The trackActiveQueries.
+ */
+ @java.lang.Override
+ public boolean getTrackActiveQueries() {
+ return trackActiveQueries_;
+ }
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @param value The trackActiveQueries to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTrackActiveQueries(boolean value) {
+
+ trackActiveQueries_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTrackActiveQueries() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ trackActiveQueries_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean trackClientAddress_;
+
+ /**
+ *
+ *
+ * + * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @return Whether the trackClientAddress field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackClientAddress() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @return The trackClientAddress.
+ */
+ @java.lang.Override
+ public boolean getTrackClientAddress() {
+ return trackClientAddress_;
+ }
+
+ /**
+ *
+ *
+ * + * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @param value The trackClientAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTrackClientAddress(boolean value) {
+
+ trackClientAddress_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTrackClientAddress() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ trackClientAddress_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean assistiveExperiencesEnabled_;
+
+ /**
+ *
+ *
+ * + * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @return Whether the assistiveExperiencesEnabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasAssistiveExperiencesEnabled() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @return The assistiveExperiencesEnabled.
+ */
+ @java.lang.Override
+ public boolean getAssistiveExperiencesEnabled() {
+ return assistiveExperiencesEnabled_;
+ }
+
+ /**
+ *
+ *
+ * + * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @param value The assistiveExperiencesEnabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAssistiveExperiencesEnabled(boolean value) {
- /**
- *
- *
- * - * Observability Instance specific configuration. - *- * - * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig} - */ - public static final class ObservabilityInstanceConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) - ObservabilityInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + assistiveExperiencesEnabled_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+ * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAssistiveExperiencesEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ assistiveExperiencesEnabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig)
+ private static final com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
+ DEFAULT_INSTANCE;
static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 33,
- /* patch= */ 6,
- /* suffix= */ "",
- "ObservabilityInstanceConfig");
+ DEFAULT_INSTANCE =
+ new com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig();
}
- // Use ObservabilityInstanceConfig.newBuilder() to construct.
- private ObservabilityInstanceConfig(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
}
- private ObservabilityInstanceConfig() {}
+ private static final com.google.protobuf.Parser
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Observability feature status for an instance.
*
*
- * optional bool enabled = 1;
+ * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the enabled field is set.
+ * @return The enabled.
*/
- @java.lang.Override
- public boolean hasEnabled() {
- return ((bitField0_ & 0x00000001) != 0);
- }
+ boolean getEnabled();
/**
*
*
*
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Preserve comments in query string for an instance.
*
*
- * optional bool enabled = 1;
+ * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The enabled.
+ * @return The preserveComments.
*/
- @java.lang.Override
- public boolean getEnabled() {
- return enabled_;
- }
+ boolean getPreserveComments();
- public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 2;
- private boolean preserveComments_ = false;
+ /**
+ *
+ *
+ * + * Output only. Track wait events during query execution for an instance. + *+ * + *
bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The trackWaitEvents.
+ */
+ boolean getTrackWaitEvents();
/**
*
*
*
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Track wait event types during query execution for an
+ * instance.
*
*
- * optional bool preserve_comments = 2;
+ * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the preserveComments field is set.
+ * @return The trackWaitEventTypes.
*/
- @java.lang.Override
- public boolean hasPreserveComments() {
- return ((bitField0_ & 0x00000002) != 0);
- }
+ boolean getTrackWaitEventTypes();
/**
*
*
*
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Query string length. The default value is 10k.
*
*
- * optional bool preserve_comments = 2;
+ * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The preserveComments.
+ * @return The maxQueryStringLength.
*/
- @java.lang.Override
- public boolean getPreserveComments() {
- return preserveComments_;
- }
+ int getMaxQueryStringLength();
- public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 3;
- private boolean trackWaitEvents_ = false;
+ /**
+ *
+ *
+ * + * Output only. Record application tags for an instance. + *+ * + *
bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The recordApplicationTags.
+ */
+ boolean getRecordApplicationTags();
/**
*
*
*
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Number of query execution plans captured by Insights per
+ * minute for all queries combined.
*
*
- * optional bool track_wait_events = 3;
+ * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the trackWaitEvents field is set.
+ * @return The queryPlansPerMinute.
+ */
+ int getQueryPlansPerMinute();
+
+ /**
+ *
+ *
+ * + * Output only. Track actively running queries on the instance. + *+ * + *
bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The trackActiveQueries.
+ */
+ boolean getTrackActiveQueries();
+
+ /**
+ *
+ *
+ * + * Output only. Track client address for an instance. + *+ * + *
bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The trackClientAddress.
+ */
+ boolean getTrackClientAddress();
+
+ /**
+ *
+ *
+ * + * Output only. Whether assistive experiences are enabled for this AlloyDB + * instance. + *+ * + *
bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The assistiveExperiencesEnabled.
+ */
+ boolean getAssistiveExperiencesEnabled();
+
+ /**
+ *
+ *
+ * + * Output only. Indicates whether to track active query plans for an + * instance. Deprecated: Use track_active_queries instead. + *+ * + *
+ * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @deprecated
+ * google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.track_active_query_plan
+ * is deprecated. See google/cloud/alloydb/v1alpha/resources.proto;l=976
+ * @return The trackActiveQueryPlan.
*/
+ @java.lang.Deprecated
+ boolean getTrackActiveQueryPlan();
+ }
+
+ /** Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo} */
+ public static final class ObservabilityInstanceInfo extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo)
+ ObservabilityInstanceInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "ObservabilityInstanceInfo");
+ }
+
+ // Use ObservabilityInstanceInfo.newBuilder() to construct.
+ private ObservabilityInstanceInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private ObservabilityInstanceInfo() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.alloydb.v1alpha.ResourcesProto
+ .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_descriptor;
+ }
+
@java.lang.Override
- public boolean hasTrackWaitEvents() {
- return ((bitField0_ & 0x00000004) != 0);
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.alloydb.v1alpha.ResourcesProto
+ .internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.class,
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.Builder.class);
}
+ public static final int ENABLED_FIELD_NUMBER = 2;
+ private boolean enabled_ = false;
+
/**
*
*
*
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Observability feature status for an instance.
*
*
- * optional bool track_wait_events = 3;
+ * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The trackWaitEvents.
+ * @return The enabled.
*/
@java.lang.Override
- public boolean getTrackWaitEvents() {
- return trackWaitEvents_;
+ public boolean getEnabled() {
+ return enabled_;
}
- public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 4;
- private boolean trackWaitEventTypes_ = false;
+ public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 3;
+ private boolean preserveComments_ = false;
/**
*
*
*
- * Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * Output only. Preserve comments in query string for an instance.
*
*
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the trackWaitEventTypes field is set.
+ * @return The preserveComments.
*/
@java.lang.Override
- public boolean hasTrackWaitEventTypes() {
- return ((bitField0_ & 0x00000008) != 0);
+ public boolean getPreserveComments() {
+ return preserveComments_;
}
+ public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 4;
+ private boolean trackWaitEvents_ = false;
+
/**
*
*
*
- * Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * Output only. Track wait events during query execution for an instance.
*
*
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The trackWaitEventTypes.
+ * @return The trackWaitEvents.
*/
@java.lang.Override
- public boolean getTrackWaitEventTypes() {
- return trackWaitEventTypes_;
+ public boolean getTrackWaitEvents() {
+ return trackWaitEvents_;
}
- public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 5;
- private int maxQueryStringLength_ = 0;
+ public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 5;
+ private boolean trackWaitEventTypes_ = false;
/**
*
*
*
- * Query string length. The default value is 10k.
+ * Output only. Track wait event types during query execution for an
+ * instance.
*
*
- * optional int32 max_query_string_length = 5;
+ * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the maxQueryStringLength field is set.
+ * @return The trackWaitEventTypes.
*/
@java.lang.Override
- public boolean hasMaxQueryStringLength() {
- return ((bitField0_ & 0x00000010) != 0);
+ public boolean getTrackWaitEventTypes() {
+ return trackWaitEventTypes_;
}
+ public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 6;
+ private int maxQueryStringLength_ = 0;
+
/**
*
*
*
- * Query string length. The default value is 10k.
+ * Output only. Query string length. The default value is 10k.
*
*
- * optional int32 max_query_string_length = 5;
+ * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The maxQueryStringLength.
*/
@@ -4743,35 +7597,17 @@ public int getMaxQueryStringLength() {
return maxQueryStringLength_;
}
- public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 6;
+ public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 7;
private boolean recordApplicationTags_ = false;
/**
*
*
* - * Record application tags for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool record_application_tags = 6;
- *
- * @return Whether the recordApplicationTags field is set.
- */
- @java.lang.Override
- public boolean hasRecordApplicationTags() {
- return ((bitField0_ & 0x00000020) != 0);
- }
-
- /**
- *
- *
- *
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Record application tags for an instance.
*
*
- * optional bool record_application_tags = 6;
+ * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The recordApplicationTags.
*/
@@ -4780,37 +7616,18 @@ public boolean getRecordApplicationTags() {
return recordApplicationTags_;
}
- public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 7;
+ public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 8;
private int queryPlansPerMinute_ = 0;
/**
*
*
* - * Number of query execution plans captured by Insights per minute - * for all queries combined. The default value is 200. - * Any integer between 0 to 200 is considered valid. - *- * - *
optional int32 query_plans_per_minute = 7;
- *
- * @return Whether the queryPlansPerMinute field is set.
- */
- @java.lang.Override
- public boolean hasQueryPlansPerMinute() {
- return ((bitField0_ & 0x00000040) != 0);
- }
-
- /**
- *
- *
- *
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Number of query execution plans captured by Insights per
+ * minute for all queries combined.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The queryPlansPerMinute.
*/
@@ -4819,35 +7636,17 @@ public int getQueryPlansPerMinute() {
return queryPlansPerMinute_;
}
- public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 8;
+ public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 9;
private boolean trackActiveQueries_ = false;
/**
*
*
* - * Track actively running queries on the instance. - * If not set, this flag is "off" by default. - *- * - *
optional bool track_active_queries = 8;
- *
- * @return Whether the trackActiveQueries field is set.
- */
- @java.lang.Override
- public boolean hasTrackActiveQueries() {
- return ((bitField0_ & 0x00000080) != 0);
- }
-
- /**
- *
- *
- *
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Track actively running queries on the instance.
*
*
- * optional bool track_active_queries = 8;
+ * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackActiveQueries.
*/
@@ -4856,35 +7655,17 @@ public boolean getTrackActiveQueries() {
return trackActiveQueries_;
}
- public static final int TRACK_CLIENT_ADDRESS_FIELD_NUMBER = 9;
+ public static final int TRACK_CLIENT_ADDRESS_FIELD_NUMBER = 10;
private boolean trackClientAddress_ = false;
/**
*
*
* - * Track client address for an instance. - * If not set, default value is "off". - *- * - *
optional bool track_client_address = 9;
- *
- * @return Whether the trackClientAddress field is set.
- */
- @java.lang.Override
- public boolean hasTrackClientAddress() {
- return ((bitField0_ & 0x00000100) != 0);
- }
-
- /**
- *
- *
- *
- * Track client address for an instance.
- * If not set, default value is "off".
+ * Output only. Track client address for an instance.
*
*
- * optional bool track_client_address = 9;
+ * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackClientAddress.
*/
@@ -4893,39 +7674,51 @@ public boolean getTrackClientAddress() {
return trackClientAddress_;
}
- public static final int ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER = 10;
+ public static final int ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER = 11;
private boolean assistiveExperiencesEnabled_ = false;
/**
*
*
*
- * Whether assistive experiences are enabled for this AlloyDB instance.
+ * Output only. Whether assistive experiences are enabled for this AlloyDB
+ * instance.
*
*
- * optional bool assistive_experiences_enabled = 10;
+ * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return Whether the assistiveExperiencesEnabled field is set.
+ * @return The assistiveExperiencesEnabled.
*/
@java.lang.Override
- public boolean hasAssistiveExperiencesEnabled() {
- return ((bitField0_ & 0x00000200) != 0);
+ public boolean getAssistiveExperiencesEnabled() {
+ return assistiveExperiencesEnabled_;
}
+ public static final int TRACK_ACTIVE_QUERY_PLAN_FIELD_NUMBER = 13;
+ private boolean trackActiveQueryPlan_ = false;
+
/**
*
*
*
- * Whether assistive experiences are enabled for this AlloyDB instance.
+ * Output only. Indicates whether to track active query plans for an
+ * instance. Deprecated: Use track_active_queries instead.
*
*
- * optional bool assistive_experiences_enabled = 10;
+ *
+ * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return The assistiveExperiencesEnabled.
+ * @deprecated
+ * google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.track_active_query_plan
+ * is deprecated. See google/cloud/alloydb/v1alpha/resources.proto;l=976
+ * @return The trackActiveQueryPlan.
*/
@java.lang.Override
- public boolean getAssistiveExperiencesEnabled() {
- return assistiveExperiencesEnabled_;
+ @java.lang.Deprecated
+ public boolean getTrackActiveQueryPlan() {
+ return trackActiveQueryPlan_;
}
private byte memoizedIsInitialized = -1;
@@ -4942,35 +7735,38 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeBool(1, enabled_);
+ if (enabled_ != false) {
+ output.writeBool(2, enabled_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeBool(2, preserveComments_);
+ if (preserveComments_ != false) {
+ output.writeBool(3, preserveComments_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeBool(3, trackWaitEvents_);
+ if (trackWaitEvents_ != false) {
+ output.writeBool(4, trackWaitEvents_);
}
- if (((bitField0_ & 0x00000008) != 0)) {
- output.writeBool(4, trackWaitEventTypes_);
+ if (trackWaitEventTypes_ != false) {
+ output.writeBool(5, trackWaitEventTypes_);
}
- if (((bitField0_ & 0x00000010) != 0)) {
- output.writeInt32(5, maxQueryStringLength_);
+ if (maxQueryStringLength_ != 0) {
+ output.writeInt32(6, maxQueryStringLength_);
}
- if (((bitField0_ & 0x00000020) != 0)) {
- output.writeBool(6, recordApplicationTags_);
+ if (recordApplicationTags_ != false) {
+ output.writeBool(7, recordApplicationTags_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
- output.writeInt32(7, queryPlansPerMinute_);
+ if (queryPlansPerMinute_ != 0) {
+ output.writeInt32(8, queryPlansPerMinute_);
}
- if (((bitField0_ & 0x00000080) != 0)) {
- output.writeBool(8, trackActiveQueries_);
+ if (trackActiveQueries_ != false) {
+ output.writeBool(9, trackActiveQueries_);
}
- if (((bitField0_ & 0x00000100) != 0)) {
- output.writeBool(9, trackClientAddress_);
+ if (trackClientAddress_ != false) {
+ output.writeBool(10, trackClientAddress_);
}
- if (((bitField0_ & 0x00000200) != 0)) {
- output.writeBool(10, assistiveExperiencesEnabled_);
+ if (assistiveExperiencesEnabled_ != false) {
+ output.writeBool(11, assistiveExperiencesEnabled_);
+ }
+ if (trackActiveQueryPlan_ != false) {
+ output.writeBool(13, trackActiveQueryPlan_);
}
getUnknownFields().writeTo(output);
}
@@ -4981,94 +7777,67 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, preserveComments_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trackWaitEvents_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEventTypes_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxQueryStringLength_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, recordApplicationTags_);
- }
- if (((bitField0_ & 0x00000040) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, queryPlansPerMinute_);
- }
- if (((bitField0_ & 0x00000080) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, trackActiveQueries_);
- }
- if (((bitField0_ & 0x00000100) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, trackClientAddress_);
- }
- if (((bitField0_ & 0x00000200) != 0)) {
- size +=
- com.google.protobuf.CodedOutputStream.computeBoolSize(10, assistiveExperiencesEnabled_);
+ if (enabled_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enabled_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
+ if (preserveComments_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, preserveComments_);
}
- if (!(obj instanceof com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig)) {
- return super.equals(obj);
+ if (trackWaitEvents_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEvents_);
}
- com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig other =
- (com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig) obj;
-
- if (hasEnabled() != other.hasEnabled()) return false;
- if (hasEnabled()) {
- if (getEnabled() != other.getEnabled()) return false;
+ if (trackWaitEventTypes_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, trackWaitEventTypes_);
}
- if (hasPreserveComments() != other.hasPreserveComments()) return false;
- if (hasPreserveComments()) {
- if (getPreserveComments() != other.getPreserveComments()) return false;
+ if (maxQueryStringLength_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, maxQueryStringLength_);
}
- if (hasTrackWaitEvents() != other.hasTrackWaitEvents()) return false;
- if (hasTrackWaitEvents()) {
- if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false;
+ if (recordApplicationTags_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, recordApplicationTags_);
}
- if (hasTrackWaitEventTypes() != other.hasTrackWaitEventTypes()) return false;
- if (hasTrackWaitEventTypes()) {
- if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false;
+ if (queryPlansPerMinute_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, queryPlansPerMinute_);
}
- if (hasMaxQueryStringLength() != other.hasMaxQueryStringLength()) return false;
- if (hasMaxQueryStringLength()) {
- if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false;
+ if (trackActiveQueries_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, trackActiveQueries_);
}
- if (hasRecordApplicationTags() != other.hasRecordApplicationTags()) return false;
- if (hasRecordApplicationTags()) {
- if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false;
+ if (trackClientAddress_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, trackClientAddress_);
}
- if (hasQueryPlansPerMinute() != other.hasQueryPlansPerMinute()) return false;
- if (hasQueryPlansPerMinute()) {
- if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false;
+ if (assistiveExperiencesEnabled_ != false) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(11, assistiveExperiencesEnabled_);
}
- if (hasTrackActiveQueries() != other.hasTrackActiveQueries()) return false;
- if (hasTrackActiveQueries()) {
- if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false;
+ if (trackActiveQueryPlan_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, trackActiveQueryPlan_);
}
- if (hasTrackClientAddress() != other.hasTrackClientAddress()) return false;
- if (hasTrackClientAddress()) {
- if (getTrackClientAddress() != other.getTrackClientAddress()) return false;
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
}
- if (hasAssistiveExperiencesEnabled() != other.hasAssistiveExperiencesEnabled()) return false;
- if (hasAssistiveExperiencesEnabled()) {
- if (getAssistiveExperiencesEnabled() != other.getAssistiveExperiencesEnabled())
- return false;
+ if (!(obj instanceof com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo)) {
+ return super.equals(obj);
}
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo other =
+ (com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo) obj;
+
+ if (getEnabled() != other.getEnabled()) return false;
+ if (getPreserveComments() != other.getPreserveComments()) return false;
+ if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false;
+ if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false;
+ if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false;
+ if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false;
+ if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false;
+ if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false;
+ if (getTrackClientAddress() != other.getTrackClientAddress()) return false;
+ if (getAssistiveExperiencesEnabled() != other.getAssistiveExperiencesEnabled()) return false;
+ if (getTrackActiveQueryPlan() != other.getTrackActiveQueryPlan()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -5080,106 +7849,87 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- if (hasEnabled()) {
- hash = (37 * hash) + ENABLED_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled());
- }
- if (hasPreserveComments()) {
- hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments());
- }
- if (hasTrackWaitEvents()) {
- hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents());
- }
- if (hasTrackWaitEventTypes()) {
- hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes());
- }
- if (hasMaxQueryStringLength()) {
- hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER;
- hash = (53 * hash) + getMaxQueryStringLength();
- }
- if (hasRecordApplicationTags()) {
- hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags());
- }
- if (hasQueryPlansPerMinute()) {
- hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER;
- hash = (53 * hash) + getQueryPlansPerMinute();
- }
- if (hasTrackActiveQueries()) {
- hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries());
- }
- if (hasTrackClientAddress()) {
- hash = (37 * hash) + TRACK_CLIENT_ADDRESS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackClientAddress());
- }
- if (hasAssistiveExperiencesEnabled()) {
- hash = (37 * hash) + ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER;
- hash =
- (53 * hash)
- + com.google.protobuf.Internal.hashBoolean(getAssistiveExperiencesEnabled());
- }
+ hash = (37 * hash) + ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled());
+ hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments());
+ hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents());
+ hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes());
+ hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxQueryStringLength();
+ hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags());
+ hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryPlansPerMinute();
+ hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries());
+ hash = (37 * hash) + TRACK_CLIENT_ADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackClientAddress());
+ hash = (37 * hash) + ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER;
+ hash =
+ (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAssistiveExperiencesEnabled());
+ hash = (37 * hash) + TRACK_ACTIVE_QUERY_PLAN_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueryPlan());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -5187,12 +7937,12 @@ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceCon
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -5210,7 +7960,7 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig prototype) {
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@@ -5225,37 +7975,28 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
return builder;
}
- /**
- *
- *
- * - * Observability Instance specific configuration. - *- * - * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig} - */ + /** Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
- * Observability feature status for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool enabled = 1;
- *
- * @return Whether the enabled field is set.
- */
- @java.lang.Override
- public boolean hasEnabled() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- *
- *
- *
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Observability feature status for an instance.
*
*
- * optional bool enabled = 1;
+ * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The enabled.
*/
@@ -5552,11 +8274,10 @@ public boolean getEnabled() {
*
*
*
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Observability feature status for an instance.
*
*
- * optional bool enabled = 1;
+ * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The enabled to set.
* @return This builder for chaining.
@@ -5573,11 +8294,10 @@ public Builder setEnabled(boolean value) {
*
*
*
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Observability feature status for an instance.
*
*
- * optional bool enabled = 1;
+ * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -5594,28 +8314,10 @@ public Builder clearEnabled() {
*
*
* - * Preserve comments in query string for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool preserve_comments = 2;
- *
- * @return Whether the preserveComments field is set.
- */
- @java.lang.Override
- public boolean hasPreserveComments() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- *
- *
- *
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Preserve comments in query string for an instance.
*
*
- * optional bool preserve_comments = 2;
+ * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The preserveComments.
*/
@@ -5628,11 +8330,10 @@ public boolean getPreserveComments() {
*
*
*
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Preserve comments in query string for an instance.
*
*
- * optional bool preserve_comments = 2;
+ * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The preserveComments to set.
* @return This builder for chaining.
@@ -5649,51 +8350,30 @@ public Builder setPreserveComments(boolean value) {
*
*
* - * Preserve comments in query string for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool preserve_comments = 2;
- *
- * @return This builder for chaining.
- */
- public Builder clearPreserveComments() {
- bitField0_ = (bitField0_ & ~0x00000002);
- preserveComments_ = false;
- onChanged();
- return this;
- }
-
- private boolean trackWaitEvents_;
-
- /**
- *
- *
- *
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Preserve comments in query string for an instance.
*
*
- * optional bool track_wait_events = 3;
+ * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the trackWaitEvents field is set.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public boolean hasTrackWaitEvents() {
- return ((bitField0_ & 0x00000004) != 0);
+ public Builder clearPreserveComments() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ preserveComments_ = false;
+ onChanged();
+ return this;
}
+ private boolean trackWaitEvents_;
+
/**
*
*
*
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Track wait events during query execution for an instance.
*
*
- * optional bool track_wait_events = 3;
+ * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackWaitEvents.
*/
@@ -5706,12 +8386,10 @@ public boolean getTrackWaitEvents() {
*
*
*
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Track wait events during query execution for an instance.
*
*
- * optional bool track_wait_events = 3;
+ * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The trackWaitEvents to set.
* @return This builder for chaining.
@@ -5728,12 +8406,10 @@ public Builder setTrackWaitEvents(boolean value) {
*
*
*
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Track wait events during query execution for an instance.
*
*
- * optional bool track_wait_events = 3;
+ * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -5751,35 +8427,10 @@ public Builder clearTrackWaitEvents() {
*
*
* Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
- *
- *
- *
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return Whether the trackWaitEventTypes field is set.
- */
- @java.lang.Override
- public boolean hasTrackWaitEventTypes() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- *
- *
- *
- * Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * instance.
*
*
- *
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackWaitEventTypes.
*/
@@ -5793,14 +8444,10 @@ public boolean getTrackWaitEventTypes() {
*
*
* Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * instance.
*
*
- *
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The trackWaitEventTypes to set.
* @return This builder for chaining.
@@ -5818,14 +8465,10 @@ public Builder setTrackWaitEventTypes(boolean value) {
*
*
* Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * instance.
*
*
- *
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -5842,26 +8485,11 @@ public Builder clearTrackWaitEventTypes() {
*
*
* - * Query string length. The default value is 10k. - *- * - *
optional int32 max_query_string_length = 5;
- *
- * @return Whether the maxQueryStringLength field is set.
- */
- @java.lang.Override
- public boolean hasMaxQueryStringLength() {
- return ((bitField0_ & 0x00000010) != 0);
- }
-
- /**
- *
- *
- *
- * Query string length. The default value is 10k.
+ * Output only. Query string length. The default value is 10k.
*
*
- * optional int32 max_query_string_length = 5;
+ * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The maxQueryStringLength.
*/
@@ -5874,10 +8502,11 @@ public int getMaxQueryStringLength() {
*
*
*
- * Query string length. The default value is 10k.
+ * Output only. Query string length. The default value is 10k.
*
*
- * optional int32 max_query_string_length = 5;
+ * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @param value The maxQueryStringLength to set.
* @return This builder for chaining.
@@ -5894,10 +8523,11 @@ public Builder setMaxQueryStringLength(int value) {
*
*
*
- * Query string length. The default value is 10k.
+ * Output only. Query string length. The default value is 10k.
*
*
- * optional int32 max_query_string_length = 5;
+ * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return This builder for chaining.
*/
@@ -5914,28 +8544,10 @@ public Builder clearMaxQueryStringLength() {
*
*
* - * Record application tags for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool record_application_tags = 6;
- *
- * @return Whether the recordApplicationTags field is set.
- */
- @java.lang.Override
- public boolean hasRecordApplicationTags() {
- return ((bitField0_ & 0x00000020) != 0);
- }
-
- /**
- *
- *
- *
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Record application tags for an instance.
*
*
- * optional bool record_application_tags = 6;
+ * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The recordApplicationTags.
*/
@@ -5948,11 +8560,10 @@ public boolean getRecordApplicationTags() {
*
*
*
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Record application tags for an instance.
*
*
- * optional bool record_application_tags = 6;
+ * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The recordApplicationTags to set.
* @return This builder for chaining.
@@ -5969,11 +8580,10 @@ public Builder setRecordApplicationTags(boolean value) {
*
*
*
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Record application tags for an instance.
*
*
- * optional bool record_application_tags = 6;
+ * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -5990,30 +8600,11 @@ public Builder clearRecordApplicationTags() {
*
*
* - * Number of query execution plans captured by Insights per minute - * for all queries combined. The default value is 200. - * Any integer between 0 to 200 is considered valid. - *- * - *
optional int32 query_plans_per_minute = 7;
- *
- * @return Whether the queryPlansPerMinute field is set.
- */
- @java.lang.Override
- public boolean hasQueryPlansPerMinute() {
- return ((bitField0_ & 0x00000040) != 0);
- }
-
- /**
- *
- *
- *
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Number of query execution plans captured by Insights per
+ * minute for all queries combined.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The queryPlansPerMinute.
*/
@@ -6026,12 +8617,11 @@ public int getQueryPlansPerMinute() {
*
*
*
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Number of query execution plans captured by Insights per
+ * minute for all queries combined.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The queryPlansPerMinute to set.
* @return This builder for chaining.
@@ -6048,12 +8638,11 @@ public Builder setQueryPlansPerMinute(int value) {
*
*
*
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Number of query execution plans captured by Insights per
+ * minute for all queries combined.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -6070,28 +8659,10 @@ public Builder clearQueryPlansPerMinute() {
*
*
* - * Track actively running queries on the instance. - * If not set, this flag is "off" by default. - *- * - *
optional bool track_active_queries = 8;
- *
- * @return Whether the trackActiveQueries field is set.
- */
- @java.lang.Override
- public boolean hasTrackActiveQueries() {
- return ((bitField0_ & 0x00000080) != 0);
- }
-
- /**
- *
- *
- *
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Track actively running queries on the instance.
*
*
- * optional bool track_active_queries = 8;
+ * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackActiveQueries.
*/
@@ -6104,11 +8675,10 @@ public boolean getTrackActiveQueries() {
*
*
*
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Track actively running queries on the instance.
*
*
- * optional bool track_active_queries = 8;
+ * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The trackActiveQueries to set.
* @return This builder for chaining.
@@ -6125,11 +8695,10 @@ public Builder setTrackActiveQueries(boolean value) {
*
*
*
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Track actively running queries on the instance.
*
*
- * optional bool track_active_queries = 8;
+ * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -6146,28 +8715,10 @@ public Builder clearTrackActiveQueries() {
*
*
* - * Track client address for an instance. - * If not set, default value is "off". - *- * - *
optional bool track_client_address = 9;
- *
- * @return Whether the trackClientAddress field is set.
- */
- @java.lang.Override
- public boolean hasTrackClientAddress() {
- return ((bitField0_ & 0x00000100) != 0);
- }
-
- /**
- *
- *
- *
- * Track client address for an instance.
- * If not set, default value is "off".
+ * Output only. Track client address for an instance.
*
*
- * optional bool track_client_address = 9;
+ * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackClientAddress.
*/
@@ -6180,11 +8731,10 @@ public boolean getTrackClientAddress() {
*
*
*
- * Track client address for an instance.
- * If not set, default value is "off".
+ * Output only. Track client address for an instance.
*
*
- * optional bool track_client_address = 9;
+ * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The trackClientAddress to set.
* @return This builder for chaining.
@@ -6201,11 +8751,10 @@ public Builder setTrackClientAddress(boolean value) {
*
*
*
- * Track client address for an instance.
- * If not set, default value is "off".
+ * Output only. Track client address for an instance.
*
*
- * optional bool track_client_address = 9;
+ * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -6222,50 +8771,110 @@ public Builder clearTrackClientAddress() {
*
*
*
- * Whether assistive experiences are enabled for this AlloyDB instance.
+ * Output only. Whether assistive experiences are enabled for this AlloyDB
+ * instance.
*
*
- * optional bool assistive_experiences_enabled = 10;
+ * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return Whether the assistiveExperiencesEnabled field is set.
+ * @return The assistiveExperiencesEnabled.
*/
@java.lang.Override
- public boolean hasAssistiveExperiencesEnabled() {
- return ((bitField0_ & 0x00000200) != 0);
+ public boolean getAssistiveExperiencesEnabled() {
+ return assistiveExperiencesEnabled_;
}
/**
*
*
*
- * Whether assistive experiences are enabled for this AlloyDB instance.
+ * Output only. Whether assistive experiences are enabled for this AlloyDB
+ * instance.
*
*
- * optional bool assistive_experiences_enabled = 10;
+ * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return The assistiveExperiencesEnabled.
+ * @param value The assistiveExperiencesEnabled to set.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public boolean getAssistiveExperiencesEnabled() {
- return assistiveExperiencesEnabled_;
+ public Builder setAssistiveExperiencesEnabled(boolean value) {
+
+ assistiveExperiencesEnabled_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether assistive experiences are enabled for this AlloyDB + * instance. + *+ * + *
bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAssistiveExperiencesEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ assistiveExperiencesEnabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean trackActiveQueryPlan_;
+
+ /**
+ *
+ *
+ * + * Output only. Indicates whether to track active query plans for an + * instance. Deprecated: Use track_active_queries instead. + *+ * + *
+ * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @deprecated
+ * google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.track_active_query_plan
+ * is deprecated. See google/cloud/alloydb/v1alpha/resources.proto;l=976
+ * @return The trackActiveQueryPlan.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public boolean getTrackActiveQueryPlan() {
+ return trackActiveQueryPlan_;
}
/**
*
*
*
- * Whether assistive experiences are enabled for this AlloyDB instance.
+ * Output only. Indicates whether to track active query plans for an
+ * instance. Deprecated: Use track_active_queries instead.
*
*
- * optional bool assistive_experiences_enabled = 10;
+ *
+ * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @param value The assistiveExperiencesEnabled to set.
+ * @deprecated
+ * google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.track_active_query_plan
+ * is deprecated. See google/cloud/alloydb/v1alpha/resources.proto;l=976
+ * @param value The trackActiveQueryPlan to set.
* @return This builder for chaining.
*/
- public Builder setAssistiveExperiencesEnabled(boolean value) {
+ @java.lang.Deprecated
+ public Builder setTrackActiveQueryPlan(boolean value) {
- assistiveExperiencesEnabled_ = value;
- bitField0_ |= 0x00000200;
+ trackActiveQueryPlan_ = value;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -6274,41 +8883,47 @@ public Builder setAssistiveExperiencesEnabled(boolean value) {
*
*
*
- * Whether assistive experiences are enabled for this AlloyDB instance.
+ * Output only. Indicates whether to track active query plans for an
+ * instance. Deprecated: Use track_active_queries instead.
*
*
- * optional bool assistive_experiences_enabled = 10;
+ *
+ * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
+ * @deprecated
+ * google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.track_active_query_plan
+ * is deprecated. See google/cloud/alloydb/v1alpha/resources.proto;l=976
* @return This builder for chaining.
*/
- public Builder clearAssistiveExperiencesEnabled() {
- bitField0_ = (bitField0_ & ~0x00000200);
- assistiveExperiencesEnabled_ = false;
+ @java.lang.Deprecated
+ public Builder clearTrackActiveQueryPlan() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ trackActiveQueryPlan_ = false;
onChanged();
return this;
}
- // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig)
+ // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo)
}
- // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig)
- private static final com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
+ // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo)
+ private static final com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE =
- new com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig();
+ DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo();
}
- public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
+ public static com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser+ * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the queryInsightsInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasQueryInsightsInfo() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The queryInsightsInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo
+ getQueryInsightsInfo() {
+ return queryInsightsInfo_ == null
+ ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.getDefaultInstance()
+ : queryInsightsInfo_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfoOrBuilder
+ getQueryInsightsInfoOrBuilder() {
+ return queryInsightsInfo_ == null
+ ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.getDefaultInstance()
+ : queryInsightsInfo_;
+ }
+
public static final int OBSERVABILITY_CONFIG_FIELD_NUMBER = 26;
private com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
observabilityConfig_;
@@ -20101,7 +22786,7 @@ public boolean hasQueryInsightsConfig() {
*/
@java.lang.Override
public boolean hasObservabilityConfig() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
@@ -20144,6 +22829,77 @@ public boolean hasObservabilityConfig() {
: observabilityConfig_;
}
+ public static final int OBSERVABILITY_INSTANCE_INFO_FIELD_NUMBER = 44;
+ private com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo
+ observabilityInstanceInfo_;
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the observabilityInstanceInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasObservabilityInstanceInfo() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The observabilityInstanceInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo
+ getObservabilityInstanceInfo() {
+ return observabilityInstanceInfo_ == null
+ ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.getDefaultInstance()
+ : observabilityInstanceInfo_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfoOrBuilder
+ getObservabilityInstanceInfoOrBuilder() {
+ return observabilityInstanceInfo_ == null
+ ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.getDefaultInstance()
+ : observabilityInstanceInfo_;
+ }
+
public static final int READ_POOL_CONFIG_FIELD_NUMBER = 14;
private com.google.cloud.alloydb.v1alpha.Instance.ReadPoolConfig readPoolConfig_;
@@ -20161,7 +22917,7 @@ public boolean hasObservabilityConfig() {
*/
@java.lang.Override
public boolean hasReadPoolConfig() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
@@ -20528,7 +23284,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
*/
@java.lang.Override
public boolean hasUpdatePolicy() {
- return ((bitField0_ & 0x00000100) != 0);
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
@@ -20590,7 +23346,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy getUpdatePolicy()
*/
@java.lang.Override
public boolean hasClientConnectionConfig() {
- return ((bitField0_ & 0x00000200) != 0);
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
@@ -20690,7 +23446,7 @@ public boolean getSatisfiesPzs() {
*/
@java.lang.Override
public boolean hasPscInstanceConfig() {
- return ((bitField0_ & 0x00000400) != 0);
+ return ((bitField0_ & 0x00001000) != 0);
}
/**
@@ -20753,7 +23509,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig getPscInstanc
*/
@java.lang.Override
public boolean hasPscInstanceInfo() {
- return ((bitField0_ & 0x00000800) != 0);
+ return ((bitField0_ & 0x00002000) != 0);
}
/**
@@ -20815,7 +23571,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo getPscInstanceI
*/
@java.lang.Override
public boolean hasNetworkConfig() {
- return ((bitField0_ & 0x00001000) != 0);
+ return ((bitField0_ & 0x00004000) != 0);
}
/**
@@ -20873,13 +23629,13 @@ public com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig getNetwor
*
*
* @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See
- * google/cloud/alloydb/v1alpha/resources.proto;l=1399
+ * google/cloud/alloydb/v1alpha/resources.proto;l=1478
* @return Whether the geminiConfig field is set.
*/
@java.lang.Override
@java.lang.Deprecated
public boolean hasGeminiConfig() {
- return ((bitField0_ & 0x00002000) != 0);
+ return ((bitField0_ & 0x00008000) != 0);
}
/**
@@ -20895,7 +23651,7 @@ public boolean hasGeminiConfig() {
*
*
* @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See
- * google/cloud/alloydb/v1alpha/resources.proto;l=1399
+ * google/cloud/alloydb/v1alpha/resources.proto;l=1478
* @return The geminiConfig.
*/
@java.lang.Override
@@ -21075,7 +23831,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.ActivationPolicy getActivationP
*/
@java.lang.Override
public boolean hasConnectionPoolConfig() {
- return ((bitField0_ & 0x00004000) != 0);
+ return ((bitField0_ & 0x00010000) != 0);
}
/**
@@ -21135,7 +23891,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.ConnectionPoolConfig getConnect
*/
@java.lang.Override
public boolean hasGcaConfig() {
- return ((bitField0_ & 0x00008000) != 0);
+ return ((bitField0_ & 0x00020000) != 0);
}
/**
@@ -21231,7 +23987,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
}
com.google.protobuf.GeneratedMessage.serializeStringMapTo(
output, internalGetDatabaseFlags(), DatabaseFlagsDefaultEntryHolder.defaultEntry, 13);
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (((bitField0_ & 0x00000200) != 0)) {
output.writeMessage(14, getReadPoolConfig());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ipAddress_)) {
@@ -21254,31 +24010,31 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(21, getQueryInsightsConfig());
}
- if (((bitField0_ & 0x00000100) != 0)) {
+ if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(22, getUpdatePolicy());
}
- if (((bitField0_ & 0x00000200) != 0)) {
+ if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(23, getClientConnectionConfig());
}
if (satisfiesPzs_ != false) {
output.writeBool(24, satisfiesPzs_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(26, getObservabilityConfig());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(publicIpAddress_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 27, publicIpAddress_);
}
- if (((bitField0_ & 0x00000400) != 0)) {
+ if (((bitField0_ & 0x00001000) != 0)) {
output.writeMessage(28, getPscInstanceConfig());
}
- if (((bitField0_ & 0x00001000) != 0)) {
+ if (((bitField0_ & 0x00004000) != 0)) {
output.writeMessage(29, getNetworkConfig());
}
if (satisfiesPzi_ != false) {
output.writeBool(30, satisfiesPzi_);
}
- if (((bitField0_ & 0x00002000) != 0)) {
+ if (((bitField0_ & 0x00008000) != 0)) {
output.writeMessage(33, getGeminiConfig());
}
for (int i = 0; i < outboundPublicIpAddresses_.size(); i++) {
@@ -21290,15 +24046,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
.getNumber()) {
output.writeEnum(35, activationPolicy_);
}
- if (((bitField0_ & 0x00004000) != 0)) {
+ if (((bitField0_ & 0x00010000) != 0)) {
output.writeMessage(37, getConnectionPoolConfig());
}
- if (((bitField0_ & 0x00008000) != 0)) {
+ if (((bitField0_ & 0x00020000) != 0)) {
output.writeMessage(38, getGcaConfig());
}
- if (((bitField0_ & 0x00000800) != 0)) {
+ if (((bitField0_ & 0x00000100) != 0)) {
+ output.writeMessage(44, getObservabilityInstanceInfo());
+ }
+ if (((bitField0_ & 0x00002000) != 0)) {
output.writeMessage(46, getPscInstanceInfo());
}
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeMessage(47, getQueryInsightsInfo());
+ }
getUnknownFields().writeTo(output);
}
@@ -21365,7 +24127,7 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, databaseFlags__);
}
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getReadPoolConfig());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ipAddress_)) {
@@ -21397,33 +24159,33 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(21, getQueryInsightsConfig());
}
- if (((bitField0_ & 0x00000100) != 0)) {
+ if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getUpdatePolicy());
}
- if (((bitField0_ & 0x00000200) != 0)) {
+ if (((bitField0_ & 0x00000800) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(23, getClientConnectionConfig());
}
if (satisfiesPzs_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, satisfiesPzs_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000080) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(26, getObservabilityConfig());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(publicIpAddress_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(27, publicIpAddress_);
}
- if (((bitField0_ & 0x00000400) != 0)) {
+ if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getPscInstanceConfig());
}
- if (((bitField0_ & 0x00001000) != 0)) {
+ if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getNetworkConfig());
}
if (satisfiesPzi_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, satisfiesPzi_);
}
- if (((bitField0_ & 0x00002000) != 0)) {
+ if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getGeminiConfig());
}
{
@@ -21439,16 +24201,24 @@ public int getSerializedSize() {
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, activationPolicy_);
}
- if (((bitField0_ & 0x00004000) != 0)) {
+ if (((bitField0_ & 0x00010000) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(37, getConnectionPoolConfig());
}
- if (((bitField0_ & 0x00008000) != 0)) {
+ if (((bitField0_ & 0x00020000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getGcaConfig());
}
- if (((bitField0_ & 0x00000800) != 0)) {
+ if (((bitField0_ & 0x00000100) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 44, getObservabilityInstanceInfo());
+ }
+ if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(46, getPscInstanceInfo());
}
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(47, getQueryInsightsInfo());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -21499,10 +24269,19 @@ public boolean equals(final java.lang.Object obj) {
if (hasQueryInsightsConfig()) {
if (!getQueryInsightsConfig().equals(other.getQueryInsightsConfig())) return false;
}
+ if (hasQueryInsightsInfo() != other.hasQueryInsightsInfo()) return false;
+ if (hasQueryInsightsInfo()) {
+ if (!getQueryInsightsInfo().equals(other.getQueryInsightsInfo())) return false;
+ }
if (hasObservabilityConfig() != other.hasObservabilityConfig()) return false;
if (hasObservabilityConfig()) {
if (!getObservabilityConfig().equals(other.getObservabilityConfig())) return false;
}
+ if (hasObservabilityInstanceInfo() != other.hasObservabilityInstanceInfo()) return false;
+ if (hasObservabilityInstanceInfo()) {
+ if (!getObservabilityInstanceInfo().equals(other.getObservabilityInstanceInfo()))
+ return false;
+ }
if (hasReadPoolConfig() != other.hasReadPoolConfig()) return false;
if (hasReadPoolConfig()) {
if (!getReadPoolConfig().equals(other.getReadPoolConfig())) return false;
@@ -21610,10 +24389,18 @@ public int hashCode() {
hash = (37 * hash) + QUERY_INSIGHTS_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getQueryInsightsConfig().hashCode();
}
+ if (hasQueryInsightsInfo()) {
+ hash = (37 * hash) + QUERY_INSIGHTS_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryInsightsInfo().hashCode();
+ }
if (hasObservabilityConfig()) {
hash = (37 * hash) + OBSERVABILITY_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getObservabilityConfig().hashCode();
}
+ if (hasObservabilityInstanceInfo()) {
+ hash = (37 * hash) + OBSERVABILITY_INSTANCE_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getObservabilityInstanceInfo().hashCode();
+ }
if (hasReadPoolConfig()) {
hash = (37 * hash) + READ_POOL_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getReadPoolConfig().hashCode();
@@ -21851,7 +24638,9 @@ private void maybeForceBuilderInitialization() {
internalGetWritableNodeFieldBuilder();
internalGetNodesFieldBuilder();
internalGetQueryInsightsConfigFieldBuilder();
+ internalGetQueryInsightsInfoFieldBuilder();
internalGetObservabilityConfigFieldBuilder();
+ internalGetObservabilityInstanceInfoFieldBuilder();
internalGetReadPoolConfigFieldBuilder();
internalGetUpdatePolicyFieldBuilder();
internalGetClientConnectionConfigFieldBuilder();
@@ -21915,11 +24704,21 @@ public Builder clear() {
queryInsightsConfigBuilder_.dispose();
queryInsightsConfigBuilder_ = null;
}
+ queryInsightsInfo_ = null;
+ if (queryInsightsInfoBuilder_ != null) {
+ queryInsightsInfoBuilder_.dispose();
+ queryInsightsInfoBuilder_ = null;
+ }
observabilityConfig_ = null;
if (observabilityConfigBuilder_ != null) {
observabilityConfigBuilder_.dispose();
observabilityConfigBuilder_ = null;
}
+ observabilityInstanceInfo_ = null;
+ if (observabilityInstanceInfoBuilder_ != null) {
+ observabilityInstanceInfoBuilder_.dispose();
+ observabilityInstanceInfoBuilder_ = null;
+ }
readPoolConfig_ = null;
if (readPoolConfigBuilder_ != null) {
readPoolConfigBuilder_.dispose();
@@ -22086,96 +24885,110 @@ private void buildPartial0(com.google.cloud.alloydb.v1alpha.Instance result) {
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
+ result.queryInsightsInfo_ =
+ queryInsightsInfoBuilder_ == null
+ ? queryInsightsInfo_
+ : queryInsightsInfoBuilder_.build();
+ to_bitField0_ |= 0x00000040;
+ }
+ if (((from_bitField0_ & 0x00020000) != 0)) {
result.observabilityConfig_ =
observabilityConfigBuilder_ == null
? observabilityConfig_
: observabilityConfigBuilder_.build();
- to_bitField0_ |= 0x00000040;
+ to_bitField0_ |= 0x00000080;
}
- if (((from_bitField0_ & 0x00020000) != 0)) {
+ if (((from_bitField0_ & 0x00040000) != 0)) {
+ result.observabilityInstanceInfo_ =
+ observabilityInstanceInfoBuilder_ == null
+ ? observabilityInstanceInfo_
+ : observabilityInstanceInfoBuilder_.build();
+ to_bitField0_ |= 0x00000100;
+ }
+ if (((from_bitField0_ & 0x00080000) != 0)) {
result.readPoolConfig_ =
readPoolConfigBuilder_ == null ? readPoolConfig_ : readPoolConfigBuilder_.build();
- to_bitField0_ |= 0x00000080;
+ to_bitField0_ |= 0x00000200;
}
- if (((from_bitField0_ & 0x00040000) != 0)) {
+ if (((from_bitField0_ & 0x00100000) != 0)) {
result.ipAddress_ = ipAddress_;
}
- if (((from_bitField0_ & 0x00080000) != 0)) {
+ if (((from_bitField0_ & 0x00200000) != 0)) {
result.publicIpAddress_ = publicIpAddress_;
}
- if (((from_bitField0_ & 0x00100000) != 0)) {
+ if (((from_bitField0_ & 0x00400000) != 0)) {
result.reconciling_ = reconciling_;
}
- if (((from_bitField0_ & 0x00200000) != 0)) {
+ if (((from_bitField0_ & 0x00800000) != 0)) {
result.etag_ = etag_;
}
- if (((from_bitField0_ & 0x00400000) != 0)) {
+ if (((from_bitField0_ & 0x01000000) != 0)) {
result.annotations_ = internalGetAnnotations();
result.annotations_.makeImmutable();
}
- if (((from_bitField0_ & 0x00800000) != 0)) {
+ if (((from_bitField0_ & 0x02000000) != 0)) {
result.updatePolicy_ =
updatePolicyBuilder_ == null ? updatePolicy_ : updatePolicyBuilder_.build();
- to_bitField0_ |= 0x00000100;
+ to_bitField0_ |= 0x00000400;
}
- if (((from_bitField0_ & 0x01000000) != 0)) {
+ if (((from_bitField0_ & 0x04000000) != 0)) {
result.clientConnectionConfig_ =
clientConnectionConfigBuilder_ == null
? clientConnectionConfig_
: clientConnectionConfigBuilder_.build();
- to_bitField0_ |= 0x00000200;
+ to_bitField0_ |= 0x00000800;
}
- if (((from_bitField0_ & 0x02000000) != 0)) {
+ if (((from_bitField0_ & 0x08000000) != 0)) {
result.satisfiesPzi_ = satisfiesPzi_;
}
- if (((from_bitField0_ & 0x04000000) != 0)) {
+ if (((from_bitField0_ & 0x10000000) != 0)) {
result.satisfiesPzs_ = satisfiesPzs_;
}
- if (((from_bitField0_ & 0x08000000) != 0)) {
+ if (((from_bitField0_ & 0x20000000) != 0)) {
result.pscInstanceConfig_ =
pscInstanceConfigBuilder_ == null
? pscInstanceConfig_
: pscInstanceConfigBuilder_.build();
- to_bitField0_ |= 0x00000400;
- }
- if (((from_bitField0_ & 0x10000000) != 0)) {
- result.pscInstanceInfo_ =
- pscInstanceInfoBuilder_ == null ? pscInstanceInfo_ : pscInstanceInfoBuilder_.build();
- to_bitField0_ |= 0x00000800;
- }
- if (((from_bitField0_ & 0x20000000) != 0)) {
- result.networkConfig_ =
- networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build();
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x40000000) != 0)) {
- result.geminiConfig_ =
- geminiConfigBuilder_ == null ? geminiConfig_ : geminiConfigBuilder_.build();
+ result.pscInstanceInfo_ =
+ pscInstanceInfoBuilder_ == null ? pscInstanceInfo_ : pscInstanceInfoBuilder_.build();
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x80000000) != 0)) {
- outboundPublicIpAddresses_.makeImmutable();
- result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_;
+ result.networkConfig_ =
+ networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build();
+ to_bitField0_ |= 0x00004000;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartial1(com.google.cloud.alloydb.v1alpha.Instance result) {
int from_bitField1_ = bitField1_;
+ int to_bitField0_ = 0;
if (((from_bitField1_ & 0x00000001) != 0)) {
- result.activationPolicy_ = activationPolicy_;
+ result.geminiConfig_ =
+ geminiConfigBuilder_ == null ? geminiConfig_ : geminiConfigBuilder_.build();
+ to_bitField0_ |= 0x00008000;
}
- int to_bitField0_ = 0;
if (((from_bitField1_ & 0x00000002) != 0)) {
+ outboundPublicIpAddresses_.makeImmutable();
+ result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_;
+ }
+ if (((from_bitField1_ & 0x00000004) != 0)) {
+ result.activationPolicy_ = activationPolicy_;
+ }
+ if (((from_bitField1_ & 0x00000008) != 0)) {
result.connectionPoolConfig_ =
connectionPoolConfigBuilder_ == null
? connectionPoolConfig_
: connectionPoolConfigBuilder_.build();
- to_bitField0_ |= 0x00004000;
+ to_bitField0_ |= 0x00010000;
}
- if (((from_bitField1_ & 0x00000004) != 0)) {
+ if (((from_bitField1_ & 0x00000010) != 0)) {
result.gcaConfig_ = gcaConfigBuilder_ == null ? gcaConfig_ : gcaConfigBuilder_.build();
- to_bitField0_ |= 0x00008000;
+ to_bitField0_ |= 0x00020000;
}
result.bitField0_ |= to_bitField0_;
}
@@ -22270,20 +25083,26 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Instance other) {
if (other.hasQueryInsightsConfig()) {
mergeQueryInsightsConfig(other.getQueryInsightsConfig());
}
+ if (other.hasQueryInsightsInfo()) {
+ mergeQueryInsightsInfo(other.getQueryInsightsInfo());
+ }
if (other.hasObservabilityConfig()) {
mergeObservabilityConfig(other.getObservabilityConfig());
}
+ if (other.hasObservabilityInstanceInfo()) {
+ mergeObservabilityInstanceInfo(other.getObservabilityInstanceInfo());
+ }
if (other.hasReadPoolConfig()) {
mergeReadPoolConfig(other.getReadPoolConfig());
}
if (!other.getIpAddress().isEmpty()) {
ipAddress_ = other.ipAddress_;
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00100000;
onChanged();
}
if (!other.getPublicIpAddress().isEmpty()) {
publicIpAddress_ = other.publicIpAddress_;
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00200000;
onChanged();
}
if (other.getReconciling() != false) {
@@ -22291,11 +25110,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Instance other) {
}
if (!other.getEtag().isEmpty()) {
etag_ = other.etag_;
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00800000;
onChanged();
}
internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x01000000;
if (other.hasUpdatePolicy()) {
mergeUpdatePolicy(other.getUpdatePolicy());
}
@@ -22323,7 +25142,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Instance other) {
if (!other.outboundPublicIpAddresses_.isEmpty()) {
if (outboundPublicIpAddresses_.isEmpty()) {
outboundPublicIpAddresses_ = other.outboundPublicIpAddresses_;
- bitField0_ |= 0x80000000;
+ bitField1_ |= 0x00000002;
} else {
ensureOutboundPublicIpAddressesIsMutable();
outboundPublicIpAddresses_.addAll(other.outboundPublicIpAddresses_);
@@ -22463,25 +25282,25 @@ public Builder mergeFrom(
{
input.readMessage(
internalGetReadPoolConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00080000;
break;
} // case 114
case 122:
{
ipAddress_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00100000;
break;
} // case 122
case 128:
{
reconciling_ = input.readBool();
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00400000;
break;
} // case 128
case 138:
{
etag_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00800000;
break;
} // case 138
case 146:
@@ -22493,7 +25312,7 @@ public Builder mergeFrom(
internalGetMutableAnnotations()
.getMutableMap()
.put(annotations__.getKey(), annotations__.getValue());
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x01000000;
break;
} // case 146
case 154:
@@ -22527,7 +25346,7 @@ public Builder mergeFrom(
{
input.readMessage(
internalGetUpdatePolicyFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00800000;
+ bitField0_ |= 0x02000000;
break;
} // case 178
case 186:
@@ -22535,53 +25354,53 @@ public Builder mergeFrom(
input.readMessage(
internalGetClientConnectionConfigFieldBuilder().getBuilder(),
extensionRegistry);
- bitField0_ |= 0x01000000;
+ bitField0_ |= 0x04000000;
break;
} // case 186
case 192:
{
satisfiesPzs_ = input.readBool();
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x10000000;
break;
} // case 192
case 210:
{
input.readMessage(
internalGetObservabilityConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
break;
} // case 210
case 218:
{
publicIpAddress_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00200000;
break;
} // case 218
case 226:
{
input.readMessage(
internalGetPscInstanceConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x08000000;
+ bitField0_ |= 0x20000000;
break;
} // case 226
case 234:
{
input.readMessage(
internalGetNetworkConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x20000000;
+ bitField0_ |= 0x80000000;
break;
} // case 234
case 240:
{
satisfiesPzi_ = input.readBool();
- bitField0_ |= 0x02000000;
+ bitField0_ |= 0x08000000;
break;
} // case 240
case 266:
{
input.readMessage(
internalGetGeminiConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x40000000;
+ bitField1_ |= 0x00000001;
break;
} // case 266
case 274:
@@ -22594,30 +25413,45 @@ public Builder mergeFrom(
case 280:
{
activationPolicy_ = input.readEnum();
- bitField1_ |= 0x00000001;
+ bitField1_ |= 0x00000004;
break;
} // case 280
case 298:
{
input.readMessage(
internalGetConnectionPoolConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField1_ |= 0x00000002;
+ bitField1_ |= 0x00000008;
break;
} // case 298
case 306:
{
input.readMessage(
internalGetGcaConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField1_ |= 0x00000004;
+ bitField1_ |= 0x00000010;
break;
} // case 306
+ case 354:
+ {
+ input.readMessage(
+ internalGetObservabilityInstanceInfoFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00040000;
+ break;
+ } // case 354
case 370:
{
input.readMessage(
internalGetPscInstanceInfoFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x10000000;
+ bitField0_ |= 0x40000000;
break;
} // case 370
+ case 378:
+ {
+ input.readMessage(
+ internalGetQueryInsightsInfoFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00010000;
+ break;
+ } // case 378
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -23308,16 +26142,228 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = builderForValue.build();
+ } else {
+ updateTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Update time stamp + *+ * + *
+ * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && updateTime_ != null
+ && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getUpdateTimeBuilder().mergeFrom(value);
+ } else {
+ updateTime_ = value;
+ }
+ } else {
+ updateTimeBuilder_.mergeFrom(value);
+ }
+ if (updateTime_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Update time stamp + *+ * + *
+ * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearUpdateTime() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ updateTime_ = null;
+ if (updateTimeBuilder_ != null) {
+ updateTimeBuilder_.dispose();
+ updateTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Update time stamp + *+ * + *
+ * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return internalGetUpdateTimeFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Update time stamp + *+ * + *
+ * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ if (updateTimeBuilder_ != null) {
+ return updateTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Update time stamp + *+ * + *
+ * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ internalGetUpdateTimeFieldBuilder() {
+ if (updateTimeBuilder_ == null) {
+ updateTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getUpdateTime(), getParentForChildren(), isClean());
+ updateTime_ = null;
+ }
+ return updateTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp deleteTime_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ deleteTimeBuilder_;
+
+ /**
+ *
+ *
+ * + * Output only. Delete time stamp + *+ * + *
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the deleteTime field is set.
+ */
+ public boolean hasDeleteTime() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Delete time stamp + *+ * + *
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The deleteTime.
+ */
+ public com.google.protobuf.Timestamp getDeleteTime() {
+ if (deleteTimeBuilder_ == null) {
+ return deleteTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : deleteTime_;
+ } else {
+ return deleteTimeBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Delete time stamp + *+ * + *
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setDeleteTime(com.google.protobuf.Timestamp value) {
+ if (deleteTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ deleteTime_ = value;
+ } else {
+ deleteTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Delete time stamp + *+ * + *
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
- if (updateTimeBuilder_ == null) {
- updateTime_ = builderForValue.build();
+ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (deleteTimeBuilder_ == null) {
+ deleteTime_ = builderForValue.build();
} else {
- updateTimeBuilder_.setMessage(builderForValue.build());
+ deleteTimeBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -23326,27 +26372,27 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * Output only. Update time stamp
+ * Output only. Delete time stamp
*
*
*
- * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
- if (updateTimeBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0)
- && updateTime_ != null
- && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
- getUpdateTimeBuilder().mergeFrom(value);
+ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) {
+ if (deleteTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && deleteTime_ != null
+ && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getDeleteTimeBuilder().mergeFrom(value);
} else {
- updateTime_ = value;
+ deleteTime_ = value;
}
} else {
- updateTimeBuilder_.mergeFrom(value);
+ deleteTimeBuilder_.mergeFrom(value);
}
- if (updateTime_ != null) {
- bitField0_ |= 0x00000010;
+ if (deleteTime_ != null) {
+ bitField0_ |= 0x00000020;
onChanged();
}
return this;
@@ -23356,19 +26402,19 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Output only. Update time stamp
+ * Output only. Delete time stamp
*
*
*
- * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder clearUpdateTime() {
- bitField0_ = (bitField0_ & ~0x00000010);
- updateTime_ = null;
- if (updateTimeBuilder_ != null) {
- updateTimeBuilder_.dispose();
- updateTimeBuilder_ = null;
+ public Builder clearDeleteTime() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ deleteTime_ = null;
+ if (deleteTimeBuilder_ != null) {
+ deleteTimeBuilder_.dispose();
+ deleteTimeBuilder_ = null;
}
onChanged();
return this;
@@ -23378,37 +26424,37 @@ public Builder clearUpdateTime() {
*
*
*
- * Output only. Update time stamp
+ * Output only. Delete time stamp
*
*
*
- * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
- bitField0_ |= 0x00000010;
+ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() {
+ bitField0_ |= 0x00000020;
onChanged();
- return internalGetUpdateTimeFieldBuilder().getBuilder();
+ return internalGetDeleteTimeFieldBuilder().getBuilder();
}
/**
*
*
*
- * Output only. Update time stamp
+ * Output only. Delete time stamp
*
*
*
- * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
- if (updateTimeBuilder_ != null) {
- return updateTimeBuilder_.getMessageOrBuilder();
+ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
+ if (deleteTimeBuilder_ != null) {
+ return deleteTimeBuilder_.getMessageOrBuilder();
} else {
- return updateTime_ == null
+ return deleteTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
- : updateTime_;
+ : deleteTime_;
}
}
@@ -23416,120 +26462,239 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
*
*
*
- * Output only. Update time stamp
+ * Output only. Delete time stamp
*
*
*
- * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
- internalGetUpdateTimeFieldBuilder() {
- if (updateTimeBuilder_ == null) {
- updateTimeBuilder_ =
+ internalGetDeleteTimeFieldBuilder() {
+ if (deleteTimeBuilder_ == null) {
+ deleteTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
- getUpdateTime(), getParentForChildren(), isClean());
- updateTime_ = null;
+ getDeleteTime(), getParentForChildren(), isClean());
+ deleteTime_ = null;
}
- return updateTimeBuilder_;
+ return deleteTimeBuilder_;
}
- private com.google.protobuf.Timestamp deleteTime_;
- private com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>
- deleteTimeBuilder_;
+ private com.google.protobuf.MapField
- * Output only. Delete time stamp
+ * Labels as key value pairs
*
*
- *
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * map<string, string> labels = 7;
+ */
+ @java.lang.Override
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Labels as key value pairs + *+ * + *
map<string, string> labels = 7;
*/
- public boolean hasDeleteTime() {
- return ((bitField0_ & 0x00000020) != 0);
+ @java.lang.Override
+ public java.util.Map
- * Output only. Delete time stamp
+ * Labels as key value pairs
*
*
- *
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * map<string, string> labels = 7;
+ */
+ @java.lang.Override
+ public /* nullable */ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Labels as key value pairs + *+ * + *
map<string, string> labels = 7;
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Labels as key value pairs + *+ * + *
map<string, string> labels = 7;
+ */
+ public Builder removeLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableLabels().getMutableMap().remove(key);
+ return this;
+ }
+
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * Labels as key value pairs + *+ * + *
map<string, string> labels = 7;
+ */
+ public Builder putLabels(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableLabels().getMutableMap().put(key, value);
+ bitField0_ |= 0x00000040;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Labels as key value pairs + ** - * @return The deleteTime. + *
map<string, string> labels = 7;
*/
- public com.google.protobuf.Timestamp getDeleteTime() {
- if (deleteTimeBuilder_ == null) {
- return deleteTime_ == null
- ? com.google.protobuf.Timestamp.getDefaultInstance()
- : deleteTime_;
- } else {
- return deleteTimeBuilder_.getMessage();
- }
+ public Builder putAllLabels(java.util.Map
- * Output only. Delete time stamp
+ * Output only. The current serving state of the instance.
*
*
*
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return The enum numeric value on the wire for state.
*/
- public Builder setDeleteTime(com.google.protobuf.Timestamp value) {
- if (deleteTimeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- deleteTime_ = value;
- } else {
- deleteTimeBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000020;
- onChanged();
- return this;
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
}
/**
*
*
*
- * Output only. Delete time stamp
+ * Output only. The current serving state of the instance.
*
*
*
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
*/
- public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) {
- if (deleteTimeBuilder_ == null) {
- deleteTime_ = builderForValue.build();
- } else {
- deleteTimeBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000020;
+ public Builder setStateValue(int value) {
+ state_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -23538,50 +26703,42 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * Output only. Delete time stamp
+ * Output only. The current serving state of the instance.
*
*
*
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return The state.
*/
- public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) {
- if (deleteTimeBuilder_ == null) {
- if (((bitField0_ & 0x00000020) != 0)
- && deleteTime_ != null
- && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
- getDeleteTimeBuilder().mergeFrom(value);
- } else {
- deleteTime_ = value;
- }
- } else {
- deleteTimeBuilder_.mergeFrom(value);
- }
- if (deleteTime_ != null) {
- bitField0_ |= 0x00000020;
- onChanged();
- }
- return this;
+ @java.lang.Override
+ public com.google.cloud.alloydb.v1alpha.Instance.State getState() {
+ com.google.cloud.alloydb.v1alpha.Instance.State result =
+ com.google.cloud.alloydb.v1alpha.Instance.State.forNumber(state_);
+ return result == null ? com.google.cloud.alloydb.v1alpha.Instance.State.UNRECOGNIZED : result;
}
/**
*
*
*
- * Output only. Delete time stamp
+ * Output only. The current serving state of the instance.
*
*
*
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @param value The state to set.
+ * @return This builder for chaining.
*/
- public Builder clearDeleteTime() {
- bitField0_ = (bitField0_ & ~0x00000020);
- deleteTime_ = null;
- if (deleteTimeBuilder_ != null) {
- deleteTimeBuilder_.dispose();
- deleteTimeBuilder_ = null;
+ public Builder setState(com.google.cloud.alloydb.v1alpha.Instance.State value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ bitField0_ |= 0x00000080;
+ state_ = value.getNumber();
onChanged();
return this;
}
@@ -23590,222 +26747,195 @@ public Builder clearDeleteTime() {
*
*
*
- * Output only. Delete time stamp
+ * Output only. The current serving state of the instance.
*
*
*
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return This builder for chaining.
*/
- public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() {
- bitField0_ |= 0x00000020;
+ public Builder clearState() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ state_ = 0;
onChanged();
- return internalGetDeleteTimeFieldBuilder().getBuilder();
+ return this;
}
+ private int instanceType_ = 0;
+
/**
*
*
*
- * Output only. Delete time stamp
+ * Required. The type of the instance. Specified at creation time.
*
*
*
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
*
+ *
+ * @return The enum numeric value on the wire for instanceType.
*/
- public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
- if (deleteTimeBuilder_ != null) {
- return deleteTimeBuilder_.getMessageOrBuilder();
- } else {
- return deleteTime_ == null
- ? com.google.protobuf.Timestamp.getDefaultInstance()
- : deleteTime_;
- }
+ @java.lang.Override
+ public int getInstanceTypeValue() {
+ return instanceType_;
}
/**
*
*
*
- * Output only. Delete time stamp
+ * Required. The type of the instance. Specified at creation time.
*
*
*
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
*
+ *
+ * @param value The enum numeric value on the wire for instanceType to set.
+ * @return This builder for chaining.
*/
- private com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>
- internalGetDeleteTimeFieldBuilder() {
- if (deleteTimeBuilder_ == null) {
- deleteTimeBuilder_ =
- new com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>(
- getDeleteTime(), getParentForChildren(), isClean());
- deleteTime_ = null;
- }
- return deleteTimeBuilder_;
- }
-
- private com.google.protobuf.MapField
- * Labels as key value pairs
+ * Required. The type of the instance. Specified at creation time.
*
*
- * map<string, string> labels = 7;
+ *
+ * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The instanceType.
*/
@java.lang.Override
- public boolean containsLabels(java.lang.String key) {
- if (key == null) {
- throw new NullPointerException("map key");
- }
- return internalGetLabels().getMap().containsKey(key);
- }
-
- /** Use {@link #getLabelsMap()} instead. */
- @java.lang.Override
- @java.lang.Deprecated
- public java.util.Map
- * Labels as key value pairs
+ * Required. The type of the instance. Specified at creation time.
*
*
- * map<string, string> labels = 7;
+ *
+ * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The instanceType to set.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public java.util.Map
- * Labels as key value pairs
+ * Required. The type of the instance. Specified at creation time.
*
*
- * map<string, string> labels = 7;
+ *
+ * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public /* nullable */ java.lang.String getLabelsOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
- if (key == null) {
- throw new NullPointerException("map key");
- }
- java.util.Map
- * Labels as key value pairs
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- * map<string, string> labels = 7;
+ * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
+ *
+ * @return Whether the machineConfig field is set.
*/
- @java.lang.Override
- public java.lang.String getLabelsOrThrow(java.lang.String key) {
- if (key == null) {
- throw new NullPointerException("map key");
- }
- java.util.Map
- * Labels as key value pairs
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- * map<string, string> labels = 7;
+ * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
+ *
+ * @return The machineConfig.
*/
- public Builder removeLabels(java.lang.String key) {
- if (key == null) {
- throw new NullPointerException("map key");
+ public com.google.cloud.alloydb.v1alpha.Instance.MachineConfig getMachineConfig() {
+ if (machineConfigBuilder_ == null) {
+ return machineConfig_ == null
+ ? com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.getDefaultInstance()
+ : machineConfig_;
+ } else {
+ return machineConfigBuilder_.getMessage();
}
- internalGetMutableLabels().getMutableMap().remove(key);
- return this;
- }
-
- /** Use alternate mutation accessors instead. */
- @java.lang.Deprecated
- public java.util.Map
- * Labels as key value pairs
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- * map<string, string> labels = 7;
+ * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
*/
- public Builder putLabels(java.lang.String key, java.lang.String value) {
- if (key == null) {
- throw new NullPointerException("map key");
- }
- if (value == null) {
- throw new NullPointerException("map value");
+ public Builder setMachineConfig(com.google.cloud.alloydb.v1alpha.Instance.MachineConfig value) {
+ if (machineConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ machineConfig_ = value;
+ } else {
+ machineConfigBuilder_.setMessage(value);
}
- internalGetMutableLabels().getMutableMap().put(key, value);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000200;
+ onChanged();
return this;
}
@@ -23813,54 +26943,72 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
*
*
*
- * Labels as key value pairs
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- * map<string, string> labels = 7;
+ * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
*/
- public Builder putAllLabels(java.util.Map
- * Output only. The current serving state of the instance.
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- *
- * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return The enum numeric value on the wire for state.
+ * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
*/
- @java.lang.Override
- public int getStateValue() {
- return state_;
+ public Builder mergeMachineConfig(
+ com.google.cloud.alloydb.v1alpha.Instance.MachineConfig value) {
+ if (machineConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0)
+ && machineConfig_ != null
+ && machineConfig_
+ != com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.getDefaultInstance()) {
+ getMachineConfigBuilder().mergeFrom(value);
+ } else {
+ machineConfig_ = value;
+ }
+ } else {
+ machineConfigBuilder_.mergeFrom(value);
+ }
+ if (machineConfig_ != null) {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
+ return this;
}
/**
*
*
*
- * Output only. The current serving state of the instance.
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- *
- * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @param value The enum numeric value on the wire for state to set.
- * @return This builder for chaining.
+ * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
*/
- public Builder setStateValue(int value) {
- state_ = value;
- bitField0_ |= 0x00000080;
+ public Builder clearMachineConfig() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ machineConfig_ = null;
+ if (machineConfigBuilder_ != null) {
+ machineConfigBuilder_.dispose();
+ machineConfigBuilder_ = null;
+ }
onChanged();
return this;
}
@@ -23869,103 +27017,110 @@ public Builder setStateValue(int value) {
*
*
*
- * Output only. The current serving state of the instance.
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- *
- * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return The state.
+ * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
*/
- @java.lang.Override
- public com.google.cloud.alloydb.v1alpha.Instance.State getState() {
- com.google.cloud.alloydb.v1alpha.Instance.State result =
- com.google.cloud.alloydb.v1alpha.Instance.State.forNumber(state_);
- return result == null ? com.google.cloud.alloydb.v1alpha.Instance.State.UNRECOGNIZED : result;
+ public com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder
+ getMachineConfigBuilder() {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return internalGetMachineConfigFieldBuilder().getBuilder();
}
/**
*
*
*
- * Output only. The current serving state of the instance.
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- *
- * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @param value The state to set.
- * @return This builder for chaining.
+ * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
*/
- public Builder setState(com.google.cloud.alloydb.v1alpha.Instance.State value) {
- if (value == null) {
- throw new NullPointerException();
+ public com.google.cloud.alloydb.v1alpha.Instance.MachineConfigOrBuilder
+ getMachineConfigOrBuilder() {
+ if (machineConfigBuilder_ != null) {
+ return machineConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return machineConfig_ == null
+ ? com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.getDefaultInstance()
+ : machineConfig_;
}
- bitField0_ |= 0x00000080;
- state_ = value.getNumber();
- onChanged();
- return this;
}
/**
*
*
*
- * Output only. The current serving state of the instance.
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- *
- * .google.cloud.alloydb.v1alpha.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return This builder for chaining.
+ * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
*/
- public Builder clearState() {
- bitField0_ = (bitField0_ & ~0x00000080);
- state_ = 0;
- onChanged();
- return this;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.alloydb.v1alpha.Instance.MachineConfig,
+ com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder,
+ com.google.cloud.alloydb.v1alpha.Instance.MachineConfigOrBuilder>
+ internalGetMachineConfigFieldBuilder() {
+ if (machineConfigBuilder_ == null) {
+ machineConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.alloydb.v1alpha.Instance.MachineConfig,
+ com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder,
+ com.google.cloud.alloydb.v1alpha.Instance.MachineConfigOrBuilder>(
+ getMachineConfig(), getParentForChildren(), isClean());
+ machineConfig_ = null;
+ }
+ return machineConfigBuilder_;
}
- private int instanceType_ = 0;
+ private int availabilityType_ = 0;
/**
*
*
*
- * Required. The type of the instance. Specified at creation time.
+ * Availability type of an Instance.
+ * If empty, defaults to REGIONAL for primary instances.
+ * For read pools, availability_type is always UNSPECIFIED. Instances in the
+ * read pools are evenly distributed across available zones within the region
+ * (i.e. read pools with more than one node will have a node in at
+ * least two zones).
*
*
- *
- * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11;
*
- * @return The enum numeric value on the wire for instanceType.
+ * @return The enum numeric value on the wire for availabilityType.
*/
@java.lang.Override
- public int getInstanceTypeValue() {
- return instanceType_;
+ public int getAvailabilityTypeValue() {
+ return availabilityType_;
}
/**
*
*
*
- * Required. The type of the instance. Specified at creation time.
+ * Availability type of an Instance.
+ * If empty, defaults to REGIONAL for primary instances.
+ * For read pools, availability_type is always UNSPECIFIED. Instances in the
+ * read pools are evenly distributed across available zones within the region
+ * (i.e. read pools with more than one node will have a node in at
+ * least two zones).
*
*
- *
- * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11;
*
- * @param value The enum numeric value on the wire for instanceType to set.
+ * @param value The enum numeric value on the wire for availabilityType to set.
* @return This builder for chaining.
*/
- public Builder setInstanceTypeValue(int value) {
- instanceType_ = value;
- bitField0_ |= 0x00000100;
+ public Builder setAvailabilityTypeValue(int value) {
+ availabilityType_ = value;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -23974,21 +27129,24 @@ public Builder setInstanceTypeValue(int value) {
*
*
*
- * Required. The type of the instance. Specified at creation time.
+ * Availability type of an Instance.
+ * If empty, defaults to REGIONAL for primary instances.
+ * For read pools, availability_type is always UNSPECIFIED. Instances in the
+ * read pools are evenly distributed across available zones within the region
+ * (i.e. read pools with more than one node will have a node in at
+ * least two zones).
*
*
- *
- * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11;
*
- * @return The instanceType.
+ * @return The availabilityType.
*/
@java.lang.Override
- public com.google.cloud.alloydb.v1alpha.Instance.InstanceType getInstanceType() {
- com.google.cloud.alloydb.v1alpha.Instance.InstanceType result =
- com.google.cloud.alloydb.v1alpha.Instance.InstanceType.forNumber(instanceType_);
+ public com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType getAvailabilityType() {
+ com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType result =
+ com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType.forNumber(availabilityType_);
return result == null
- ? com.google.cloud.alloydb.v1alpha.Instance.InstanceType.UNRECOGNIZED
+ ? com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType.UNRECOGNIZED
: result;
}
@@ -23996,22 +27154,26 @@ public com.google.cloud.alloydb.v1alpha.Instance.InstanceType getInstanceType()
*
*
*
- * Required. The type of the instance. Specified at creation time.
+ * Availability type of an Instance.
+ * If empty, defaults to REGIONAL for primary instances.
+ * For read pools, availability_type is always UNSPECIFIED. Instances in the
+ * read pools are evenly distributed across available zones within the region
+ * (i.e. read pools with more than one node will have a node in at
+ * least two zones).
*
*
- *
- * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11;
*
- * @param value The instanceType to set.
+ * @param value The availabilityType to set.
* @return This builder for chaining.
*/
- public Builder setInstanceType(com.google.cloud.alloydb.v1alpha.Instance.InstanceType value) {
+ public Builder setAvailabilityType(
+ com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000100;
- instanceType_ = value.getNumber();
+ bitField0_ |= 0x00000400;
+ availabilityType_ = value.getNumber();
onChanged();
return this;
}
@@ -24020,64 +27182,80 @@ public Builder setInstanceType(com.google.cloud.alloydb.v1alpha.Instance.Instanc
*
*
*
- * Required. The type of the instance. Specified at creation time.
+ * Availability type of an Instance.
+ * If empty, defaults to REGIONAL for primary instances.
+ * For read pools, availability_type is always UNSPECIFIED. Instances in the
+ * read pools are evenly distributed across available zones within the region
+ * (i.e. read pools with more than one node will have a node in at
+ * least two zones).
*
*
- *
- * .google.cloud.alloydb.v1alpha.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11;
*
* @return This builder for chaining.
*/
- public Builder clearInstanceType() {
- bitField0_ = (bitField0_ & ~0x00000100);
- instanceType_ = 0;
+ public Builder clearAvailabilityType() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ availabilityType_ = 0;
onChanged();
return this;
}
- private com.google.cloud.alloydb.v1alpha.Instance.MachineConfig machineConfig_;
- private com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.alloydb.v1alpha.Instance.MachineConfig,
- com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder,
- com.google.cloud.alloydb.v1alpha.Instance.MachineConfigOrBuilder>
- machineConfigBuilder_;
+ private java.lang.Object gceZone_ = "";
/**
*
*
*
- * Configurations for the machines that host the underlying
- * database engine.
+ * The Compute Engine zone that the instance should serve from, per
+ * https://cloud.google.com/compute/docs/regions-zones
+ * This can ONLY be specified for ZONAL instances.
+ * If present for a REGIONAL instance, an error will be thrown.
+ * If this is absent for a ZONAL instance, instance is created in a random
+ * zone with available capacity.
*
*
- * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
+ * string gce_zone = 12;
*
- * @return Whether the machineConfig field is set.
+ * @return The gceZone.
*/
- public boolean hasMachineConfig() {
- return ((bitField0_ & 0x00000200) != 0);
+ public java.lang.String getGceZone() {
+ java.lang.Object ref = gceZone_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gceZone_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
/**
*
*
*
- * Configurations for the machines that host the underlying
- * database engine.
+ * The Compute Engine zone that the instance should serve from, per
+ * https://cloud.google.com/compute/docs/regions-zones
+ * This can ONLY be specified for ZONAL instances.
+ * If present for a REGIONAL instance, an error will be thrown.
+ * If this is absent for a ZONAL instance, instance is created in a random
+ * zone with available capacity.
*
*
- * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
+ * string gce_zone = 12;
*
- * @return The machineConfig.
+ * @return The bytes for gceZone.
*/
- public com.google.cloud.alloydb.v1alpha.Instance.MachineConfig getMachineConfig() {
- if (machineConfigBuilder_ == null) {
- return machineConfig_ == null
- ? com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.getDefaultInstance()
- : machineConfig_;
+ public com.google.protobuf.ByteString getGceZoneBytes() {
+ java.lang.Object ref = gceZone_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gceZone_ = b;
+ return b;
} else {
- return machineConfigBuilder_.getMessage();
+ return (com.google.protobuf.ByteString) ref;
}
}
@@ -24085,22 +27263,25 @@ public com.google.cloud.alloydb.v1alpha.Instance.MachineConfig getMachineConfig(
*
*
*
- * Configurations for the machines that host the underlying
- * database engine.
+ * The Compute Engine zone that the instance should serve from, per
+ * https://cloud.google.com/compute/docs/regions-zones
+ * This can ONLY be specified for ZONAL instances.
+ * If present for a REGIONAL instance, an error will be thrown.
+ * If this is absent for a ZONAL instance, instance is created in a random
+ * zone with available capacity.
*
*
- * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
+ * string gce_zone = 12;
+ *
+ * @param value The gceZone to set.
+ * @return This builder for chaining.
*/
- public Builder setMachineConfig(com.google.cloud.alloydb.v1alpha.Instance.MachineConfig value) {
- if (machineConfigBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- machineConfig_ = value;
- } else {
- machineConfigBuilder_.setMessage(value);
+ public Builder setGceZone(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- bitField0_ |= 0x00000200;
+ gceZone_ = value;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -24109,345 +27290,483 @@ public Builder setMachineConfig(com.google.cloud.alloydb.v1alpha.Instance.Machin
*
*
*
- * Configurations for the machines that host the underlying
- * database engine.
+ * The Compute Engine zone that the instance should serve from, per
+ * https://cloud.google.com/compute/docs/regions-zones
+ * This can ONLY be specified for ZONAL instances.
+ * If present for a REGIONAL instance, an error will be thrown.
+ * If this is absent for a ZONAL instance, instance is created in a random
+ * zone with available capacity.
*
*
- * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
+ * string gce_zone = 12;
+ *
+ * @return This builder for chaining.
*/
- public Builder setMachineConfig(
- com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder builderForValue) {
- if (machineConfigBuilder_ == null) {
- machineConfig_ = builderForValue.build();
- } else {
- machineConfigBuilder_.setMessage(builderForValue.build());
+ public Builder clearGceZone() {
+ gceZone_ = getDefaultInstance().getGceZone();
+ bitField0_ = (bitField0_ & ~0x00000800);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Compute Engine zone that the instance should serve from, per + * https://cloud.google.com/compute/docs/regions-zones + * This can ONLY be specified for ZONAL instances. + * If present for a REGIONAL instance, an error will be thrown. + * If this is absent for a ZONAL instance, instance is created in a random + * zone with available capacity. + *+ * + *
string gce_zone = 12;
+ *
+ * @param value The bytes for gceZone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGceZoneBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- bitField0_ |= 0x00000200;
+ checkByteStringIsUtf8(value);
+ gceZone_ = value;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
+ private com.google.protobuf.MapField+ * Database flags. Set at the instance level. + * They are copied from the primary instance on secondary instance creation. + * Flags that have restrictions default to the value at primary + * instance on read instances during creation. Read instances can set new + * flags or override existing flags that are relevant for reads, for example, + * for enabling columnar cache on a read instance. Flags set on read instance + * might or might not be present on the primary instance. + * + * + * This is a list of "key": "value" pairs. + * "key": The name of the flag. These flags are passed at instance setup time, + * so include both server options and system variables for Postgres. Flags are + * specified with underscores, not hyphens. + * "value": The value of the flag. Booleans are set to **on** for true + * and **off** for false. This field must be omitted if the flag + * doesn't take a value. + *+ * + *
map<string, string> database_flags = 13;
+ */
+ @java.lang.Override
+ public boolean containsDatabaseFlags(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetDatabaseFlags().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getDatabaseFlagsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
- * Configurations for the machines that host the underlying
- * database engine.
+ * Database flags. Set at the instance level.
+ * They are copied from the primary instance on secondary instance creation.
+ * Flags that have restrictions default to the value at primary
+ * instance on read instances during creation. Read instances can set new
+ * flags or override existing flags that are relevant for reads, for example,
+ * for enabling columnar cache on a read instance. Flags set on read instance
+ * might or might not be present on the primary instance.
+ *
+ *
+ * This is a list of "key": "value" pairs.
+ * "key": The name of the flag. These flags are passed at instance setup time,
+ * so include both server options and system variables for Postgres. Flags are
+ * specified with underscores, not hyphens.
+ * "value": The value of the flag. Booleans are set to **on** for true
+ * and **off** for false. This field must be omitted if the flag
+ * doesn't take a value.
*
*
- * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
+ * map<string, string> database_flags = 13;
*/
- public Builder mergeMachineConfig(
- com.google.cloud.alloydb.v1alpha.Instance.MachineConfig value) {
- if (machineConfigBuilder_ == null) {
- if (((bitField0_ & 0x00000200) != 0)
- && machineConfig_ != null
- && machineConfig_
- != com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.getDefaultInstance()) {
- getMachineConfigBuilder().mergeFrom(value);
- } else {
- machineConfig_ = value;
- }
- } else {
- machineConfigBuilder_.mergeFrom(value);
- }
- if (machineConfig_ != null) {
- bitField0_ |= 0x00000200;
- onChanged();
- }
- return this;
+ @java.lang.Override
+ public java.util.Map
- * Configurations for the machines that host the underlying
- * database engine.
+ * Database flags. Set at the instance level.
+ * They are copied from the primary instance on secondary instance creation.
+ * Flags that have restrictions default to the value at primary
+ * instance on read instances during creation. Read instances can set new
+ * flags or override existing flags that are relevant for reads, for example,
+ * for enabling columnar cache on a read instance. Flags set on read instance
+ * might or might not be present on the primary instance.
+ *
+ *
+ * This is a list of "key": "value" pairs.
+ * "key": The name of the flag. These flags are passed at instance setup time,
+ * so include both server options and system variables for Postgres. Flags are
+ * specified with underscores, not hyphens.
+ * "value": The value of the flag. Booleans are set to **on** for true
+ * and **off** for false. This field must be omitted if the flag
+ * doesn't take a value.
*
*
- * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
+ * map<string, string> database_flags = 13;
*/
- public Builder clearMachineConfig() {
- bitField0_ = (bitField0_ & ~0x00000200);
- machineConfig_ = null;
- if (machineConfigBuilder_ != null) {
- machineConfigBuilder_.dispose();
- machineConfigBuilder_ = null;
+ @java.lang.Override
+ public /* nullable */ java.lang.String getDatabaseFlagsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
}
- onChanged();
- return this;
+ java.util.Map- * Configurations for the machines that host the underlying - * database engine. - *- * - *
.google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
- */
- public com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder
- getMachineConfigBuilder() {
- bitField0_ |= 0x00000200;
- onChanged();
- return internalGetMachineConfigFieldBuilder().getBuilder();
- }
-
- /**
+ * Database flags. Set at the instance level.
+ * They are copied from the primary instance on secondary instance creation.
+ * Flags that have restrictions default to the value at primary
+ * instance on read instances during creation. Read instances can set new
+ * flags or override existing flags that are relevant for reads, for example,
+ * for enabling columnar cache on a read instance. Flags set on read instance
+ * might or might not be present on the primary instance.
*
*
- *
- * Configurations for the machines that host the underlying
- * database engine.
+ * This is a list of "key": "value" pairs.
+ * "key": The name of the flag. These flags are passed at instance setup time,
+ * so include both server options and system variables for Postgres. Flags are
+ * specified with underscores, not hyphens.
+ * "value": The value of the flag. Booleans are set to **on** for true
+ * and **off** for false. This field must be omitted if the flag
+ * doesn't take a value.
*
*
- * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
+ * map<string, string> database_flags = 13;
*/
- public com.google.cloud.alloydb.v1alpha.Instance.MachineConfigOrBuilder
- getMachineConfigOrBuilder() {
- if (machineConfigBuilder_ != null) {
- return machineConfigBuilder_.getMessageOrBuilder();
- } else {
- return machineConfig_ == null
- ? com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.getDefaultInstance()
- : machineConfig_;
+ @java.lang.Override
+ public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
- * Configurations for the machines that host the underlying
- * database engine.
+ * Database flags. Set at the instance level.
+ * They are copied from the primary instance on secondary instance creation.
+ * Flags that have restrictions default to the value at primary
+ * instance on read instances during creation. Read instances can set new
+ * flags or override existing flags that are relevant for reads, for example,
+ * for enabling columnar cache on a read instance. Flags set on read instance
+ * might or might not be present on the primary instance.
+ *
+ *
+ * This is a list of "key": "value" pairs.
+ * "key": The name of the flag. These flags are passed at instance setup time,
+ * so include both server options and system variables for Postgres. Flags are
+ * specified with underscores, not hyphens.
+ * "value": The value of the flag. Booleans are set to **on** for true
+ * and **off** for false. This field must be omitted if the flag
+ * doesn't take a value.
*
*
- * .google.cloud.alloydb.v1alpha.Instance.MachineConfig machine_config = 10;
+ * map<string, string> database_flags = 13;
*/
- private com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.alloydb.v1alpha.Instance.MachineConfig,
- com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder,
- com.google.cloud.alloydb.v1alpha.Instance.MachineConfigOrBuilder>
- internalGetMachineConfigFieldBuilder() {
- if (machineConfigBuilder_ == null) {
- machineConfigBuilder_ =
- new com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.alloydb.v1alpha.Instance.MachineConfig,
- com.google.cloud.alloydb.v1alpha.Instance.MachineConfig.Builder,
- com.google.cloud.alloydb.v1alpha.Instance.MachineConfigOrBuilder>(
- getMachineConfig(), getParentForChildren(), isClean());
- machineConfig_ = null;
+ public Builder removeDatabaseFlags(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
}
- return machineConfigBuilder_;
+ internalGetMutableDatabaseFlags().getMutableMap().remove(key);
+ return this;
}
- private int availabilityType_ = 0;
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map- * Availability type of an Instance. - * If empty, defaults to REGIONAL for primary instances. - * For read pools, availability_type is always UNSPECIFIED. Instances in the - * read pools are evenly distributed across available zones within the region - * (i.e. read pools with more than one node will have a node in at - * least two zones). - *+ * Database flags. Set at the instance level. + * They are copied from the primary instance on secondary instance creation. + * Flags that have restrictions default to the value at primary + * instance on read instances during creation. Read instances can set new + * flags or override existing flags that are relevant for reads, for example, + * for enabling columnar cache on a read instance. Flags set on read instance + * might or might not be present on the primary instance. * - *
.google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11;
*
- * @return The enum numeric value on the wire for availabilityType.
+ * This is a list of "key": "value" pairs.
+ * "key": The name of the flag. These flags are passed at instance setup time,
+ * so include both server options and system variables for Postgres. Flags are
+ * specified with underscores, not hyphens.
+ * "value": The value of the flag. Booleans are set to **on** for true
+ * and **off** for false. This field must be omitted if the flag
+ * doesn't take a value.
+ *
+ *
+ * map<string, string> database_flags = 13;
*/
- @java.lang.Override
- public int getAvailabilityTypeValue() {
- return availabilityType_;
+ public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableDatabaseFlags().getMutableMap().put(key, value);
+ bitField0_ |= 0x00001000;
+ return this;
}
/**
*
*
* - * Availability type of an Instance. - * If empty, defaults to REGIONAL for primary instances. - * For read pools, availability_type is always UNSPECIFIED. Instances in the - * read pools are evenly distributed across available zones within the region - * (i.e. read pools with more than one node will have a node in at - * least two zones). - *+ * Database flags. Set at the instance level. + * They are copied from the primary instance on secondary instance creation. + * Flags that have restrictions default to the value at primary + * instance on read instances during creation. Read instances can set new + * flags or override existing flags that are relevant for reads, for example, + * for enabling columnar cache on a read instance. Flags set on read instance + * might or might not be present on the primary instance. * - *
.google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11;
*
- * @param value The enum numeric value on the wire for availabilityType to set.
- * @return This builder for chaining.
+ * This is a list of "key": "value" pairs.
+ * "key": The name of the flag. These flags are passed at instance setup time,
+ * so include both server options and system variables for Postgres. Flags are
+ * specified with underscores, not hyphens.
+ * "value": The value of the flag. Booleans are set to **on** for true
+ * and **off** for false. This field must be omitted if the flag
+ * doesn't take a value.
+ *
+ *
+ * map<string, string> database_flags = 13;
*/
- public Builder setAvailabilityTypeValue(int value) {
- availabilityType_ = value;
- bitField0_ |= 0x00000400;
- onChanged();
+ public Builder putAllDatabaseFlags(java.util.Map
- * Availability type of an Instance.
- * If empty, defaults to REGIONAL for primary instances.
- * For read pools, availability_type is always UNSPECIFIED. Instances in the
- * read pools are evenly distributed across available zones within the region
- * (i.e. read pools with more than one node will have a node in at
- * least two zones).
+ * Output only. This is set for the read-write VM of the PRIMARY instance
+ * only.
*
*
- * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11;
+ *
+ * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return The availabilityType.
+ * @return Whether the writableNode field is set.
*/
- @java.lang.Override
- public com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType getAvailabilityType() {
- com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType result =
- com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType.forNumber(availabilityType_);
- return result == null
- ? com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType.UNRECOGNIZED
- : result;
+ public boolean hasWritableNode() {
+ return ((bitField0_ & 0x00002000) != 0);
}
/**
*
*
*
- * Availability type of an Instance.
- * If empty, defaults to REGIONAL for primary instances.
- * For read pools, availability_type is always UNSPECIFIED. Instances in the
- * read pools are evenly distributed across available zones within the region
- * (i.e. read pools with more than one node will have a node in at
- * least two zones).
+ * Output only. This is set for the read-write VM of the PRIMARY instance
+ * only.
*
*
- * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11;
+ *
+ * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @param value The availabilityType to set.
- * @return This builder for chaining.
+ * @return The writableNode.
*/
- public Builder setAvailabilityType(
- com.google.cloud.alloydb.v1alpha.Instance.AvailabilityType value) {
- if (value == null) {
- throw new NullPointerException();
+ public com.google.cloud.alloydb.v1alpha.Instance.Node getWritableNode() {
+ if (writableNodeBuilder_ == null) {
+ return writableNode_ == null
+ ? com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance()
+ : writableNode_;
+ } else {
+ return writableNodeBuilder_.getMessage();
}
- bitField0_ |= 0x00000400;
- availabilityType_ = value.getNumber();
- onChanged();
- return this;
}
/**
*
*
*
- * Availability type of an Instance.
- * If empty, defaults to REGIONAL for primary instances.
- * For read pools, availability_type is always UNSPECIFIED. Instances in the
- * read pools are evenly distributed across available zones within the region
- * (i.e. read pools with more than one node will have a node in at
- * least two zones).
+ * Output only. This is set for the read-write VM of the PRIMARY instance
+ * only.
*
*
- * .google.cloud.alloydb.v1alpha.Instance.AvailabilityType availability_type = 11;
- *
- * @return This builder for chaining.
+ *
+ * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder clearAvailabilityType() {
- bitField0_ = (bitField0_ & ~0x00000400);
- availabilityType_ = 0;
+ public Builder setWritableNode(com.google.cloud.alloydb.v1alpha.Instance.Node value) {
+ if (writableNodeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ writableNode_ = value;
+ } else {
+ writableNodeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
- private java.lang.Object gceZone_ = "";
-
/**
*
*
*
- * The Compute Engine zone that the instance should serve from, per
- * https://cloud.google.com/compute/docs/regions-zones
- * This can ONLY be specified for ZONAL instances.
- * If present for a REGIONAL instance, an error will be thrown.
- * If this is absent for a ZONAL instance, instance is created in a random
- * zone with available capacity.
+ * Output only. This is set for the read-write VM of the PRIMARY instance
+ * only.
*
*
- * string gce_zone = 12;
- *
- * @return The gceZone.
+ *
+ * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public java.lang.String getGceZone() {
- java.lang.Object ref = gceZone_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- gceZone_ = s;
- return s;
+ public Builder setWritableNode(
+ com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) {
+ if (writableNodeBuilder_ == null) {
+ writableNode_ = builderForValue.build();
} else {
- return (java.lang.String) ref;
+ writableNodeBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return this;
}
/**
*
*
*
- * The Compute Engine zone that the instance should serve from, per
- * https://cloud.google.com/compute/docs/regions-zones
- * This can ONLY be specified for ZONAL instances.
- * If present for a REGIONAL instance, an error will be thrown.
- * If this is absent for a ZONAL instance, instance is created in a random
- * zone with available capacity.
+ * Output only. This is set for the read-write VM of the PRIMARY instance
+ * only.
*
*
- * string gce_zone = 12;
- *
- * @return The bytes for gceZone.
+ *
+ * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public com.google.protobuf.ByteString getGceZoneBytes() {
- java.lang.Object ref = gceZone_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- gceZone_ = b;
- return b;
+ public Builder mergeWritableNode(com.google.cloud.alloydb.v1alpha.Instance.Node value) {
+ if (writableNodeBuilder_ == null) {
+ if (((bitField0_ & 0x00002000) != 0)
+ && writableNode_ != null
+ && writableNode_
+ != com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance()) {
+ getWritableNodeBuilder().mergeFrom(value);
+ } else {
+ writableNode_ = value;
+ }
} else {
- return (com.google.protobuf.ByteString) ref;
+ writableNodeBuilder_.mergeFrom(value);
+ }
+ if (writableNode_ != null) {
+ bitField0_ |= 0x00002000;
+ onChanged();
}
+ return this;
}
/**
*
*
*
- * The Compute Engine zone that the instance should serve from, per
- * https://cloud.google.com/compute/docs/regions-zones
- * This can ONLY be specified for ZONAL instances.
- * If present for a REGIONAL instance, an error will be thrown.
- * If this is absent for a ZONAL instance, instance is created in a random
- * zone with available capacity.
+ * Output only. This is set for the read-write VM of the PRIMARY instance
+ * only.
*
*
- * string gce_zone = 12;
- *
- * @param value The gceZone to set.
- * @return This builder for chaining.
+ *
+ * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder setGceZone(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder clearWritableNode() {
+ bitField0_ = (bitField0_ & ~0x00002000);
+ writableNode_ = null;
+ if (writableNodeBuilder_ != null) {
+ writableNodeBuilder_.dispose();
+ writableNodeBuilder_ = null;
}
- gceZone_ = value;
- bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -24456,300 +27775,194 @@ public Builder setGceZone(java.lang.String value) {
*
*
*
- * The Compute Engine zone that the instance should serve from, per
- * https://cloud.google.com/compute/docs/regions-zones
- * This can ONLY be specified for ZONAL instances.
- * If present for a REGIONAL instance, an error will be thrown.
- * If this is absent for a ZONAL instance, instance is created in a random
- * zone with available capacity.
+ * Output only. This is set for the read-write VM of the PRIMARY instance
+ * only.
*
*
- * string gce_zone = 12;
- *
- * @return This builder for chaining.
+ *
+ * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder clearGceZone() {
- gceZone_ = getDefaultInstance().getGceZone();
- bitField0_ = (bitField0_ & ~0x00000800);
+ public com.google.cloud.alloydb.v1alpha.Instance.Node.Builder getWritableNodeBuilder() {
+ bitField0_ |= 0x00002000;
onChanged();
- return this;
+ return internalGetWritableNodeFieldBuilder().getBuilder();
}
/**
*
*
*
- * The Compute Engine zone that the instance should serve from, per
- * https://cloud.google.com/compute/docs/regions-zones
- * This can ONLY be specified for ZONAL instances.
- * If present for a REGIONAL instance, an error will be thrown.
- * If this is absent for a ZONAL instance, instance is created in a random
- * zone with available capacity.
+ * Output only. This is set for the read-write VM of the PRIMARY instance
+ * only.
*
*
- * string gce_zone = 12;
- *
- * @param value The bytes for gceZone to set.
- * @return This builder for chaining.
+ *
+ * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder setGceZoneBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- gceZone_ = value;
- bitField0_ |= 0x00000800;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.MapField
- * Database flags. Set at the instance level.
- * They are copied from the primary instance on secondary instance creation.
- * Flags that have restrictions default to the value at primary
- * instance on read instances during creation. Read instances can set new
- * flags or override existing flags that are relevant for reads, for example,
- * for enabling columnar cache on a read instance. Flags set on read instance
- * might or might not be present on the primary instance.
- *
- *
- * This is a list of "key": "value" pairs.
- * "key": The name of the flag. These flags are passed at instance setup time,
- * so include both server options and system variables for Postgres. Flags are
- * specified with underscores, not hyphens.
- * "value": The value of the flag. Booleans are set to **on** for true
- * and **off** for false. This field must be omitted if the flag
- * doesn't take a value.
+ * Output only. This is set for the read-write VM of the PRIMARY instance
+ * only.
*
*
- * map<string, string> database_flags = 13;
+ *
+ * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- @java.lang.Override
- public boolean containsDatabaseFlags(java.lang.String key) {
- if (key == null) {
- throw new NullPointerException("map key");
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.alloydb.v1alpha.Instance.Node,
+ com.google.cloud.alloydb.v1alpha.Instance.Node.Builder,
+ com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder>
+ internalGetWritableNodeFieldBuilder() {
+ if (writableNodeBuilder_ == null) {
+ writableNodeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.alloydb.v1alpha.Instance.Node,
+ com.google.cloud.alloydb.v1alpha.Instance.Node.Builder,
+ com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder>(
+ getWritableNode(), getParentForChildren(), isClean());
+ writableNode_ = null;
}
- return internalGetDatabaseFlags().getMap().containsKey(key);
+ return writableNodeBuilder_;
}
- /** Use {@link #getDatabaseFlagsMap()} instead. */
- @java.lang.Override
- @java.lang.Deprecated
- public java.util.Map
- * Database flags. Set at the instance level.
- * They are copied from the primary instance on secondary instance creation.
- * Flags that have restrictions default to the value at primary
- * instance on read instances during creation. Read instances can set new
- * flags or override existing flags that are relevant for reads, for example,
- * for enabling columnar cache on a read instance. Flags set on read instance
- * might or might not be present on the primary instance.
- *
- *
- * This is a list of "key": "value" pairs.
- * "key": The name of the flag. These flags are passed at instance setup time,
- * so include both server options and system variables for Postgres. Flags are
- * specified with underscores, not hyphens.
- * "value": The value of the flag. Booleans are set to **on** for true
- * and **off** for false. This field must be omitted if the flag
- * doesn't take a value.
+ * Output only. List of available read-only VMs in this instance, including
+ * the standby for a PRIMARY instance.
*
*
- * map<string, string> database_flags = 13;
+ *
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- @java.lang.Override
- public java.util.Map
- * Database flags. Set at the instance level.
- * They are copied from the primary instance on secondary instance creation.
- * Flags that have restrictions default to the value at primary
- * instance on read instances during creation. Read instances can set new
- * flags or override existing flags that are relevant for reads, for example,
- * for enabling columnar cache on a read instance. Flags set on read instance
- * might or might not be present on the primary instance.
- *
- *
- * This is a list of "key": "value" pairs.
- * "key": The name of the flag. These flags are passed at instance setup time,
- * so include both server options and system variables for Postgres. Flags are
- * specified with underscores, not hyphens.
- * "value": The value of the flag. Booleans are set to **on** for true
- * and **off** for false. This field must be omitted if the flag
- * doesn't take a value.
+ * Output only. List of available read-only VMs in this instance, including
+ * the standby for a PRIMARY instance.
*
*
- * map<string, string> database_flags = 13;
+ *
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- @java.lang.Override
- public /* nullable */ java.lang.String getDatabaseFlagsOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
- if (key == null) {
- throw new NullPointerException("map key");
+ public int getNodesCount() {
+ if (nodesBuilder_ == null) {
+ return nodes_.size();
+ } else {
+ return nodesBuilder_.getCount();
}
- java.util.Map
- * Database flags. Set at the instance level.
- * They are copied from the primary instance on secondary instance creation.
- * Flags that have restrictions default to the value at primary
- * instance on read instances during creation. Read instances can set new
- * flags or override existing flags that are relevant for reads, for example,
- * for enabling columnar cache on a read instance. Flags set on read instance
- * might or might not be present on the primary instance.
- *
- *
- * This is a list of "key": "value" pairs.
- * "key": The name of the flag. These flags are passed at instance setup time,
- * so include both server options and system variables for Postgres. Flags are
- * specified with underscores, not hyphens.
- * "value": The value of the flag. Booleans are set to **on** for true
- * and **off** for false. This field must be omitted if the flag
- * doesn't take a value.
+ * Output only. List of available read-only VMs in this instance, including
+ * the standby for a PRIMARY instance.
*
*
- * map<string, string> database_flags = 13;
+ *
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- @java.lang.Override
- public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) {
- if (key == null) {
- throw new NullPointerException("map key");
- }
- java.util.Map
- * Database flags. Set at the instance level.
- * They are copied from the primary instance on secondary instance creation.
- * Flags that have restrictions default to the value at primary
- * instance on read instances during creation. Read instances can set new
- * flags or override existing flags that are relevant for reads, for example,
- * for enabling columnar cache on a read instance. Flags set on read instance
- * might or might not be present on the primary instance.
- *
- *
- * This is a list of "key": "value" pairs.
- * "key": The name of the flag. These flags are passed at instance setup time,
- * so include both server options and system variables for Postgres. Flags are
- * specified with underscores, not hyphens.
- * "value": The value of the flag. Booleans are set to **on** for true
- * and **off** for false. This field must be omitted if the flag
- * doesn't take a value.
+ * Output only. List of available read-only VMs in this instance, including
+ * the standby for a PRIMARY instance.
*
*
- * map<string, string> database_flags = 13;
+ *
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder removeDatabaseFlags(java.lang.String key) {
- if (key == null) {
- throw new NullPointerException("map key");
+ public Builder setNodes(int index, com.google.cloud.alloydb.v1alpha.Instance.Node value) {
+ if (nodesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNodesIsMutable();
+ nodes_.set(index, value);
+ onChanged();
+ } else {
+ nodesBuilder_.setMessage(index, value);
}
- internalGetMutableDatabaseFlags().getMutableMap().remove(key);
return this;
}
- /** Use alternate mutation accessors instead. */
- @java.lang.Deprecated
- public java.util.Map
- * Database flags. Set at the instance level.
- * They are copied from the primary instance on secondary instance creation.
- * Flags that have restrictions default to the value at primary
- * instance on read instances during creation. Read instances can set new
- * flags or override existing flags that are relevant for reads, for example,
- * for enabling columnar cache on a read instance. Flags set on read instance
- * might or might not be present on the primary instance.
- *
- *
- * This is a list of "key": "value" pairs.
- * "key": The name of the flag. These flags are passed at instance setup time,
- * so include both server options and system variables for Postgres. Flags are
- * specified with underscores, not hyphens.
- * "value": The value of the flag. Booleans are set to **on** for true
- * and **off** for false. This field must be omitted if the flag
- * doesn't take a value.
+ * Output only. List of available read-only VMs in this instance, including
+ * the standby for a PRIMARY instance.
*
*
- * map<string, string> database_flags = 13;
+ *
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) {
- if (key == null) {
- throw new NullPointerException("map key");
- }
- if (value == null) {
- throw new NullPointerException("map value");
+ public Builder setNodes(
+ int index, com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ nodesBuilder_.setMessage(index, builderForValue.build());
}
- internalGetMutableDatabaseFlags().getMutableMap().put(key, value);
- bitField0_ |= 0x00001000;
return this;
}
@@ -24757,104 +27970,99 @@ public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) {
*
*
*
- * Database flags. Set at the instance level.
- * They are copied from the primary instance on secondary instance creation.
- * Flags that have restrictions default to the value at primary
- * instance on read instances during creation. Read instances can set new
- * flags or override existing flags that are relevant for reads, for example,
- * for enabling columnar cache on a read instance. Flags set on read instance
- * might or might not be present on the primary instance.
- *
- *
- * This is a list of "key": "value" pairs.
- * "key": The name of the flag. These flags are passed at instance setup time,
- * so include both server options and system variables for Postgres. Flags are
- * specified with underscores, not hyphens.
- * "value": The value of the flag. Booleans are set to **on** for true
- * and **off** for false. This field must be omitted if the flag
- * doesn't take a value.
+ * Output only. List of available read-only VMs in this instance, including
+ * the standby for a PRIMARY instance.
*
*
- * map<string, string> database_flags = 13;
+ *
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder putAllDatabaseFlags(java.util.Map
- * Output only. This is set for the read-write VM of the PRIMARY instance
- * only.
+ * Output only. List of available read-only VMs in this instance, including
+ * the standby for a PRIMARY instance.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return Whether the writableNode field is set.
*/
- public boolean hasWritableNode() {
- return ((bitField0_ & 0x00002000) != 0);
+ public Builder addNodes(int index, com.google.cloud.alloydb.v1alpha.Instance.Node value) {
+ if (nodesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNodesIsMutable();
+ nodes_.add(index, value);
+ onChanged();
+ } else {
+ nodesBuilder_.addMessage(index, value);
+ }
+ return this;
}
/**
*
*
*
- * Output only. This is set for the read-write VM of the PRIMARY instance
- * only.
+ * Output only. List of available read-only VMs in this instance, including
+ * the standby for a PRIMARY instance.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return The writableNode.
*/
- public com.google.cloud.alloydb.v1alpha.Instance.Node getWritableNode() {
- if (writableNodeBuilder_ == null) {
- return writableNode_ == null
- ? com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance()
- : writableNode_;
+ public Builder addNodes(
+ com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.add(builderForValue.build());
+ onChanged();
} else {
- return writableNodeBuilder_.getMessage();
+ nodesBuilder_.addMessage(builderForValue.build());
}
+ return this;
}
/**
*
*
*
- * Output only. This is set for the read-write VM of the PRIMARY instance
- * only.
+ * Output only. List of available read-only VMs in this instance, including
+ * the standby for a PRIMARY instance.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder setWritableNode(com.google.cloud.alloydb.v1alpha.Instance.Node value) {
- if (writableNodeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- writableNode_ = value;
+ public Builder addNodes(
+ int index, com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.add(index, builderForValue.build());
+ onChanged();
} else {
- writableNodeBuilder_.setMessage(value);
+ nodesBuilder_.addMessage(index, builderForValue.build());
}
- bitField0_ |= 0x00002000;
- onChanged();
return this;
}
@@ -24862,23 +28070,23 @@ public Builder setWritableNode(com.google.cloud.alloydb.v1alpha.Instance.Node va
*
*
*
- * Output only. This is set for the read-write VM of the PRIMARY instance
- * only.
+ * Output only. List of available read-only VMs in this instance, including
+ * the standby for a PRIMARY instance.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder setWritableNode(
- com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) {
- if (writableNodeBuilder_ == null) {
- writableNode_ = builderForValue.build();
+ public Builder addAllNodes(
+ java.lang.Iterable extends com.google.cloud.alloydb.v1alpha.Instance.Node> values) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_);
+ onChanged();
} else {
- writableNodeBuilder_.setMessage(builderForValue.build());
+ nodesBuilder_.addAllMessages(values);
}
- bitField0_ |= 0x00002000;
- onChanged();
return this;
}
@@ -24886,30 +28094,21 @@ public Builder setWritableNode(
*
*
*
- * Output only. This is set for the read-write VM of the PRIMARY instance
- * only.
+ * Output only. List of available read-only VMs in this instance, including
+ * the standby for a PRIMARY instance.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder mergeWritableNode(com.google.cloud.alloydb.v1alpha.Instance.Node value) {
- if (writableNodeBuilder_ == null) {
- if (((bitField0_ & 0x00002000) != 0)
- && writableNode_ != null
- && writableNode_
- != com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance()) {
- getWritableNodeBuilder().mergeFrom(value);
- } else {
- writableNode_ = value;
- }
- } else {
- writableNodeBuilder_.mergeFrom(value);
- }
- if (writableNode_ != null) {
- bitField0_ |= 0x00002000;
+ public Builder clearNodes() {
+ if (nodesBuilder_ == null) {
+ nodes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
+ } else {
+ nodesBuilder_.clear();
}
return this;
}
@@ -24918,22 +28117,22 @@ public Builder mergeWritableNode(com.google.cloud.alloydb.v1alpha.Instance.Node
*
*
*
- * Output only. This is set for the read-write VM of the PRIMARY instance
- * only.
+ * Output only. List of available read-only VMs in this instance, including
+ * the standby for a PRIMARY instance.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder clearWritableNode() {
- bitField0_ = (bitField0_ & ~0x00002000);
- writableNode_ = null;
- if (writableNodeBuilder_ != null) {
- writableNodeBuilder_.dispose();
- writableNodeBuilder_ = null;
+ public Builder removeNodes(int index) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.remove(index);
+ onChanged();
+ } else {
+ nodesBuilder_.remove(index);
}
- onChanged();
return this;
}
@@ -24941,39 +28140,35 @@ public Builder clearWritableNode() {
*
*
*
- * Output only. This is set for the read-write VM of the PRIMARY instance
- * only.
+ * Output only. List of available read-only VMs in this instance, including
+ * the standby for a PRIMARY instance.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public com.google.cloud.alloydb.v1alpha.Instance.Node.Builder getWritableNodeBuilder() {
- bitField0_ |= 0x00002000;
- onChanged();
- return internalGetWritableNodeFieldBuilder().getBuilder();
+ public com.google.cloud.alloydb.v1alpha.Instance.Node.Builder getNodesBuilder(int index) {
+ return internalGetNodesFieldBuilder().getBuilder(index);
}
/**
*
*
*
- * Output only. This is set for the read-write VM of the PRIMARY instance
- * only.
+ * Output only. List of available read-only VMs in this instance, including
+ * the standby for a PRIMARY instance.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder getWritableNodeOrBuilder() {
- if (writableNodeBuilder_ != null) {
- return writableNodeBuilder_.getMessageOrBuilder();
+ public com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder getNodesOrBuilder(int index) {
+ if (nodesBuilder_ == null) {
+ return nodes_.get(index);
} else {
- return writableNode_ == null
- ? com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance()
- : writableNode_;
+ return nodesBuilder_.getMessageOrBuilder(index);
}
}
@@ -24981,47 +28176,40 @@ public com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder getWritableNodeOr
*
*
*
- * Output only. This is set for the read-write VM of the PRIMARY instance
- * only.
+ * Output only. List of available read-only VMs in this instance, including
+ * the standby for a PRIMARY instance.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- private com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.alloydb.v1alpha.Instance.Node,
- com.google.cloud.alloydb.v1alpha.Instance.Node.Builder,
- com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder>
- internalGetWritableNodeFieldBuilder() {
- if (writableNodeBuilder_ == null) {
- writableNodeBuilder_ =
- new com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.alloydb.v1alpha.Instance.Node,
- com.google.cloud.alloydb.v1alpha.Instance.Node.Builder,
- com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder>(
- getWritableNode(), getParentForChildren(), isClean());
- writableNode_ = null;
+ public java.util.List extends com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder>
+ getNodesOrBuilderList() {
+ if (nodesBuilder_ != null) {
+ return nodesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(nodes_);
}
- return writableNodeBuilder_;
}
- private java.util.List+ * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. + *+ * + *
+ * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.alloydb.v1alpha.Instance.Node.Builder addNodesBuilder() {
+ return internalGetNodesFieldBuilder()
+ .addBuilder(com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance());
}
- private com.google.protobuf.RepeatedFieldBuilder<
- com.google.cloud.alloydb.v1alpha.Instance.Node,
- com.google.cloud.alloydb.v1alpha.Instance.Node.Builder,
- com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder>
- nodesBuilder_;
-
/**
*
*
@@ -25034,12 +28222,9 @@ private void ensureNodesIsMutable() {
* repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public java.util.List
- * Output only. List of available read-only VMs in this instance, including
- * the standby for a PRIMARY instance.
+ * Configuration for query insights.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
*
+ *
+ * @return Whether the queryInsightsConfig field is set.
*/
- public com.google.cloud.alloydb.v1alpha.Instance.Node getNodes(int index) {
- if (nodesBuilder_ == null) {
- return nodes_.get(index);
+ public boolean hasQueryInsightsConfig() {
+ return ((bitField0_ & 0x00008000) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Configuration for query insights. + *+ * + *
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
+ *
+ *
+ * @return The queryInsightsConfig.
+ */
+ public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig
+ getQueryInsightsConfig() {
+ if (queryInsightsConfigBuilder_ == null) {
+ return queryInsightsConfig_ == null
+ ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig
+ .getDefaultInstance()
+ : queryInsightsConfig_;
} else {
- return nodesBuilder_.getMessage(index);
+ return queryInsightsConfigBuilder_.getMessage();
}
}
@@ -25086,25 +28315,25 @@ public com.google.cloud.alloydb.v1alpha.Instance.Node getNodes(int index) {
*
*
*
- * Output only. List of available read-only VMs in this instance, including
- * the standby for a PRIMARY instance.
+ * Configuration for query insights.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
*
*/
- public Builder setNodes(int index, com.google.cloud.alloydb.v1alpha.Instance.Node value) {
- if (nodesBuilder_ == null) {
+ public Builder setQueryInsightsConfig(
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig value) {
+ if (queryInsightsConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureNodesIsMutable();
- nodes_.set(index, value);
- onChanged();
+ queryInsightsConfig_ = value;
} else {
- nodesBuilder_.setMessage(index, value);
+ queryInsightsConfigBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00008000;
+ onChanged();
return this;
}
@@ -25112,23 +28341,23 @@ public Builder setNodes(int index, com.google.cloud.alloydb.v1alpha.Instance.Nod
*
*
*
- * Output only. List of available read-only VMs in this instance, including
- * the standby for a PRIMARY instance.
+ * Configuration for query insights.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
*
*/
- public Builder setNodes(
- int index, com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) {
- if (nodesBuilder_ == null) {
- ensureNodesIsMutable();
- nodes_.set(index, builderForValue.build());
- onChanged();
+ public Builder setQueryInsightsConfig(
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder
+ builderForValue) {
+ if (queryInsightsConfigBuilder_ == null) {
+ queryInsightsConfig_ = builderForValue.build();
} else {
- nodesBuilder_.setMessage(index, builderForValue.build());
+ queryInsightsConfigBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00008000;
+ onChanged();
return this;
}
@@ -25136,24 +28365,31 @@ public Builder setNodes(
*
*
*
- * Output only. List of available read-only VMs in this instance, including
- * the standby for a PRIMARY instance.
+ * Configuration for query insights.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
*
*/
- public Builder addNodes(com.google.cloud.alloydb.v1alpha.Instance.Node value) {
- if (nodesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder mergeQueryInsightsConfig(
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig value) {
+ if (queryInsightsConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00008000) != 0)
+ && queryInsightsConfig_ != null
+ && queryInsightsConfig_
+ != com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig
+ .getDefaultInstance()) {
+ getQueryInsightsConfigBuilder().mergeFrom(value);
+ } else {
+ queryInsightsConfig_ = value;
}
- ensureNodesIsMutable();
- nodes_.add(value);
- onChanged();
} else {
- nodesBuilder_.addMessage(value);
+ queryInsightsConfigBuilder_.mergeFrom(value);
+ }
+ if (queryInsightsConfig_ != null) {
+ bitField0_ |= 0x00008000;
+ onChanged();
}
return this;
}
@@ -25162,25 +28398,21 @@ public Builder addNodes(com.google.cloud.alloydb.v1alpha.Instance.Node value) {
*
*
*
- * Output only. List of available read-only VMs in this instance, including
- * the standby for a PRIMARY instance.
+ * Configuration for query insights.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
*
*/
- public Builder addNodes(int index, com.google.cloud.alloydb.v1alpha.Instance.Node value) {
- if (nodesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureNodesIsMutable();
- nodes_.add(index, value);
- onChanged();
- } else {
- nodesBuilder_.addMessage(index, value);
+ public Builder clearQueryInsightsConfig() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ queryInsightsConfig_ = null;
+ if (queryInsightsConfigBuilder_ != null) {
+ queryInsightsConfigBuilder_.dispose();
+ queryInsightsConfigBuilder_ = null;
}
+ onChanged();
return this;
}
@@ -25188,117 +28420,152 @@ public Builder addNodes(int index, com.google.cloud.alloydb.v1alpha.Instance.Nod
*
*
*
- * Output only. List of available read-only VMs in this instance, including
- * the standby for a PRIMARY instance.
+ * Configuration for query insights.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
*
*/
- public Builder addNodes(
- com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) {
- if (nodesBuilder_ == null) {
- ensureNodesIsMutable();
- nodes_.add(builderForValue.build());
- onChanged();
- } else {
- nodesBuilder_.addMessage(builderForValue.build());
- }
- return this;
+ public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder
+ getQueryInsightsConfigBuilder() {
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return internalGetQueryInsightsConfigFieldBuilder().getBuilder();
}
/**
*
*
*
- * Output only. List of available read-only VMs in this instance, including
- * the standby for a PRIMARY instance.
+ * Configuration for query insights.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
*
*/
- public Builder addNodes(
- int index, com.google.cloud.alloydb.v1alpha.Instance.Node.Builder builderForValue) {
- if (nodesBuilder_ == null) {
- ensureNodesIsMutable();
- nodes_.add(index, builderForValue.build());
- onChanged();
+ public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfigOrBuilder
+ getQueryInsightsConfigOrBuilder() {
+ if (queryInsightsConfigBuilder_ != null) {
+ return queryInsightsConfigBuilder_.getMessageOrBuilder();
} else {
- nodesBuilder_.addMessage(index, builderForValue.build());
+ return queryInsightsConfig_ == null
+ ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig
+ .getDefaultInstance()
+ : queryInsightsConfig_;
}
- return this;
}
/**
*
*
*
- * Output only. List of available read-only VMs in this instance, including
- * the standby for a PRIMARY instance.
+ * Configuration for query insights.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
*
*/
- public Builder addAllNodes(
- java.lang.Iterable extends com.google.cloud.alloydb.v1alpha.Instance.Node> values) {
- if (nodesBuilder_ == null) {
- ensureNodesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_);
- onChanged();
- } else {
- nodesBuilder_.addAllMessages(values);
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig,
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder,
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfigOrBuilder>
+ internalGetQueryInsightsConfigFieldBuilder() {
+ if (queryInsightsConfigBuilder_ == null) {
+ queryInsightsConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig,
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder,
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfigOrBuilder>(
+ getQueryInsightsConfig(), getParentForChildren(), isClean());
+ queryInsightsConfig_ = null;
}
- return this;
+ return queryInsightsConfigBuilder_;
}
+ private com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo queryInsightsInfo_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo,
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.Builder,
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfoOrBuilder>
+ queryInsightsInfoBuilder_;
+
/**
*
*
* - * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the queryInsightsInfo field is set.
+ */
+ public boolean hasQueryInsightsInfo() {
+ return ((bitField0_ & 0x00010000) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Instance level Query Insights information, which is read-only
+ * and available in the output only. Contains the effective query insights
+ * settings for this instance, by merging customer's provided
+ * `QueryInsightsInstanceConfig` with the Query Insights defaults.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return The queryInsightsInfo.
*/
- public Builder clearNodes() {
- if (nodesBuilder_ == null) {
- nodes_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00004000);
- onChanged();
+ public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo
+ getQueryInsightsInfo() {
+ if (queryInsightsInfoBuilder_ == null) {
+ return queryInsightsInfo_ == null
+ ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo
+ .getDefaultInstance()
+ : queryInsightsInfo_;
} else {
- nodesBuilder_.clear();
+ return queryInsightsInfoBuilder_.getMessage();
}
- return this;
}
/**
*
*
*
- * Output only. List of available read-only VMs in this instance, including
- * the standby for a PRIMARY instance.
+ * Output only. Instance level Query Insights information, which is read-only
+ * and available in the output only. Contains the effective query insights
+ * settings for this instance, by merging customer's provided
+ * `QueryInsightsInstanceConfig` with the Query Insights defaults.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder removeNodes(int index) {
- if (nodesBuilder_ == null) {
- ensureNodesIsMutable();
- nodes_.remove(index);
- onChanged();
+ public Builder setQueryInsightsInfo(
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo value) {
+ if (queryInsightsInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ queryInsightsInfo_ = value;
} else {
- nodesBuilder_.remove(index);
+ queryInsightsInfoBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00010000;
+ onChanged();
return this;
}
@@ -25306,174 +28573,215 @@ public Builder removeNodes(int index) {
*
*
*
- * Output only. List of available read-only VMs in this instance, including
- * the standby for a PRIMARY instance.
+ * Output only. Instance level Query Insights information, which is read-only
+ * and available in the output only. Contains the effective query insights
+ * settings for this instance, by merging customer's provided
+ * `QueryInsightsInstanceConfig` with the Query Insights defaults.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public com.google.cloud.alloydb.v1alpha.Instance.Node.Builder getNodesBuilder(int index) {
- return internalGetNodesFieldBuilder().getBuilder(index);
+ public Builder setQueryInsightsInfo(
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.Builder
+ builderForValue) {
+ if (queryInsightsInfoBuilder_ == null) {
+ queryInsightsInfo_ = builderForValue.build();
+ } else {
+ queryInsightsInfoBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00010000;
+ onChanged();
+ return this;
}
/**
*
*
*
- * Output only. List of available read-only VMs in this instance, including
- * the standby for a PRIMARY instance.
+ * Output only. Instance level Query Insights information, which is read-only
+ * and available in the output only. Contains the effective query insights
+ * settings for this instance, by merging customer's provided
+ * `QueryInsightsInstanceConfig` with the Query Insights defaults.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder getNodesOrBuilder(int index) {
- if (nodesBuilder_ == null) {
- return nodes_.get(index);
+ public Builder mergeQueryInsightsInfo(
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo value) {
+ if (queryInsightsInfoBuilder_ == null) {
+ if (((bitField0_ & 0x00010000) != 0)
+ && queryInsightsInfo_ != null
+ && queryInsightsInfo_
+ != com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo
+ .getDefaultInstance()) {
+ getQueryInsightsInfoBuilder().mergeFrom(value);
+ } else {
+ queryInsightsInfo_ = value;
+ }
} else {
- return nodesBuilder_.getMessageOrBuilder(index);
+ queryInsightsInfoBuilder_.mergeFrom(value);
+ }
+ if (queryInsightsInfo_ != null) {
+ bitField0_ |= 0x00010000;
+ onChanged();
}
+ return this;
}
/**
*
*
*
- * Output only. List of available read-only VMs in this instance, including
- * the standby for a PRIMARY instance.
+ * Output only. Instance level Query Insights information, which is read-only
+ * and available in the output only. Contains the effective query insights
+ * settings for this instance, by merging customer's provided
+ * `QueryInsightsInstanceConfig` with the Query Insights defaults.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public java.util.List extends com.google.cloud.alloydb.v1alpha.Instance.NodeOrBuilder>
- getNodesOrBuilderList() {
- if (nodesBuilder_ != null) {
- return nodesBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(nodes_);
+ public Builder clearQueryInsightsInfo() {
+ bitField0_ = (bitField0_ & ~0x00010000);
+ queryInsightsInfo_ = null;
+ if (queryInsightsInfoBuilder_ != null) {
+ queryInsightsInfoBuilder_.dispose();
+ queryInsightsInfoBuilder_ = null;
}
+ onChanged();
+ return this;
}
/**
*
*
*
- * Output only. List of available read-only VMs in this instance, including
- * the standby for a PRIMARY instance.
+ * Output only. Instance level Query Insights information, which is read-only
+ * and available in the output only. Contains the effective query insights
+ * settings for this instance, by merging customer's provided
+ * `QueryInsightsInstanceConfig` with the Query Insights defaults.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public com.google.cloud.alloydb.v1alpha.Instance.Node.Builder addNodesBuilder() {
- return internalGetNodesFieldBuilder()
- .addBuilder(com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance());
+ public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo.Builder
+ getQueryInsightsInfoBuilder() {
+ bitField0_ |= 0x00010000;
+ onChanged();
+ return internalGetQueryInsightsInfoFieldBuilder().getBuilder();
}
/**
*
*
*
- * Output only. List of available read-only VMs in this instance, including
- * the standby for a PRIMARY instance.
+ * Output only. Instance level Query Insights information, which is read-only
+ * and available in the output only. Contains the effective query insights
+ * settings for this instance, by merging customer's provided
+ * `QueryInsightsInstanceConfig` with the Query Insights defaults.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public com.google.cloud.alloydb.v1alpha.Instance.Node.Builder addNodesBuilder(int index) {
- return internalGetNodesFieldBuilder()
- .addBuilder(index, com.google.cloud.alloydb.v1alpha.Instance.Node.getDefaultInstance());
+ public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfoOrBuilder
+ getQueryInsightsInfoOrBuilder() {
+ if (queryInsightsInfoBuilder_ != null) {
+ return queryInsightsInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return queryInsightsInfo_ == null
+ ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo
+ .getDefaultInstance()
+ : queryInsightsInfo_;
+ }
}
/**
*
*
*
- * Output only. List of available read-only VMs in this instance, including
- * the standby for a PRIMARY instance.
+ * Output only. Instance level Query Insights information, which is read-only
+ * and available in the output only. Contains the effective query insights
+ * settings for this instance, by merging customer's provided
+ * `QueryInsightsInstanceConfig` with the Query Insights defaults.
*
*
*
- * repeated .google.cloud.alloydb.v1alpha.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public java.util.List
- * Configuration for query insights.
+ * Configuration for observability.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
*
*
- * @return Whether the queryInsightsConfig field is set.
+ * @return Whether the observabilityConfig field is set.
*/
- public boolean hasQueryInsightsConfig() {
- return ((bitField0_ & 0x00008000) != 0);
+ public boolean hasObservabilityConfig() {
+ return ((bitField0_ & 0x00020000) != 0);
}
/**
*
*
*
- * Configuration for query insights.
+ * Configuration for observability.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
*
*
- * @return The queryInsightsConfig.
+ * @return The observabilityConfig.
*/
- public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig
- getQueryInsightsConfig() {
- if (queryInsightsConfigBuilder_ == null) {
- return queryInsightsConfig_ == null
- ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig
+ public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
+ getObservabilityConfig() {
+ if (observabilityConfigBuilder_ == null) {
+ return observabilityConfig_ == null
+ ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
.getDefaultInstance()
- : queryInsightsConfig_;
+ : observabilityConfig_;
} else {
- return queryInsightsConfigBuilder_.getMessage();
+ return observabilityConfigBuilder_.getMessage();
}
}
@@ -25481,24 +28789,24 @@ public boolean hasQueryInsightsConfig() {
*
*
*
- * Configuration for query insights.
+ * Configuration for observability.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
*
*/
- public Builder setQueryInsightsConfig(
- com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig value) {
- if (queryInsightsConfigBuilder_ == null) {
+ public Builder setObservabilityConfig(
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig value) {
+ if (observabilityConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- queryInsightsConfig_ = value;
+ observabilityConfig_ = value;
} else {
- queryInsightsConfigBuilder_.setMessage(value);
+ observabilityConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00020000;
onChanged();
return this;
}
@@ -25507,22 +28815,22 @@ public Builder setQueryInsightsConfig(
*
*
*
- * Configuration for query insights.
+ * Configuration for observability.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
*
*/
- public Builder setQueryInsightsConfig(
- com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder
+ public Builder setObservabilityConfig(
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder
builderForValue) {
- if (queryInsightsConfigBuilder_ == null) {
- queryInsightsConfig_ = builderForValue.build();
+ if (observabilityConfigBuilder_ == null) {
+ observabilityConfig_ = builderForValue.build();
} else {
- queryInsightsConfigBuilder_.setMessage(builderForValue.build());
+ observabilityConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00020000;
onChanged();
return this;
}
@@ -25531,30 +28839,30 @@ public Builder setQueryInsightsConfig(
*
*
*
- * Configuration for query insights.
+ * Configuration for observability.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
*
*/
- public Builder mergeQueryInsightsConfig(
- com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig value) {
- if (queryInsightsConfigBuilder_ == null) {
- if (((bitField0_ & 0x00008000) != 0)
- && queryInsightsConfig_ != null
- && queryInsightsConfig_
- != com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig
+ public Builder mergeObservabilityConfig(
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig value) {
+ if (observabilityConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00020000) != 0)
+ && observabilityConfig_ != null
+ && observabilityConfig_
+ != com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
.getDefaultInstance()) {
- getQueryInsightsConfigBuilder().mergeFrom(value);
+ getObservabilityConfigBuilder().mergeFrom(value);
} else {
- queryInsightsConfig_ = value;
+ observabilityConfig_ = value;
}
} else {
- queryInsightsConfigBuilder_.mergeFrom(value);
+ observabilityConfigBuilder_.mergeFrom(value);
}
- if (queryInsightsConfig_ != null) {
- bitField0_ |= 0x00008000;
+ if (observabilityConfig_ != null) {
+ bitField0_ |= 0x00020000;
onChanged();
}
return this;
@@ -25564,19 +28872,19 @@ public Builder mergeQueryInsightsConfig(
*
*
*
- * Configuration for query insights.
+ * Configuration for observability.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
*
*/
- public Builder clearQueryInsightsConfig() {
- bitField0_ = (bitField0_ & ~0x00008000);
- queryInsightsConfig_ = null;
- if (queryInsightsConfigBuilder_ != null) {
- queryInsightsConfigBuilder_.dispose();
- queryInsightsConfigBuilder_ = null;
+ public Builder clearObservabilityConfig() {
+ bitField0_ = (bitField0_ & ~0x00020000);
+ observabilityConfig_ = null;
+ if (observabilityConfigBuilder_ != null) {
+ observabilityConfigBuilder_.dispose();
+ observabilityConfigBuilder_ = null;
}
onChanged();
return this;
@@ -25586,40 +28894,40 @@ public Builder clearQueryInsightsConfig() {
*
*
*
- * Configuration for query insights.
+ * Configuration for observability.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
*
*/
- public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder
- getQueryInsightsConfigBuilder() {
- bitField0_ |= 0x00008000;
+ public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder
+ getObservabilityConfigBuilder() {
+ bitField0_ |= 0x00020000;
onChanged();
- return internalGetQueryInsightsConfigFieldBuilder().getBuilder();
+ return internalGetObservabilityConfigFieldBuilder().getBuilder();
}
/**
*
*
*
- * Configuration for query insights.
+ * Configuration for observability.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
*
*/
- public com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfigOrBuilder
- getQueryInsightsConfigOrBuilder() {
- if (queryInsightsConfigBuilder_ != null) {
- return queryInsightsConfigBuilder_.getMessageOrBuilder();
+ public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder
+ getObservabilityConfigOrBuilder() {
+ if (observabilityConfigBuilder_ != null) {
+ return observabilityConfigBuilder_.getMessageOrBuilder();
} else {
- return queryInsightsConfig_ == null
- ? com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig
+ return observabilityConfig_ == null
+ ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
.getDefaultInstance()
- : queryInsightsConfig_;
+ : observabilityConfig_;
}
}
@@ -25627,77 +28935,83 @@ public Builder clearQueryInsightsConfig() {
*
*
*
- * Configuration for query insights.
+ * Configuration for observability.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig query_insights_config = 21;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
*
*/
private com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig,
- com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder,
- com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfigOrBuilder>
- internalGetQueryInsightsConfigFieldBuilder() {
- if (queryInsightsConfigBuilder_ == null) {
- queryInsightsConfigBuilder_ =
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig,
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder,
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder>
+ internalGetObservabilityConfigFieldBuilder() {
+ if (observabilityConfigBuilder_ == null) {
+ observabilityConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig,
- com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig.Builder,
- com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfigOrBuilder>(
- getQueryInsightsConfig(), getParentForChildren(), isClean());
- queryInsightsConfig_ = null;
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig,
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder,
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder>(
+ getObservabilityConfig(), getParentForChildren(), isClean());
+ observabilityConfig_ = null;
}
- return queryInsightsConfigBuilder_;
+ return observabilityConfigBuilder_;
}
- private com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
- observabilityConfig_;
+ private com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo
+ observabilityInstanceInfo_;
private com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig,
- com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder,
- com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder>
- observabilityConfigBuilder_;
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo,
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.Builder,
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfoOrBuilder>
+ observabilityInstanceInfoBuilder_;
/**
*
*
*
- * Configuration for observability.
+ * Output only. Instance level observability information, contains the
+ * effective values of observability settings for this instance, by merging
+ * customer's provided `ObservabilityInstanceConfig` with the
+ * Observability defaults.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
- * @return Whether the observabilityConfig field is set.
+ * @return Whether the observabilityInstanceInfo field is set.
*/
- public boolean hasObservabilityConfig() {
- return ((bitField0_ & 0x00010000) != 0);
+ public boolean hasObservabilityInstanceInfo() {
+ return ((bitField0_ & 0x00040000) != 0);
}
/**
*
*
*
- * Configuration for observability.
+ * Output only. Instance level observability information, contains the
+ * effective values of observability settings for this instance, by merging
+ * customer's provided `ObservabilityInstanceConfig` with the
+ * Observability defaults.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
- * @return The observabilityConfig.
+ * @return The observabilityInstanceInfo.
*/
- public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
- getObservabilityConfig() {
- if (observabilityConfigBuilder_ == null) {
- return observabilityConfig_ == null
- ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
+ public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo
+ getObservabilityInstanceInfo() {
+ if (observabilityInstanceInfoBuilder_ == null) {
+ return observabilityInstanceInfo_ == null
+ ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo
.getDefaultInstance()
- : observabilityConfig_;
+ : observabilityInstanceInfo_;
} else {
- return observabilityConfigBuilder_.getMessage();
+ return observabilityInstanceInfoBuilder_.getMessage();
}
}
@@ -25705,24 +29019,27 @@ public boolean hasObservabilityConfig() {
*
*
*
- * Configuration for observability.
+ * Output only. Instance level observability information, contains the
+ * effective values of observability settings for this instance, by merging
+ * customer's provided `ObservabilityInstanceConfig` with the
+ * Observability defaults.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder setObservabilityConfig(
- com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig value) {
- if (observabilityConfigBuilder_ == null) {
+ public Builder setObservabilityInstanceInfo(
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo value) {
+ if (observabilityInstanceInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- observabilityConfig_ = value;
+ observabilityInstanceInfo_ = value;
} else {
- observabilityConfigBuilder_.setMessage(value);
+ observabilityInstanceInfoBuilder_.setMessage(value);
}
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00040000;
onChanged();
return this;
}
@@ -25731,22 +29048,25 @@ public Builder setObservabilityConfig(
*
*
*
- * Configuration for observability.
+ * Output only. Instance level observability information, contains the
+ * effective values of observability settings for this instance, by merging
+ * customer's provided `ObservabilityInstanceConfig` with the
+ * Observability defaults.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder setObservabilityConfig(
- com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder
+ public Builder setObservabilityInstanceInfo(
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.Builder
builderForValue) {
- if (observabilityConfigBuilder_ == null) {
- observabilityConfig_ = builderForValue.build();
+ if (observabilityInstanceInfoBuilder_ == null) {
+ observabilityInstanceInfo_ = builderForValue.build();
} else {
- observabilityConfigBuilder_.setMessage(builderForValue.build());
+ observabilityInstanceInfoBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00040000;
onChanged();
return this;
}
@@ -25755,30 +29075,33 @@ public Builder setObservabilityConfig(
*
*
*
- * Configuration for observability.
+ * Output only. Instance level observability information, contains the
+ * effective values of observability settings for this instance, by merging
+ * customer's provided `ObservabilityInstanceConfig` with the
+ * Observability defaults.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder mergeObservabilityConfig(
- com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig value) {
- if (observabilityConfigBuilder_ == null) {
- if (((bitField0_ & 0x00010000) != 0)
- && observabilityConfig_ != null
- && observabilityConfig_
- != com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
+ public Builder mergeObservabilityInstanceInfo(
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo value) {
+ if (observabilityInstanceInfoBuilder_ == null) {
+ if (((bitField0_ & 0x00040000) != 0)
+ && observabilityInstanceInfo_ != null
+ && observabilityInstanceInfo_
+ != com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo
.getDefaultInstance()) {
- getObservabilityConfigBuilder().mergeFrom(value);
+ getObservabilityInstanceInfoBuilder().mergeFrom(value);
} else {
- observabilityConfig_ = value;
+ observabilityInstanceInfo_ = value;
}
} else {
- observabilityConfigBuilder_.mergeFrom(value);
+ observabilityInstanceInfoBuilder_.mergeFrom(value);
}
- if (observabilityConfig_ != null) {
- bitField0_ |= 0x00010000;
+ if (observabilityInstanceInfo_ != null) {
+ bitField0_ |= 0x00040000;
onChanged();
}
return this;
@@ -25788,19 +29111,22 @@ public Builder mergeObservabilityConfig(
*
*
*
- * Configuration for observability.
+ * Output only. Instance level observability information, contains the
+ * effective values of observability settings for this instance, by merging
+ * customer's provided `ObservabilityInstanceConfig` with the
+ * Observability defaults.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder clearObservabilityConfig() {
- bitField0_ = (bitField0_ & ~0x00010000);
- observabilityConfig_ = null;
- if (observabilityConfigBuilder_ != null) {
- observabilityConfigBuilder_.dispose();
- observabilityConfigBuilder_ = null;
+ public Builder clearObservabilityInstanceInfo() {
+ bitField0_ = (bitField0_ & ~0x00040000);
+ observabilityInstanceInfo_ = null;
+ if (observabilityInstanceInfoBuilder_ != null) {
+ observabilityInstanceInfoBuilder_.dispose();
+ observabilityInstanceInfoBuilder_ = null;
}
onChanged();
return this;
@@ -25810,40 +29136,46 @@ public Builder clearObservabilityConfig() {
*
*
*
- * Configuration for observability.
+ * Output only. Instance level observability information, contains the
+ * effective values of observability settings for this instance, by merging
+ * customer's provided `ObservabilityInstanceConfig` with the
+ * Observability defaults.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder
- getObservabilityConfigBuilder() {
- bitField0_ |= 0x00010000;
+ public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.Builder
+ getObservabilityInstanceInfoBuilder() {
+ bitField0_ |= 0x00040000;
onChanged();
- return internalGetObservabilityConfigFieldBuilder().getBuilder();
+ return internalGetObservabilityInstanceInfoFieldBuilder().getBuilder();
}
/**
*
*
*
- * Configuration for observability.
+ * Output only. Instance level observability information, contains the
+ * effective values of observability settings for this instance, by merging
+ * customer's provided `ObservabilityInstanceConfig` with the
+ * Observability defaults.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder
- getObservabilityConfigOrBuilder() {
- if (observabilityConfigBuilder_ != null) {
- return observabilityConfigBuilder_.getMessageOrBuilder();
+ public com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfoOrBuilder
+ getObservabilityInstanceInfoOrBuilder() {
+ if (observabilityInstanceInfoBuilder_ != null) {
+ return observabilityInstanceInfoBuilder_.getMessageOrBuilder();
} else {
- return observabilityConfig_ == null
- ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig
+ return observabilityInstanceInfo_ == null
+ ? com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo
.getDefaultInstance()
- : observabilityConfig_;
+ : observabilityInstanceInfo_;
}
}
@@ -25851,28 +29183,31 @@ public Builder clearObservabilityConfig() {
*
*
*
- * Configuration for observability.
+ * Output only. Instance level observability information, contains the
+ * effective values of observability settings for this instance, by merging
+ * customer's provided `ObservabilityInstanceConfig` with the
+ * Observability defaults.
*
*
*
- * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig observability_config = 26;
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig,
- com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder,
- com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder>
- internalGetObservabilityConfigFieldBuilder() {
- if (observabilityConfigBuilder_ == null) {
- observabilityConfigBuilder_ =
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo,
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.Builder,
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfoOrBuilder>
+ internalGetObservabilityInstanceInfoFieldBuilder() {
+ if (observabilityInstanceInfoBuilder_ == null) {
+ observabilityInstanceInfoBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig,
- com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig.Builder,
- com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder>(
- getObservabilityConfig(), getParentForChildren(), isClean());
- observabilityConfig_ = null;
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo,
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo.Builder,
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfoOrBuilder>(
+ getObservabilityInstanceInfo(), getParentForChildren(), isClean());
+ observabilityInstanceInfo_ = null;
}
- return observabilityConfigBuilder_;
+ return observabilityInstanceInfoBuilder_;
}
private com.google.cloud.alloydb.v1alpha.Instance.ReadPoolConfig readPoolConfig_;
@@ -25895,7 +29230,7 @@ public Builder clearObservabilityConfig() {
* @return Whether the readPoolConfig field is set.
*/
public boolean hasReadPoolConfig() {
- return ((bitField0_ & 0x00020000) != 0);
+ return ((bitField0_ & 0x00080000) != 0);
}
/**
@@ -25940,7 +29275,7 @@ public Builder setReadPoolConfig(
} else {
readPoolConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00080000;
onChanged();
return this;
}
@@ -25962,7 +29297,7 @@ public Builder setReadPoolConfig(
} else {
readPoolConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00080000;
onChanged();
return this;
}
@@ -25980,7 +29315,7 @@ public Builder setReadPoolConfig(
public Builder mergeReadPoolConfig(
com.google.cloud.alloydb.v1alpha.Instance.ReadPoolConfig value) {
if (readPoolConfigBuilder_ == null) {
- if (((bitField0_ & 0x00020000) != 0)
+ if (((bitField0_ & 0x00080000) != 0)
&& readPoolConfig_ != null
&& readPoolConfig_
!= com.google.cloud.alloydb.v1alpha.Instance.ReadPoolConfig.getDefaultInstance()) {
@@ -25992,7 +29327,7 @@ public Builder mergeReadPoolConfig(
readPoolConfigBuilder_.mergeFrom(value);
}
if (readPoolConfig_ != null) {
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00080000;
onChanged();
}
return this;
@@ -26009,7 +29344,7 @@ public Builder mergeReadPoolConfig(
* .google.cloud.alloydb.v1alpha.Instance.ReadPoolConfig read_pool_config = 14;
*/
public Builder clearReadPoolConfig() {
- bitField0_ = (bitField0_ & ~0x00020000);
+ bitField0_ = (bitField0_ & ~0x00080000);
readPoolConfig_ = null;
if (readPoolConfigBuilder_ != null) {
readPoolConfigBuilder_.dispose();
@@ -26031,7 +29366,7 @@ public Builder clearReadPoolConfig() {
*/
public com.google.cloud.alloydb.v1alpha.Instance.ReadPoolConfig.Builder
getReadPoolConfigBuilder() {
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00080000;
onChanged();
return internalGetReadPoolConfigFieldBuilder().getBuilder();
}
@@ -26152,7 +29487,7 @@ public Builder setIpAddress(java.lang.String value) {
throw new NullPointerException();
}
ipAddress_ = value;
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00100000;
onChanged();
return this;
}
@@ -26171,7 +29506,7 @@ public Builder setIpAddress(java.lang.String value) {
*/
public Builder clearIpAddress() {
ipAddress_ = getDefaultInstance().getIpAddress();
- bitField0_ = (bitField0_ & ~0x00040000);
+ bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
return this;
}
@@ -26195,7 +29530,7 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
ipAddress_ = value;
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00100000;
onChanged();
return this;
}
@@ -26277,7 +29612,7 @@ public Builder setPublicIpAddress(java.lang.String value) {
throw new NullPointerException();
}
publicIpAddress_ = value;
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00200000;
onChanged();
return this;
}
@@ -26299,7 +29634,7 @@ public Builder setPublicIpAddress(java.lang.String value) {
*/
public Builder clearPublicIpAddress() {
publicIpAddress_ = getDefaultInstance().getPublicIpAddress();
- bitField0_ = (bitField0_ & ~0x00080000);
+ bitField0_ = (bitField0_ & ~0x00200000);
onChanged();
return this;
}
@@ -26326,7 +29661,7 @@ public Builder setPublicIpAddressBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
publicIpAddress_ = value;
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00200000;
onChanged();
return this;
}
@@ -26372,7 +29707,7 @@ public boolean getReconciling() {
public Builder setReconciling(boolean value) {
reconciling_ = value;
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00400000;
onChanged();
return this;
}
@@ -26393,7 +29728,7 @@ public Builder setReconciling(boolean value) {
* @return This builder for chaining.
*/
public Builder clearReconciling() {
- bitField0_ = (bitField0_ & ~0x00100000);
+ bitField0_ = (bitField0_ & ~0x00400000);
reconciling_ = false;
onChanged();
return this;
@@ -26464,7 +29799,7 @@ public Builder setEtag(java.lang.String value) {
throw new NullPointerException();
}
etag_ = value;
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00800000;
onChanged();
return this;
}
@@ -26482,7 +29817,7 @@ public Builder setEtag(java.lang.String value) {
*/
public Builder clearEtag() {
etag_ = getDefaultInstance().getEtag();
- bitField0_ = (bitField0_ & ~0x00200000);
+ bitField0_ = (bitField0_ & ~0x00800000);
onChanged();
return this;
}
@@ -26505,7 +29840,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
etag_ = value;
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00800000;
onChanged();
return this;
}
@@ -26530,7 +29865,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
if (!annotations_.isMutable()) {
annotations_ = annotations_.copy();
}
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x01000000;
onChanged();
return annotations_;
}
@@ -26628,7 +29963,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
}
public Builder clearAnnotations() {
- bitField0_ = (bitField0_ & ~0x00400000);
+ bitField0_ = (bitField0_ & ~0x01000000);
internalGetMutableAnnotations().getMutableMap().clear();
return this;
}
@@ -26655,7 +29990,7 @@ public Builder removeAnnotations(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy update_policy = 22;
*/
public com.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy.Builder getUpdatePolicyBuilder() {
- bitField0_ |= 0x00800000;
+ bitField0_ |= 0x02000000;
onChanged();
return internalGetUpdatePolicyFieldBuilder().getBuilder();
}
@@ -26945,7 +30280,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy.Builder getUpdateP
* @return Whether the clientConnectionConfig field is set.
*/
public boolean hasClientConnectionConfig() {
- return ((bitField0_ & 0x01000000) != 0);
+ return ((bitField0_ & 0x04000000) != 0);
}
/**
@@ -26993,7 +30328,7 @@ public Builder setClientConnectionConfig(
} else {
clientConnectionConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x01000000;
+ bitField0_ |= 0x04000000;
onChanged();
return this;
}
@@ -27016,7 +30351,7 @@ public Builder setClientConnectionConfig(
} else {
clientConnectionConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x01000000;
+ bitField0_ |= 0x04000000;
onChanged();
return this;
}
@@ -27035,7 +30370,7 @@ public Builder setClientConnectionConfig(
public Builder mergeClientConnectionConfig(
com.google.cloud.alloydb.v1alpha.Instance.ClientConnectionConfig value) {
if (clientConnectionConfigBuilder_ == null) {
- if (((bitField0_ & 0x01000000) != 0)
+ if (((bitField0_ & 0x04000000) != 0)
&& clientConnectionConfig_ != null
&& clientConnectionConfig_
!= com.google.cloud.alloydb.v1alpha.Instance.ClientConnectionConfig
@@ -27048,7 +30383,7 @@ public Builder mergeClientConnectionConfig(
clientConnectionConfigBuilder_.mergeFrom(value);
}
if (clientConnectionConfig_ != null) {
- bitField0_ |= 0x01000000;
+ bitField0_ |= 0x04000000;
onChanged();
}
return this;
@@ -27066,7 +30401,7 @@ public Builder mergeClientConnectionConfig(
*
*/
public Builder clearClientConnectionConfig() {
- bitField0_ = (bitField0_ & ~0x01000000);
+ bitField0_ = (bitField0_ & ~0x04000000);
clientConnectionConfig_ = null;
if (clientConnectionConfigBuilder_ != null) {
clientConnectionConfigBuilder_.dispose();
@@ -27089,7 +30424,7 @@ public Builder clearClientConnectionConfig() {
*/
public com.google.cloud.alloydb.v1alpha.Instance.ClientConnectionConfig.Builder
getClientConnectionConfigBuilder() {
- bitField0_ |= 0x01000000;
+ bitField0_ |= 0x04000000;
onChanged();
return internalGetClientConnectionConfigFieldBuilder().getBuilder();
}
@@ -27177,7 +30512,7 @@ public boolean getSatisfiesPzi() {
public Builder setSatisfiesPzi(boolean value) {
satisfiesPzi_ = value;
- bitField0_ |= 0x02000000;
+ bitField0_ |= 0x08000000;
onChanged();
return this;
}
@@ -27194,7 +30529,7 @@ public Builder setSatisfiesPzi(boolean value) {
* @return This builder for chaining.
*/
public Builder clearSatisfiesPzi() {
- bitField0_ = (bitField0_ & ~0x02000000);
+ bitField0_ = (bitField0_ & ~0x08000000);
satisfiesPzi_ = false;
onChanged();
return this;
@@ -27233,7 +30568,7 @@ public boolean getSatisfiesPzs() {
public Builder setSatisfiesPzs(boolean value) {
satisfiesPzs_ = value;
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x10000000;
onChanged();
return this;
}
@@ -27250,7 +30585,7 @@ public Builder setSatisfiesPzs(boolean value) {
* @return This builder for chaining.
*/
public Builder clearSatisfiesPzs() {
- bitField0_ = (bitField0_ & ~0x04000000);
+ bitField0_ = (bitField0_ & ~0x10000000);
satisfiesPzs_ = false;
onChanged();
return this;
@@ -27278,7 +30613,7 @@ public Builder clearSatisfiesPzs() {
* @return Whether the pscInstanceConfig field is set.
*/
public boolean hasPscInstanceConfig() {
- return ((bitField0_ & 0x08000000) != 0);
+ return ((bitField0_ & 0x20000000) != 0);
}
/**
@@ -27327,7 +30662,7 @@ public Builder setPscInstanceConfig(
} else {
pscInstanceConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x08000000;
+ bitField0_ |= 0x20000000;
onChanged();
return this;
}
@@ -27351,7 +30686,7 @@ public Builder setPscInstanceConfig(
} else {
pscInstanceConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x08000000;
+ bitField0_ |= 0x20000000;
onChanged();
return this;
}
@@ -27371,7 +30706,7 @@ public Builder setPscInstanceConfig(
public Builder mergePscInstanceConfig(
com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig value) {
if (pscInstanceConfigBuilder_ == null) {
- if (((bitField0_ & 0x08000000) != 0)
+ if (((bitField0_ & 0x20000000) != 0)
&& pscInstanceConfig_ != null
&& pscInstanceConfig_
!= com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig
@@ -27384,7 +30719,7 @@ public Builder mergePscInstanceConfig(
pscInstanceConfigBuilder_.mergeFrom(value);
}
if (pscInstanceConfig_ != null) {
- bitField0_ |= 0x08000000;
+ bitField0_ |= 0x20000000;
onChanged();
}
return this;
@@ -27403,7 +30738,7 @@ public Builder mergePscInstanceConfig(
*
*/
public Builder clearPscInstanceConfig() {
- bitField0_ = (bitField0_ & ~0x08000000);
+ bitField0_ = (bitField0_ & ~0x20000000);
pscInstanceConfig_ = null;
if (pscInstanceConfigBuilder_ != null) {
pscInstanceConfigBuilder_.dispose();
@@ -27427,7 +30762,7 @@ public Builder clearPscInstanceConfig() {
*/
public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.Builder
getPscInstanceConfigBuilder() {
- bitField0_ |= 0x08000000;
+ bitField0_ |= 0x20000000;
onChanged();
return internalGetPscInstanceConfigFieldBuilder().getBuilder();
}
@@ -27506,7 +30841,7 @@ public Builder clearPscInstanceConfig() {
* @return Whether the pscInstanceInfo field is set.
*/
public boolean hasPscInstanceInfo() {
- return ((bitField0_ & 0x10000000) != 0);
+ return ((bitField0_ & 0x40000000) != 0);
}
/**
@@ -27555,7 +30890,7 @@ public Builder setPscInstanceInfo(
} else {
pscInstanceInfoBuilder_.setMessage(value);
}
- bitField0_ |= 0x10000000;
+ bitField0_ |= 0x40000000;
onChanged();
return this;
}
@@ -27579,7 +30914,7 @@ public Builder setPscInstanceInfo(
} else {
pscInstanceInfoBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x10000000;
+ bitField0_ |= 0x40000000;
onChanged();
return this;
}
@@ -27599,7 +30934,7 @@ public Builder setPscInstanceInfo(
public Builder mergePscInstanceInfo(
com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo value) {
if (pscInstanceInfoBuilder_ == null) {
- if (((bitField0_ & 0x10000000) != 0)
+ if (((bitField0_ & 0x40000000) != 0)
&& pscInstanceInfo_ != null
&& pscInstanceInfo_
!= com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.getDefaultInstance()) {
@@ -27611,7 +30946,7 @@ public Builder mergePscInstanceInfo(
pscInstanceInfoBuilder_.mergeFrom(value);
}
if (pscInstanceInfo_ != null) {
- bitField0_ |= 0x10000000;
+ bitField0_ |= 0x40000000;
onChanged();
}
return this;
@@ -27630,7 +30965,7 @@ public Builder mergePscInstanceInfo(
*
*/
public Builder clearPscInstanceInfo() {
- bitField0_ = (bitField0_ & ~0x10000000);
+ bitField0_ = (bitField0_ & ~0x40000000);
pscInstanceInfo_ = null;
if (pscInstanceInfoBuilder_ != null) {
pscInstanceInfoBuilder_.dispose();
@@ -27654,7 +30989,7 @@ public Builder clearPscInstanceInfo() {
*/
public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.Builder
getPscInstanceInfoBuilder() {
- bitField0_ |= 0x10000000;
+ bitField0_ |= 0x40000000;
onChanged();
return internalGetPscInstanceInfoFieldBuilder().getBuilder();
}
@@ -27732,7 +31067,7 @@ public Builder clearPscInstanceInfo() {
* @return Whether the networkConfig field is set.
*/
public boolean hasNetworkConfig() {
- return ((bitField0_ & 0x20000000) != 0);
+ return ((bitField0_ & 0x80000000) != 0);
}
/**
@@ -27779,7 +31114,7 @@ public Builder setNetworkConfig(
} else {
networkConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x20000000;
+ bitField0_ |= 0x80000000;
onChanged();
return this;
}
@@ -27802,7 +31137,7 @@ public Builder setNetworkConfig(
} else {
networkConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x20000000;
+ bitField0_ |= 0x80000000;
onChanged();
return this;
}
@@ -27821,7 +31156,7 @@ public Builder setNetworkConfig(
public Builder mergeNetworkConfig(
com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig value) {
if (networkConfigBuilder_ == null) {
- if (((bitField0_ & 0x20000000) != 0)
+ if (((bitField0_ & 0x80000000) != 0)
&& networkConfig_ != null
&& networkConfig_
!= com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig
@@ -27834,7 +31169,7 @@ public Builder mergeNetworkConfig(
networkConfigBuilder_.mergeFrom(value);
}
if (networkConfig_ != null) {
- bitField0_ |= 0x20000000;
+ bitField0_ |= 0x80000000;
onChanged();
}
return this;
@@ -27852,7 +31187,7 @@ public Builder mergeNetworkConfig(
*
*/
public Builder clearNetworkConfig() {
- bitField0_ = (bitField0_ & ~0x20000000);
+ bitField0_ = (bitField0_ & ~0x80000000);
networkConfig_ = null;
if (networkConfigBuilder_ != null) {
networkConfigBuilder_.dispose();
@@ -27875,7 +31210,7 @@ public Builder clearNetworkConfig() {
*/
public com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig.Builder
getNetworkConfigBuilder() {
- bitField0_ |= 0x20000000;
+ bitField0_ |= 0x80000000;
onChanged();
return internalGetNetworkConfigFieldBuilder().getBuilder();
}
@@ -27950,12 +31285,12 @@ public Builder clearNetworkConfig() {
*
*
* @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See
- * google/cloud/alloydb/v1alpha/resources.proto;l=1399
+ * google/cloud/alloydb/v1alpha/resources.proto;l=1478
* @return Whether the geminiConfig field is set.
*/
@java.lang.Deprecated
public boolean hasGeminiConfig() {
- return ((bitField0_ & 0x40000000) != 0);
+ return ((bitField1_ & 0x00000001) != 0);
}
/**
@@ -27971,7 +31306,7 @@ public boolean hasGeminiConfig() {
*
*
* @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See
- * google/cloud/alloydb/v1alpha/resources.proto;l=1399
+ * google/cloud/alloydb/v1alpha/resources.proto;l=1478
* @return The geminiConfig.
*/
@java.lang.Deprecated
@@ -28007,7 +31342,7 @@ public Builder setGeminiConfig(com.google.cloud.alloydb.v1alpha.GeminiInstanceCo
} else {
geminiConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x40000000;
+ bitField1_ |= 0x00000001;
onChanged();
return this;
}
@@ -28032,7 +31367,7 @@ public Builder setGeminiConfig(
} else {
geminiConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x40000000;
+ bitField1_ |= 0x00000001;
onChanged();
return this;
}
@@ -28052,7 +31387,7 @@ public Builder setGeminiConfig(
@java.lang.Deprecated
public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1alpha.GeminiInstanceConfig value) {
if (geminiConfigBuilder_ == null) {
- if (((bitField0_ & 0x40000000) != 0)
+ if (((bitField1_ & 0x00000001) != 0)
&& geminiConfig_ != null
&& geminiConfig_
!= com.google.cloud.alloydb.v1alpha.GeminiInstanceConfig.getDefaultInstance()) {
@@ -28064,7 +31399,7 @@ public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1alpha.GeminiInstance
geminiConfigBuilder_.mergeFrom(value);
}
if (geminiConfig_ != null) {
- bitField0_ |= 0x40000000;
+ bitField1_ |= 0x00000001;
onChanged();
}
return this;
@@ -28084,7 +31419,7 @@ public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1alpha.GeminiInstance
*/
@java.lang.Deprecated
public Builder clearGeminiConfig() {
- bitField0_ = (bitField0_ & ~0x40000000);
+ bitField1_ = (bitField1_ & ~0x00000001);
geminiConfig_ = null;
if (geminiConfigBuilder_ != null) {
geminiConfigBuilder_.dispose();
@@ -28108,7 +31443,7 @@ public Builder clearGeminiConfig() {
*/
@java.lang.Deprecated
public com.google.cloud.alloydb.v1alpha.GeminiInstanceConfig.Builder getGeminiConfigBuilder() {
- bitField0_ |= 0x40000000;
+ bitField1_ |= 0x00000001;
onChanged();
return internalGetGeminiConfigFieldBuilder().getBuilder();
}
@@ -28174,7 +31509,7 @@ private void ensureOutboundPublicIpAddressesIsMutable() {
outboundPublicIpAddresses_ =
new com.google.protobuf.LazyStringArrayList(outboundPublicIpAddresses_);
}
- bitField0_ |= 0x80000000;
+ bitField1_ |= 0x00000002;
}
/**
@@ -28269,7 +31604,7 @@ public Builder setOutboundPublicIpAddresses(int index, java.lang.String value) {
}
ensureOutboundPublicIpAddressesIsMutable();
outboundPublicIpAddresses_.set(index, value);
- bitField0_ |= 0x80000000;
+ bitField1_ |= 0x00000002;
onChanged();
return this;
}
@@ -28294,7 +31629,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) {
}
ensureOutboundPublicIpAddressesIsMutable();
outboundPublicIpAddresses_.add(value);
- bitField0_ |= 0x80000000;
+ bitField1_ |= 0x00000002;
onChanged();
return this;
}
@@ -28316,7 +31651,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) {
public Builder addAllOutboundPublicIpAddresses(java.lang.Iterable+ * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the queryInsightsInfo field is set.
+ */
+ boolean hasQueryInsightsInfo();
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The queryInsightsInfo.
+ */
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo getQueryInsightsInfo();
+
+ /**
+ *
+ *
+ * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *
+ * .google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfoOrBuilder
+ getQueryInsightsInfoOrBuilder();
+
/**
*
*
@@ -820,6 +873,60 @@ java.lang.String getDatabaseFlagsOrDefault(
com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfigOrBuilder
getObservabilityConfigOrBuilder();
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the observabilityInstanceInfo field is set.
+ */
+ boolean hasObservabilityInstanceInfo();
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The observabilityInstanceInfo.
+ */
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo
+ getObservabilityInstanceInfo();
+
+ /**
+ *
+ *
+ * + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *
+ * .google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceInfoOrBuilder
+ getObservabilityInstanceInfoOrBuilder();
+
/**
*
*
@@ -1304,7 +1411,7 @@ java.lang.String getAnnotationsOrDefault(
*
*
* @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See
- * google/cloud/alloydb/v1alpha/resources.proto;l=1399
+ * google/cloud/alloydb/v1alpha/resources.proto;l=1478
* @return Whether the geminiConfig field is set.
*/
@java.lang.Deprecated
@@ -1323,7 +1430,7 @@ java.lang.String getAnnotationsOrDefault(
*
*
* @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See
- * google/cloud/alloydb/v1alpha/resources.proto;l=1399
+ * google/cloud/alloydb/v1alpha/resources.proto;l=1478
* @return The geminiConfig.
*/
@java.lang.Deprecated
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ResourcesProto.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ResourcesProto.java
index b153392295d4..11d91a5469b9 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ResourcesProto.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ResourcesProto.java
@@ -168,10 +168,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceConfig_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_alloydb_v1alpha_Instance_ReadPoolConfig_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -505,7 +513,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\tSECONDARY\020\002:u\352Ar\n"
+ "\036alloydb.googleapis.com/Cluster\022:projects/{project}/locat"
+ "ions/{location}/clusters/{cluster}*\010clusters2\007clusterR\001\001B\010\n"
- + "\006source\"\262/\n"
+ + "\006source\"\3535\n"
+ "\010Instance\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\003\022\024\n"
+ "\014display_name\030\002 \001(\t\022\020\n"
@@ -531,40 +539,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005nodes\030\024"
+ " \003(\0132+.google.cloud.alloydb.v1alpha.Instance.NodeB\003\340A\003\022a\n"
+ "\025query_insights_config\030\025 \001(\0132B.google.clo"
- + "ud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig\022`\n"
- + "\024observability_config\030\032"
- + " \001(\0132B.google.cloud.alloydb.v1alpha.Instance.ObservabilityInstanceConfig\022O\n"
- + "\020read_pool_config\030\016"
- + " \001(\01325.google.cloud.alloydb.v1alpha.Instance.ReadPoolConfig\022\027\n\n"
+ + "ud.alloydb.v1alpha.Instance.QueryInsightsInstanceConfig\022b\n"
+ + "\023query_insights_info\030/"
+ + " \001(\0132@.google.cloud.alloydb.v1alpha.Instance.QueryInsightsInstanceInfoB\003\340A\003\022`\n"
+ + "\024observability_config\030\032 \001(\0132B.google.cloud"
+ + ".alloydb.v1alpha.Instance.ObservabilityInstanceConfig\022j\n"
+ + "\033observability_instance_info\030, \001(\0132@.google.cloud.alloydb.v1alph"
+ + "a.Instance.ObservabilityInstanceInfoB\003\340A\003\022O\n"
+ + "\020read_pool_config\030\016 \001(\01325.google.clo"
+ + "ud.alloydb.v1alpha.Instance.ReadPoolConfig\022\027\n\n"
+ "ip_address\030\017 \001(\tB\003\340A\003\022&\n"
+ "\021public_ip_address\030\033 \001("
+ "\tB\013\340A\003\342\214\317\327\010\002\010\002\022\030\n"
+ "\013reconciling\030\020 \001(\010B\003\340A\003\022\014\n"
+ "\004etag\030\021 \001(\t\022L\n"
- + "\013annotations\030\022 \003(\013"
- + "27.google.cloud.alloydb.v1alpha.Instance.AnnotationsEntry\022J\n\r"
- + "update_policy\030\026 \001(\013"
- + "23.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy\022d\n"
- + "\030client_connection_config\030\027"
- + " \001(\0132=.google.cloud.alloydb.v1alpha.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r"
+ + "\013annotations\030\022"
+ + " \003(\01327.google.cloud.alloydb.v1alpha.Instance.AnnotationsEntry\022J\n\r"
+ + "update_policy\030\026"
+ + " \001(\01323.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy\022d\n"
+ + "\030client_connection_config\030\027 \001(\0132=.google.cloud.alloydb.v"
+ + "1alpha.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r"
+ "satisfies_pzi\030\036 \001(\010B\003\340A\003\022\032\n\r"
+ "satisfies_pzs\030\030 \001(\010B\003\340A\003\022Z\n"
- + "\023psc_instance_config\030\034 \001(\013"
- + "28.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfigB\003\340A\001\022V\n"
- + "\021psc_instance_info\030."
- + " \001(\01326.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfoB\003\340A\003\022Y\n"
- + "\016network_config\030\035 \001(\0132<.google.cloud.alloydb.v"
- + "1alpha.Instance.InstanceNetworkConfigB\003\340A\001\022P\n\r"
- + "gemini_config\030! \001(\01322.google.cloud"
- + ".alloydb.v1alpha.GeminiInstanceConfigB\005\030\001\340A\001\0221\n"
+ + "\023psc_instance_config\030\034"
+ + " \001(\01328.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfigB\003\340A\001\022V\n"
+ + "\021psc_instance_info\030. \001(\01326.google.cloud.alloyd"
+ + "b.v1alpha.Instance.PscInstanceInfoB\003\340A\003\022Y\n"
+ + "\016network_config\030\035 \001(\0132<.google.cloud.a"
+ + "lloydb.v1alpha.Instance.InstanceNetworkConfigB\003\340A\001\022P\n\r"
+ + "gemini_config\030! \001(\01322.goog"
+ + "le.cloud.alloydb.v1alpha.GeminiInstanceConfigB\005\030\001\340A\001\0221\n"
+ "\034outbound_public_ip_addresses\030\" \003("
+ "\tB\013\340A\003\342\214\317\327\010\002\010\002\022W\n"
- + "\021activation_policy\030# \001"
- + "(\01627.google.cloud.alloydb.v1alpha.Instance.ActivationPolicyB\003\340A\001\022`\n"
- + "\026connection_pool_config\030% \001(\0132;.google.cloud.alloydb."
- + "v1alpha.Instance.ConnectionPoolConfigB\003\340A\001\022H\n\n"
- + "gca_config\030&"
- + " \001(\0132/.google.cloud.alloydb.v1alpha.GCAInstanceConfigB\003\340A\003\0328\n\r"
+ + "\021activation_policy\030#"
+ + " \001(\01627.google.cloud.alloydb.v1alpha.Instance.ActivationPolicyB\003\340A\001\022`\n"
+ + "\026connection_pool_config\030% \001(\0132;.google.cloud."
+ + "alloydb.v1alpha.Instance.ConnectionPoolConfigB\003\340A\001\022H\n\n"
+ + "gca_config\030& \001(\0132/.google."
+ + "cloud.alloydb.v1alpha.GCAInstanceConfigB\003\340A\003\0328\n\r"
+ "MachineConfig\022\021\n"
+ "\tcpu_count\030\001 \001(\005\022\024\n"
+ "\014machine_type\030\004 \001(\t\032R\n"
@@ -582,7 +594,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "H\002\210\001\001B\032\n"
+ "\030_record_application_tagsB\030\n"
+ "\026_record_client_addressB\031\n"
- + "\027_query_plans_per_minute\032\372\004\n"
+ + "\027_query_plans_per_minute\032\302\001\n"
+ + "\031QueryInsightsInstanceInfo\022\024\n"
+ + "\007enabled\030\001 \001(\010B\003\340A\003\022$\n"
+ + "\027record_application_tags\030\002 \001(\010B\003\340A\003\022\"\n"
+ + "\025record_client_address\030\003 \001(\010B\003\340A\003\022 \n"
+ + "\023query_string_length\030\004 \001(\r"
+ + "B\003\340A\003\022#\n"
+ + "\026query_plans_per_minute\030\005 \001(\r"
+ + "B\003\340A\003\032\372\004\n"
+ "\033ObservabilityInstanceConfig\022\024\n"
+ "\007enabled\030\001 \001(\010H\000\210\001\001\022\036\n"
+ "\021preserve_comments\030\002 \001(\010H\001\210\001\001\022\036\n"
@@ -604,20 +624,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\027_query_plans_per_minuteB\027\n"
+ "\025_track_active_queriesB\027\n"
+ "\025_track_client_addressB \n"
- + "\036_assistive_experiences_enabled\032$\n"
+ + "\036_assistive_experiences_enabled\032\241\003\n"
+ + "\031ObservabilityInstanceInfo\022\024\n"
+ + "\007enabled\030\002 \001(\010B\003\340A\003\022\036\n"
+ + "\021preserve_comments\030\003 \001(\010B\003\340A\003\022\036\n"
+ + "\021track_wait_events\030\004 \001(\010B\003\340A\003\022#\n"
+ + "\026track_wait_event_types\030\005 \001(\010B\003\340A\003\022$\n"
+ + "\027max_query_string_length\030\006 \001(\005B\003\340A\003\022$\n"
+ + "\027record_application_tags\030\007 \001(\010B\003\340A\003\022#\n"
+ + "\026query_plans_per_minute\030\010 \001(\005B\003\340A\003\022!\n"
+ + "\024track_active_queries\030\t \001(\010B\003\340A\003\022!\n"
+ + "\024track_client_address\030\n"
+ + " \001(\010B\003\340A\003\022*\n"
+ + "\035assistive_experiences_enabled\030\013 \001(\010B\003\340A\003\022&\n"
+ + "\027track_active_query_plan\030\r"
+ + " \001(\010B\005\030\001\340A\003\032$\n"
+ "\016ReadPoolConfig\022\022\n\n"
+ "node_count\030\001 \001(\005\032\222\001\n"
+ "\014UpdatePolicy\022F\n"
- + "\004mode\030\001"
- + " \001(\01628.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy.Mode\":\n"
+ + "\004mode\030\001 \001"
+ + "(\01628.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy.Mode\":\n"
+ "\004Mode\022\024\n"
+ "\020MODE_UNSPECIFIED\020\000\022\013\n"
+ "\007DEFAULT\020\001\022\017\n"
+ "\013FORCE_APPLY\020\002\032{\n"
+ "\026ClientConnectionConfig\022\037\n"
+ "\022require_connectors\030\001 \001(\010B\003\340A\001\022@\n\n"
- + "ssl_config\030\002"
- + " \001(\0132\'.google.cloud.alloydb.v1alpha.SslConfigB\003\340A\001\0329\n"
+ + "ssl_config\030\002 \001(\0132"
+ + "\'.google.cloud.alloydb.v1alpha.SslConfigB\003\340A\001\0329\n"
+ "\022PscInterfaceConfig\022#\n"
+ "\033network_attachment_resource\030\001 \001(\t\032\251\001\n"
+ "\027PscAutoConnectionConfig\022\030\n"
@@ -631,15 +665,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "(compute.googleapis.com/ServiceAttachment\022&\n"
+ "\031allowed_consumer_projects\030\002 \003(\tB\003\340A\001\022\031\n"
+ "\014psc_dns_name\030\007 \001(\tB\003\340A\003\022]\n"
- + "\025psc_interface_configs\030\010 \003(\01329.google.cloud.alloydb.v1"
- + "alpha.Instance.PscInterfaceConfigB\003\340A\001\022a\n"
- + "\024psc_auto_connections\030\t \003(\0132>.google.cl"
- + "oud.alloydb.v1alpha.Instance.PscAutoConnectionConfigB\003\340A\001\022W\n"
- + "\022psc_auto_dns_state\030\013"
- + " \001(\01626.google.cloud.alloydb.v1alpha.Instance.PscAutoDnsStateB\003\340A\001\022\204\001\n"
+ + "\025psc_interface_configs\030\010 \003(\0132"
+ + "9.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigB\003\340A\001\022a\n"
+ + "\024psc_auto_connections\030\t \003(\0132>.google.cloud.alloydb.v1a"
+ + "lpha.Instance.PscAutoConnectionConfigB\003\340A\001\022W\n"
+ + "\022psc_auto_dns_state\030\013 \001(\01626.google."
+ + "cloud.alloydb.v1alpha.Instance.PscAutoDnsStateB\003\340A\001\022\204\001\n"
+ " psc_auto_connection_policy_state\030\r"
- + " \001(\0162U.google.cloud.alloydb.v1alpha.Instance.PscInstanc"
- + "eConfig.PscAutoConnectionPolicyStateB\003\340A\001\"k\n"
+ + " \001(\0162U.google.cloud.alloydb.v1"
+ + "alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyStateB\003\340A\001\"k\n"
+ "\034PscAutoConnectionPolicyState\0220\n"
+ ",PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED\020\000\022\013\n"
+ "\007ENABLED\020\001\022\014\n"
@@ -650,9 +684,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "$effective_psc_auto_connection_policy\030\003 \001(\010B\003\340A\003\022&\n"
+ "\031service_connection_policy\030\004 \001(\tB\003\340A\003\032\357\002\n"
+ "\025InstanceNetworkConfig\022y\n"
- + "\034authorized_external_networks\030\001 "
- + "\003(\0132N.google.cloud.alloydb.v1alpha.Insta"
- + "nce.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n"
+ + "\034authorized_external_networks\030\001 \003(\0132N.google.cl"
+ + "oud.alloydb.v1alpha.Instance.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n"
+ "\020enable_public_ip\030\002 \001(\010B\003\340A\001\022&\n"
+ "\031enable_outbound_public_ip\030\003 \001(\010B\003\340A\001\0227\n"
+ "\007network\030\004 \001(\tB&\340A\003\372A \n"
@@ -663,8 +696,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\024ConnectionPoolConfig\022\024\n"
+ "\007enabled\030\014 \001(\010B\003\340A\001\022Z\n"
+ "\005flags\030\r"
- + " \003(\0132F.google.cloud.alloydb.v1alp"
- + "ha.Instance.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n"
+ + " \003(\0132F.g"
+ + "oogle.cloud.alloydb.v1alpha.Instance.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n"
+ "\014pooler_count\030\016 \001(\005B\003\340A\003\032,\n\n"
+ "FlagsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
@@ -705,8 +738,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\035ACTIVATION_POLICY_UNSPECIFIED\020\000\022\n\n"
+ "\006ALWAYS\020\001\022\t\n"
+ "\005NEVER\020\002:\216\001\352A\212\001\n"
- + "\037alloydb.googleapis.com/Instance\022Oprojects"
- + "/{project}/locations/{location}/clusters/{cluster}/instances/{instance}*"
+ + "\037alloydb.googleapis.com/Instance\022Oprojects/{project}/loca"
+ + "tions/{location}/clusters/{cluster}/instances/{instance}*"
+ "\tinstances2\010instanceR\001\001\"\212\003\n"
+ "\016ConnectionInfo\022\014\n"
+ "\004name\030\001 \001(\t\022\027\n\n"
@@ -717,9 +750,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\014instance_uid\030\004 \001(\tB\003\340A\003\022\031\n"
+ "\014psc_dns_name\030\006 \001(\tB\003\340A\003\022\036\n"
+ "\021psc_auto_dns_name\030\t \001(\tB\003\340A\003:\254\001\352A\250\001\n"
- + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{project}/locations/{locat"
- + "ion}/clusters/{cluster}/instances/{insta"
- + "nce}/connectionInfo*\017connectionInfos2\016connectionInfo\"\316\r\n"
+ + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{"
+ + "project}/locations/{location}/clusters/{"
+ + "cluster}/instances/{instance}/connectionInfo*\017connectionInfos2\016connectionInfo\"\316\r"
+ + "\n"
+ "\006Backup\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\003\022\024\n"
+ "\014display_name\030\002 \001(\t\022\020\n"
@@ -730,8 +764,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\026create_completion_time\030\032"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022@\n"
+ "\006labels\030\006 \003(\01320.google.cloud.alloydb.v1alpha.Backup.LabelsEntry\022>\n"
- + "\005state\030\007 \001(\0162*.google."
- + "cloud.alloydb.v1alpha.Backup.StateB\003\340A\003\0227\n"
+ + "\005state\030\007"
+ + " \001(\0162*.google.cloud.alloydb.v1alpha.Backup.StateB\003\340A\003\0227\n"
+ "\004type\030\010 \001(\0162).google.cloud.alloydb.v1alpha.Backup.Type\022\023\n"
+ "\013description\030\t \001(\t\022\030\n"
+ "\013cluster_uid\030\022 \001(\tB\003\340A\003\022<\n"
@@ -739,22 +773,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ " \001(\tB&\340A\002\372A \n"
+ "\036alloydb.googleapis.com/Cluster\022\030\n"
+ "\013reconciling\030\013 \001(\010B\003\340A\003\022N\n"
- + "\021encryption_config\030\014"
- + " \001(\0132..google.cloud.alloydb.v1alpha.EncryptionConfigB\003\340A\001\022J\n"
+ + "\021encryption_config\030\014 "
+ + "\001(\0132..google.cloud.alloydb.v1alpha.EncryptionConfigB\003\340A\001\022J\n"
+ "\017encryption_info\030\r"
+ " \001(\0132,.google.cloud.alloydb.v1alpha.EncryptionInfoB\003\340A\003\022\014\n"
+ "\004etag\030\016 \001(\t\022J\n"
+ "\013annotations\030\020"
- + " \003(\01325.google.cloud.alloydb.v1alpha.Backup.AnnotationsEntry\022\027\n"
- + "\n"
+ + " \003(\01325.google.cloud.alloydb.v1alpha.Backup.AnnotationsEntry\022\027\n\n"
+ "size_bytes\030\021 \001(\003B\003\340A\003\0224\n"
+ "\013expiry_time\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022V\n"
- + "\017expiry_quantity\030\024 \001(\01328.google.cloud.all"
- + "oydb.v1alpha.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r"
+ + "\017expiry_quantity\030\024"
+ + " \001(\01328.google.cloud.alloydb.v1alpha.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r"
+ "satisfies_pzi\030\027 \001(\010B\003\340A\003\022\032\n\r"
+ "satisfies_pzs\030\025 \001(\010B\003\340A\003\022L\n"
- + "\020database_version\030\026"
- + " \001(\0162-.google.cloud.alloydb.v1alpha.DatabaseVersionB\003\340A\003\022G\n"
+ + "\020database_version\030\026 \001(\0162-.google"
+ + ".cloud.alloydb.v1alpha.DatabaseVersionB\003\340A\003\022G\n"
+ "\004tags\030\031 \003(\0132..google.cloud.alloydb.v1alpha.Backup.TagsEntryB"
+ "\t\340A\004\340A\005\340A\001\032W\n"
+ "\023QuantityBasedExpiry\022\034\n"
@@ -772,7 +805,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005State\022\025\n"
+ "\021STATE_UNSPECIFIED\020\000\022\t\n"
+ "\005READY\020\001\022\014\n"
- + "\010CREATING\020\002\022\n\n"
+ + "\010CREA",
+ "TING\020\002\022\n\n"
+ "\006FAILED\020\003\022\014\n"
+ "\010DELETING\020\004\"J\n"
+ "\004Type\022\024\n"
@@ -780,28 +814,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\tON_DEMAND\020\001\022\r\n"
+ "\tAUTOMATED\020\002\022\016\n\n"
+ "CONTINUOUS\020\003:p\352Am\n"
- + "\035alloydb.googleapis.com/Backup\022"
- + "8projects/{project}/locations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\225"
- + "\t\n"
+ + "\035alloydb.googleapis.com/Backup\0228projects/{proj"
+ + "ect}/locations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\225\t\n"
+ "\025SupportedDatabaseFlag\022e\n"
- + "\023string_restrictions\030\007 \001(\0132F.google.cloud.alloydb.v1al"
- + "pha.SupportedDatabaseFlag.StringRestrictionsH\000\022g\n"
- + "\024integer_restrictions\030\010 \001(\0132G.g"
- + "oogle.cloud.alloydb.v1alpha.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\n"
+ + "\023string_restrictions\030\007 \001(\0132F."
+ + "google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.StringRestrictionsH\000\022g\n"
+ + "\024integer_restrictions\030\010 \001(\0132G.google.cloud.all"
+ + "oydb.v1alpha.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\n"
+ "\030recommended_string_value\030\n"
+ " \001(\tH\001\022@\n"
+ "\031recommended_integer_value\030\013"
+ " \001(\0132\033.google.protobuf.Int64ValueH\001\022\014\n"
+ "\004name\030\001 \001(\t\022\021\n"
+ "\tflag_name\030\002 \001(\t\022Q\n\n"
- + "value_type\030\003 \001(\0162=.google.clou"
- + "d.alloydb.v1alpha.SupportedDatabaseFlag.ValueType\022\037\n"
+ + "value_type\030\003"
+ + " \001(\0162=.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.ValueType\022\037\n"
+ "\027accepts_multiple_values\030\004 \001(\010\022L\n"
- + "\025supported_db_versions\030\005 \003(\0162-.goog"
- + "le.cloud.alloydb.v1alpha.DatabaseVersion\022\033\n"
+ + "\025supported_db_versions\030\005"
+ + " \003(\0162-.google.cloud.alloydb.v1alpha.DatabaseVersion\022\033\n"
+ "\023requires_db_restart\030\006 \001(\010\022H\n"
- + "\005scope\030\t",
- " \001(\01629.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope\032,\n"
+ + "\005scope\030\t \001(\01629.google.c"
+ + "loud.alloydb.v1alpha.SupportedDatabaseFlag.Scope\032,\n"
+ "\022StringRestrictions\022\026\n"
+ "\016allowed_values\030\001 \003(\t\032u\n"
+ "\023IntegerRestrictions\022.\n"
@@ -817,24 +850,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021SCOPE_UNSPECIFIED\020\000\022\014\n"
+ "\010DATABASE\020\001\022\023\n"
+ "\017CONNECTION_POOL\020\002:\227\001\352A\223\001\n"
- + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224pro"
- + "jects/{project}/locations/{location}/fla"
- + "gs/{flag}*\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n"
+ + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224projects/{project}"
+ + "/locations/{location}/flags/{flag}*\026supp"
+ + "ortedDatabaseFlags2\025supportedDatabaseFlagB\016\n"
+ "\014restrictionsB\023\n"
+ "\021recommended_value\"\377\002\n"
+ "\004User\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\003\022\025\n"
+ "\010password\030\002 \001(\tB\003\340A\004\022\033\n"
+ "\016database_roles\030\004 \003(\tB\003\340A\001\022C\n"
- + "\tuser_type\030\005 \001(\0162+.googl"
- + "e.cloud.alloydb.v1alpha.User.UserTypeB\003\340A\001\022\035\n"
+ + "\tuser_type\030\005"
+ + " \001(\0162+.google.cloud.alloydb.v1alpha.User.UserTypeB\003\340A\001\022\035\n"
+ "\020keep_extra_roles\030\006 \001(\010B\003\340A\004\"Q\n"
+ "\010UserType\022\031\n"
+ "\025USER_TYPE_UNSPECIFIED\020\000\022\024\n"
+ "\020ALLOYDB_BUILT_IN\020\001\022\024\n"
+ "\020ALLOYDB_IAM_USER\020\002:y\352Av\n"
- + "\033alloydb.googleapis.com/User\022Gprojects/{project}/locations/{location}/clusters"
- + "/{cluster}/users/{user}*\005users2\004userR\001\001\"\202\003\n"
+ + "\033alloydb.googleapis.com/User\022Gprojects/{project}/loca"
+ + "tions/{location}/clusters/{cluster}/users/{user}*\005users2\004userR\001\001\"\202\003\n"
+ "\010Database\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\010\022\027\n"
+ "\007charset\030\002 \001(\tB\006\340A\001\340A\005\022\031\n"
@@ -844,9 +877,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021database_template\030\006 \001(\tB\006\340A\004\340A\005\022&\n"
+ "\024is_template_database\030\007"
+ " \001(\010B\003\340A\001H\000\210\001\001:\216\001\352A\212\001\n"
- + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/l"
- + "ocations/{location}/clusters/{cluster}/databases/{database}*"
- + "\tdatabases2\010databaseR\001\001B\027\n"
+ + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/locations/{locat"
+ + "ion}/clusters/{cluster}/databases/{database}*\tdatabases2\010databaseR\001\001B\027\n"
+ "\025_is_template_database*^\n"
+ "\014InstanceView\022\035\n"
+ "\031INSTANCE_VIEW_UNSPECIFIED\020\000\022\027\n"
@@ -869,19 +901,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\035SUBSCRIPTION_TYPE_UNSPECIFIED\020\000\022\014\n"
+ "\010STANDARD\020\001\022\t\n"
+ "\005TRIAL\020\002B\300\005\n"
- + " com.google.cloud.alloydb.v1alphaB\016ResourcesProtoP\001Z:cloud.google.com/"
- + "go/alloydb/apiv1alpha/alloydbpb;alloydbp"
- + "b\252\002\034Google.Cloud.AlloyDb.V1Alpha\312\002\034Googl"
- + "e\\Cloud\\AlloyDb\\V1alpha\352\002\037Google::Cloud::AlloyDB::V1alpha\352A\246\001\n"
- + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{proje"
- + "ct}/locations/{location}/keyRings/{key_r"
- + "ing}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n"
- + "\036compute."
- + "googleapis.com/Network\022,projects/{project}/global/networks/{network}\352Ax\n"
- + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{pr"
- + "oject}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352Aw\n"
- + "(compute.googleapis.com/ServiceAttachment\022Kpr"
- + "ojects/{project}/regions/{region}/serviceAttachments/{service_attachment}b\006proto3"
+ + " com.google.cloud.alloydb.v1alphaB\016ResourcesP"
+ + "rotoP\001Z:cloud.google.com/go/alloydb/apiv"
+ + "1alpha/alloydbpb;alloydbpb\252\002\034Google.Clou"
+ + "d.AlloyDb.V1Alpha\312\002\034Google\\Cloud\\AlloyDb"
+ + "\\V1alpha\352\002\037Google::Cloud::AlloyDB::V1alpha\352A\246\001\n"
+ + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/locations/{"
+ + "location}/keyRings/{key_ring}/cryptoKeys"
+ + "/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n"
+ + "\036compute.googleapis.com/"
+ + "Network\022,projects/{project}/global/networks/{network}\352Ax\n"
+ + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/location"
+ + "s/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352Aw\n"
+ + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{project"
+ + "}/regions/{region}/serviceAttachments/{service_attachment}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -1198,7 +1231,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"WritableNode",
"Nodes",
"QueryInsightsConfig",
+ "QueryInsightsInfo",
"ObservabilityConfig",
+ "ObservabilityInstanceInfo",
"ReadPoolConfig",
"IpAddress",
"PublicIpAddress",
@@ -1245,8 +1280,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"QueryStringLength",
"QueryPlansPerMinute",
});
- internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_descriptor =
+ internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_descriptor =
internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(3);
+ internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_alloydb_v1alpha_Instance_QueryInsightsInstanceInfo_descriptor,
+ new java.lang.String[] {
+ "Enabled",
+ "RecordApplicationTags",
+ "RecordClientAddress",
+ "QueryStringLength",
+ "QueryPlansPerMinute",
+ });
+ internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_descriptor =
+ internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(4);
internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceConfig_descriptor,
@@ -1262,8 +1309,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"TrackClientAddress",
"AssistiveExperiencesEnabled",
});
+ internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_descriptor =
+ internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(5);
+ internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_alloydb_v1alpha_Instance_ObservabilityInstanceInfo_descriptor,
+ new java.lang.String[] {
+ "Enabled",
+ "PreserveComments",
+ "TrackWaitEvents",
+ "TrackWaitEventTypes",
+ "MaxQueryStringLength",
+ "RecordApplicationTags",
+ "QueryPlansPerMinute",
+ "TrackActiveQueries",
+ "TrackClientAddress",
+ "AssistiveExperiencesEnabled",
+ "TrackActiveQueryPlan",
+ });
internal_static_google_cloud_alloydb_v1alpha_Instance_ReadPoolConfig_descriptor =
- internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(4);
+ internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(6);
internal_static_google_cloud_alloydb_v1alpha_Instance_ReadPoolConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1alpha_Instance_ReadPoolConfig_descriptor,
@@ -1271,7 +1336,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"NodeCount",
});
internal_static_google_cloud_alloydb_v1alpha_Instance_UpdatePolicy_descriptor =
- internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(5);
+ internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(7);
internal_static_google_cloud_alloydb_v1alpha_Instance_UpdatePolicy_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1alpha_Instance_UpdatePolicy_descriptor,
@@ -1279,7 +1344,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Mode",
});
internal_static_google_cloud_alloydb_v1alpha_Instance_ClientConnectionConfig_descriptor =
- internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(6);
+ internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(8);
internal_static_google_cloud_alloydb_v1alpha_Instance_ClientConnectionConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1alpha_Instance_ClientConnectionConfig_descriptor,
@@ -1287,7 +1352,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"RequireConnectors", "SslConfig",
});
internal_static_google_cloud_alloydb_v1alpha_Instance_PscInterfaceConfig_descriptor =
- internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(7);
+ internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(9);
internal_static_google_cloud_alloydb_v1alpha_Instance_PscInterfaceConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1alpha_Instance_PscInterfaceConfig_descriptor,
@@ -1295,7 +1360,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"NetworkAttachmentResource",
});
internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_descriptor =
- internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(8);
+ internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(10);
internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_descriptor,
@@ -1303,7 +1368,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ConsumerProject", "ConsumerNetwork", "IpAddress", "Status", "ConsumerNetworkStatus",
});
internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_descriptor =
- internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(9);
+ internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(11);
internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_descriptor,
@@ -1317,7 +1382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"PscAutoConnectionPolicyState",
});
internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceInfo_descriptor =
- internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(10);
+ internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(12);
internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceInfo_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceInfo_descriptor,
@@ -1328,7 +1393,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ServiceConnectionPolicy",
});
internal_static_google_cloud_alloydb_v1alpha_Instance_InstanceNetworkConfig_descriptor =
- internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(11);
+ internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(13);
internal_static_google_cloud_alloydb_v1alpha_Instance_InstanceNetworkConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1alpha_Instance_InstanceNetworkConfig_descriptor,
@@ -1349,7 +1414,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"CidrRange",
});
internal_static_google_cloud_alloydb_v1alpha_Instance_ConnectionPoolConfig_descriptor =
- internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(12);
+ internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(14);
internal_static_google_cloud_alloydb_v1alpha_Instance_ConnectionPoolConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1alpha_Instance_ConnectionPoolConfig_descriptor,
@@ -1366,7 +1431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Key", "Value",
});
internal_static_google_cloud_alloydb_v1alpha_Instance_LabelsEntry_descriptor =
- internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(13);
+ internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(15);
internal_static_google_cloud_alloydb_v1alpha_Instance_LabelsEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1alpha_Instance_LabelsEntry_descriptor,
@@ -1374,7 +1439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Key", "Value",
});
internal_static_google_cloud_alloydb_v1alpha_Instance_DatabaseFlagsEntry_descriptor =
- internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(14);
+ internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(16);
internal_static_google_cloud_alloydb_v1alpha_Instance_DatabaseFlagsEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1alpha_Instance_DatabaseFlagsEntry_descriptor,
@@ -1382,7 +1447,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Key", "Value",
});
internal_static_google_cloud_alloydb_v1alpha_Instance_AnnotationsEntry_descriptor =
- internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(15);
+ internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(17);
internal_static_google_cloud_alloydb_v1alpha_Instance_AnnotationsEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1alpha_Instance_AnnotationsEntry_descriptor,
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/resources.proto b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/resources.proto
index e315ef47b6d2..946f937c3bf9 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/resources.proto
+++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/resources.proto
@@ -867,6 +867,27 @@ message Instance {
optional uint32 query_plans_per_minute = 5;
}
+ // Instance level Query Insights information, which is read-only and available
+ // in the output only.
+ message QueryInsightsInstanceInfo {
+ // Output only. Whether Query Insights is enabled.
+ bool enabled = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Whether to record application tags.
+ bool record_application_tags = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Whether to record client address.
+ bool record_client_address = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Maximum query string length.
+ uint32 query_string_length = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of query execution plans captured per minute.
+ uint32 query_plans_per_minute = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
// Observability Instance specific configuration.
message ObservabilityInstanceConfig {
// Observability feature status for an instance.
@@ -913,6 +934,50 @@ message Instance {
optional bool assistive_experiences_enabled = 10;
}
+ message ObservabilityInstanceInfo {
+ // Output only. Observability feature status for an instance.
+ bool enabled = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Preserve comments in query string for an instance.
+ bool preserve_comments = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Track wait events during query execution for an instance.
+ bool track_wait_events = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Track wait event types during query execution for an
+ // instance.
+ bool track_wait_event_types = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Query string length. The default value is 10k.
+ int32 max_query_string_length = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Record application tags for an instance.
+ bool record_application_tags = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of query execution plans captured by Insights per
+ // minute for all queries combined.
+ int32 query_plans_per_minute = 8
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Track actively running queries on the instance.
+ bool track_active_queries = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Track client address for an instance.
+ bool track_client_address = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Whether assistive experiences are enabled for this AlloyDB
+ // instance.
+ bool assistive_experiences_enabled = 11
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Indicates whether to track active query plans for an
+ // instance. Deprecated: Use track_active_queries instead.
+ bool track_active_query_plan = 13
+ [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
// Configuration for a read pool instance.
message ReadPoolConfig {
// Read capacity, i.e. number of nodes in a read pool instance.
@@ -1331,9 +1396,23 @@ message Instance {
// Configuration for query insights.
QueryInsightsInstanceConfig query_insights_config = 21;
+ // Output only. Instance level Query Insights information, which is read-only
+ // and available in the output only. Contains the effective query insights
+ // settings for this instance, by merging customer's provided
+ // `QueryInsightsInstanceConfig` with the Query Insights defaults.
+ QueryInsightsInstanceInfo query_insights_info = 47
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Configuration for observability.
ObservabilityInstanceConfig observability_config = 26;
+ // Output only. Instance level observability information, contains the
+ // effective values of observability settings for this instance, by merging
+ // customer's provided `ObservabilityInstanceConfig` with the
+ // Observability defaults.
+ ObservabilityInstanceInfo observability_instance_info = 44
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Read pool instance configuration.
// This is required if the value of instanceType is READ_POOL.
ReadPoolConfig read_pool_config = 14;
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java
index 3444631b4d67..d5fdc0ab7bf2 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java
@@ -271,7 +271,7 @@ public com.google.protobuf.ByteString getPublicIpAddressBytes() {
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=1450
+ * google/cloud/alloydb/v1beta/resources.proto;l=1529
* @return A list containing the pemCertificateChain.
*/
@java.lang.Deprecated
@@ -292,7 +292,7 @@ public com.google.protobuf.ProtocolStringList getPemCertificateChainList() {
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=1450
+ * google/cloud/alloydb/v1beta/resources.proto;l=1529
* @return The count of pemCertificateChain.
*/
@java.lang.Deprecated
@@ -313,7 +313,7 @@ public int getPemCertificateChainCount() {
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=1450
+ * google/cloud/alloydb/v1beta/resources.proto;l=1529
* @param index The index of the element to return.
* @return The pemCertificateChain at the given index.
*/
@@ -335,7 +335,7 @@ public java.lang.String getPemCertificateChain(int index) {
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=1450
+ * google/cloud/alloydb/v1beta/resources.proto;l=1529
* @param index The index of the value to return.
* @return The bytes of the pemCertificateChain at the given index.
*/
@@ -1369,7 +1369,7 @@ private void ensurePemCertificateChainIsMutable() {
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1beta/resources.proto;l=1450
+ * See google/cloud/alloydb/v1beta/resources.proto;l=1529
* @return A list containing the pemCertificateChain.
*/
@java.lang.Deprecated
@@ -1391,7 +1391,7 @@ public com.google.protobuf.ProtocolStringList getPemCertificateChainList() {
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1beta/resources.proto;l=1450
+ * See google/cloud/alloydb/v1beta/resources.proto;l=1529
* @return The count of pemCertificateChain.
*/
@java.lang.Deprecated
@@ -1412,7 +1412,7 @@ public int getPemCertificateChainCount() {
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1beta/resources.proto;l=1450
+ * See google/cloud/alloydb/v1beta/resources.proto;l=1529
* @param index The index of the element to return.
* @return The pemCertificateChain at the given index.
*/
@@ -1434,7 +1434,7 @@ public java.lang.String getPemCertificateChain(int index) {
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1beta/resources.proto;l=1450
+ * See google/cloud/alloydb/v1beta/resources.proto;l=1529
* @param index The index of the value to return.
* @return The bytes of the pemCertificateChain at the given index.
*/
@@ -1456,7 +1456,7 @@ public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) {
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1beta/resources.proto;l=1450
+ * See google/cloud/alloydb/v1beta/resources.proto;l=1529
* @param index The index to set the value at.
* @param value The pemCertificateChain to set.
* @return This builder for chaining.
@@ -1486,7 +1486,7 @@ public Builder setPemCertificateChain(int index, java.lang.String value) {
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1beta/resources.proto;l=1450
+ * See google/cloud/alloydb/v1beta/resources.proto;l=1529
* @param value The pemCertificateChain to add.
* @return This builder for chaining.
*/
@@ -1515,7 +1515,7 @@ public Builder addPemCertificateChain(java.lang.String value) {
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1beta/resources.proto;l=1450
+ * See google/cloud/alloydb/v1beta/resources.proto;l=1529
* @param values The pemCertificateChain to add.
* @return This builder for chaining.
*/
@@ -1541,7 +1541,7 @@ public Builder addAllPemCertificateChain(java.lang.Iterablebool is_template = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
*
* @deprecated google.cloud.alloydb.v1beta.Database.is_template is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=1844
+ * google/cloud/alloydb/v1beta/resources.proto;l=1923
* @return The isTemplate.
*/
@java.lang.Override
@@ -1409,7 +1409,7 @@ public Builder setCharacterTypeBytes(com.google.protobuf.ByteString value) {
*
*
* @deprecated google.cloud.alloydb.v1beta.Database.is_template is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=1844
+ * google/cloud/alloydb/v1beta/resources.proto;l=1923
* @return The isTemplate.
*/
@java.lang.Override
@@ -1430,7 +1430,7 @@ public boolean getIsTemplate() {
*
*
* @deprecated google.cloud.alloydb.v1beta.Database.is_template is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=1844
+ * google/cloud/alloydb/v1beta/resources.proto;l=1923
* @param value The isTemplate to set.
* @return This builder for chaining.
*/
@@ -1455,7 +1455,7 @@ public Builder setIsTemplate(boolean value) {
*
*
* @deprecated google.cloud.alloydb.v1beta.Database.is_template is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=1844
+ * google/cloud/alloydb/v1beta/resources.proto;l=1923
* @return This builder for chaining.
*/
@java.lang.Deprecated
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseOrBuilder.java
index e6e062a0c89b..e0614b62e473 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseOrBuilder.java
@@ -167,7 +167,7 @@ public interface DatabaseOrBuilder
* bool is_template = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
*
* @deprecated google.cloud.alloydb.v1beta.Database.is_template is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=1844
+ * google/cloud/alloydb/v1beta/resources.proto;l=1923
* @return The isTemplate.
*/
@java.lang.Deprecated
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java
index f818f1cb6200..c9e10b5d5843 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java
@@ -4209,34 +4209,19 @@ public com.google.protobuf.Parser- * Observability feature status for an instance. - * This flag is turned "off" by default. - *- * - *
optional bool enabled = 1;
- *
- * @return Whether the enabled field is set.
- */
- boolean hasEnabled();
-
- /**
- *
- *
- *
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Whether Query Insights is enabled.
*
*
- * optional bool enabled = 1;
+ * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The enabled.
*/
@@ -4246,605 +4231,3416 @@ public interface ObservabilityInstanceConfigOrBuilder
*
*
*
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Whether to record application tags.
*
*
- * optional bool preserve_comments = 2;
+ * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the preserveComments field is set.
+ * @return The recordApplicationTags.
*/
- boolean hasPreserveComments();
+ boolean getRecordApplicationTags();
/**
*
*
*
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Whether to record client address.
*
*
- * optional bool preserve_comments = 2;
+ * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The preserveComments.
+ * @return The recordClientAddress.
*/
- boolean getPreserveComments();
+ boolean getRecordClientAddress();
/**
*
*
*
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Maximum query string length.
*
*
- * optional bool track_wait_events = 3;
+ * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the trackWaitEvents field is set.
+ * @return The queryStringLength.
*/
- boolean hasTrackWaitEvents();
+ int getQueryStringLength();
/**
*
*
*
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Number of query execution plans captured per minute.
*
*
- * optional bool track_wait_events = 3;
+ * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The trackWaitEvents.
+ * @return The queryPlansPerMinute.
*/
- boolean getTrackWaitEvents();
+ int getQueryPlansPerMinute();
+ }
- /**
- *
- *
- * - * Output only. Track wait event types during query execution for an - * instance. This flag is turned "on" by default but tracking is enabled - * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by internal API. - *- * - *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return Whether the trackWaitEventTypes field is set.
- */
- boolean hasTrackWaitEventTypes();
+ /**
+ *
+ *
+ * + * Instance level Query Insights information, which is read-only and available + * in the output only. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo} + */ + public static final class QueryInsightsInstanceInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo) + QueryInsightsInstanceInfoOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
- * Output only. Track wait event types during query execution for an - * instance. This flag is turned "on" by default but tracking is enabled - * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by internal API. - *- * - *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return The trackWaitEventTypes.
- */
- boolean getTrackWaitEventTypes();
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "QueryInsightsInstanceInfo");
+ }
- /**
- *
- *
- * - * Query string length. The default value is 10k. - *- * - *
optional int32 max_query_string_length = 5;
- *
- * @return Whether the maxQueryStringLength field is set.
- */
- boolean hasMaxQueryStringLength();
+ // Use QueryInsightsInstanceInfo.newBuilder() to construct.
+ private QueryInsightsInstanceInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
- /**
- *
- *
- * - * Query string length. The default value is 10k. - *- * - *
optional int32 max_query_string_length = 5;
- *
- * @return The maxQueryStringLength.
- */
- int getMaxQueryStringLength();
+ private QueryInsightsInstanceInfo() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.alloydb.v1beta.ResourcesProto
+ .internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.alloydb.v1beta.ResourcesProto
+ .internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.class,
+ com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.Builder.class);
+ }
+
+ public static final int ENABLED_FIELD_NUMBER = 1;
+ private boolean enabled_ = false;
/**
*
*
*
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Whether Query Insights is enabled.
*
*
- * optional bool record_application_tags = 6;
+ * bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the recordApplicationTags field is set.
+ * @return The enabled.
*/
- boolean hasRecordApplicationTags();
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 2;
+ private boolean recordApplicationTags_ = false;
/**
*
*
*
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Whether to record application tags.
*
*
- * optional bool record_application_tags = 6;
+ * bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The recordApplicationTags.
*/
- boolean getRecordApplicationTags();
+ @java.lang.Override
+ public boolean getRecordApplicationTags() {
+ return recordApplicationTags_;
+ }
- /**
- *
- *
- * - * Number of query execution plans captured by Insights per minute - * for all queries combined. The default value is 200. - * Any integer between 0 to 200 is considered valid. - *- * - *
optional int32 query_plans_per_minute = 7;
- *
- * @return Whether the queryPlansPerMinute field is set.
- */
- boolean hasQueryPlansPerMinute();
+ public static final int RECORD_CLIENT_ADDRESS_FIELD_NUMBER = 3;
+ private boolean recordClientAddress_ = false;
/**
*
*
*
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Whether to record client address.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The queryPlansPerMinute.
+ * @return The recordClientAddress.
*/
- int getQueryPlansPerMinute();
+ @java.lang.Override
+ public boolean getRecordClientAddress() {
+ return recordClientAddress_;
+ }
- /**
- *
- *
- * - * Track actively running queries on the instance. - * If not set, this flag is "off" by default. - *- * - *
optional bool track_active_queries = 8;
- *
- * @return Whether the trackActiveQueries field is set.
- */
- boolean hasTrackActiveQueries();
+ public static final int QUERY_STRING_LENGTH_FIELD_NUMBER = 4;
+ private int queryStringLength_ = 0;
/**
*
*
*
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Maximum query string length.
*
*
- * optional bool track_active_queries = 8;
+ * uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The trackActiveQueries.
+ * @return The queryStringLength.
*/
- boolean getTrackActiveQueries();
+ @java.lang.Override
+ public int getQueryStringLength() {
+ return queryStringLength_;
+ }
- /**
- *
- *
- * - * Track client address for an instance. - * If not set, default value is "off". - *- * - *
optional bool track_client_address = 9;
- *
- * @return Whether the trackClientAddress field is set.
- */
- boolean hasTrackClientAddress();
+ public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 5;
+ private int queryPlansPerMinute_ = 0;
/**
*
*
*
- * Track client address for an instance.
- * If not set, default value is "off".
+ * Output only. Number of query execution plans captured per minute.
*
*
- * optional bool track_client_address = 9;
+ * uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The trackClientAddress.
+ * @return The queryPlansPerMinute.
*/
- boolean getTrackClientAddress();
+ @java.lang.Override
+ public int getQueryPlansPerMinute() {
+ return queryPlansPerMinute_;
+ }
- /**
- *
- *
- * - * Whether assistive experiences are enabled for this AlloyDB instance. - *- * - *
optional bool assistive_experiences_enabled = 10;
- *
- * @return Whether the assistiveExperiencesEnabled field is set.
- */
- boolean hasAssistiveExperiencesEnabled();
+ private byte memoizedIsInitialized = -1;
- /**
- *
- *
- * - * Whether assistive experiences are enabled for this AlloyDB instance. - *+ @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (recordApplicationTags_ != false) { + output.writeBool(2, recordApplicationTags_); + } + if (recordClientAddress_ != false) { + output.writeBool(3, recordClientAddress_); + } + if (queryStringLength_ != 0) { + output.writeUInt32(4, queryStringLength_); + } + if (queryPlansPerMinute_ != 0) { + output.writeUInt32(5, queryPlansPerMinute_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (recordApplicationTags_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, recordApplicationTags_); + } + if (recordClientAddress_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, recordClientAddress_); + } + if (queryStringLength_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, queryStringLength_); + } + if (queryPlansPerMinute_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, queryPlansPerMinute_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo other = + (com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false; + if (getRecordClientAddress() != other.getRecordClientAddress()) return false; + if (getQueryStringLength() != other.getQueryStringLength()) return false; + if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags()); + hash = (37 * hash) + RECORD_CLIENT_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordClientAddress()); + hash = (37 * hash) + QUERY_STRING_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getQueryStringLength(); + hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER; + hash = (53 * hash) + getQueryPlansPerMinute(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** * - *
optional bool assistive_experiences_enabled = 10;
*
- * @return The assistiveExperiencesEnabled.
+ * + * Instance level Query Insights information, which is read-only and available + * in the output only. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo} */ - boolean getAssistiveExperiencesEnabled(); - } + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. Whether Query Insights is enabled. + *+ * + *
bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether Query Insights is enabled. + *+ * + *
bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The enabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnabled(boolean value) {
+
+ enabled_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether Query Insights is enabled. + *+ * + *
bool enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ enabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean recordApplicationTags_;
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record application tags. + *+ * + *
bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The recordApplicationTags.
+ */
+ @java.lang.Override
+ public boolean getRecordApplicationTags() {
+ return recordApplicationTags_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record application tags. + *+ * + *
bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The recordApplicationTags to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecordApplicationTags(boolean value) {
+
+ recordApplicationTags_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record application tags. + *+ * + *
bool record_application_tags = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRecordApplicationTags() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ recordApplicationTags_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean recordClientAddress_;
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record client address. + *+ * + *
bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The recordClientAddress.
+ */
+ @java.lang.Override
+ public boolean getRecordClientAddress() {
+ return recordClientAddress_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record client address. + *+ * + *
bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The recordClientAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecordClientAddress(boolean value) {
+
+ recordClientAddress_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Whether to record client address. + *+ * + *
bool record_client_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRecordClientAddress() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ recordClientAddress_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int queryStringLength_;
+
+ /**
+ *
+ *
+ * + * Output only. Maximum query string length. + *+ * + *
uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The queryStringLength.
+ */
+ @java.lang.Override
+ public int getQueryStringLength() {
+ return queryStringLength_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Maximum query string length. + *+ * + *
uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The queryStringLength to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQueryStringLength(int value) {
+
+ queryStringLength_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Maximum query string length. + *+ * + *
uint32 query_string_length = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQueryStringLength() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ queryStringLength_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int queryPlansPerMinute_;
+
+ /**
+ *
+ *
+ * + * Output only. Number of query execution plans captured per minute. + *+ * + *
uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The queryPlansPerMinute.
+ */
+ @java.lang.Override
+ public int getQueryPlansPerMinute() {
+ return queryPlansPerMinute_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Number of query execution plans captured per minute. + *+ * + *
uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The queryPlansPerMinute to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQueryPlansPerMinute(int value) {
+
+ queryPlansPerMinute_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Number of query execution plans captured per minute. + *+ * + *
uint32 query_plans_per_minute = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQueryPlansPerMinute() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ queryPlansPerMinute_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo)
+ private static final com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo();
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return Whether the enabled field is set.
+ */
+ boolean hasEnabled();
+
+ /**
+ *
+ *
+ * + * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return The enabled.
+ */
+ boolean getEnabled();
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return Whether the preserveComments field is set.
+ */
+ boolean hasPreserveComments();
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return The preserveComments.
+ */
+ boolean getPreserveComments();
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return Whether the trackWaitEvents field is set.
+ */
+ boolean hasTrackWaitEvents();
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return The trackWaitEvents.
+ */
+ boolean getTrackWaitEvents();
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the trackWaitEventTypes field is set.
+ */
+ boolean hasTrackWaitEventTypes();
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The trackWaitEventTypes.
+ */
+ boolean getTrackWaitEventTypes();
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return Whether the maxQueryStringLength field is set.
+ */
+ boolean hasMaxQueryStringLength();
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return The maxQueryStringLength.
+ */
+ int getMaxQueryStringLength();
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return Whether the recordApplicationTags field is set.
+ */
+ boolean hasRecordApplicationTags();
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return The recordApplicationTags.
+ */
+ boolean getRecordApplicationTags();
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return Whether the queryPlansPerMinute field is set.
+ */
+ boolean hasQueryPlansPerMinute();
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return The queryPlansPerMinute.
+ */
+ int getQueryPlansPerMinute();
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return Whether the trackActiveQueries field is set.
+ */
+ boolean hasTrackActiveQueries();
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return The trackActiveQueries.
+ */
+ boolean getTrackActiveQueries();
+
+ /**
+ *
+ *
+ * + * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @return Whether the trackClientAddress field is set.
+ */
+ boolean hasTrackClientAddress();
+
+ /**
+ *
+ *
+ * + * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @return The trackClientAddress.
+ */
+ boolean getTrackClientAddress();
+
+ /**
+ *
+ *
+ * + * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @return Whether the assistiveExperiencesEnabled field is set.
+ */
+ boolean hasAssistiveExperiencesEnabled();
+
+ /**
+ *
+ *
+ * + * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @return The assistiveExperiencesEnabled.
+ */
+ boolean getAssistiveExperiencesEnabled();
+ }
+
+ /**
+ *
+ *
+ * + * Observability Instance specific configuration. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig} + */ + public static final class ObservabilityInstanceConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) + ObservabilityInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ObservabilityInstanceConfig"); + } + + // Use ObservabilityInstanceConfig.newBuilder() to construct. + private ObservabilityInstanceConfig(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ObservabilityInstanceConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.class, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + + /** + * + * + *
+ * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return Whether the enabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasEnabled() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 2;
+ private boolean preserveComments_ = false;
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return Whether the preserveComments field is set.
+ */
+ @java.lang.Override
+ public boolean hasPreserveComments() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return The preserveComments.
+ */
+ @java.lang.Override
+ public boolean getPreserveComments() {
+ return preserveComments_;
+ }
+
+ public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 3;
+ private boolean trackWaitEvents_ = false;
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return Whether the trackWaitEvents field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackWaitEvents() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return The trackWaitEvents.
+ */
+ @java.lang.Override
+ public boolean getTrackWaitEvents() {
+ return trackWaitEvents_;
+ }
+
+ public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 4;
+ private boolean trackWaitEventTypes_ = false;
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the trackWaitEventTypes field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackWaitEventTypes() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The trackWaitEventTypes.
+ */
+ @java.lang.Override
+ public boolean getTrackWaitEventTypes() {
+ return trackWaitEventTypes_;
+ }
+
+ public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 5;
+ private int maxQueryStringLength_ = 0;
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return Whether the maxQueryStringLength field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxQueryStringLength() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return The maxQueryStringLength.
+ */
+ @java.lang.Override
+ public int getMaxQueryStringLength() {
+ return maxQueryStringLength_;
+ }
+
+ public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 6;
+ private boolean recordApplicationTags_ = false;
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return Whether the recordApplicationTags field is set.
+ */
+ @java.lang.Override
+ public boolean hasRecordApplicationTags() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return The recordApplicationTags.
+ */
+ @java.lang.Override
+ public boolean getRecordApplicationTags() {
+ return recordApplicationTags_;
+ }
+
+ public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 7;
+ private int queryPlansPerMinute_ = 0;
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return Whether the queryPlansPerMinute field is set.
+ */
+ @java.lang.Override
+ public boolean hasQueryPlansPerMinute() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return The queryPlansPerMinute.
+ */
+ @java.lang.Override
+ public int getQueryPlansPerMinute() {
+ return queryPlansPerMinute_;
+ }
+
+ public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 8;
+ private boolean trackActiveQueries_ = false;
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return Whether the trackActiveQueries field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackActiveQueries() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return The trackActiveQueries.
+ */
+ @java.lang.Override
+ public boolean getTrackActiveQueries() {
+ return trackActiveQueries_;
+ }
+
+ public static final int TRACK_CLIENT_ADDRESS_FIELD_NUMBER = 9;
+ private boolean trackClientAddress_ = false;
+
+ /**
+ *
+ *
+ * + * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @return Whether the trackClientAddress field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackClientAddress() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @return The trackClientAddress.
+ */
+ @java.lang.Override
+ public boolean getTrackClientAddress() {
+ return trackClientAddress_;
+ }
+
+ public static final int ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER = 10;
+ private boolean assistiveExperiencesEnabled_ = false;
+
+ /**
+ *
+ *
+ * + * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @return Whether the assistiveExperiencesEnabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasAssistiveExperiencesEnabled() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @return The assistiveExperiencesEnabled.
+ */
+ @java.lang.Override
+ public boolean getAssistiveExperiencesEnabled() {
+ return assistiveExperiencesEnabled_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeBool(1, enabled_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeBool(2, preserveComments_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeBool(3, trackWaitEvents_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeBool(4, trackWaitEventTypes_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeInt32(5, maxQueryStringLength_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeBool(6, recordApplicationTags_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeInt32(7, queryPlansPerMinute_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ output.writeBool(8, trackActiveQueries_);
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ output.writeBool(9, trackClientAddress_);
+ }
+ if (((bitField0_ & 0x00000200) != 0)) {
+ output.writeBool(10, assistiveExperiencesEnabled_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, preserveComments_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trackWaitEvents_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEventTypes_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxQueryStringLength_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, recordApplicationTags_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, queryPlansPerMinute_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, trackActiveQueries_);
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, trackClientAddress_);
+ }
+ if (((bitField0_ & 0x00000200) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(10, assistiveExperiencesEnabled_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig other =
+ (com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) obj;
+
+ if (hasEnabled() != other.hasEnabled()) return false;
+ if (hasEnabled()) {
+ if (getEnabled() != other.getEnabled()) return false;
+ }
+ if (hasPreserveComments() != other.hasPreserveComments()) return false;
+ if (hasPreserveComments()) {
+ if (getPreserveComments() != other.getPreserveComments()) return false;
+ }
+ if (hasTrackWaitEvents() != other.hasTrackWaitEvents()) return false;
+ if (hasTrackWaitEvents()) {
+ if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false;
+ }
+ if (hasTrackWaitEventTypes() != other.hasTrackWaitEventTypes()) return false;
+ if (hasTrackWaitEventTypes()) {
+ if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false;
+ }
+ if (hasMaxQueryStringLength() != other.hasMaxQueryStringLength()) return false;
+ if (hasMaxQueryStringLength()) {
+ if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false;
+ }
+ if (hasRecordApplicationTags() != other.hasRecordApplicationTags()) return false;
+ if (hasRecordApplicationTags()) {
+ if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false;
+ }
+ if (hasQueryPlansPerMinute() != other.hasQueryPlansPerMinute()) return false;
+ if (hasQueryPlansPerMinute()) {
+ if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false;
+ }
+ if (hasTrackActiveQueries() != other.hasTrackActiveQueries()) return false;
+ if (hasTrackActiveQueries()) {
+ if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false;
+ }
+ if (hasTrackClientAddress() != other.hasTrackClientAddress()) return false;
+ if (hasTrackClientAddress()) {
+ if (getTrackClientAddress() != other.getTrackClientAddress()) return false;
+ }
+ if (hasAssistiveExperiencesEnabled() != other.hasAssistiveExperiencesEnabled()) return false;
+ if (hasAssistiveExperiencesEnabled()) {
+ if (getAssistiveExperiencesEnabled() != other.getAssistiveExperiencesEnabled())
+ return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasEnabled()) {
+ hash = (37 * hash) + ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled());
+ }
+ if (hasPreserveComments()) {
+ hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments());
+ }
+ if (hasTrackWaitEvents()) {
+ hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents());
+ }
+ if (hasTrackWaitEventTypes()) {
+ hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes());
+ }
+ if (hasMaxQueryStringLength()) {
+ hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxQueryStringLength();
+ }
+ if (hasRecordApplicationTags()) {
+ hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags());
+ }
+ if (hasQueryPlansPerMinute()) {
+ hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryPlansPerMinute();
+ }
+ if (hasTrackActiveQueries()) {
+ hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries());
+ }
+ if (hasTrackClientAddress()) {
+ hash = (37 * hash) + TRACK_CLIENT_ADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackClientAddress());
+ }
+ if (hasAssistiveExperiencesEnabled()) {
+ hash = (37 * hash) + ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashBoolean(getAssistiveExperiencesEnabled());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Observability Instance specific configuration. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return Whether the enabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasEnabled() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return The enabled.
+ */
+ @java.lang.Override
+ public boolean getEnabled() {
+ return enabled_;
+ }
+
+ /**
+ *
+ *
+ * + * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @param value The enabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnabled(boolean value) {
+
+ enabled_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Observability feature status for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool enabled = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ enabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean preserveComments_;
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return Whether the preserveComments field is set.
+ */
+ @java.lang.Override
+ public boolean hasPreserveComments() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return The preserveComments.
+ */
+ @java.lang.Override
+ public boolean getPreserveComments() {
+ return preserveComments_;
+ }
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @param value The preserveComments to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPreserveComments(boolean value) {
+
+ preserveComments_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Preserve comments in query string for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool preserve_comments = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPreserveComments() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ preserveComments_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean trackWaitEvents_;
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return Whether the trackWaitEvents field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackWaitEvents() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return The trackWaitEvents.
+ */
+ @java.lang.Override
+ public boolean getTrackWaitEvents() {
+ return trackWaitEvents_;
+ }
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @param value The trackWaitEvents to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTrackWaitEvents(boolean value) {
+
+ trackWaitEvents_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Track wait events during query execution for an instance. + * This flag is turned "on" by default but tracking is enabled only after + * observability enabled flag is also turned on. + *+ * + *
optional bool track_wait_events = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTrackWaitEvents() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ trackWaitEvents_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean trackWaitEventTypes_;
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
+ * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the trackWaitEventTypes field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackWaitEventTypes() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
+ * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The trackWaitEventTypes.
+ */
+ @java.lang.Override
+ public boolean getTrackWaitEventTypes() {
+ return trackWaitEventTypes_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
+ * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The trackWaitEventTypes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTrackWaitEventTypes(boolean value) {
+
+ trackWaitEventTypes_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Track wait event types during query execution for an + * instance. This flag is turned "on" by default but tracking is enabled + * only after observability enabled flag is also turned on. This is + * read-only flag and only modifiable by internal API. + *+ * + *
+ * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTrackWaitEventTypes() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ trackWaitEventTypes_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int maxQueryStringLength_;
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return Whether the maxQueryStringLength field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxQueryStringLength() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return The maxQueryStringLength.
+ */
+ @java.lang.Override
+ public int getMaxQueryStringLength() {
+ return maxQueryStringLength_;
+ }
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @param value The maxQueryStringLength to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxQueryStringLength(int value) {
+
+ maxQueryStringLength_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Query string length. The default value is 10k. + *+ * + *
optional int32 max_query_string_length = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxQueryStringLength() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ maxQueryStringLength_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean recordApplicationTags_;
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return Whether the recordApplicationTags field is set.
+ */
+ @java.lang.Override
+ public boolean hasRecordApplicationTags() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return The recordApplicationTags.
+ */
+ @java.lang.Override
+ public boolean getRecordApplicationTags() {
+ return recordApplicationTags_;
+ }
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @param value The recordApplicationTags to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecordApplicationTags(boolean value) {
+
+ recordApplicationTags_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Record application tags for an instance. + * This flag is turned "off" by default. + *+ * + *
optional bool record_application_tags = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRecordApplicationTags() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ recordApplicationTags_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int queryPlansPerMinute_;
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return Whether the queryPlansPerMinute field is set.
+ */
+ @java.lang.Override
+ public boolean hasQueryPlansPerMinute() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return The queryPlansPerMinute.
+ */
+ @java.lang.Override
+ public int getQueryPlansPerMinute() {
+ return queryPlansPerMinute_;
+ }
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @param value The queryPlansPerMinute to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQueryPlansPerMinute(int value) {
+
+ queryPlansPerMinute_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Number of query execution plans captured by Insights per minute + * for all queries combined. The default value is 200. + * Any integer between 0 to 200 is considered valid. + *+ * + *
optional int32 query_plans_per_minute = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQueryPlansPerMinute() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ queryPlansPerMinute_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean trackActiveQueries_;
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return Whether the trackActiveQueries field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackActiveQueries() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return The trackActiveQueries.
+ */
+ @java.lang.Override
+ public boolean getTrackActiveQueries() {
+ return trackActiveQueries_;
+ }
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @param value The trackActiveQueries to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTrackActiveQueries(boolean value) {
+
+ trackActiveQueries_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Track actively running queries on the instance. + * If not set, this flag is "off" by default. + *+ * + *
optional bool track_active_queries = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTrackActiveQueries() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ trackActiveQueries_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean trackClientAddress_;
+
+ /**
+ *
+ *
+ * + * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @return Whether the trackClientAddress field is set.
+ */
+ @java.lang.Override
+ public boolean hasTrackClientAddress() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @return The trackClientAddress.
+ */
+ @java.lang.Override
+ public boolean getTrackClientAddress() {
+ return trackClientAddress_;
+ }
+
+ /**
+ *
+ *
+ * + * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @param value The trackClientAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTrackClientAddress(boolean value) {
- /**
- *
- *
- * - * Observability Instance specific configuration. - *- * - * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig} - */ - public static final class ObservabilityInstanceConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) - ObservabilityInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + trackClientAddress_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+ * Track client address for an instance. + * If not set, default value is "off". + *+ * + *
optional bool track_client_address = 9;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTrackClientAddress() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ trackClientAddress_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean assistiveExperiencesEnabled_;
+
+ /**
+ *
+ *
+ * + * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @return Whether the assistiveExperiencesEnabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasAssistiveExperiencesEnabled() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @return The assistiveExperiencesEnabled.
+ */
+ @java.lang.Override
+ public boolean getAssistiveExperiencesEnabled() {
+ return assistiveExperiencesEnabled_;
+ }
+
+ /**
+ *
+ *
+ * + * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @param value The assistiveExperiencesEnabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAssistiveExperiencesEnabled(boolean value) {
+
+ assistiveExperiencesEnabled_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Whether assistive experiences are enabled for this AlloyDB instance. + *+ * + *
optional bool assistive_experiences_enabled = 10;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAssistiveExperiencesEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ assistiveExperiencesEnabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig)
+ private static final com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig
+ DEFAULT_INSTANCE;
static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 33,
- /* patch= */ 6,
- /* suffix= */ "",
- "ObservabilityInstanceConfig");
+ DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig();
}
- // Use ObservabilityInstanceConfig.newBuilder() to construct.
- private ObservabilityInstanceConfig(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
}
- private ObservabilityInstanceConfig() {}
+ private static final com.google.protobuf.Parser
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Observability feature status for an instance.
*
*
- * optional bool enabled = 1;
+ * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the enabled field is set.
+ * @return The enabled.
*/
- @java.lang.Override
- public boolean hasEnabled() {
- return ((bitField0_ & 0x00000001) != 0);
- }
+ boolean getEnabled();
/**
*
*
*
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Preserve comments in query string for an instance.
*
*
- * optional bool enabled = 1;
+ * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The enabled.
+ * @return The preserveComments.
*/
- @java.lang.Override
- public boolean getEnabled() {
- return enabled_;
- }
+ boolean getPreserveComments();
- public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 2;
- private boolean preserveComments_ = false;
+ /**
+ *
+ *
+ * + * Output only. Track wait events during query execution for an instance. + *+ * + *
bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The trackWaitEvents.
+ */
+ boolean getTrackWaitEvents();
/**
*
*
*
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Track wait event types during query execution for an
+ * instance.
*
*
- * optional bool preserve_comments = 2;
+ * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the preserveComments field is set.
+ * @return The trackWaitEventTypes.
*/
- @java.lang.Override
- public boolean hasPreserveComments() {
- return ((bitField0_ & 0x00000002) != 0);
- }
+ boolean getTrackWaitEventTypes();
+
+ /**
+ *
+ *
+ * + * Output only. Query string length. The default value is 10k. + *+ * + *
int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The maxQueryStringLength.
+ */
+ int getMaxQueryStringLength();
+
+ /**
+ *
+ *
+ * + * Output only. Record application tags for an instance. + *+ * + *
bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The recordApplicationTags.
+ */
+ boolean getRecordApplicationTags();
/**
*
*
*
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Number of query execution plans captured by Insights per
+ * minute for all queries combined.
*
*
- * optional bool preserve_comments = 2;
+ * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The preserveComments.
+ * @return The queryPlansPerMinute.
*/
- @java.lang.Override
- public boolean getPreserveComments() {
- return preserveComments_;
- }
-
- public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 3;
- private boolean trackWaitEvents_ = false;
+ int getQueryPlansPerMinute();
/**
*
*
*
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Track actively running queries on the instance.
*
*
- * optional bool track_wait_events = 3;
+ * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the trackWaitEvents field is set.
+ * @return The trackActiveQueries.
*/
- @java.lang.Override
- public boolean hasTrackWaitEvents() {
- return ((bitField0_ & 0x00000004) != 0);
- }
+ boolean getTrackActiveQueries();
/**
*
*
*
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Track client address for an instance.
*
*
- * optional bool track_wait_events = 3;
+ * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The trackWaitEvents.
+ * @return The trackClientAddress.
*/
- @java.lang.Override
- public boolean getTrackWaitEvents() {
- return trackWaitEvents_;
- }
-
- public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 4;
- private boolean trackWaitEventTypes_ = false;
+ boolean getTrackClientAddress();
/**
*
*
*
- * Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * Output only. Whether assistive experiences are enabled for this AlloyDB
+ * instance.
*
*
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
- * @return Whether the trackWaitEventTypes field is set.
+ * @return The assistiveExperiencesEnabled.
*/
- @java.lang.Override
- public boolean hasTrackWaitEventTypes() {
- return ((bitField0_ & 0x00000008) != 0);
- }
+ boolean getAssistiveExperiencesEnabled();
/**
*
*
*
- * Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * Output only. Indicates whether to track active query plans for an
+ * instance. Deprecated: Use track_active_queries instead.
*
*
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
*
*
- * @return The trackWaitEventTypes.
+ * @deprecated
+ * google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.track_active_query_plan is
+ * deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=973
+ * @return The trackActiveQueryPlan.
*/
+ @java.lang.Deprecated
+ boolean getTrackActiveQueryPlan();
+ }
+
+ /** Protobuf type {@code google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo} */
+ public static final class ObservabilityInstanceInfo extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo)
+ ObservabilityInstanceInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "ObservabilityInstanceInfo");
+ }
+
+ // Use ObservabilityInstanceInfo.newBuilder() to construct.
+ private ObservabilityInstanceInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private ObservabilityInstanceInfo() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.alloydb.v1beta.ResourcesProto
+ .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_descriptor;
+ }
+
@java.lang.Override
- public boolean getTrackWaitEventTypes() {
- return trackWaitEventTypes_;
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.alloydb.v1beta.ResourcesProto
+ .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.class,
+ com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.Builder.class);
}
- public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 5;
- private int maxQueryStringLength_ = 0;
+ public static final int ENABLED_FIELD_NUMBER = 2;
+ private boolean enabled_ = false;
/**
*
*
*
- * Query string length. The default value is 10k.
+ * Output only. Observability feature status for an instance.
*
*
- * optional int32 max_query_string_length = 5;
+ * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the maxQueryStringLength field is set.
+ * @return The enabled.
*/
@java.lang.Override
- public boolean hasMaxQueryStringLength() {
- return ((bitField0_ & 0x00000010) != 0);
+ public boolean getEnabled() {
+ return enabled_;
}
+ public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 3;
+ private boolean preserveComments_ = false;
+
/**
*
*
*
- * Query string length. The default value is 10k.
+ * Output only. Preserve comments in query string for an instance.
*
*
- * optional int32 max_query_string_length = 5;
+ * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The maxQueryStringLength.
+ * @return The preserveComments.
*/
@java.lang.Override
- public int getMaxQueryStringLength() {
- return maxQueryStringLength_;
+ public boolean getPreserveComments() {
+ return preserveComments_;
}
- public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 6;
- private boolean recordApplicationTags_ = false;
+ public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 4;
+ private boolean trackWaitEvents_ = false;
/**
*
*
*
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Track wait events during query execution for an instance.
*
*
- * optional bool record_application_tags = 6;
+ * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the recordApplicationTags field is set.
+ * @return The trackWaitEvents.
*/
@java.lang.Override
- public boolean hasRecordApplicationTags() {
- return ((bitField0_ & 0x00000020) != 0);
+ public boolean getTrackWaitEvents() {
+ return trackWaitEvents_;
}
+ public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 5;
+ private boolean trackWaitEventTypes_ = false;
+
/**
*
*
*
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Track wait event types during query execution for an
+ * instance.
*
*
- * optional bool record_application_tags = 6;
+ * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The recordApplicationTags.
+ * @return The trackWaitEventTypes.
*/
@java.lang.Override
- public boolean getRecordApplicationTags() {
- return recordApplicationTags_;
+ public boolean getTrackWaitEventTypes() {
+ return trackWaitEventTypes_;
}
- public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 7;
- private int queryPlansPerMinute_ = 0;
+ public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 6;
+ private int maxQueryStringLength_ = 0;
/**
*
*
*
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Query string length. The default value is 10k.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the queryPlansPerMinute field is set.
+ * @return The maxQueryStringLength.
*/
@java.lang.Override
- public boolean hasQueryPlansPerMinute() {
- return ((bitField0_ & 0x00000040) != 0);
+ public int getMaxQueryStringLength() {
+ return maxQueryStringLength_;
}
+ public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 7;
+ private boolean recordApplicationTags_ = false;
+
/**
*
*
*
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Record application tags for an instance.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The queryPlansPerMinute.
+ * @return The recordApplicationTags.
*/
@java.lang.Override
- public int getQueryPlansPerMinute() {
- return queryPlansPerMinute_;
+ public boolean getRecordApplicationTags() {
+ return recordApplicationTags_;
}
- public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 8;
- private boolean trackActiveQueries_ = false;
+ public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 8;
+ private int queryPlansPerMinute_ = 0;
/**
*
*
*
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Number of query execution plans captured by Insights per
+ * minute for all queries combined.
*
*
- * optional bool track_active_queries = 8;
+ * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return Whether the trackActiveQueries field is set.
+ * @return The queryPlansPerMinute.
*/
@java.lang.Override
- public boolean hasTrackActiveQueries() {
- return ((bitField0_ & 0x00000080) != 0);
+ public int getQueryPlansPerMinute() {
+ return queryPlansPerMinute_;
}
+ public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 9;
+ private boolean trackActiveQueries_ = false;
+
/**
*
*
*
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Track actively running queries on the instance.
*
*
- * optional bool track_active_queries = 8;
+ * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackActiveQueries.
*/
@@ -4853,35 +7649,17 @@ public boolean getTrackActiveQueries() {
return trackActiveQueries_;
}
- public static final int TRACK_CLIENT_ADDRESS_FIELD_NUMBER = 9;
+ public static final int TRACK_CLIENT_ADDRESS_FIELD_NUMBER = 10;
private boolean trackClientAddress_ = false;
/**
*
*
*
- * Track client address for an instance.
- * If not set, default value is "off".
- *
- *
- * optional bool track_client_address = 9;
- *
- * @return Whether the trackClientAddress field is set.
- */
- @java.lang.Override
- public boolean hasTrackClientAddress() {
- return ((bitField0_ & 0x00000100) != 0);
- }
-
- /**
- *
- *
- *
- * Track client address for an instance.
- * If not set, default value is "off".
+ * Output only. Track client address for an instance.
*
*
- * optional bool track_client_address = 9;
+ * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackClientAddress.
*/
@@ -4890,39 +7668,51 @@ public boolean getTrackClientAddress() {
return trackClientAddress_;
}
- public static final int ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER = 10;
+ public static final int ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER = 11;
private boolean assistiveExperiencesEnabled_ = false;
/**
*
*
*
- * Whether assistive experiences are enabled for this AlloyDB instance.
+ * Output only. Whether assistive experiences are enabled for this AlloyDB
+ * instance.
*
*
- * optional bool assistive_experiences_enabled = 10;
+ * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return Whether the assistiveExperiencesEnabled field is set.
+ * @return The assistiveExperiencesEnabled.
*/
@java.lang.Override
- public boolean hasAssistiveExperiencesEnabled() {
- return ((bitField0_ & 0x00000200) != 0);
+ public boolean getAssistiveExperiencesEnabled() {
+ return assistiveExperiencesEnabled_;
}
+ public static final int TRACK_ACTIVE_QUERY_PLAN_FIELD_NUMBER = 13;
+ private boolean trackActiveQueryPlan_ = false;
+
/**
*
*
*
- * Whether assistive experiences are enabled for this AlloyDB instance.
+ * Output only. Indicates whether to track active query plans for an
+ * instance. Deprecated: Use track_active_queries instead.
*
*
- * optional bool assistive_experiences_enabled = 10;
+ *
+ * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return The assistiveExperiencesEnabled.
+ * @deprecated
+ * google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.track_active_query_plan is
+ * deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=973
+ * @return The trackActiveQueryPlan.
*/
@java.lang.Override
- public boolean getAssistiveExperiencesEnabled() {
- return assistiveExperiencesEnabled_;
+ @java.lang.Deprecated
+ public boolean getTrackActiveQueryPlan() {
+ return trackActiveQueryPlan_;
}
private byte memoizedIsInitialized = -1;
@@ -4939,35 +7729,38 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeBool(1, enabled_);
+ if (enabled_ != false) {
+ output.writeBool(2, enabled_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeBool(2, preserveComments_);
+ if (preserveComments_ != false) {
+ output.writeBool(3, preserveComments_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeBool(3, trackWaitEvents_);
+ if (trackWaitEvents_ != false) {
+ output.writeBool(4, trackWaitEvents_);
}
- if (((bitField0_ & 0x00000008) != 0)) {
- output.writeBool(4, trackWaitEventTypes_);
+ if (trackWaitEventTypes_ != false) {
+ output.writeBool(5, trackWaitEventTypes_);
}
- if (((bitField0_ & 0x00000010) != 0)) {
- output.writeInt32(5, maxQueryStringLength_);
+ if (maxQueryStringLength_ != 0) {
+ output.writeInt32(6, maxQueryStringLength_);
}
- if (((bitField0_ & 0x00000020) != 0)) {
- output.writeBool(6, recordApplicationTags_);
+ if (recordApplicationTags_ != false) {
+ output.writeBool(7, recordApplicationTags_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
- output.writeInt32(7, queryPlansPerMinute_);
+ if (queryPlansPerMinute_ != 0) {
+ output.writeInt32(8, queryPlansPerMinute_);
}
- if (((bitField0_ & 0x00000080) != 0)) {
- output.writeBool(8, trackActiveQueries_);
+ if (trackActiveQueries_ != false) {
+ output.writeBool(9, trackActiveQueries_);
}
- if (((bitField0_ & 0x00000100) != 0)) {
- output.writeBool(9, trackClientAddress_);
+ if (trackClientAddress_ != false) {
+ output.writeBool(10, trackClientAddress_);
}
- if (((bitField0_ & 0x00000200) != 0)) {
- output.writeBool(10, assistiveExperiencesEnabled_);
+ if (assistiveExperiencesEnabled_ != false) {
+ output.writeBool(11, assistiveExperiencesEnabled_);
+ }
+ if (trackActiveQueryPlan_ != false) {
+ output.writeBool(13, trackActiveQueryPlan_);
}
getUnknownFields().writeTo(output);
}
@@ -4978,36 +7771,39 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_);
+ if (enabled_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enabled_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, preserveComments_);
+ if (preserveComments_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, preserveComments_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trackWaitEvents_);
+ if (trackWaitEvents_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEvents_);
}
- if (((bitField0_ & 0x00000008) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEventTypes_);
+ if (trackWaitEventTypes_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, trackWaitEventTypes_);
}
- if (((bitField0_ & 0x00000010) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxQueryStringLength_);
+ if (maxQueryStringLength_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, maxQueryStringLength_);
}
- if (((bitField0_ & 0x00000020) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, recordApplicationTags_);
+ if (recordApplicationTags_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, recordApplicationTags_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, queryPlansPerMinute_);
+ if (queryPlansPerMinute_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, queryPlansPerMinute_);
}
- if (((bitField0_ & 0x00000080) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, trackActiveQueries_);
+ if (trackActiveQueries_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, trackActiveQueries_);
}
- if (((bitField0_ & 0x00000100) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, trackClientAddress_);
+ if (trackClientAddress_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, trackClientAddress_);
}
- if (((bitField0_ & 0x00000200) != 0)) {
+ if (assistiveExperiencesEnabled_ != false) {
size +=
- com.google.protobuf.CodedOutputStream.computeBoolSize(10, assistiveExperiencesEnabled_);
+ com.google.protobuf.CodedOutputStream.computeBoolSize(11, assistiveExperiencesEnabled_);
+ }
+ if (trackActiveQueryPlan_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, trackActiveQueryPlan_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -5019,53 +7815,23 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig)) {
+ if (!(obj instanceof com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo)) {
return super.equals(obj);
}
- com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig other =
- (com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) obj;
+ com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo other =
+ (com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo) obj;
- if (hasEnabled() != other.hasEnabled()) return false;
- if (hasEnabled()) {
- if (getEnabled() != other.getEnabled()) return false;
- }
- if (hasPreserveComments() != other.hasPreserveComments()) return false;
- if (hasPreserveComments()) {
- if (getPreserveComments() != other.getPreserveComments()) return false;
- }
- if (hasTrackWaitEvents() != other.hasTrackWaitEvents()) return false;
- if (hasTrackWaitEvents()) {
- if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false;
- }
- if (hasTrackWaitEventTypes() != other.hasTrackWaitEventTypes()) return false;
- if (hasTrackWaitEventTypes()) {
- if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false;
- }
- if (hasMaxQueryStringLength() != other.hasMaxQueryStringLength()) return false;
- if (hasMaxQueryStringLength()) {
- if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false;
- }
- if (hasRecordApplicationTags() != other.hasRecordApplicationTags()) return false;
- if (hasRecordApplicationTags()) {
- if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false;
- }
- if (hasQueryPlansPerMinute() != other.hasQueryPlansPerMinute()) return false;
- if (hasQueryPlansPerMinute()) {
- if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false;
- }
- if (hasTrackActiveQueries() != other.hasTrackActiveQueries()) return false;
- if (hasTrackActiveQueries()) {
- if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false;
- }
- if (hasTrackClientAddress() != other.hasTrackClientAddress()) return false;
- if (hasTrackClientAddress()) {
- if (getTrackClientAddress() != other.getTrackClientAddress()) return false;
- }
- if (hasAssistiveExperiencesEnabled() != other.hasAssistiveExperiencesEnabled()) return false;
- if (hasAssistiveExperiencesEnabled()) {
- if (getAssistiveExperiencesEnabled() != other.getAssistiveExperiencesEnabled())
- return false;
- }
+ if (getEnabled() != other.getEnabled()) return false;
+ if (getPreserveComments() != other.getPreserveComments()) return false;
+ if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false;
+ if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false;
+ if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false;
+ if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false;
+ if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false;
+ if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false;
+ if (getTrackClientAddress() != other.getTrackClientAddress()) return false;
+ if (getAssistiveExperiencesEnabled() != other.getAssistiveExperiencesEnabled()) return false;
+ if (getTrackActiveQueryPlan() != other.getTrackActiveQueryPlan()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -5077,106 +7843,87 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- if (hasEnabled()) {
- hash = (37 * hash) + ENABLED_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled());
- }
- if (hasPreserveComments()) {
- hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments());
- }
- if (hasTrackWaitEvents()) {
- hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents());
- }
- if (hasTrackWaitEventTypes()) {
- hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes());
- }
- if (hasMaxQueryStringLength()) {
- hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER;
- hash = (53 * hash) + getMaxQueryStringLength();
- }
- if (hasRecordApplicationTags()) {
- hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags());
- }
- if (hasQueryPlansPerMinute()) {
- hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER;
- hash = (53 * hash) + getQueryPlansPerMinute();
- }
- if (hasTrackActiveQueries()) {
- hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries());
- }
- if (hasTrackClientAddress()) {
- hash = (37 * hash) + TRACK_CLIENT_ADDRESS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackClientAddress());
- }
- if (hasAssistiveExperiencesEnabled()) {
- hash = (37 * hash) + ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER;
- hash =
- (53 * hash)
- + com.google.protobuf.Internal.hashBoolean(getAssistiveExperiencesEnabled());
- }
+ hash = (37 * hash) + ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled());
+ hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments());
+ hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents());
+ hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes());
+ hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxQueryStringLength();
+ hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags());
+ hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryPlansPerMinute();
+ hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries());
+ hash = (37 * hash) + TRACK_CLIENT_ADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackClientAddress());
+ hash = (37 * hash) + ASSISTIVE_EXPERIENCES_ENABLED_FIELD_NUMBER;
+ hash =
+ (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAssistiveExperiencesEnabled());
+ hash = (37 * hash) + TRACK_ACTIVE_QUERY_PLAN_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueryPlan());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -5184,12 +7931,12 @@ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConf
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig parseFrom(
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -5207,7 +7954,7 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig prototype) {
+ com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@@ -5222,36 +7969,28 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
return builder;
}
- /**
- *
- *
- *
- * Observability Instance specific configuration.
- *
- *
- * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig}
- */
+ /** Protobuf type {@code google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo} */
public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
implements
- // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig)
- com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo)
+ com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.alloydb.v1beta.ResourcesProto
- .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor;
+ .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.alloydb.v1beta.ResourcesProto
- .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_fieldAccessorTable
+ .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.class,
- com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder.class);
+ com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.class,
+ com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.Builder.class);
}
// Construct using
- // com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.newBuilder()
+ // com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
@@ -5272,26 +8011,26 @@ public Builder clear() {
trackActiveQueries_ = false;
trackClientAddress_ = false;
assistiveExperiencesEnabled_ = false;
+ trackActiveQueryPlan_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.alloydb.v1beta.ResourcesProto
- .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor;
+ .internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_descriptor;
}
@java.lang.Override
- public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig
+ public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo
getDefaultInstanceForType() {
- return com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig
+ return com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo
.getDefaultInstance();
}
@java.lang.Override
- public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig build() {
- com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig result =
- buildPartial();
+ public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo build() {
+ com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@@ -5299,9 +8038,9 @@ public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig buil
}
@java.lang.Override
- public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig buildPartial() {
- com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig result =
- new com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig(this);
+ public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo buildPartial() {
+ com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo result =
+ new com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -5310,57 +8049,48 @@ public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig buil
}
private void buildPartial0(
- com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig result) {
+ com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo result) {
int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.enabled_ = enabled_;
- to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.preserveComments_ = preserveComments_;
- to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.trackWaitEvents_ = trackWaitEvents_;
- to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.trackWaitEventTypes_ = trackWaitEventTypes_;
- to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.maxQueryStringLength_ = maxQueryStringLength_;
- to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.recordApplicationTags_ = recordApplicationTags_;
- to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.queryPlansPerMinute_ = queryPlansPerMinute_;
- to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.trackActiveQueries_ = trackActiveQueries_;
- to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.trackClientAddress_ = trackClientAddress_;
- to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.assistiveExperiencesEnabled_ = assistiveExperiencesEnabled_;
- to_bitField0_ |= 0x00000200;
}
- result.bitField0_ |= to_bitField0_;
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.trackActiveQueryPlan_ = trackActiveQueryPlan_;
+ }
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) {
+ if (other instanceof com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo) {
return mergeFrom(
- (com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig) other);
+ (com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo) other);
} else {
super.mergeFrom(other);
return this;
@@ -5368,40 +8098,43 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig other) {
+ com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo other) {
if (other
- == com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig
+ == com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo
.getDefaultInstance()) return this;
- if (other.hasEnabled()) {
+ if (other.getEnabled() != false) {
setEnabled(other.getEnabled());
}
- if (other.hasPreserveComments()) {
+ if (other.getPreserveComments() != false) {
setPreserveComments(other.getPreserveComments());
}
- if (other.hasTrackWaitEvents()) {
+ if (other.getTrackWaitEvents() != false) {
setTrackWaitEvents(other.getTrackWaitEvents());
}
- if (other.hasTrackWaitEventTypes()) {
+ if (other.getTrackWaitEventTypes() != false) {
setTrackWaitEventTypes(other.getTrackWaitEventTypes());
}
- if (other.hasMaxQueryStringLength()) {
+ if (other.getMaxQueryStringLength() != 0) {
setMaxQueryStringLength(other.getMaxQueryStringLength());
}
- if (other.hasRecordApplicationTags()) {
+ if (other.getRecordApplicationTags() != false) {
setRecordApplicationTags(other.getRecordApplicationTags());
}
- if (other.hasQueryPlansPerMinute()) {
+ if (other.getQueryPlansPerMinute() != 0) {
setQueryPlansPerMinute(other.getQueryPlansPerMinute());
}
- if (other.hasTrackActiveQueries()) {
+ if (other.getTrackActiveQueries() != false) {
setTrackActiveQueries(other.getTrackActiveQueries());
}
- if (other.hasTrackClientAddress()) {
+ if (other.getTrackClientAddress() != false) {
setTrackClientAddress(other.getTrackClientAddress());
}
- if (other.hasAssistiveExperiencesEnabled()) {
+ if (other.getAssistiveExperiencesEnabled() != false) {
setAssistiveExperiencesEnabled(other.getAssistiveExperiencesEnabled());
}
+ if (other.getTrackActiveQueryPlan() != false) {
+ setTrackActiveQueryPlan(other.getTrackActiveQueryPlan());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -5428,66 +8161,72 @@ public Builder mergeFrom(
case 0:
done = true;
break;
- case 8:
+ case 16:
{
enabled_ = input.readBool();
bitField0_ |= 0x00000001;
break;
- } // case 8
- case 16:
+ } // case 16
+ case 24:
{
preserveComments_ = input.readBool();
bitField0_ |= 0x00000002;
break;
- } // case 16
- case 24:
+ } // case 24
+ case 32:
{
trackWaitEvents_ = input.readBool();
bitField0_ |= 0x00000004;
break;
- } // case 24
- case 32:
+ } // case 32
+ case 40:
{
trackWaitEventTypes_ = input.readBool();
bitField0_ |= 0x00000008;
break;
- } // case 32
- case 40:
+ } // case 40
+ case 48:
{
maxQueryStringLength_ = input.readInt32();
bitField0_ |= 0x00000010;
break;
- } // case 40
- case 48:
+ } // case 48
+ case 56:
{
recordApplicationTags_ = input.readBool();
bitField0_ |= 0x00000020;
break;
- } // case 48
- case 56:
+ } // case 56
+ case 64:
{
queryPlansPerMinute_ = input.readInt32();
bitField0_ |= 0x00000040;
break;
- } // case 56
- case 64:
+ } // case 64
+ case 72:
{
trackActiveQueries_ = input.readBool();
bitField0_ |= 0x00000080;
break;
- } // case 64
- case 72:
+ } // case 72
+ case 80:
{
trackClientAddress_ = input.readBool();
bitField0_ |= 0x00000100;
break;
- } // case 72
- case 80:
+ } // case 80
+ case 88:
{
assistiveExperiencesEnabled_ = input.readBool();
bitField0_ |= 0x00000200;
break;
- } // case 80
+ } // case 88
+ case 104:
+ {
+ trackActiveQueryPlan_ = input.readBool();
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 104
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -5513,28 +8252,10 @@ public Builder mergeFrom(
*
*
*
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
- *
- *
- * optional bool enabled = 1;
- *
- * @return Whether the enabled field is set.
- */
- @java.lang.Override
- public boolean hasEnabled() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- *
- *
- *
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Observability feature status for an instance.
*
*
- * optional bool enabled = 1;
+ * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The enabled.
*/
@@ -5547,11 +8268,10 @@ public boolean getEnabled() {
*
*
*
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Observability feature status for an instance.
*
*
- * optional bool enabled = 1;
+ * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The enabled to set.
* @return This builder for chaining.
@@ -5568,11 +8288,10 @@ public Builder setEnabled(boolean value) {
*
*
*
- * Observability feature status for an instance.
- * This flag is turned "off" by default.
+ * Output only. Observability feature status for an instance.
*
*
- * optional bool enabled = 1;
+ * bool enabled = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -5589,28 +8308,10 @@ public Builder clearEnabled() {
*
*
*
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
- *
- *
- * optional bool preserve_comments = 2;
- *
- * @return Whether the preserveComments field is set.
- */
- @java.lang.Override
- public boolean hasPreserveComments() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- *
- *
- *
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Preserve comments in query string for an instance.
*
*
- * optional bool preserve_comments = 2;
+ * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The preserveComments.
*/
@@ -5622,12 +8323,11 @@ public boolean getPreserveComments() {
/**
*
*
- *
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ *
+ * Output only. Preserve comments in query string for an instance.
*
*
- * optional bool preserve_comments = 2;
+ * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The preserveComments to set.
* @return This builder for chaining.
@@ -5644,11 +8344,10 @@ public Builder setPreserveComments(boolean value) {
*
*
*
- * Preserve comments in query string for an instance.
- * This flag is turned "off" by default.
+ * Output only. Preserve comments in query string for an instance.
*
*
- * optional bool preserve_comments = 2;
+ * bool preserve_comments = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -5665,30 +8364,10 @@ public Builder clearPreserveComments() {
*
*
*
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
- *
- *
- * optional bool track_wait_events = 3;
- *
- * @return Whether the trackWaitEvents field is set.
- */
- @java.lang.Override
- public boolean hasTrackWaitEvents() {
- return ((bitField0_ & 0x00000004) != 0);
- }
-
- /**
- *
- *
- *
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Track wait events during query execution for an instance.
*
*
- * optional bool track_wait_events = 3;
+ * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackWaitEvents.
*/
@@ -5701,12 +8380,10 @@ public boolean getTrackWaitEvents() {
*
*
*
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Track wait events during query execution for an instance.
*
*
- * optional bool track_wait_events = 3;
+ * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The trackWaitEvents to set.
* @return This builder for chaining.
@@ -5723,12 +8400,10 @@ public Builder setTrackWaitEvents(boolean value) {
*
*
*
- * Track wait events during query execution for an instance.
- * This flag is turned "on" by default but tracking is enabled only after
- * observability enabled flag is also turned on.
+ * Output only. Track wait events during query execution for an instance.
*
*
- * optional bool track_wait_events = 3;
+ * bool track_wait_events = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -5746,35 +8421,10 @@ public Builder clearTrackWaitEvents() {
*
*
* Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
- *
- *
- *
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return Whether the trackWaitEventTypes field is set.
- */
- @java.lang.Override
- public boolean hasTrackWaitEventTypes() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- *
- *
- *
- * Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * instance.
*
*
- *
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackWaitEventTypes.
*/
@@ -5788,14 +8438,10 @@ public boolean getTrackWaitEventTypes() {
*
*
* Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * instance.
*
*
- *
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The trackWaitEventTypes to set.
* @return This builder for chaining.
@@ -5813,14 +8459,10 @@ public Builder setTrackWaitEventTypes(boolean value) {
*
*
* Output only. Track wait event types during query execution for an
- * instance. This flag is turned "on" by default but tracking is enabled
- * only after observability enabled flag is also turned on. This is
- * read-only flag and only modifiable by internal API.
+ * instance.
*
*
- *
- * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool track_wait_event_types = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -5837,26 +8479,11 @@ public Builder clearTrackWaitEventTypes() {
*
*
*
- * Query string length. The default value is 10k.
- *
- *
- * optional int32 max_query_string_length = 5;
- *
- * @return Whether the maxQueryStringLength field is set.
- */
- @java.lang.Override
- public boolean hasMaxQueryStringLength() {
- return ((bitField0_ & 0x00000010) != 0);
- }
-
- /**
- *
- *
- *
- * Query string length. The default value is 10k.
+ * Output only. Query string length. The default value is 10k.
*
*
- * optional int32 max_query_string_length = 5;
+ * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The maxQueryStringLength.
*/
@@ -5869,10 +8496,11 @@ public int getMaxQueryStringLength() {
*
*
*
- * Query string length. The default value is 10k.
+ * Output only. Query string length. The default value is 10k.
*
*
- * optional int32 max_query_string_length = 5;
+ * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @param value The maxQueryStringLength to set.
* @return This builder for chaining.
@@ -5889,10 +8517,11 @@ public Builder setMaxQueryStringLength(int value) {
*
*
*
- * Query string length. The default value is 10k.
+ * Output only. Query string length. The default value is 10k.
*
*
- * optional int32 max_query_string_length = 5;
+ * int32 max_query_string_length = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return This builder for chaining.
*/
@@ -5909,28 +8538,10 @@ public Builder clearMaxQueryStringLength() {
*
*
*
- * Record application tags for an instance.
- * This flag is turned "off" by default.
- *
- *
- * optional bool record_application_tags = 6;
- *
- * @return Whether the recordApplicationTags field is set.
- */
- @java.lang.Override
- public boolean hasRecordApplicationTags() {
- return ((bitField0_ & 0x00000020) != 0);
- }
-
- /**
- *
- *
- *
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Record application tags for an instance.
*
*
- * optional bool record_application_tags = 6;
+ * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The recordApplicationTags.
*/
@@ -5943,11 +8554,10 @@ public boolean getRecordApplicationTags() {
*
*
*
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Record application tags for an instance.
*
*
- * optional bool record_application_tags = 6;
+ * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The recordApplicationTags to set.
* @return This builder for chaining.
@@ -5964,11 +8574,10 @@ public Builder setRecordApplicationTags(boolean value) {
*
*
*
- * Record application tags for an instance.
- * This flag is turned "off" by default.
+ * Output only. Record application tags for an instance.
*
*
- * optional bool record_application_tags = 6;
+ * bool record_application_tags = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -5985,30 +8594,11 @@ public Builder clearRecordApplicationTags() {
*
*
*
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
- *
- *
- * optional int32 query_plans_per_minute = 7;
- *
- * @return Whether the queryPlansPerMinute field is set.
- */
- @java.lang.Override
- public boolean hasQueryPlansPerMinute() {
- return ((bitField0_ & 0x00000040) != 0);
- }
-
- /**
- *
- *
- *
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Number of query execution plans captured by Insights per
+ * minute for all queries combined.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The queryPlansPerMinute.
*/
@@ -6021,12 +8611,11 @@ public int getQueryPlansPerMinute() {
*
*
*
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Number of query execution plans captured by Insights per
+ * minute for all queries combined.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The queryPlansPerMinute to set.
* @return This builder for chaining.
@@ -6043,12 +8632,11 @@ public Builder setQueryPlansPerMinute(int value) {
*
*
*
- * Number of query execution plans captured by Insights per minute
- * for all queries combined. The default value is 200.
- * Any integer between 0 to 200 is considered valid.
+ * Output only. Number of query execution plans captured by Insights per
+ * minute for all queries combined.
*
*
- * optional int32 query_plans_per_minute = 7;
+ * int32 query_plans_per_minute = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -6065,28 +8653,10 @@ public Builder clearQueryPlansPerMinute() {
*
*
*
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
- *
- *
- * optional bool track_active_queries = 8;
- *
- * @return Whether the trackActiveQueries field is set.
- */
- @java.lang.Override
- public boolean hasTrackActiveQueries() {
- return ((bitField0_ & 0x00000080) != 0);
- }
-
- /**
- *
- *
- *
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Track actively running queries on the instance.
*
*
- * optional bool track_active_queries = 8;
+ * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackActiveQueries.
*/
@@ -6099,11 +8669,10 @@ public boolean getTrackActiveQueries() {
*
*
*
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Track actively running queries on the instance.
*
*
- * optional bool track_active_queries = 8;
+ * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The trackActiveQueries to set.
* @return This builder for chaining.
@@ -6120,11 +8689,10 @@ public Builder setTrackActiveQueries(boolean value) {
*
*
*
- * Track actively running queries on the instance.
- * If not set, this flag is "off" by default.
+ * Output only. Track actively running queries on the instance.
*
*
- * optional bool track_active_queries = 8;
+ * bool track_active_queries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -6141,28 +8709,10 @@ public Builder clearTrackActiveQueries() {
*
*
*
- * Track client address for an instance.
- * If not set, default value is "off".
- *
- *
- * optional bool track_client_address = 9;
- *
- * @return Whether the trackClientAddress field is set.
- */
- @java.lang.Override
- public boolean hasTrackClientAddress() {
- return ((bitField0_ & 0x00000100) != 0);
- }
-
- /**
- *
- *
- *
- * Track client address for an instance.
- * If not set, default value is "off".
+ * Output only. Track client address for an instance.
*
*
- * optional bool track_client_address = 9;
+ * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The trackClientAddress.
*/
@@ -6175,11 +8725,10 @@ public boolean getTrackClientAddress() {
*
*
*
- * Track client address for an instance.
- * If not set, default value is "off".
+ * Output only. Track client address for an instance.
*
*
- * optional bool track_client_address = 9;
+ * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The trackClientAddress to set.
* @return This builder for chaining.
@@ -6196,11 +8745,10 @@ public Builder setTrackClientAddress(boolean value) {
*
*
*
- * Track client address for an instance.
- * If not set, default value is "off".
+ * Output only. Track client address for an instance.
*
*
- * optional bool track_client_address = 9;
+ * bool track_client_address = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -6217,50 +8765,110 @@ public Builder clearTrackClientAddress() {
*
*
*
- * Whether assistive experiences are enabled for this AlloyDB instance.
+ * Output only. Whether assistive experiences are enabled for this AlloyDB
+ * instance.
*
*
- * optional bool assistive_experiences_enabled = 10;
+ * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return Whether the assistiveExperiencesEnabled field is set.
+ * @return The assistiveExperiencesEnabled.
*/
@java.lang.Override
- public boolean hasAssistiveExperiencesEnabled() {
- return ((bitField0_ & 0x00000200) != 0);
+ public boolean getAssistiveExperiencesEnabled() {
+ return assistiveExperiencesEnabled_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether assistive experiences are enabled for this AlloyDB
+ * instance.
+ *
+ *
+ * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The assistiveExperiencesEnabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAssistiveExperiencesEnabled(boolean value) {
+
+ assistiveExperiencesEnabled_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether assistive experiences are enabled for this AlloyDB
+ * instance.
+ *
+ *
+ * bool assistive_experiences_enabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAssistiveExperiencesEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ assistiveExperiencesEnabled_ = false;
+ onChanged();
+ return this;
}
+ private boolean trackActiveQueryPlan_;
+
/**
*
*
*
- * Whether assistive experiences are enabled for this AlloyDB instance.
+ * Output only. Indicates whether to track active query plans for an
+ * instance. Deprecated: Use track_active_queries instead.
*
*
- * optional bool assistive_experiences_enabled = 10;
+ *
+ * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return The assistiveExperiencesEnabled.
+ * @deprecated
+ * google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.track_active_query_plan
+ * is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=973
+ * @return The trackActiveQueryPlan.
*/
@java.lang.Override
- public boolean getAssistiveExperiencesEnabled() {
- return assistiveExperiencesEnabled_;
+ @java.lang.Deprecated
+ public boolean getTrackActiveQueryPlan() {
+ return trackActiveQueryPlan_;
}
/**
*
*
*
- * Whether assistive experiences are enabled for this AlloyDB instance.
+ * Output only. Indicates whether to track active query plans for an
+ * instance. Deprecated: Use track_active_queries instead.
*
*
- * optional bool assistive_experiences_enabled = 10;
+ *
+ * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @param value The assistiveExperiencesEnabled to set.
+ * @deprecated
+ * google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.track_active_query_plan
+ * is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=973
+ * @param value The trackActiveQueryPlan to set.
* @return This builder for chaining.
*/
- public Builder setAssistiveExperiencesEnabled(boolean value) {
+ @java.lang.Deprecated
+ public Builder setTrackActiveQueryPlan(boolean value) {
- assistiveExperiencesEnabled_ = value;
- bitField0_ |= 0x00000200;
+ trackActiveQueryPlan_ = value;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -6269,40 +8877,47 @@ public Builder setAssistiveExperiencesEnabled(boolean value) {
*
*
*
- * Whether assistive experiences are enabled for this AlloyDB instance.
+ * Output only. Indicates whether to track active query plans for an
+ * instance. Deprecated: Use track_active_queries instead.
*
*
- * optional bool assistive_experiences_enabled = 10;
+ *
+ * bool track_active_query_plan = 13 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
+ * @deprecated
+ * google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.track_active_query_plan
+ * is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=973
* @return This builder for chaining.
*/
- public Builder clearAssistiveExperiencesEnabled() {
- bitField0_ = (bitField0_ & ~0x00000200);
- assistiveExperiencesEnabled_ = false;
+ @java.lang.Deprecated
+ public Builder clearTrackActiveQueryPlan() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ trackActiveQueryPlan_ = false;
onChanged();
return this;
}
- // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig)
+ // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo)
}
- // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig)
- private static final com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig
+ // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo)
+ private static final com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig();
+ DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo();
}
- public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig
+ public static com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
@java.lang.Override
- public ObservabilityInstanceConfig parsePartialFrom(
+ public ObservabilityInstanceInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -6322,17 +8937,17 @@ public ObservabilityInstanceConfig parsePartialFrom(
}
};
- public static com.google.protobuf.Parser parser() {
+ public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
+ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
- public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig
+ public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -20050,6 +22665,75 @@ public boolean hasQueryInsightsConfig() {
: queryInsightsConfig_;
}
+ public static final int QUERY_INSIGHTS_INFO_FIELD_NUMBER = 47;
+ private com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo queryInsightsInfo_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Instance level Query Insights information, which is read-only
+ * and available in the output only. Contains the effective query insights
+ * settings for this instance, by merging customer's provided
+ * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+ *
+ *
+ *
+ * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the queryInsightsInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasQueryInsightsInfo() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Instance level Query Insights information, which is read-only
+ * and available in the output only. Contains the effective query insights
+ * settings for this instance, by merging customer's provided
+ * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+ *
+ *
+ *
+ * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The queryInsightsInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo getQueryInsightsInfo() {
+ return queryInsightsInfo_ == null
+ ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.getDefaultInstance()
+ : queryInsightsInfo_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Instance level Query Insights information, which is read-only
+ * and available in the output only. Contains the effective query insights
+ * settings for this instance, by merging customer's provided
+ * `QueryInsightsInstanceConfig` with the Query Insights defaults.
+ *
+ *
+ *
+ * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfoOrBuilder
+ getQueryInsightsInfoOrBuilder() {
+ return queryInsightsInfo_ == null
+ ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.getDefaultInstance()
+ : queryInsightsInfo_;
+ }
+
public static final int OBSERVABILITY_CONFIG_FIELD_NUMBER = 26;
private com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observabilityConfig_;
@@ -20068,7 +22752,7 @@ public boolean hasQueryInsightsConfig() {
*/
@java.lang.Override
public boolean hasObservabilityConfig() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
@@ -20111,6 +22795,77 @@ public boolean hasObservabilityConfig() {
: observabilityConfig_;
}
+ public static final int OBSERVABILITY_INSTANCE_INFO_FIELD_NUMBER = 44;
+ private com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo
+ observabilityInstanceInfo_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Instance level observability information, contains the
+ * effective values of observability settings for this instance, by merging
+ * customer's provided `ObservabilityInstanceConfig` with the
+ * Observability defaults.
+ *
+ *
+ *
+ * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the observabilityInstanceInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasObservabilityInstanceInfo() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Instance level observability information, contains the
+ * effective values of observability settings for this instance, by merging
+ * customer's provided `ObservabilityInstanceConfig` with the
+ * Observability defaults.
+ *
+ *
+ *
+ * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The observabilityInstanceInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo
+ getObservabilityInstanceInfo() {
+ return observabilityInstanceInfo_ == null
+ ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.getDefaultInstance()
+ : observabilityInstanceInfo_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Instance level observability information, contains the
+ * effective values of observability settings for this instance, by merging
+ * customer's provided `ObservabilityInstanceConfig` with the
+ * Observability defaults.
+ *
+ *
+ *
+ * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfoOrBuilder
+ getObservabilityInstanceInfoOrBuilder() {
+ return observabilityInstanceInfo_ == null
+ ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.getDefaultInstance()
+ : observabilityInstanceInfo_;
+ }
+
public static final int READ_POOL_CONFIG_FIELD_NUMBER = 14;
private com.google.cloud.alloydb.v1beta.Instance.ReadPoolConfig readPoolConfig_;
@@ -20128,7 +22883,7 @@ public boolean hasObservabilityConfig() {
*/
@java.lang.Override
public boolean hasReadPoolConfig() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
@@ -20495,7 +23250,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
*/
@java.lang.Override
public boolean hasUpdatePolicy() {
- return ((bitField0_ & 0x00000100) != 0);
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
@@ -20556,7 +23311,7 @@ public com.google.cloud.alloydb.v1beta.Instance.UpdatePolicyOrBuilder getUpdateP
*/
@java.lang.Override
public boolean hasClientConnectionConfig() {
- return ((bitField0_ & 0x00000200) != 0);
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
@@ -20637,7 +23392,7 @@ public boolean getSatisfiesPzs() {
*/
@java.lang.Override
public boolean hasPscInstanceConfig() {
- return ((bitField0_ & 0x00000400) != 0);
+ return ((bitField0_ & 0x00001000) != 0);
}
/**
@@ -20700,7 +23455,7 @@ public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig getPscInstance
*/
@java.lang.Override
public boolean hasPscInstanceInfo() {
- return ((bitField0_ & 0x00000800) != 0);
+ return ((bitField0_ & 0x00002000) != 0);
}
/**
@@ -20762,7 +23517,7 @@ public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo getPscInstanceIn
*/
@java.lang.Override
public boolean hasNetworkConfig() {
- return ((bitField0_ & 0x00001000) != 0);
+ return ((bitField0_ & 0x00004000) != 0);
}
/**
@@ -20820,13 +23575,13 @@ public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig getNetwork
*
*
* @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=1393
+ * google/cloud/alloydb/v1beta/resources.proto;l=1472
* @return Whether the geminiConfig field is set.
*/
@java.lang.Override
@java.lang.Deprecated
public boolean hasGeminiConfig() {
- return ((bitField0_ & 0x00002000) != 0);
+ return ((bitField0_ & 0x00008000) != 0);
}
/**
@@ -20842,7 +23597,7 @@ public boolean hasGeminiConfig() {
*
*
* @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=1393
+ * google/cloud/alloydb/v1beta/resources.proto;l=1472
* @return The geminiConfig.
*/
@java.lang.Override
@@ -21022,7 +23777,7 @@ public com.google.cloud.alloydb.v1beta.Instance.ActivationPolicy getActivationPo
*/
@java.lang.Override
public boolean hasConnectionPoolConfig() {
- return ((bitField0_ & 0x00004000) != 0);
+ return ((bitField0_ & 0x00010000) != 0);
}
/**
@@ -21082,7 +23837,7 @@ public com.google.cloud.alloydb.v1beta.Instance.ConnectionPoolConfig getConnecti
*/
@java.lang.Override
public boolean hasGcaConfig() {
- return ((bitField0_ & 0x00008000) != 0);
+ return ((bitField0_ & 0x00020000) != 0);
}
/**
@@ -21178,7 +23933,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
}
com.google.protobuf.GeneratedMessage.serializeStringMapTo(
output, internalGetDatabaseFlags(), DatabaseFlagsDefaultEntryHolder.defaultEntry, 13);
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (((bitField0_ & 0x00000200) != 0)) {
output.writeMessage(14, getReadPoolConfig());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ipAddress_)) {
@@ -21201,28 +23956,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(21, getQueryInsightsConfig());
}
- if (((bitField0_ & 0x00000100) != 0)) {
+ if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(22, getUpdatePolicy());
}
- if (((bitField0_ & 0x00000200) != 0)) {
+ if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(23, getClientConnectionConfig());
}
if (satisfiesPzs_ != false) {
output.writeBool(24, satisfiesPzs_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(26, getObservabilityConfig());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(publicIpAddress_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 27, publicIpAddress_);
}
- if (((bitField0_ & 0x00000400) != 0)) {
+ if (((bitField0_ & 0x00001000) != 0)) {
output.writeMessage(28, getPscInstanceConfig());
}
- if (((bitField0_ & 0x00001000) != 0)) {
+ if (((bitField0_ & 0x00004000) != 0)) {
output.writeMessage(29, getNetworkConfig());
}
- if (((bitField0_ & 0x00002000) != 0)) {
+ if (((bitField0_ & 0x00008000) != 0)) {
output.writeMessage(33, getGeminiConfig());
}
for (int i = 0; i < outboundPublicIpAddresses_.size(); i++) {
@@ -21234,15 +23989,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
.getNumber()) {
output.writeEnum(35, activationPolicy_);
}
- if (((bitField0_ & 0x00004000) != 0)) {
+ if (((bitField0_ & 0x00010000) != 0)) {
output.writeMessage(37, getConnectionPoolConfig());
}
- if (((bitField0_ & 0x00008000) != 0)) {
+ if (((bitField0_ & 0x00020000) != 0)) {
output.writeMessage(38, getGcaConfig());
}
- if (((bitField0_ & 0x00000800) != 0)) {
+ if (((bitField0_ & 0x00000100) != 0)) {
+ output.writeMessage(44, getObservabilityInstanceInfo());
+ }
+ if (((bitField0_ & 0x00002000) != 0)) {
output.writeMessage(46, getPscInstanceInfo());
}
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeMessage(47, getQueryInsightsInfo());
+ }
getUnknownFields().writeTo(output);
}
@@ -21309,7 +24070,7 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, databaseFlags__);
}
- if (((bitField0_ & 0x00000080) != 0)) {
+ if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getReadPoolConfig());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ipAddress_)) {
@@ -21341,30 +24102,30 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(21, getQueryInsightsConfig());
}
- if (((bitField0_ & 0x00000100) != 0)) {
+ if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getUpdatePolicy());
}
- if (((bitField0_ & 0x00000200) != 0)) {
+ if (((bitField0_ & 0x00000800) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(23, getClientConnectionConfig());
}
if (satisfiesPzs_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, satisfiesPzs_);
}
- if (((bitField0_ & 0x00000040) != 0)) {
+ if (((bitField0_ & 0x00000080) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(26, getObservabilityConfig());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(publicIpAddress_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(27, publicIpAddress_);
}
- if (((bitField0_ & 0x00000400) != 0)) {
+ if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getPscInstanceConfig());
}
- if (((bitField0_ & 0x00001000) != 0)) {
+ if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getNetworkConfig());
}
- if (((bitField0_ & 0x00002000) != 0)) {
+ if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getGeminiConfig());
}
{
@@ -21380,16 +24141,24 @@ public int getSerializedSize() {
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, activationPolicy_);
}
- if (((bitField0_ & 0x00004000) != 0)) {
+ if (((bitField0_ & 0x00010000) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(37, getConnectionPoolConfig());
}
- if (((bitField0_ & 0x00008000) != 0)) {
+ if (((bitField0_ & 0x00020000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getGcaConfig());
}
- if (((bitField0_ & 0x00000800) != 0)) {
+ if (((bitField0_ & 0x00000100) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 44, getObservabilityInstanceInfo());
+ }
+ if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(46, getPscInstanceInfo());
}
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(47, getQueryInsightsInfo());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -21439,10 +24208,19 @@ public boolean equals(final java.lang.Object obj) {
if (hasQueryInsightsConfig()) {
if (!getQueryInsightsConfig().equals(other.getQueryInsightsConfig())) return false;
}
+ if (hasQueryInsightsInfo() != other.hasQueryInsightsInfo()) return false;
+ if (hasQueryInsightsInfo()) {
+ if (!getQueryInsightsInfo().equals(other.getQueryInsightsInfo())) return false;
+ }
if (hasObservabilityConfig() != other.hasObservabilityConfig()) return false;
if (hasObservabilityConfig()) {
if (!getObservabilityConfig().equals(other.getObservabilityConfig())) return false;
}
+ if (hasObservabilityInstanceInfo() != other.hasObservabilityInstanceInfo()) return false;
+ if (hasObservabilityInstanceInfo()) {
+ if (!getObservabilityInstanceInfo().equals(other.getObservabilityInstanceInfo()))
+ return false;
+ }
if (hasReadPoolConfig() != other.hasReadPoolConfig()) return false;
if (hasReadPoolConfig()) {
if (!getReadPoolConfig().equals(other.getReadPoolConfig())) return false;
@@ -21549,10 +24327,18 @@ public int hashCode() {
hash = (37 * hash) + QUERY_INSIGHTS_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getQueryInsightsConfig().hashCode();
}
+ if (hasQueryInsightsInfo()) {
+ hash = (37 * hash) + QUERY_INSIGHTS_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryInsightsInfo().hashCode();
+ }
if (hasObservabilityConfig()) {
hash = (37 * hash) + OBSERVABILITY_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getObservabilityConfig().hashCode();
}
+ if (hasObservabilityInstanceInfo()) {
+ hash = (37 * hash) + OBSERVABILITY_INSTANCE_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getObservabilityInstanceInfo().hashCode();
+ }
if (hasReadPoolConfig()) {
hash = (37 * hash) + READ_POOL_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getReadPoolConfig().hashCode();
@@ -21788,7 +24574,9 @@ private void maybeForceBuilderInitialization() {
internalGetWritableNodeFieldBuilder();
internalGetNodesFieldBuilder();
internalGetQueryInsightsConfigFieldBuilder();
+ internalGetQueryInsightsInfoFieldBuilder();
internalGetObservabilityConfigFieldBuilder();
+ internalGetObservabilityInstanceInfoFieldBuilder();
internalGetReadPoolConfigFieldBuilder();
internalGetUpdatePolicyFieldBuilder();
internalGetClientConnectionConfigFieldBuilder();
@@ -21852,11 +24640,21 @@ public Builder clear() {
queryInsightsConfigBuilder_.dispose();
queryInsightsConfigBuilder_ = null;
}
+ queryInsightsInfo_ = null;
+ if (queryInsightsInfoBuilder_ != null) {
+ queryInsightsInfoBuilder_.dispose();
+ queryInsightsInfoBuilder_ = null;
+ }
observabilityConfig_ = null;
if (observabilityConfigBuilder_ != null) {
observabilityConfigBuilder_.dispose();
observabilityConfigBuilder_ = null;
}
+ observabilityInstanceInfo_ = null;
+ if (observabilityInstanceInfoBuilder_ != null) {
+ observabilityInstanceInfoBuilder_.dispose();
+ observabilityInstanceInfoBuilder_ = null;
+ }
readPoolConfig_ = null;
if (readPoolConfigBuilder_ != null) {
readPoolConfigBuilder_.dispose();
@@ -22022,93 +24820,107 @@ private void buildPartial0(com.google.cloud.alloydb.v1beta.Instance result) {
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
+ result.queryInsightsInfo_ =
+ queryInsightsInfoBuilder_ == null
+ ? queryInsightsInfo_
+ : queryInsightsInfoBuilder_.build();
+ to_bitField0_ |= 0x00000040;
+ }
+ if (((from_bitField0_ & 0x00020000) != 0)) {
result.observabilityConfig_ =
observabilityConfigBuilder_ == null
? observabilityConfig_
: observabilityConfigBuilder_.build();
- to_bitField0_ |= 0x00000040;
+ to_bitField0_ |= 0x00000080;
}
- if (((from_bitField0_ & 0x00020000) != 0)) {
+ if (((from_bitField0_ & 0x00040000) != 0)) {
+ result.observabilityInstanceInfo_ =
+ observabilityInstanceInfoBuilder_ == null
+ ? observabilityInstanceInfo_
+ : observabilityInstanceInfoBuilder_.build();
+ to_bitField0_ |= 0x00000100;
+ }
+ if (((from_bitField0_ & 0x00080000) != 0)) {
result.readPoolConfig_ =
readPoolConfigBuilder_ == null ? readPoolConfig_ : readPoolConfigBuilder_.build();
- to_bitField0_ |= 0x00000080;
+ to_bitField0_ |= 0x00000200;
}
- if (((from_bitField0_ & 0x00040000) != 0)) {
+ if (((from_bitField0_ & 0x00100000) != 0)) {
result.ipAddress_ = ipAddress_;
}
- if (((from_bitField0_ & 0x00080000) != 0)) {
+ if (((from_bitField0_ & 0x00200000) != 0)) {
result.publicIpAddress_ = publicIpAddress_;
}
- if (((from_bitField0_ & 0x00100000) != 0)) {
+ if (((from_bitField0_ & 0x00400000) != 0)) {
result.reconciling_ = reconciling_;
}
- if (((from_bitField0_ & 0x00200000) != 0)) {
+ if (((from_bitField0_ & 0x00800000) != 0)) {
result.etag_ = etag_;
}
- if (((from_bitField0_ & 0x00400000) != 0)) {
+ if (((from_bitField0_ & 0x01000000) != 0)) {
result.annotations_ = internalGetAnnotations();
result.annotations_.makeImmutable();
}
- if (((from_bitField0_ & 0x00800000) != 0)) {
+ if (((from_bitField0_ & 0x02000000) != 0)) {
result.updatePolicy_ =
updatePolicyBuilder_ == null ? updatePolicy_ : updatePolicyBuilder_.build();
- to_bitField0_ |= 0x00000100;
+ to_bitField0_ |= 0x00000400;
}
- if (((from_bitField0_ & 0x01000000) != 0)) {
+ if (((from_bitField0_ & 0x04000000) != 0)) {
result.clientConnectionConfig_ =
clientConnectionConfigBuilder_ == null
? clientConnectionConfig_
: clientConnectionConfigBuilder_.build();
- to_bitField0_ |= 0x00000200;
+ to_bitField0_ |= 0x00000800;
}
- if (((from_bitField0_ & 0x02000000) != 0)) {
+ if (((from_bitField0_ & 0x08000000) != 0)) {
result.satisfiesPzs_ = satisfiesPzs_;
}
- if (((from_bitField0_ & 0x04000000) != 0)) {
+ if (((from_bitField0_ & 0x10000000) != 0)) {
result.pscInstanceConfig_ =
pscInstanceConfigBuilder_ == null
? pscInstanceConfig_
: pscInstanceConfigBuilder_.build();
- to_bitField0_ |= 0x00000400;
+ to_bitField0_ |= 0x00001000;
}
- if (((from_bitField0_ & 0x08000000) != 0)) {
+ if (((from_bitField0_ & 0x20000000) != 0)) {
result.pscInstanceInfo_ =
pscInstanceInfoBuilder_ == null ? pscInstanceInfo_ : pscInstanceInfoBuilder_.build();
- to_bitField0_ |= 0x00000800;
+ to_bitField0_ |= 0x00002000;
}
- if (((from_bitField0_ & 0x10000000) != 0)) {
+ if (((from_bitField0_ & 0x40000000) != 0)) {
result.networkConfig_ =
networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build();
- to_bitField0_ |= 0x00001000;
+ to_bitField0_ |= 0x00004000;
}
- if (((from_bitField0_ & 0x20000000) != 0)) {
+ if (((from_bitField0_ & 0x80000000) != 0)) {
result.geminiConfig_ =
geminiConfigBuilder_ == null ? geminiConfig_ : geminiConfigBuilder_.build();
- to_bitField0_ |= 0x00002000;
- }
- if (((from_bitField0_ & 0x40000000) != 0)) {
- outboundPublicIpAddresses_.makeImmutable();
- result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_;
- }
- if (((from_bitField0_ & 0x80000000) != 0)) {
- result.activationPolicy_ = activationPolicy_;
+ to_bitField0_ |= 0x00008000;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartial1(com.google.cloud.alloydb.v1beta.Instance result) {
int from_bitField1_ = bitField1_;
- int to_bitField0_ = 0;
if (((from_bitField1_ & 0x00000001) != 0)) {
+ outboundPublicIpAddresses_.makeImmutable();
+ result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_;
+ }
+ if (((from_bitField1_ & 0x00000002) != 0)) {
+ result.activationPolicy_ = activationPolicy_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField1_ & 0x00000004) != 0)) {
result.connectionPoolConfig_ =
connectionPoolConfigBuilder_ == null
? connectionPoolConfig_
: connectionPoolConfigBuilder_.build();
- to_bitField0_ |= 0x00004000;
+ to_bitField0_ |= 0x00010000;
}
- if (((from_bitField1_ & 0x00000002) != 0)) {
+ if (((from_bitField1_ & 0x00000008) != 0)) {
result.gcaConfig_ = gcaConfigBuilder_ == null ? gcaConfig_ : gcaConfigBuilder_.build();
- to_bitField0_ |= 0x00008000;
+ to_bitField0_ |= 0x00020000;
}
result.bitField0_ |= to_bitField0_;
}
@@ -22203,20 +25015,26 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance other) {
if (other.hasQueryInsightsConfig()) {
mergeQueryInsightsConfig(other.getQueryInsightsConfig());
}
+ if (other.hasQueryInsightsInfo()) {
+ mergeQueryInsightsInfo(other.getQueryInsightsInfo());
+ }
if (other.hasObservabilityConfig()) {
mergeObservabilityConfig(other.getObservabilityConfig());
}
+ if (other.hasObservabilityInstanceInfo()) {
+ mergeObservabilityInstanceInfo(other.getObservabilityInstanceInfo());
+ }
if (other.hasReadPoolConfig()) {
mergeReadPoolConfig(other.getReadPoolConfig());
}
if (!other.getIpAddress().isEmpty()) {
ipAddress_ = other.ipAddress_;
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00100000;
onChanged();
}
if (!other.getPublicIpAddress().isEmpty()) {
publicIpAddress_ = other.publicIpAddress_;
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00200000;
onChanged();
}
if (other.getReconciling() != false) {
@@ -22224,11 +25042,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance other) {
}
if (!other.getEtag().isEmpty()) {
etag_ = other.etag_;
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00800000;
onChanged();
}
internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x01000000;
if (other.hasUpdatePolicy()) {
mergeUpdatePolicy(other.getUpdatePolicy());
}
@@ -22253,7 +25071,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance other) {
if (!other.outboundPublicIpAddresses_.isEmpty()) {
if (outboundPublicIpAddresses_.isEmpty()) {
outboundPublicIpAddresses_ = other.outboundPublicIpAddresses_;
- bitField0_ |= 0x40000000;
+ bitField1_ |= 0x00000001;
} else {
ensureOutboundPublicIpAddressesIsMutable();
outboundPublicIpAddresses_.addAll(other.outboundPublicIpAddresses_);
@@ -22393,25 +25211,25 @@ public Builder mergeFrom(
{
input.readMessage(
internalGetReadPoolConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00080000;
break;
} // case 114
case 122:
{
ipAddress_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00100000;
break;
} // case 122
case 128:
{
reconciling_ = input.readBool();
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00400000;
break;
} // case 128
case 138:
{
etag_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00800000;
break;
} // case 138
case 146:
@@ -22423,7 +25241,7 @@ public Builder mergeFrom(
internalGetMutableAnnotations()
.getMutableMap()
.put(annotations__.getKey(), annotations__.getValue());
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x01000000;
break;
} // case 146
case 154:
@@ -22457,7 +25275,7 @@ public Builder mergeFrom(
{
input.readMessage(
internalGetUpdatePolicyFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00800000;
+ bitField0_ |= 0x02000000;
break;
} // case 178
case 186:
@@ -22465,47 +25283,47 @@ public Builder mergeFrom(
input.readMessage(
internalGetClientConnectionConfigFieldBuilder().getBuilder(),
extensionRegistry);
- bitField0_ |= 0x01000000;
+ bitField0_ |= 0x04000000;
break;
} // case 186
case 192:
{
satisfiesPzs_ = input.readBool();
- bitField0_ |= 0x02000000;
+ bitField0_ |= 0x08000000;
break;
} // case 192
case 210:
{
input.readMessage(
internalGetObservabilityConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
break;
} // case 210
case 218:
{
publicIpAddress_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00200000;
break;
} // case 218
case 226:
{
input.readMessage(
internalGetPscInstanceConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x10000000;
break;
} // case 226
case 234:
{
input.readMessage(
internalGetNetworkConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x10000000;
+ bitField0_ |= 0x40000000;
break;
} // case 234
case 266:
{
input.readMessage(
internalGetGeminiConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x20000000;
+ bitField0_ |= 0x80000000;
break;
} // case 266
case 274:
@@ -22518,30 +25336,45 @@ public Builder mergeFrom(
case 280:
{
activationPolicy_ = input.readEnum();
- bitField0_ |= 0x80000000;
+ bitField1_ |= 0x00000002;
break;
} // case 280
case 298:
{
input.readMessage(
internalGetConnectionPoolConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField1_ |= 0x00000001;
+ bitField1_ |= 0x00000004;
break;
} // case 298
case 306:
{
input.readMessage(
internalGetGcaConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField1_ |= 0x00000002;
+ bitField1_ |= 0x00000008;
break;
} // case 306
+ case 354:
+ {
+ input.readMessage(
+ internalGetObservabilityInstanceInfoFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00040000;
+ break;
+ } // case 354
case 370:
{
input.readMessage(
internalGetPscInstanceInfoFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x08000000;
+ bitField0_ |= 0x20000000;
break;
} // case 370
+ case 378:
+ {
+ input.readMessage(
+ internalGetQueryInsightsInfoFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00010000;
+ break;
+ } // case 378
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -23264,13 +26097,225 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
&& updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUpdateTimeBuilder().mergeFrom(value);
} else {
- updateTime_ = value;
+ updateTime_ = value;
+ }
+ } else {
+ updateTimeBuilder_.mergeFrom(value);
+ }
+ if (updateTime_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Update time stamp + *+ * + *
+ * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearUpdateTime() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ updateTime_ = null;
+ if (updateTimeBuilder_ != null) {
+ updateTimeBuilder_.dispose();
+ updateTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Update time stamp + *+ * + *
+ * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return internalGetUpdateTimeFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Update time stamp + *+ * + *
+ * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ if (updateTimeBuilder_ != null) {
+ return updateTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Update time stamp + *+ * + *
+ * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ internalGetUpdateTimeFieldBuilder() {
+ if (updateTimeBuilder_ == null) {
+ updateTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getUpdateTime(), getParentForChildren(), isClean());
+ updateTime_ = null;
+ }
+ return updateTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp deleteTime_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ deleteTimeBuilder_;
+
+ /**
+ *
+ *
+ * + * Output only. Delete time stamp + *+ * + *
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the deleteTime field is set.
+ */
+ public boolean hasDeleteTime() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Delete time stamp + *+ * + *
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The deleteTime.
+ */
+ public com.google.protobuf.Timestamp getDeleteTime() {
+ if (deleteTimeBuilder_ == null) {
+ return deleteTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : deleteTime_;
+ } else {
+ return deleteTimeBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Delete time stamp + *+ * + *
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setDeleteTime(com.google.protobuf.Timestamp value) {
+ if (deleteTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ deleteTime_ = value;
+ } else {
+ deleteTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Delete time stamp + *+ * + *
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (deleteTimeBuilder_ == null) {
+ deleteTime_ = builderForValue.build();
+ } else {
+ deleteTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Delete time stamp + *+ * + *
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) {
+ if (deleteTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && deleteTime_ != null
+ && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getDeleteTimeBuilder().mergeFrom(value);
+ } else {
+ deleteTime_ = value;
}
} else {
- updateTimeBuilder_.mergeFrom(value);
+ deleteTimeBuilder_.mergeFrom(value);
}
- if (updateTime_ != null) {
- bitField0_ |= 0x00000010;
+ if (deleteTime_ != null) {
+ bitField0_ |= 0x00000020;
onChanged();
}
return this;
@@ -23280,19 +26325,19 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Output only. Update time stamp
+ * Output only. Delete time stamp
*
*
*
- * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder clearUpdateTime() {
- bitField0_ = (bitField0_ & ~0x00000010);
- updateTime_ = null;
- if (updateTimeBuilder_ != null) {
- updateTimeBuilder_.dispose();
- updateTimeBuilder_ = null;
+ public Builder clearDeleteTime() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ deleteTime_ = null;
+ if (deleteTimeBuilder_ != null) {
+ deleteTimeBuilder_.dispose();
+ deleteTimeBuilder_ = null;
}
onChanged();
return this;
@@ -23302,37 +26347,37 @@ public Builder clearUpdateTime() {
*
*
*
- * Output only. Update time stamp
+ * Output only. Delete time stamp
*
*
*
- * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
- bitField0_ |= 0x00000010;
+ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() {
+ bitField0_ |= 0x00000020;
onChanged();
- return internalGetUpdateTimeFieldBuilder().getBuilder();
+ return internalGetDeleteTimeFieldBuilder().getBuilder();
}
/**
*
*
*
- * Output only. Update time stamp
+ * Output only. Delete time stamp
*
*
*
- * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
- if (updateTimeBuilder_ != null) {
- return updateTimeBuilder_.getMessageOrBuilder();
+ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
+ if (deleteTimeBuilder_ != null) {
+ return deleteTimeBuilder_.getMessageOrBuilder();
} else {
- return updateTime_ == null
+ return deleteTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
- : updateTime_;
+ : deleteTime_;
}
}
@@ -23340,120 +26385,239 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
*
*
*
- * Output only. Update time stamp
+ * Output only. Delete time stamp
*
*
*
- * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
- internalGetUpdateTimeFieldBuilder() {
- if (updateTimeBuilder_ == null) {
- updateTimeBuilder_ =
+ internalGetDeleteTimeFieldBuilder() {
+ if (deleteTimeBuilder_ == null) {
+ deleteTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
- getUpdateTime(), getParentForChildren(), isClean());
- updateTime_ = null;
+ getDeleteTime(), getParentForChildren(), isClean());
+ deleteTime_ = null;
}
- return updateTimeBuilder_;
+ return deleteTimeBuilder_;
}
- private com.google.protobuf.Timestamp deleteTime_;
- private com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>
- deleteTimeBuilder_;
+ private com.google.protobuf.MapField
- * Output only. Delete time stamp
+ * Labels as key value pairs
*
*
- *
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * map<string, string> labels = 7;
+ */
+ @java.lang.Override
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Labels as key value pairs + *+ * + *
map<string, string> labels = 7;
*/
- public boolean hasDeleteTime() {
- return ((bitField0_ & 0x00000020) != 0);
+ @java.lang.Override
+ public java.util.Map
- * Output only. Delete time stamp
+ * Labels as key value pairs
*
*
- *
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * map<string, string> labels = 7;
+ */
+ @java.lang.Override
+ public /* nullable */ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Labels as key value pairs + *+ * + *
map<string, string> labels = 7;
*/
- public com.google.protobuf.Timestamp getDeleteTime() {
- if (deleteTimeBuilder_ == null) {
- return deleteTime_ == null
- ? com.google.protobuf.Timestamp.getDefaultInstance()
- : deleteTime_;
- } else {
- return deleteTimeBuilder_.getMessage();
+ @java.lang.Override
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
- * Output only. Delete time stamp
+ * Labels as key value pairs
*
*
- *
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * map<string, string> labels = 7;
*/
- public Builder setDeleteTime(com.google.protobuf.Timestamp value) {
- if (deleteTimeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- deleteTime_ = value;
- } else {
- deleteTimeBuilder_.setMessage(value);
+ public Builder removeLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
}
- bitField0_ |= 0x00000020;
- onChanged();
+ internalGetMutableLabels().getMutableMap().remove(key);
+ return this;
+ }
+
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * Labels as key value pairs + *+ * + *
map<string, string> labels = 7;
+ */
+ public Builder putLabels(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableLabels().getMutableMap().put(key, value);
+ bitField0_ |= 0x00000040;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Labels as key value pairs + *+ * + *
map<string, string> labels = 7;
+ */
+ public Builder putAllLabels(java.util.Map+ * Output only. The current serving state of the instance. + *+ * + *
+ * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+
/**
*
*
*
- * Output only. Delete time stamp
+ * Output only. The current serving state of the instance.
*
*
*
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
*/
- public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) {
- if (deleteTimeBuilder_ == null) {
- deleteTime_ = builderForValue.build();
- } else {
- deleteTimeBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000020;
+ public Builder setStateValue(int value) {
+ state_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -23462,50 +26626,42 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * Output only. Delete time stamp
+ * Output only. The current serving state of the instance.
*
*
*
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return The state.
*/
- public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) {
- if (deleteTimeBuilder_ == null) {
- if (((bitField0_ & 0x00000020) != 0)
- && deleteTime_ != null
- && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
- getDeleteTimeBuilder().mergeFrom(value);
- } else {
- deleteTime_ = value;
- }
- } else {
- deleteTimeBuilder_.mergeFrom(value);
- }
- if (deleteTime_ != null) {
- bitField0_ |= 0x00000020;
- onChanged();
- }
- return this;
+ @java.lang.Override
+ public com.google.cloud.alloydb.v1beta.Instance.State getState() {
+ com.google.cloud.alloydb.v1beta.Instance.State result =
+ com.google.cloud.alloydb.v1beta.Instance.State.forNumber(state_);
+ return result == null ? com.google.cloud.alloydb.v1beta.Instance.State.UNRECOGNIZED : result;
}
/**
*
*
*
- * Output only. Delete time stamp
+ * Output only. The current serving state of the instance.
*
*
*
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @param value The state to set.
+ * @return This builder for chaining.
*/
- public Builder clearDeleteTime() {
- bitField0_ = (bitField0_ & ~0x00000020);
- deleteTime_ = null;
- if (deleteTimeBuilder_ != null) {
- deleteTimeBuilder_.dispose();
- deleteTimeBuilder_ = null;
+ public Builder setState(com.google.cloud.alloydb.v1beta.Instance.State value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ bitField0_ |= 0x00000080;
+ state_ = value.getNumber();
onChanged();
return this;
}
@@ -23514,222 +26670,195 @@ public Builder clearDeleteTime() {
*
*
*
- * Output only. Delete time stamp
+ * Output only. The current serving state of the instance.
*
*
*
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return This builder for chaining.
*/
- public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() {
- bitField0_ |= 0x00000020;
+ public Builder clearState() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ state_ = 0;
onChanged();
- return internalGetDeleteTimeFieldBuilder().getBuilder();
+ return this;
}
+ private int instanceType_ = 0;
+
/**
*
*
*
- * Output only. Delete time stamp
+ * Required. The type of the instance. Specified at creation time.
*
*
*
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
*
+ *
+ * @return The enum numeric value on the wire for instanceType.
*/
- public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
- if (deleteTimeBuilder_ != null) {
- return deleteTimeBuilder_.getMessageOrBuilder();
- } else {
- return deleteTime_ == null
- ? com.google.protobuf.Timestamp.getDefaultInstance()
- : deleteTime_;
- }
+ @java.lang.Override
+ public int getInstanceTypeValue() {
+ return instanceType_;
}
/**
*
*
*
- * Output only. Delete time stamp
+ * Required. The type of the instance. Specified at creation time.
*
*
*
- * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
*
+ *
+ * @param value The enum numeric value on the wire for instanceType to set.
+ * @return This builder for chaining.
*/
- private com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>
- internalGetDeleteTimeFieldBuilder() {
- if (deleteTimeBuilder_ == null) {
- deleteTimeBuilder_ =
- new com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>(
- getDeleteTime(), getParentForChildren(), isClean());
- deleteTime_ = null;
- }
- return deleteTimeBuilder_;
- }
-
- private com.google.protobuf.MapField
- * Labels as key value pairs
+ * Required. The type of the instance. Specified at creation time.
*
*
- * map<string, string> labels = 7;
+ *
+ * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The instanceType.
*/
@java.lang.Override
- public boolean containsLabels(java.lang.String key) {
- if (key == null) {
- throw new NullPointerException("map key");
- }
- return internalGetLabels().getMap().containsKey(key);
- }
-
- /** Use {@link #getLabelsMap()} instead. */
- @java.lang.Override
- @java.lang.Deprecated
- public java.util.Map
- * Labels as key value pairs
+ * Required. The type of the instance. Specified at creation time.
*
*
- * map<string, string> labels = 7;
+ *
+ * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The instanceType to set.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public java.util.Map
- * Labels as key value pairs
+ * Required. The type of the instance. Specified at creation time.
*
*
- * map<string, string> labels = 7;
+ *
+ * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public /* nullable */ java.lang.String getLabelsOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
- if (key == null) {
- throw new NullPointerException("map key");
- }
- java.util.Map
- * Labels as key value pairs
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- * map<string, string> labels = 7;
+ * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
+ *
+ * @return Whether the machineConfig field is set.
*/
- @java.lang.Override
- public java.lang.String getLabelsOrThrow(java.lang.String key) {
- if (key == null) {
- throw new NullPointerException("map key");
- }
- java.util.Map
- * Labels as key value pairs
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- * map<string, string> labels = 7;
+ * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
+ *
+ * @return The machineConfig.
*/
- public Builder removeLabels(java.lang.String key) {
- if (key == null) {
- throw new NullPointerException("map key");
+ public com.google.cloud.alloydb.v1beta.Instance.MachineConfig getMachineConfig() {
+ if (machineConfigBuilder_ == null) {
+ return machineConfig_ == null
+ ? com.google.cloud.alloydb.v1beta.Instance.MachineConfig.getDefaultInstance()
+ : machineConfig_;
+ } else {
+ return machineConfigBuilder_.getMessage();
}
- internalGetMutableLabels().getMutableMap().remove(key);
- return this;
- }
-
- /** Use alternate mutation accessors instead. */
- @java.lang.Deprecated
- public java.util.Map
- * Labels as key value pairs
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- * map<string, string> labels = 7;
+ * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
*/
- public Builder putLabels(java.lang.String key, java.lang.String value) {
- if (key == null) {
- throw new NullPointerException("map key");
- }
- if (value == null) {
- throw new NullPointerException("map value");
+ public Builder setMachineConfig(com.google.cloud.alloydb.v1beta.Instance.MachineConfig value) {
+ if (machineConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ machineConfig_ = value;
+ } else {
+ machineConfigBuilder_.setMessage(value);
}
- internalGetMutableLabels().getMutableMap().put(key, value);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000200;
+ onChanged();
return this;
}
@@ -23737,54 +26866,72 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
*
*
*
- * Labels as key value pairs
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- * map<string, string> labels = 7;
+ * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
*/
- public Builder putAllLabels(java.util.Map
- * Output only. The current serving state of the instance.
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- *
- * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return The enum numeric value on the wire for state.
+ * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
*/
- @java.lang.Override
- public int getStateValue() {
- return state_;
+ public Builder mergeMachineConfig(
+ com.google.cloud.alloydb.v1beta.Instance.MachineConfig value) {
+ if (machineConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0)
+ && machineConfig_ != null
+ && machineConfig_
+ != com.google.cloud.alloydb.v1beta.Instance.MachineConfig.getDefaultInstance()) {
+ getMachineConfigBuilder().mergeFrom(value);
+ } else {
+ machineConfig_ = value;
+ }
+ } else {
+ machineConfigBuilder_.mergeFrom(value);
+ }
+ if (machineConfig_ != null) {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
+ return this;
}
/**
*
*
*
- * Output only. The current serving state of the instance.
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- *
- * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @param value The enum numeric value on the wire for state to set.
- * @return This builder for chaining.
+ * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
*/
- public Builder setStateValue(int value) {
- state_ = value;
- bitField0_ |= 0x00000080;
+ public Builder clearMachineConfig() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ machineConfig_ = null;
+ if (machineConfigBuilder_ != null) {
+ machineConfigBuilder_.dispose();
+ machineConfigBuilder_ = null;
+ }
onChanged();
return this;
}
@@ -23793,103 +26940,110 @@ public Builder setStateValue(int value) {
*
*
*
- * Output only. The current serving state of the instance.
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- *
- * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return The state.
+ * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
*/
- @java.lang.Override
- public com.google.cloud.alloydb.v1beta.Instance.State getState() {
- com.google.cloud.alloydb.v1beta.Instance.State result =
- com.google.cloud.alloydb.v1beta.Instance.State.forNumber(state_);
- return result == null ? com.google.cloud.alloydb.v1beta.Instance.State.UNRECOGNIZED : result;
+ public com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder
+ getMachineConfigBuilder() {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return internalGetMachineConfigFieldBuilder().getBuilder();
}
/**
*
*
*
- * Output only. The current serving state of the instance.
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- *
- * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @param value The state to set.
- * @return This builder for chaining.
+ * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
*/
- public Builder setState(com.google.cloud.alloydb.v1beta.Instance.State value) {
- if (value == null) {
- throw new NullPointerException();
+ public com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder
+ getMachineConfigOrBuilder() {
+ if (machineConfigBuilder_ != null) {
+ return machineConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return machineConfig_ == null
+ ? com.google.cloud.alloydb.v1beta.Instance.MachineConfig.getDefaultInstance()
+ : machineConfig_;
}
- bitField0_ |= 0x00000080;
- state_ = value.getNumber();
- onChanged();
- return this;
}
/**
*
*
*
- * Output only. The current serving state of the instance.
+ * Configurations for the machines that host the underlying
+ * database engine.
*
*
- *
- * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return This builder for chaining.
+ * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
*/
- public Builder clearState() {
- bitField0_ = (bitField0_ & ~0x00000080);
- state_ = 0;
- onChanged();
- return this;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.alloydb.v1beta.Instance.MachineConfig,
+ com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder,
+ com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder>
+ internalGetMachineConfigFieldBuilder() {
+ if (machineConfigBuilder_ == null) {
+ machineConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.alloydb.v1beta.Instance.MachineConfig,
+ com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder,
+ com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder>(
+ getMachineConfig(), getParentForChildren(), isClean());
+ machineConfig_ = null;
+ }
+ return machineConfigBuilder_;
}
- private int instanceType_ = 0;
+ private int availabilityType_ = 0;
/**
*
*
*
- * Required. The type of the instance. Specified at creation time.
+ * Availability type of an Instance.
+ * If empty, defaults to REGIONAL for primary instances.
+ * For read pools, availability_type is always UNSPECIFIED. Instances in the
+ * read pools are evenly distributed across available zones within the region
+ * (i.e. read pools with more than one node will have a node in at
+ * least two zones).
*
*
- *
- * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11;
*
- * @return The enum numeric value on the wire for instanceType.
+ * @return The enum numeric value on the wire for availabilityType.
*/
@java.lang.Override
- public int getInstanceTypeValue() {
- return instanceType_;
+ public int getAvailabilityTypeValue() {
+ return availabilityType_;
}
/**
*
*
*
- * Required. The type of the instance. Specified at creation time.
+ * Availability type of an Instance.
+ * If empty, defaults to REGIONAL for primary instances.
+ * For read pools, availability_type is always UNSPECIFIED. Instances in the
+ * read pools are evenly distributed across available zones within the region
+ * (i.e. read pools with more than one node will have a node in at
+ * least two zones).
*
*
- *
- * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11;
*
- * @param value The enum numeric value on the wire for instanceType to set.
+ * @param value The enum numeric value on the wire for availabilityType to set.
* @return This builder for chaining.
*/
- public Builder setInstanceTypeValue(int value) {
- instanceType_ = value;
- bitField0_ |= 0x00000100;
+ public Builder setAvailabilityTypeValue(int value) {
+ availabilityType_ = value;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -23898,21 +27052,24 @@ public Builder setInstanceTypeValue(int value) {
*
*
*
- * Required. The type of the instance. Specified at creation time.
+ * Availability type of an Instance.
+ * If empty, defaults to REGIONAL for primary instances.
+ * For read pools, availability_type is always UNSPECIFIED. Instances in the
+ * read pools are evenly distributed across available zones within the region
+ * (i.e. read pools with more than one node will have a node in at
+ * least two zones).
*
*
- *
- * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11;
*
- * @return The instanceType.
+ * @return The availabilityType.
*/
@java.lang.Override
- public com.google.cloud.alloydb.v1beta.Instance.InstanceType getInstanceType() {
- com.google.cloud.alloydb.v1beta.Instance.InstanceType result =
- com.google.cloud.alloydb.v1beta.Instance.InstanceType.forNumber(instanceType_);
+ public com.google.cloud.alloydb.v1beta.Instance.AvailabilityType getAvailabilityType() {
+ com.google.cloud.alloydb.v1beta.Instance.AvailabilityType result =
+ com.google.cloud.alloydb.v1beta.Instance.AvailabilityType.forNumber(availabilityType_);
return result == null
- ? com.google.cloud.alloydb.v1beta.Instance.InstanceType.UNRECOGNIZED
+ ? com.google.cloud.alloydb.v1beta.Instance.AvailabilityType.UNRECOGNIZED
: result;
}
@@ -23920,22 +27077,26 @@ public com.google.cloud.alloydb.v1beta.Instance.InstanceType getInstanceType() {
*
*
*
- * Required. The type of the instance. Specified at creation time.
+ * Availability type of an Instance.
+ * If empty, defaults to REGIONAL for primary instances.
+ * For read pools, availability_type is always UNSPECIFIED. Instances in the
+ * read pools are evenly distributed across available zones within the region
+ * (i.e. read pools with more than one node will have a node in at
+ * least two zones).
*
*
- *
- * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11;
*
- * @param value The instanceType to set.
+ * @param value The availabilityType to set.
* @return This builder for chaining.
*/
- public Builder setInstanceType(com.google.cloud.alloydb.v1beta.Instance.InstanceType value) {
+ public Builder setAvailabilityType(
+ com.google.cloud.alloydb.v1beta.Instance.AvailabilityType value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000100;
- instanceType_ = value.getNumber();
+ bitField0_ |= 0x00000400;
+ availabilityType_ = value.getNumber();
onChanged();
return this;
}
@@ -23944,64 +27105,80 @@ public Builder setInstanceType(com.google.cloud.alloydb.v1beta.Instance.Instance
*
*
*
- * Required. The type of the instance. Specified at creation time.
+ * Availability type of an Instance.
+ * If empty, defaults to REGIONAL for primary instances.
+ * For read pools, availability_type is always UNSPECIFIED. Instances in the
+ * read pools are evenly distributed across available zones within the region
+ * (i.e. read pools with more than one node will have a node in at
+ * least two zones).
*
*
- *
- * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11;
*
* @return This builder for chaining.
*/
- public Builder clearInstanceType() {
- bitField0_ = (bitField0_ & ~0x00000100);
- instanceType_ = 0;
+ public Builder clearAvailabilityType() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ availabilityType_ = 0;
onChanged();
return this;
}
- private com.google.cloud.alloydb.v1beta.Instance.MachineConfig machineConfig_;
- private com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.alloydb.v1beta.Instance.MachineConfig,
- com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder,
- com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder>
- machineConfigBuilder_;
+ private java.lang.Object gceZone_ = "";
/**
*
*
*
- * Configurations for the machines that host the underlying
- * database engine.
+ * The Compute Engine zone that the instance should serve from, per
+ * https://cloud.google.com/compute/docs/regions-zones
+ * This can ONLY be specified for ZONAL instances.
+ * If present for a REGIONAL instance, an error will be thrown.
+ * If this is absent for a ZONAL instance, instance is created in a random
+ * zone with available capacity.
*
*
- * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
+ * string gce_zone = 12;
*
- * @return Whether the machineConfig field is set.
+ * @return The gceZone.
*/
- public boolean hasMachineConfig() {
- return ((bitField0_ & 0x00000200) != 0);
+ public java.lang.String getGceZone() {
+ java.lang.Object ref = gceZone_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gceZone_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
/**
*
*
*
- * Configurations for the machines that host the underlying
- * database engine.
+ * The Compute Engine zone that the instance should serve from, per
+ * https://cloud.google.com/compute/docs/regions-zones
+ * This can ONLY be specified for ZONAL instances.
+ * If present for a REGIONAL instance, an error will be thrown.
+ * If this is absent for a ZONAL instance, instance is created in a random
+ * zone with available capacity.
*
*
- * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
+ * string gce_zone = 12;
*
- * @return The machineConfig.
+ * @return The bytes for gceZone.
*/
- public com.google.cloud.alloydb.v1beta.Instance.MachineConfig getMachineConfig() {
- if (machineConfigBuilder_ == null) {
- return machineConfig_ == null
- ? com.google.cloud.alloydb.v1beta.Instance.MachineConfig.getDefaultInstance()
- : machineConfig_;
+ public com.google.protobuf.ByteString getGceZoneBytes() {
+ java.lang.Object ref = gceZone_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gceZone_ = b;
+ return b;
} else {
- return machineConfigBuilder_.getMessage();
+ return (com.google.protobuf.ByteString) ref;
}
}
@@ -24009,22 +27186,25 @@ public com.google.cloud.alloydb.v1beta.Instance.MachineConfig getMachineConfig()
*
*
*
- * Configurations for the machines that host the underlying
- * database engine.
+ * The Compute Engine zone that the instance should serve from, per
+ * https://cloud.google.com/compute/docs/regions-zones
+ * This can ONLY be specified for ZONAL instances.
+ * If present for a REGIONAL instance, an error will be thrown.
+ * If this is absent for a ZONAL instance, instance is created in a random
+ * zone with available capacity.
*
*
- * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
+ * string gce_zone = 12;
+ *
+ * @param value The gceZone to set.
+ * @return This builder for chaining.
*/
- public Builder setMachineConfig(com.google.cloud.alloydb.v1beta.Instance.MachineConfig value) {
- if (machineConfigBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- machineConfig_ = value;
- } else {
- machineConfigBuilder_.setMessage(value);
+ public Builder setGceZone(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- bitField0_ |= 0x00000200;
+ gceZone_ = value;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -24033,20 +27213,21 @@ public Builder setMachineConfig(com.google.cloud.alloydb.v1beta.Instance.Machine
*
*
*
- * Configurations for the machines that host the underlying
- * database engine.
+ * The Compute Engine zone that the instance should serve from, per
+ * https://cloud.google.com/compute/docs/regions-zones
+ * This can ONLY be specified for ZONAL instances.
+ * If present for a REGIONAL instance, an error will be thrown.
+ * If this is absent for a ZONAL instance, instance is created in a random
+ * zone with available capacity.
*
*
- * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
+ * string gce_zone = 12;
+ *
+ * @return This builder for chaining.
*/
- public Builder setMachineConfig(
- com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder builderForValue) {
- if (machineConfigBuilder_ == null) {
- machineConfig_ = builderForValue.build();
- } else {
- machineConfigBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000200;
+ public Builder clearGceZone() {
+ gceZone_ = getDefaultInstance().getGceZone();
+ bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
@@ -24055,323 +27236,460 @@ public Builder setMachineConfig(
*
*
*
- * Configurations for the machines that host the underlying
- * database engine.
+ * The Compute Engine zone that the instance should serve from, per
+ * https://cloud.google.com/compute/docs/regions-zones
+ * This can ONLY be specified for ZONAL instances.
+ * If present for a REGIONAL instance, an error will be thrown.
+ * If this is absent for a ZONAL instance, instance is created in a random
+ * zone with available capacity.
*
*
- * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
+ * string gce_zone = 12;
+ *
+ * @param value The bytes for gceZone to set.
+ * @return This builder for chaining.
*/
- public Builder mergeMachineConfig(
- com.google.cloud.alloydb.v1beta.Instance.MachineConfig value) {
- if (machineConfigBuilder_ == null) {
- if (((bitField0_ & 0x00000200) != 0)
- && machineConfig_ != null
- && machineConfig_
- != com.google.cloud.alloydb.v1beta.Instance.MachineConfig.getDefaultInstance()) {
- getMachineConfigBuilder().mergeFrom(value);
- } else {
- machineConfig_ = value;
- }
- } else {
- machineConfigBuilder_.mergeFrom(value);
- }
- if (machineConfig_ != null) {
- bitField0_ |= 0x00000200;
- onChanged();
+ public Builder setGceZoneBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ checkByteStringIsUtf8(value);
+ gceZone_ = value;
+ bitField0_ |= 0x00000800;
+ onChanged();
return this;
}
+ private com.google.protobuf.MapField- * Configurations for the machines that host the underlying - * database engine. + * Database flags. Set at the instance level. + * They are copied from the primary instance on secondary instance creation. + * Flags that have restrictions default to the value at primary + * instance on read instances during creation. Read instances can set new + * flags or override existing flags that are relevant for reads, for example, + * for enabling columnar cache on a read instance. Flags set on read instance + * might or might not be present on the primary instance. + * + * + * This is a list of "key": "value" pairs. + * "key": The name of the flag. These flags are passed at instance setup time, + * so include both server options and system variables for Postgres. Flags are + * specified with underscores, not hyphens. + * "value": The value of the flag. Booleans are set to **on** for true + * and **off** for false. This field must be omitted if the flag + * doesn't take a value. + *+ * + *
map<string, string> database_flags = 13;
+ */
+ @java.lang.Override
+ public boolean containsDatabaseFlags(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetDatabaseFlags().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getDatabaseFlagsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * Database flags. Set at the instance level.
+ * They are copied from the primary instance on secondary instance creation.
+ * Flags that have restrictions default to the value at primary
+ * instance on read instances during creation. Read instances can set new
+ * flags or override existing flags that are relevant for reads, for example,
+ * for enabling columnar cache on a read instance. Flags set on read instance
+ * might or might not be present on the primary instance.
+ *
+ *
+ * This is a list of "key": "value" pairs.
+ * "key": The name of the flag. These flags are passed at instance setup time,
+ * so include both server options and system variables for Postgres. Flags are
+ * specified with underscores, not hyphens.
+ * "value": The value of the flag. Booleans are set to **on** for true
+ * and **off** for false. This field must be omitted if the flag
+ * doesn't take a value.
*
*
- * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
+ * map<string, string> database_flags = 13;
*/
- public Builder clearMachineConfig() {
- bitField0_ = (bitField0_ & ~0x00000200);
- machineConfig_ = null;
- if (machineConfigBuilder_ != null) {
- machineConfigBuilder_.dispose();
- machineConfigBuilder_ = null;
- }
- onChanged();
- return this;
+ @java.lang.Override
+ public java.util.Map
- * Configurations for the machines that host the underlying
- * database engine.
+ * Database flags. Set at the instance level.
+ * They are copied from the primary instance on secondary instance creation.
+ * Flags that have restrictions default to the value at primary
+ * instance on read instances during creation. Read instances can set new
+ * flags or override existing flags that are relevant for reads, for example,
+ * for enabling columnar cache on a read instance. Flags set on read instance
+ * might or might not be present on the primary instance.
+ *
+ *
+ * This is a list of "key": "value" pairs.
+ * "key": The name of the flag. These flags are passed at instance setup time,
+ * so include both server options and system variables for Postgres. Flags are
+ * specified with underscores, not hyphens.
+ * "value": The value of the flag. Booleans are set to **on** for true
+ * and **off** for false. This field must be omitted if the flag
+ * doesn't take a value.
*
*
- * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
+ * map<string, string> database_flags = 13;
*/
- public com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder
- getMachineConfigBuilder() {
- bitField0_ |= 0x00000200;
- onChanged();
- return internalGetMachineConfigFieldBuilder().getBuilder();
+ @java.lang.Override
+ public /* nullable */ java.lang.String getDatabaseFlagsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
- * Configurations for the machines that host the underlying
- * database engine.
+ * Database flags. Set at the instance level.
+ * They are copied from the primary instance on secondary instance creation.
+ * Flags that have restrictions default to the value at primary
+ * instance on read instances during creation. Read instances can set new
+ * flags or override existing flags that are relevant for reads, for example,
+ * for enabling columnar cache on a read instance. Flags set on read instance
+ * might or might not be present on the primary instance.
+ *
+ *
+ * This is a list of "key": "value" pairs.
+ * "key": The name of the flag. These flags are passed at instance setup time,
+ * so include both server options and system variables for Postgres. Flags are
+ * specified with underscores, not hyphens.
+ * "value": The value of the flag. Booleans are set to **on** for true
+ * and **off** for false. This field must be omitted if the flag
+ * doesn't take a value.
*
*
- * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
+ * map<string, string> database_flags = 13;
*/
- public com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder
- getMachineConfigOrBuilder() {
- if (machineConfigBuilder_ != null) {
- return machineConfigBuilder_.getMessageOrBuilder();
- } else {
- return machineConfig_ == null
- ? com.google.cloud.alloydb.v1beta.Instance.MachineConfig.getDefaultInstance()
- : machineConfig_;
+ @java.lang.Override
+ public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
- * Configurations for the machines that host the underlying
- * database engine.
+ * Database flags. Set at the instance level.
+ * They are copied from the primary instance on secondary instance creation.
+ * Flags that have restrictions default to the value at primary
+ * instance on read instances during creation. Read instances can set new
+ * flags or override existing flags that are relevant for reads, for example,
+ * for enabling columnar cache on a read instance. Flags set on read instance
+ * might or might not be present on the primary instance.
+ *
+ *
+ * This is a list of "key": "value" pairs.
+ * "key": The name of the flag. These flags are passed at instance setup time,
+ * so include both server options and system variables for Postgres. Flags are
+ * specified with underscores, not hyphens.
+ * "value": The value of the flag. Booleans are set to **on** for true
+ * and **off** for false. This field must be omitted if the flag
+ * doesn't take a value.
*
*
- * .google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
+ * map<string, string> database_flags = 13;
*/
- private com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.alloydb.v1beta.Instance.MachineConfig,
- com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder,
- com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder>
- internalGetMachineConfigFieldBuilder() {
- if (machineConfigBuilder_ == null) {
- machineConfigBuilder_ =
- new com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.alloydb.v1beta.Instance.MachineConfig,
- com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder,
- com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder>(
- getMachineConfig(), getParentForChildren(), isClean());
- machineConfig_ = null;
+ public Builder removeDatabaseFlags(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
}
- return machineConfigBuilder_;
+ internalGetMutableDatabaseFlags().getMutableMap().remove(key);
+ return this;
}
- private int availabilityType_ = 0;
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map- * Availability type of an Instance. - * If empty, defaults to REGIONAL for primary instances. - * For read pools, availability_type is always UNSPECIFIED. Instances in the - * read pools are evenly distributed across available zones within the region - * (i.e. read pools with more than one node will have a node in at - * least two zones). - *+ * Database flags. Set at the instance level. + * They are copied from the primary instance on secondary instance creation. + * Flags that have restrictions default to the value at primary + * instance on read instances during creation. Read instances can set new + * flags or override existing flags that are relevant for reads, for example, + * for enabling columnar cache on a read instance. Flags set on read instance + * might or might not be present on the primary instance. * - *
.google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11;
*
- * @return The enum numeric value on the wire for availabilityType.
+ * This is a list of "key": "value" pairs.
+ * "key": The name of the flag. These flags are passed at instance setup time,
+ * so include both server options and system variables for Postgres. Flags are
+ * specified with underscores, not hyphens.
+ * "value": The value of the flag. Booleans are set to **on** for true
+ * and **off** for false. This field must be omitted if the flag
+ * doesn't take a value.
+ *
+ *
+ * map<string, string> database_flags = 13;
*/
- @java.lang.Override
- public int getAvailabilityTypeValue() {
- return availabilityType_;
+ public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableDatabaseFlags().getMutableMap().put(key, value);
+ bitField0_ |= 0x00001000;
+ return this;
}
/**
*
*
* - * Availability type of an Instance. - * If empty, defaults to REGIONAL for primary instances. - * For read pools, availability_type is always UNSPECIFIED. Instances in the - * read pools are evenly distributed across available zones within the region - * (i.e. read pools with more than one node will have a node in at - * least two zones). - *+ * Database flags. Set at the instance level. + * They are copied from the primary instance on secondary instance creation. + * Flags that have restrictions default to the value at primary + * instance on read instances during creation. Read instances can set new + * flags or override existing flags that are relevant for reads, for example, + * for enabling columnar cache on a read instance. Flags set on read instance + * might or might not be present on the primary instance. * - *
.google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11;
*
- * @param value The enum numeric value on the wire for availabilityType to set.
- * @return This builder for chaining.
+ * This is a list of "key": "value" pairs.
+ * "key": The name of the flag. These flags are passed at instance setup time,
+ * so include both server options and system variables for Postgres. Flags are
+ * specified with underscores, not hyphens.
+ * "value": The value of the flag. Booleans are set to **on** for true
+ * and **off** for false. This field must be omitted if the flag
+ * doesn't take a value.
+ *
+ *
+ * map<string, string> database_flags = 13;
*/
- public Builder setAvailabilityTypeValue(int value) {
- availabilityType_ = value;
- bitField0_ |= 0x00000400;
- onChanged();
+ public Builder putAllDatabaseFlags(java.util.Map
- * Availability type of an Instance.
- * If empty, defaults to REGIONAL for primary instances.
- * For read pools, availability_type is always UNSPECIFIED. Instances in the
- * read pools are evenly distributed across available zones within the region
- * (i.e. read pools with more than one node will have a node in at
- * least two zones).
+ * Output only. This is set for the read-write VM of the PRIMARY instance
+ * only.
*
*
- * .google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11;
+ *
+ * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return The availabilityType.
+ * @return Whether the writableNode field is set.
*/
- @java.lang.Override
- public com.google.cloud.alloydb.v1beta.Instance.AvailabilityType getAvailabilityType() {
- com.google.cloud.alloydb.v1beta.Instance.AvailabilityType result =
- com.google.cloud.alloydb.v1beta.Instance.AvailabilityType.forNumber(availabilityType_);
- return result == null
- ? com.google.cloud.alloydb.v1beta.Instance.AvailabilityType.UNRECOGNIZED
- : result;
+ public boolean hasWritableNode() {
+ return ((bitField0_ & 0x00002000) != 0);
}
/**
- *
- *
- * - * Availability type of an Instance. - * If empty, defaults to REGIONAL for primary instances. - * For read pools, availability_type is always UNSPECIFIED. Instances in the - * read pools are evenly distributed across available zones within the region - * (i.e. read pools with more than one node will have a node in at - * least two zones). + * + * + *+ * Output only. This is set for the read-write VM of the PRIMARY instance + * only. ** - *.google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11;+ *+ * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + ** - * @param value The availabilityType to set. - * @return This builder for chaining. + * @return The writableNode. */ - public Builder setAvailabilityType( - com.google.cloud.alloydb.v1beta.Instance.AvailabilityType value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.alloydb.v1beta.Instance.Node getWritableNode() { + if (writableNodeBuilder_ == null) { + return writableNode_ == null + ? com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance() + : writableNode_; + } else { + return writableNodeBuilder_.getMessage(); } - bitField0_ |= 0x00000400; - availabilityType_ = value.getNumber(); - onChanged(); - return this; } /** * * *- * Availability type of an Instance. - * If empty, defaults to REGIONAL for primary instances. - * For read pools, availability_type is always UNSPECIFIED. Instances in the - * read pools are evenly distributed across available zones within the region - * (i.e. read pools with more than one node will have a node in at - * least two zones). + * Output only. This is set for the read-write VM of the PRIMARY instance + * only. ** - *.google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11;- * - * @return This builder for chaining. + *+ * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - public Builder clearAvailabilityType() { - bitField0_ = (bitField0_ & ~0x00000400); - availabilityType_ = 0; + public Builder setWritableNode(com.google.cloud.alloydb.v1beta.Instance.Node value) { + if (writableNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + writableNode_ = value; + } else { + writableNodeBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; onChanged(); return this; } - private java.lang.Object gceZone_ = ""; - /** * * *- * The Compute Engine zone that the instance should serve from, per - * https://cloud.google.com/compute/docs/regions-zones - * This can ONLY be specified for ZONAL instances. - * If present for a REGIONAL instance, an error will be thrown. - * If this is absent for a ZONAL instance, instance is created in a random - * zone with available capacity. + * Output only. This is set for the read-write VM of the PRIMARY instance + * only. ** - *string gce_zone = 12;- * - * @return The gceZone. + *+ * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - public java.lang.String getGceZone() { - java.lang.Object ref = gceZone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gceZone_ = s; - return s; + public Builder setWritableNode( + com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { + if (writableNodeBuilder_ == null) { + writableNode_ = builderForValue.build(); } else { - return (java.lang.String) ref; + writableNodeBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00002000; + onChanged(); + return this; } /** * * *- * The Compute Engine zone that the instance should serve from, per - * https://cloud.google.com/compute/docs/regions-zones - * This can ONLY be specified for ZONAL instances. - * If present for a REGIONAL instance, an error will be thrown. - * If this is absent for a ZONAL instance, instance is created in a random - * zone with available capacity. + * Output only. This is set for the read-write VM of the PRIMARY instance + * only. ** - *string gce_zone = 12;- * - * @return The bytes for gceZone. + *+ * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - public com.google.protobuf.ByteString getGceZoneBytes() { - java.lang.Object ref = gceZone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gceZone_ = b; - return b; + public Builder mergeWritableNode(com.google.cloud.alloydb.v1beta.Instance.Node value) { + if (writableNodeBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && writableNode_ != null + && writableNode_ + != com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance()) { + getWritableNodeBuilder().mergeFrom(value); + } else { + writableNode_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + writableNodeBuilder_.mergeFrom(value); + } + if (writableNode_ != null) { + bitField0_ |= 0x00002000; + onChanged(); } + return this; } /** * * *- * The Compute Engine zone that the instance should serve from, per - * https://cloud.google.com/compute/docs/regions-zones - * This can ONLY be specified for ZONAL instances. - * If present for a REGIONAL instance, an error will be thrown. - * If this is absent for a ZONAL instance, instance is created in a random - * zone with available capacity. + * Output only. This is set for the read-write VM of the PRIMARY instance + * only. ** - *string gce_zone = 12;- * - * @param value The gceZone to set. - * @return This builder for chaining. + *+ * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - public Builder setGceZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearWritableNode() { + bitField0_ = (bitField0_ & ~0x00002000); + writableNode_ = null; + if (writableNodeBuilder_ != null) { + writableNodeBuilder_.dispose(); + writableNodeBuilder_ = null; } - gceZone_ = value; - bitField0_ |= 0x00000800; onChanged(); return this; } @@ -24380,225 +27698,170 @@ public Builder setGceZone(java.lang.String value) { * * *- * The Compute Engine zone that the instance should serve from, per - * https://cloud.google.com/compute/docs/regions-zones - * This can ONLY be specified for ZONAL instances. - * If present for a REGIONAL instance, an error will be thrown. - * If this is absent for a ZONAL instance, instance is created in a random - * zone with available capacity. + * Output only. This is set for the read-write VM of the PRIMARY instance + * only. ** - *string gce_zone = 12;- * - * @return This builder for chaining. + *+ * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - public Builder clearGceZone() { - gceZone_ = getDefaultInstance().getGceZone(); - bitField0_ = (bitField0_ & ~0x00000800); + public com.google.cloud.alloydb.v1beta.Instance.Node.Builder getWritableNodeBuilder() { + bitField0_ |= 0x00002000; onChanged(); - return this; + return internalGetWritableNodeFieldBuilder().getBuilder(); } /** * * *- * The Compute Engine zone that the instance should serve from, per - * https://cloud.google.com/compute/docs/regions-zones - * This can ONLY be specified for ZONAL instances. - * If present for a REGIONAL instance, an error will be thrown. - * If this is absent for a ZONAL instance, instance is created in a random - * zone with available capacity. + * Output only. This is set for the read-write VM of the PRIMARY instance + * only. ** - *string gce_zone = 12;- * - * @param value The bytes for gceZone to set. - * @return This builder for chaining. + *+ * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - public Builder setGceZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder getWritableNodeOrBuilder() { + if (writableNodeBuilder_ != null) { + return writableNodeBuilder_.getMessageOrBuilder(); + } else { + return writableNode_ == null + ? com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance() + : writableNode_; } - checkByteStringIsUtf8(value); - gceZone_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; } - private com.google.protobuf.MapFielddatabaseFlags_; - - private com.google.protobuf.MapField - internalGetDatabaseFlags() { - if (databaseFlags_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DatabaseFlagsDefaultEntryHolder.defaultEntry); + /** + * + * + * + * Output only. This is set for the read-write VM of the PRIMARY instance + * only. + *+ * + *+ * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.Node, + com.google.cloud.alloydb.v1beta.Instance.Node.Builder, + com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder> + internalGetWritableNodeFieldBuilder() { + if (writableNodeBuilder_ == null) { + writableNodeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.Node, + com.google.cloud.alloydb.v1beta.Instance.Node.Builder, + com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder>( + getWritableNode(), getParentForChildren(), isClean()); + writableNode_ = null; } - return databaseFlags_; + return writableNodeBuilder_; } - private com.google.protobuf.MapField- internalGetMutableDatabaseFlags() { - if (databaseFlags_ == null) { - databaseFlags_ = - com.google.protobuf.MapField.newMapField(DatabaseFlagsDefaultEntryHolder.defaultEntry); - } - if (!databaseFlags_.isMutable()) { - databaseFlags_ = databaseFlags_.copy(); - } - bitField0_ |= 0x00001000; - onChanged(); - return databaseFlags_; - } + private java.util.List nodes_ = + java.util.Collections.emptyList(); - public int getDatabaseFlagsCount() { - return internalGetDatabaseFlags().getMap().size(); + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + nodes_ = new java.util.ArrayList (nodes_); + bitField0_ |= 0x00004000; + } } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.Node, + com.google.cloud.alloydb.v1beta.Instance.Node.Builder, + com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder> + nodesBuilder_; + /** * * * - * Database flags. Set at the instance level. - * They are copied from the primary instance on secondary instance creation. - * Flags that have restrictions default to the value at primary - * instance on read instances during creation. Read instances can set new - * flags or override existing flags that are relevant for reads, for example, - * for enabling columnar cache on a read instance. Flags set on read instance - * might or might not be present on the primary instance. - * - * - * This is a list of "key": "value" pairs. - * "key": The name of the flag. These flags are passed at instance setup time, - * so include both server options and system variables for Postgres. Flags are - * specified with underscores, not hyphens. - * "value": The value of the flag. Booleans are set to **on** for true - * and **off** for false. This field must be omitted if the flag - * doesn't take a value. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** - *map<string, string> database_flags = 13;+ *+ * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - @java.lang.Override - public boolean containsDatabaseFlags(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public java.util.ListgetNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); } - return internalGetDatabaseFlags().getMap().containsKey(key); - } - - /** Use {@link #getDatabaseFlagsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDatabaseFlags() { - return getDatabaseFlagsMap(); } /** * * * - * Database flags. Set at the instance level. - * They are copied from the primary instance on secondary instance creation. - * Flags that have restrictions default to the value at primary - * instance on read instances during creation. Read instances can set new - * flags or override existing flags that are relevant for reads, for example, - * for enabling columnar cache on a read instance. Flags set on read instance - * might or might not be present on the primary instance. - * - * - * This is a list of "key": "value" pairs. - * "key": The name of the flag. These flags are passed at instance setup time, - * so include both server options and system variables for Postgres. Flags are - * specified with underscores, not hyphens. - * "value": The value of the flag. Booleans are set to **on** for true - * and **off** for false. This field must be omitted if the flag - * doesn't take a value. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** - *map<string, string> database_flags = 13;+ *+ * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - @java.lang.Override - public java.util.MapgetDatabaseFlagsMap() { - return internalGetDatabaseFlags().getMap(); + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); + } else { + return nodesBuilder_.getCount(); + } } /** * * * - * Database flags. Set at the instance level. - * They are copied from the primary instance on secondary instance creation. - * Flags that have restrictions default to the value at primary - * instance on read instances during creation. Read instances can set new - * flags or override existing flags that are relevant for reads, for example, - * for enabling columnar cache on a read instance. Flags set on read instance - * might or might not be present on the primary instance. - * - * - * This is a list of "key": "value" pairs. - * "key": The name of the flag. These flags are passed at instance setup time, - * so include both server options and system variables for Postgres. Flags are - * specified with underscores, not hyphens. - * "value": The value of the flag. Booleans are set to **on** for true - * and **off** for false. This field must be omitted if the flag - * doesn't take a value. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** - *map<string, string> database_flags = 13;+ *+ * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - @java.lang.Override - public /* nullable */ java.lang.String getDatabaseFlagsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.cloud.alloydb.v1beta.Instance.Node getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessage(index); } - java.util.Mapmap = internalGetDatabaseFlags().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * * - * Database flags. Set at the instance level. - * They are copied from the primary instance on secondary instance creation. - * Flags that have restrictions default to the value at primary - * instance on read instances during creation. Read instances can set new - * flags or override existing flags that are relevant for reads, for example, - * for enabling columnar cache on a read instance. Flags set on read instance - * might or might not be present on the primary instance. - * - * - * This is a list of "key": "value" pairs. - * "key": The name of the flag. These flags are passed at instance setup time, - * so include both server options and system variables for Postgres. Flags are - * specified with underscores, not hyphens. - * "value": The value of the flag. Booleans are set to **on** for true - * and **off** for false. This field must be omitted if the flag - * doesn't take a value. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** - *map<string, string> database_flags = 13;+ *+ * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - @java.lang.Override - public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Mapmap = internalGetDatabaseFlags().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder setNodes(int index, com.google.cloud.alloydb.v1beta.Instance.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); + } else { + nodesBuilder_.setMessage(index, value); } - return map.get(key); - } - - public Builder clearDatabaseFlags() { - bitField0_ = (bitField0_ & ~0x00001000); - internalGetMutableDatabaseFlags().getMutableMap().clear(); return this; } @@ -24606,74 +27869,75 @@ public Builder clearDatabaseFlags() { * * * - * Database flags. Set at the instance level. - * They are copied from the primary instance on secondary instance creation. - * Flags that have restrictions default to the value at primary - * instance on read instances during creation. Read instances can set new - * flags or override existing flags that are relevant for reads, for example, - * for enabling columnar cache on a read instance. Flags set on read instance - * might or might not be present on the primary instance. - * - * - * This is a list of "key": "value" pairs. - * "key": The name of the flag. These flags are passed at instance setup time, - * so include both server options and system variables for Postgres. Flags are - * specified with underscores, not hyphens. - * "value": The value of the flag. Booleans are set to **on** for true - * and **off** for false. This field must be omitted if the flag - * doesn't take a value. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** - *map<string, string> database_flags = 13;+ *+ * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - public Builder removeDatabaseFlags(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setNodes( + int index, com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); } - internalGetMutableDatabaseFlags().getMutableMap().remove(key); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.MapgetMutableDatabaseFlags() { - bitField0_ |= 0x00001000; - return internalGetMutableDatabaseFlags().getMutableMap(); - } - /** * * * - * Database flags. Set at the instance level. - * They are copied from the primary instance on secondary instance creation. - * Flags that have restrictions default to the value at primary - * instance on read instances during creation. Read instances can set new - * flags or override existing flags that are relevant for reads, for example, - * for enabling columnar cache on a read instance. Flags set on read instance - * might or might not be present on the primary instance. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ */ + public Builder addNodes(com.google.cloud.alloydb.v1beta.Instance.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); + } + return this; + } + + /** * * - * This is a list of "key": "value" pairs. - * "key": The name of the flag. These flags are passed at instance setup time, - * so include both server options and system variables for Postgres. Flags are - * specified with underscores, not hyphens. - * "value": The value of the flag. Booleans are set to **on** for true - * and **off** for false. This field must be omitted if the flag - * doesn't take a value. + *+ * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** - *map<string, string> database_flags = 13;+ *+ * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); + public Builder addNodes(int index, com.google.cloud.alloydb.v1beta.Instance.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); + } else { + nodesBuilder_.addMessage(index, value); } - internalGetMutableDatabaseFlags().getMutableMap().put(key, value); - bitField0_ |= 0x00001000; return this; } @@ -24681,104 +27945,93 @@ public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) { * * *- * Database flags. Set at the instance level. - * They are copied from the primary instance on secondary instance creation. - * Flags that have restrictions default to the value at primary - * instance on read instances during creation. Read instances can set new - * flags or override existing flags that are relevant for reads, for example, - * for enabling columnar cache on a read instance. Flags set on read instance - * might or might not be present on the primary instance. - * - * - * This is a list of "key": "value" pairs. - * "key": The name of the flag. These flags are passed at instance setup time, - * so include both server options and system variables for Postgres. Flags are - * specified with underscores, not hyphens. - * "value": The value of the flag. Booleans are set to **on** for true - * and **off** for false. This field must be omitted if the flag - * doesn't take a value. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** - *map<string, string> database_flags = 13;+ *+ * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - public Builder putAllDatabaseFlags(java.util.Mapvalues) { - internalGetMutableDatabaseFlags().getMutableMap().putAll(values); - bitField0_ |= 0x00001000; + public Builder addNodes(com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(builderForValue.build()); + } return this; } - private com.google.cloud.alloydb.v1beta.Instance.Node writableNode_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.Node, - com.google.cloud.alloydb.v1beta.Instance.Node.Builder, - com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder> - writableNodeBuilder_; - /** * * * - * Output only. This is set for the read-write VM of the PRIMARY instance - * only. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** *- * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; *- * - * @return Whether the writableNode field is set. */ - public boolean hasWritableNode() { - return ((bitField0_ & 0x00002000) != 0); + public Builder addNodes( + int index, com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; } /** * * *- * Output only. This is set for the read-write VM of the PRIMARY instance - * only. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** *- * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; *- * - * @return The writableNode. */ - public com.google.cloud.alloydb.v1beta.Instance.Node getWritableNode() { - if (writableNodeBuilder_ == null) { - return writableNode_ == null - ? com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance() - : writableNode_; + public Builder addAllNodes( + java.lang.Iterable extends com.google.cloud.alloydb.v1beta.Instance.Node> values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); + onChanged(); } else { - return writableNodeBuilder_.getMessage(); + nodesBuilder_.addAllMessages(values); } + return this; } /** * * *- * Output only. This is set for the read-write VM of the PRIMARY instance - * only. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** *- * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public Builder setWritableNode(com.google.cloud.alloydb.v1beta.Instance.Node value) { - if (writableNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - writableNode_ = value; + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); } else { - writableNodeBuilder_.setMessage(value); + nodesBuilder_.clear(); } - bitField0_ |= 0x00002000; - onChanged(); return this; } @@ -24786,23 +28039,22 @@ public Builder setWritableNode(com.google.cloud.alloydb.v1beta.Instance.Node val * * *- * Output only. This is set for the read-write VM of the PRIMARY instance - * only. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** *- * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public Builder setWritableNode( - com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { - if (writableNodeBuilder_ == null) { - writableNode_ = builderForValue.build(); + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); } else { - writableNodeBuilder_.setMessage(builderForValue.build()); + nodesBuilder_.remove(index); } - bitField0_ |= 0x00002000; - onChanged(); return this; } @@ -24810,179 +28062,174 @@ public Builder setWritableNode( * * *- * Output only. This is set for the read-write VM of the PRIMARY instance - * only. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** *- * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public Builder mergeWritableNode(com.google.cloud.alloydb.v1beta.Instance.Node value) { - if (writableNodeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && writableNode_ != null - && writableNode_ - != com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance()) { - getWritableNodeBuilder().mergeFrom(value); - } else { - writableNode_ = value; - } + public com.google.cloud.alloydb.v1beta.Instance.Node.Builder getNodesBuilder(int index) { + return internalGetNodesFieldBuilder().getBuilder(index); + } + + /** + * + * + *+ * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ */ + public com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder getNodesOrBuilder(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); } else { - writableNodeBuilder_.mergeFrom(value); - } - if (writableNode_ != null) { - bitField0_ |= 0x00002000; - onChanged(); + return nodesBuilder_.getMessageOrBuilder(index); } - return this; } /** * * *- * Output only. This is set for the read-write VM of the PRIMARY instance - * only. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** *- * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public Builder clearWritableNode() { - bitField0_ = (bitField0_ & ~0x00002000); - writableNode_ = null; - if (writableNodeBuilder_ != null) { - writableNodeBuilder_.dispose(); - writableNodeBuilder_ = null; + public java.util.List extends com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder> + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodes_); } - onChanged(); - return this; } /** * * *- * Output only. This is set for the read-write VM of the PRIMARY instance - * only. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** *- * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public com.google.cloud.alloydb.v1beta.Instance.Node.Builder getWritableNodeBuilder() { - bitField0_ |= 0x00002000; - onChanged(); - return internalGetWritableNodeFieldBuilder().getBuilder(); + public com.google.cloud.alloydb.v1beta.Instance.Node.Builder addNodesBuilder() { + return internalGetNodesFieldBuilder() + .addBuilder(com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance()); } /** * * *- * Output only. This is set for the read-write VM of the PRIMARY instance - * only. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** *- * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder getWritableNodeOrBuilder() { - if (writableNodeBuilder_ != null) { - return writableNodeBuilder_.getMessageOrBuilder(); - } else { - return writableNode_ == null - ? com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance() - : writableNode_; - } + public com.google.cloud.alloydb.v1beta.Instance.Node.Builder addNodesBuilder(int index) { + return internalGetNodesFieldBuilder() + .addBuilder(index, com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance()); } /** * * *- * Output only. This is set for the read-write VM of the PRIMARY instance - * only. + * Output only. List of available read-only VMs in this instance, including + * the standby for a PRIMARY instance. ** *- * .google.cloud.alloydb.v1beta.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - private com.google.protobuf.SingleFieldBuilder< + public java.util.List+ getNodesBuilderList() { + return internalGetNodesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.alloydb.v1beta.Instance.Node, com.google.cloud.alloydb.v1beta.Instance.Node.Builder, com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder> - internalGetWritableNodeFieldBuilder() { - if (writableNodeBuilder_ == null) { - writableNodeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< + internalGetNodesFieldBuilder() { + if (nodesBuilder_ == null) { + nodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.alloydb.v1beta.Instance.Node, - com.google.cloud.alloydb.v1beta.Instance.Node.Builder, - com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder>( - getWritableNode(), getParentForChildren(), isClean()); - writableNode_ = null; - } - return writableNodeBuilder_; - } - - private java.util.List nodes_ = - java.util.Collections.emptyList(); - - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { - nodes_ = new java.util.ArrayList (nodes_); - bitField0_ |= 0x00004000; + com.google.cloud.alloydb.v1beta.Instance.Node.Builder, + com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder>( + nodes_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + nodes_ = null; } + return nodesBuilder_; } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.Node, - com.google.cloud.alloydb.v1beta.Instance.Node.Builder, - com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder> - nodesBuilder_; + private com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + queryInsightsConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder> + queryInsightsConfigBuilder_; /** * * * - * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Configuration for query insights. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; *+ * + * @return Whether the queryInsightsConfig field is set. */ - public java.util.ListgetNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } + public boolean hasQueryInsightsConfig() { + return ((bitField0_ & 0x00008000) != 0); } /** * * * - * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Configuration for query insights. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; *+ * + * @return The queryInsightsConfig. */ - public int getNodesCount() { - if (nodesBuilder_ == null) { - return nodes_.size(); + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + getQueryInsightsConfig() { + if (queryInsightsConfigBuilder_ == null) { + return queryInsightsConfig_ == null + ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + .getDefaultInstance() + : queryInsightsConfig_; } else { - return nodesBuilder_.getCount(); + return queryInsightsConfigBuilder_.getMessage(); } } @@ -24990,45 +28237,49 @@ public int getNodesCount() { * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Configuration for query insights. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; **/ - public com.google.cloud.alloydb.v1beta.Instance.Node getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); + public Builder setQueryInsightsConfig( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig value) { + if (queryInsightsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryInsightsConfig_ = value; } else { - return nodesBuilder_.getMessage(index); + queryInsightsConfigBuilder_.setMessage(value); } + bitField0_ |= 0x00008000; + onChanged(); + return this; } /** * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Configuration for query insights. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; **/ - public Builder setNodes(int index, com.google.cloud.alloydb.v1beta.Instance.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); + public Builder setQueryInsightsConfig( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder + builderForValue) { + if (queryInsightsConfigBuilder_ == null) { + queryInsightsConfig_ = builderForValue.build(); } else { - nodesBuilder_.setMessage(index, value); + queryInsightsConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00008000; + onChanged(); return this; } @@ -25036,22 +28287,31 @@ public Builder setNodes(int index, com.google.cloud.alloydb.v1beta.Instance.Node * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Configuration for query insights. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; **/ - public Builder setNodes( - int index, com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); + public Builder mergeQueryInsightsConfig( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig value) { + if (queryInsightsConfigBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && queryInsightsConfig_ != null + && queryInsightsConfig_ + != com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + .getDefaultInstance()) { + getQueryInsightsConfigBuilder().mergeFrom(value); + } else { + queryInsightsConfig_ = value; + } } else { - nodesBuilder_.setMessage(index, builderForValue.build()); + queryInsightsConfigBuilder_.mergeFrom(value); + } + if (queryInsightsConfig_ != null) { + bitField0_ |= 0x00008000; + onChanged(); } return this; } @@ -25060,25 +28320,21 @@ public Builder setNodes( * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Configuration for query insights. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; **/ - public Builder addNodes(com.google.cloud.alloydb.v1beta.Instance.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); - } else { - nodesBuilder_.addMessage(value); + public Builder clearQueryInsightsConfig() { + bitField0_ = (bitField0_ & ~0x00008000); + queryInsightsConfig_ = null; + if (queryInsightsConfigBuilder_ != null) { + queryInsightsConfigBuilder_.dispose(); + queryInsightsConfigBuilder_ = null; } + onChanged(); return this; } @@ -25086,142 +28342,152 @@ public Builder addNodes(com.google.cloud.alloydb.v1beta.Instance.Node value) { * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Configuration for query insights. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; **/ - public Builder addNodes(int index, com.google.cloud.alloydb.v1beta.Instance.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); - } - return this; + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder + getQueryInsightsConfigBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return internalGetQueryInsightsConfigFieldBuilder().getBuilder(); } /** * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Configuration for query insights. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; **/ - public Builder addNodes(com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder + getQueryInsightsConfigOrBuilder() { + if (queryInsightsConfigBuilder_ != null) { + return queryInsightsConfigBuilder_.getMessageOrBuilder(); } else { - nodesBuilder_.addMessage(builderForValue.build()); + return queryInsightsConfig_ == null + ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + .getDefaultInstance() + : queryInsightsConfig_; } - return this; } /** * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Configuration for query insights. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; **/ - public Builder addNodes( - int index, com.google.cloud.alloydb.v1beta.Instance.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(index, builderForValue.build()); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder> + internalGetQueryInsightsConfigFieldBuilder() { + if (queryInsightsConfigBuilder_ == null) { + queryInsightsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder>( + getQueryInsightsConfig(), getParentForChildren(), isClean()); + queryInsightsConfig_ = null; } - return this; + return queryInsightsConfigBuilder_; } + private com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo queryInsightsInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfoOrBuilder> + queryInsightsInfoBuilder_; + /** * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; *+ * + * @return Whether the queryInsightsInfo field is set. */ - public Builder addAllNodes( - java.lang.Iterable extends com.google.cloud.alloydb.v1beta.Instance.Node> values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); - } - return this; + public boolean hasQueryInsightsInfo() { + return ((bitField0_ & 0x00010000) != 0); } /** * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; *+ * + * @return The queryInsightsInfo. */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + getQueryInsightsInfo() { + if (queryInsightsInfoBuilder_ == null) { + return queryInsightsInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + .getDefaultInstance() + : queryInsightsInfo_; } else { - nodesBuilder_.clear(); + return queryInsightsInfoBuilder_.getMessage(); } - return this; } /** * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); + public Builder setQueryInsightsInfo( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo value) { + if (queryInsightsInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryInsightsInfo_ = value; } else { - nodesBuilder_.remove(index); + queryInsightsInfoBuilder_.setMessage(value); } + bitField0_ |= 0x00010000; + onChanged(); return this; } @@ -25229,174 +28495,215 @@ public Builder removeNodes(int index) { * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public com.google.cloud.alloydb.v1beta.Instance.Node.Builder getNodesBuilder(int index) { - return internalGetNodesFieldBuilder().getBuilder(index); + public Builder setQueryInsightsInfo( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.Builder + builderForValue) { + if (queryInsightsInfoBuilder_ == null) { + queryInsightsInfo_ = builderForValue.build(); + } else { + queryInsightsInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; } /** * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder getNodesOrBuilder(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); + public Builder mergeQueryInsightsInfo( + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo value) { + if (queryInsightsInfoBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && queryInsightsInfo_ != null + && queryInsightsInfo_ + != com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + .getDefaultInstance()) { + getQueryInsightsInfoBuilder().mergeFrom(value); + } else { + queryInsightsInfo_ = value; + } } else { - return nodesBuilder_.getMessageOrBuilder(index); + queryInsightsInfoBuilder_.mergeFrom(value); + } + if (queryInsightsInfo_ != null) { + bitField0_ |= 0x00010000; + onChanged(); } + return this; } /** * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public java.util.List extends com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder> - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); + public Builder clearQueryInsightsInfo() { + bitField0_ = (bitField0_ & ~0x00010000); + queryInsightsInfo_ = null; + if (queryInsightsInfoBuilder_ != null) { + queryInsightsInfoBuilder_.dispose(); + queryInsightsInfoBuilder_ = null; } + onChanged(); + return this; } /** * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public com.google.cloud.alloydb.v1beta.Instance.Node.Builder addNodesBuilder() { - return internalGetNodesFieldBuilder() - .addBuilder(com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance()); + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.Builder + getQueryInsightsInfoBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return internalGetQueryInsightsInfoFieldBuilder().getBuilder(); } /** * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public com.google.cloud.alloydb.v1beta.Instance.Node.Builder addNodesBuilder(int index) { - return internalGetNodesFieldBuilder() - .addBuilder(index, com.google.cloud.alloydb.v1beta.Instance.Node.getDefaultInstance()); + public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfoOrBuilder + getQueryInsightsInfoOrBuilder() { + if (queryInsightsInfoBuilder_ != null) { + return queryInsightsInfoBuilder_.getMessageOrBuilder(); + } else { + return queryInsightsInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo + .getDefaultInstance() + : queryInsightsInfo_; + } } /** * * *- * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. ** *- * repeated .google.cloud.alloydb.v1beta.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public java.util.List- getNodesBuilderList() { - return internalGetNodesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.Node, - com.google.cloud.alloydb.v1beta.Instance.Node.Builder, - com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder> - internalGetNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.Node, - com.google.cloud.alloydb.v1beta.Instance.Node.Builder, - com.google.cloud.alloydb.v1beta.Instance.NodeOrBuilder>( - nodes_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); - nodes_ = null; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfoOrBuilder> + internalGetQueryInsightsInfoFieldBuilder() { + if (queryInsightsInfoBuilder_ == null) { + queryInsightsInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfoOrBuilder>( + getQueryInsightsInfo(), getParentForChildren(), isClean()); + queryInsightsInfo_ = null; } - return nodesBuilder_; + return queryInsightsInfoBuilder_; } - private com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig - queryInsightsConfig_; + private com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + observabilityConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig, - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder> - queryInsightsConfigBuilder_; + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder> + observabilityConfigBuilder_; /** * * * - * Configuration for query insights. + * Configuration for observability. ** *- * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; ** - * @return Whether the queryInsightsConfig field is set. + * @return Whether the observabilityConfig field is set. */ - public boolean hasQueryInsightsConfig() { - return ((bitField0_ & 0x00008000) != 0); + public boolean hasObservabilityConfig() { + return ((bitField0_ & 0x00020000) != 0); } /** * * *- * Configuration for query insights. + * Configuration for observability. ** *- * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; ** - * @return The queryInsightsConfig. + * @return The observabilityConfig. */ - public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig - getQueryInsightsConfig() { - if (queryInsightsConfigBuilder_ == null) { - return queryInsightsConfig_ == null - ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + getObservabilityConfig() { + if (observabilityConfigBuilder_ == null) { + return observabilityConfig_ == null + ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig .getDefaultInstance() - : queryInsightsConfig_; + : observabilityConfig_; } else { - return queryInsightsConfigBuilder_.getMessage(); + return observabilityConfigBuilder_.getMessage(); } } @@ -25404,24 +28711,24 @@ public boolean hasQueryInsightsConfig() { * * *- * Configuration for query insights. + * Configuration for observability. ** *- * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; **/ - public Builder setQueryInsightsConfig( - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig value) { - if (queryInsightsConfigBuilder_ == null) { + public Builder setObservabilityConfig( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig value) { + if (observabilityConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - queryInsightsConfig_ = value; + observabilityConfig_ = value; } else { - queryInsightsConfigBuilder_.setMessage(value); + observabilityConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -25430,22 +28737,22 @@ public Builder setQueryInsightsConfig( * * *- * Configuration for query insights. + * Configuration for observability. ** *- * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; **/ - public Builder setQueryInsightsConfig( - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder + public Builder setObservabilityConfig( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder builderForValue) { - if (queryInsightsConfigBuilder_ == null) { - queryInsightsConfig_ = builderForValue.build(); + if (observabilityConfigBuilder_ == null) { + observabilityConfig_ = builderForValue.build(); } else { - queryInsightsConfigBuilder_.setMessage(builderForValue.build()); + observabilityConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -25454,30 +28761,30 @@ public Builder setQueryInsightsConfig( * * *- * Configuration for query insights. + * Configuration for observability. ** *- * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; **/ - public Builder mergeQueryInsightsConfig( - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig value) { - if (queryInsightsConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && queryInsightsConfig_ != null - && queryInsightsConfig_ - != com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + public Builder mergeObservabilityConfig( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig value) { + if (observabilityConfigBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && observabilityConfig_ != null + && observabilityConfig_ + != com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig .getDefaultInstance()) { - getQueryInsightsConfigBuilder().mergeFrom(value); + getObservabilityConfigBuilder().mergeFrom(value); } else { - queryInsightsConfig_ = value; + observabilityConfig_ = value; } } else { - queryInsightsConfigBuilder_.mergeFrom(value); + observabilityConfigBuilder_.mergeFrom(value); } - if (queryInsightsConfig_ != null) { - bitField0_ |= 0x00008000; + if (observabilityConfig_ != null) { + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -25487,19 +28794,19 @@ public Builder mergeQueryInsightsConfig( * * *- * Configuration for query insights. + * Configuration for observability. ** *- * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; **/ - public Builder clearQueryInsightsConfig() { - bitField0_ = (bitField0_ & ~0x00008000); - queryInsightsConfig_ = null; - if (queryInsightsConfigBuilder_ != null) { - queryInsightsConfigBuilder_.dispose(); - queryInsightsConfigBuilder_ = null; + public Builder clearObservabilityConfig() { + bitField0_ = (bitField0_ & ~0x00020000); + observabilityConfig_ = null; + if (observabilityConfigBuilder_ != null) { + observabilityConfigBuilder_.dispose(); + observabilityConfigBuilder_ = null; } onChanged(); return this; @@ -25509,118 +28816,124 @@ public Builder clearQueryInsightsConfig() { * * *- * Configuration for query insights. + * Configuration for observability. ** *- * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; **/ - public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder - getQueryInsightsConfigBuilder() { - bitField0_ |= 0x00008000; + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder + getObservabilityConfigBuilder() { + bitField0_ |= 0x00020000; onChanged(); - return internalGetQueryInsightsConfigFieldBuilder().getBuilder(); + return internalGetObservabilityConfigFieldBuilder().getBuilder(); } /** * * *- * Configuration for query insights. + * Configuration for observability. ** *- * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; **/ - public com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder - getQueryInsightsConfigOrBuilder() { - if (queryInsightsConfigBuilder_ != null) { - return queryInsightsConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder + getObservabilityConfigOrBuilder() { + if (observabilityConfigBuilder_ != null) { + return observabilityConfigBuilder_.getMessageOrBuilder(); } else { - return queryInsightsConfig_ == null - ? com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig + return observabilityConfig_ == null + ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig .getDefaultInstance() - : queryInsightsConfig_; - } - } - - /** - * - * - *- * Configuration for query insights. - *- * - *- * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - *- */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig, - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder> - internalGetQueryInsightsConfigFieldBuilder() { - if (queryInsightsConfigBuilder_ == null) { - queryInsightsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig, - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder>( - getQueryInsightsConfig(), getParentForChildren(), isClean()); - queryInsightsConfig_ = null; + : observabilityConfig_; } - return queryInsightsConfigBuilder_; } - private com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig - observabilityConfig_; + /** + * + * + *+ * Configuration for observability. + *+ * + *+ * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + *+ */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig, com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder, com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder> - observabilityConfigBuilder_; + internalGetObservabilityConfigFieldBuilder() { + if (observabilityConfigBuilder_ == null) { + observabilityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder>( + getObservabilityConfig(), getParentForChildren(), isClean()); + observabilityConfig_ = null; + } + return observabilityConfigBuilder_; + } + + private com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo + observabilityInstanceInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfoOrBuilder> + observabilityInstanceInfoBuilder_; /** * * *- * Configuration for observability. + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. ** *- * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; ** - * @return Whether the observabilityConfig field is set. + * @return Whether the observabilityInstanceInfo field is set. */ - public boolean hasObservabilityConfig() { - return ((bitField0_ & 0x00010000) != 0); + public boolean hasObservabilityInstanceInfo() { + return ((bitField0_ & 0x00040000) != 0); } /** * * *- * Configuration for observability. + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. ** *- * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; ** - * @return The observabilityConfig. + * @return The observabilityInstanceInfo. */ - public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig - getObservabilityConfig() { - if (observabilityConfigBuilder_ == null) { - return observabilityConfig_ == null - ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo + getObservabilityInstanceInfo() { + if (observabilityInstanceInfoBuilder_ == null) { + return observabilityInstanceInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo .getDefaultInstance() - : observabilityConfig_; + : observabilityInstanceInfo_; } else { - return observabilityConfigBuilder_.getMessage(); + return observabilityInstanceInfoBuilder_.getMessage(); } } @@ -25628,24 +28941,27 @@ public boolean hasObservabilityConfig() { * * *- * Configuration for observability. + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. ** *- * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public Builder setObservabilityConfig( - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig value) { - if (observabilityConfigBuilder_ == null) { + public Builder setObservabilityInstanceInfo( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo value) { + if (observabilityInstanceInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - observabilityConfig_ = value; + observabilityInstanceInfo_ = value; } else { - observabilityConfigBuilder_.setMessage(value); + observabilityInstanceInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -25654,22 +28970,25 @@ public Builder setObservabilityConfig( * * *- * Configuration for observability. + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. ** *- * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public Builder setObservabilityConfig( - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder + public Builder setObservabilityInstanceInfo( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.Builder builderForValue) { - if (observabilityConfigBuilder_ == null) { - observabilityConfig_ = builderForValue.build(); + if (observabilityInstanceInfoBuilder_ == null) { + observabilityInstanceInfo_ = builderForValue.build(); } else { - observabilityConfigBuilder_.setMessage(builderForValue.build()); + observabilityInstanceInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -25678,30 +28997,33 @@ public Builder setObservabilityConfig( * * *- * Configuration for observability. + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. ** *- * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public Builder mergeObservabilityConfig( - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig value) { - if (observabilityConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && observabilityConfig_ != null - && observabilityConfig_ - != com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + public Builder mergeObservabilityInstanceInfo( + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo value) { + if (observabilityInstanceInfoBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && observabilityInstanceInfo_ != null + && observabilityInstanceInfo_ + != com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo .getDefaultInstance()) { - getObservabilityConfigBuilder().mergeFrom(value); + getObservabilityInstanceInfoBuilder().mergeFrom(value); } else { - observabilityConfig_ = value; + observabilityInstanceInfo_ = value; } } else { - observabilityConfigBuilder_.mergeFrom(value); + observabilityInstanceInfoBuilder_.mergeFrom(value); } - if (observabilityConfig_ != null) { - bitField0_ |= 0x00010000; + if (observabilityInstanceInfo_ != null) { + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -25711,19 +29033,22 @@ public Builder mergeObservabilityConfig( * * *- * Configuration for observability. + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. ** *- * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public Builder clearObservabilityConfig() { - bitField0_ = (bitField0_ & ~0x00010000); - observabilityConfig_ = null; - if (observabilityConfigBuilder_ != null) { - observabilityConfigBuilder_.dispose(); - observabilityConfigBuilder_ = null; + public Builder clearObservabilityInstanceInfo() { + bitField0_ = (bitField0_ & ~0x00040000); + observabilityInstanceInfo_ = null; + if (observabilityInstanceInfoBuilder_ != null) { + observabilityInstanceInfoBuilder_.dispose(); + observabilityInstanceInfoBuilder_ = null; } onChanged(); return this; @@ -25733,40 +29058,46 @@ public Builder clearObservabilityConfig() { * * *- * Configuration for observability. + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. ** *- * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder - getObservabilityConfigBuilder() { - bitField0_ |= 0x00010000; + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.Builder + getObservabilityInstanceInfoBuilder() { + bitField0_ |= 0x00040000; onChanged(); - return internalGetObservabilityConfigFieldBuilder().getBuilder(); + return internalGetObservabilityInstanceInfoFieldBuilder().getBuilder(); } /** * * *- * Configuration for observability. + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. ** *- * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder - getObservabilityConfigOrBuilder() { - if (observabilityConfigBuilder_ != null) { - return observabilityConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfoOrBuilder + getObservabilityInstanceInfoOrBuilder() { + if (observabilityInstanceInfoBuilder_ != null) { + return observabilityInstanceInfoBuilder_.getMessageOrBuilder(); } else { - return observabilityConfig_ == null - ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig + return observabilityInstanceInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo .getDefaultInstance() - : observabilityConfig_; + : observabilityInstanceInfo_; } } @@ -25774,28 +29105,31 @@ public Builder clearObservabilityConfig() { * * *- * Configuration for observability. + * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. ** *- * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig observability_config = 26; + * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig, - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder> - internalGetObservabilityConfigFieldBuilder() { - if (observabilityConfigBuilder_ == null) { - observabilityConfigBuilder_ = + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfoOrBuilder> + internalGetObservabilityInstanceInfoFieldBuilder() { + if (observabilityInstanceInfoBuilder_ == null) { + observabilityInstanceInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig, - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder>( - getObservabilityConfig(), getParentForChildren(), isClean()); - observabilityConfig_ = null; + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfoOrBuilder>( + getObservabilityInstanceInfo(), getParentForChildren(), isClean()); + observabilityInstanceInfo_ = null; } - return observabilityConfigBuilder_; + return observabilityInstanceInfoBuilder_; } private com.google.cloud.alloydb.v1beta.Instance.ReadPoolConfig readPoolConfig_; @@ -25818,7 +29152,7 @@ public Builder clearObservabilityConfig() { * @return Whether the readPoolConfig field is set. */ public boolean hasReadPoolConfig() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -25863,7 +29197,7 @@ public Builder setReadPoolConfig( } else { readPoolConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -25885,7 +29219,7 @@ public Builder setReadPoolConfig( } else { readPoolConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -25903,7 +29237,7 @@ public Builder setReadPoolConfig( public Builder mergeReadPoolConfig( com.google.cloud.alloydb.v1beta.Instance.ReadPoolConfig value) { if (readPoolConfigBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00080000) != 0) && readPoolConfig_ != null && readPoolConfig_ != com.google.cloud.alloydb.v1beta.Instance.ReadPoolConfig.getDefaultInstance()) { @@ -25915,7 +29249,7 @@ public Builder mergeReadPoolConfig( readPoolConfigBuilder_.mergeFrom(value); } if (readPoolConfig_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -25932,7 +29266,7 @@ public Builder mergeReadPoolConfig( *.google.cloud.alloydb.v1beta.Instance.ReadPoolConfig read_pool_config = 14;*/ public Builder clearReadPoolConfig() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00080000); readPoolConfig_ = null; if (readPoolConfigBuilder_ != null) { readPoolConfigBuilder_.dispose(); @@ -25954,7 +29288,7 @@ public Builder clearReadPoolConfig() { */ public com.google.cloud.alloydb.v1beta.Instance.ReadPoolConfig.Builder getReadPoolConfigBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return internalGetReadPoolConfigFieldBuilder().getBuilder(); } @@ -26075,7 +29409,7 @@ public Builder setIpAddress(java.lang.String value) { throw new NullPointerException(); } ipAddress_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -26094,7 +29428,7 @@ public Builder setIpAddress(java.lang.String value) { */ public Builder clearIpAddress() { ipAddress_ = getDefaultInstance().getIpAddress(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -26118,7 +29452,7 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); ipAddress_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -26200,7 +29534,7 @@ public Builder setPublicIpAddress(java.lang.String value) { throw new NullPointerException(); } publicIpAddress_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -26222,7 +29556,7 @@ public Builder setPublicIpAddress(java.lang.String value) { */ public Builder clearPublicIpAddress() { publicIpAddress_ = getDefaultInstance().getPublicIpAddress(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -26249,7 +29583,7 @@ public Builder setPublicIpAddressBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); publicIpAddress_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -26295,7 +29629,7 @@ public boolean getReconciling() { public Builder setReconciling(boolean value) { reconciling_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -26316,7 +29650,7 @@ public Builder setReconciling(boolean value) { * @return This builder for chaining. */ public Builder clearReconciling() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00400000); reconciling_ = false; onChanged(); return this; @@ -26387,7 +29721,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -26405,7 +29739,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -26428,7 +29762,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -26453,7 +29787,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; onChanged(); return annotations_; } @@ -26551,7 +29885,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public Builder clearAnnotations() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x01000000); internalGetMutableAnnotations().getMutableMap().clear(); return this; } @@ -26578,7 +29912,7 @@ public Builder removeAnnotations(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.MapgetMutableAnnotations() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return internalGetMutableAnnotations().getMutableMap(); } @@ -26601,7 +29935,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableAnnotations().getMutableMap().put(key, value); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return this; } @@ -26618,7 +29952,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { */ public Builder putAllAnnotations(java.util.Map values) { internalGetMutableAnnotations().getMutableMap().putAll(values); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; return this; } @@ -26644,7 +29978,7 @@ public Builder putAllAnnotations(java.util.Map .google.cloud.alloydb.v1beta.Instance.UpdatePolicy update_policy = 22; */ public Builder clearUpdatePolicy() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x02000000); updatePolicy_ = null; if (updatePolicyBuilder_ != null) { updatePolicyBuilder_.dispose(); @@ -26789,7 +30123,7 @@ public Builder clearUpdatePolicy() { * .google.cloud.alloydb.v1beta.Instance.UpdatePolicy update_policy = 22;*/ public com.google.cloud.alloydb.v1beta.Instance.UpdatePolicy.Builder getUpdatePolicyBuilder() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; onChanged(); return internalGetUpdatePolicyFieldBuilder().getBuilder(); } @@ -26867,7 +30201,7 @@ public com.google.cloud.alloydb.v1beta.Instance.UpdatePolicy.Builder getUpdatePo * @return Whether the clientConnectionConfig field is set. */ public boolean hasClientConnectionConfig() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -26915,7 +30249,7 @@ public Builder setClientConnectionConfig( } else { clientConnectionConfigBuilder_.setMessage(value); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -26938,7 +30272,7 @@ public Builder setClientConnectionConfig( } else { clientConnectionConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -26957,7 +30291,7 @@ public Builder setClientConnectionConfig( public Builder mergeClientConnectionConfig( com.google.cloud.alloydb.v1beta.Instance.ClientConnectionConfig value) { if (clientConnectionConfigBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) + if (((bitField0_ & 0x04000000) != 0) && clientConnectionConfig_ != null && clientConnectionConfig_ != com.google.cloud.alloydb.v1beta.Instance.ClientConnectionConfig @@ -26970,7 +30304,7 @@ public Builder mergeClientConnectionConfig( clientConnectionConfigBuilder_.mergeFrom(value); } if (clientConnectionConfig_ != null) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); } return this; @@ -26988,7 +30322,7 @@ public Builder mergeClientConnectionConfig( * */ public Builder clearClientConnectionConfig() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x04000000); clientConnectionConfig_ = null; if (clientConnectionConfigBuilder_ != null) { clientConnectionConfigBuilder_.dispose(); @@ -27011,7 +30345,7 @@ public Builder clearClientConnectionConfig() { */ public com.google.cloud.alloydb.v1beta.Instance.ClientConnectionConfig.Builder getClientConnectionConfigBuilder() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return internalGetClientConnectionConfigFieldBuilder().getBuilder(); } @@ -27099,7 +30433,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -27116,7 +30450,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x08000000); satisfiesPzs_ = false; onChanged(); return this; @@ -27144,7 +30478,7 @@ public Builder clearSatisfiesPzs() { * @return Whether the pscInstanceConfig field is set. */ public boolean hasPscInstanceConfig() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -27193,7 +30527,7 @@ public Builder setPscInstanceConfig( } else { pscInstanceConfigBuilder_.setMessage(value); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -27217,7 +30551,7 @@ public Builder setPscInstanceConfig( } else { pscInstanceConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -27237,7 +30571,7 @@ public Builder setPscInstanceConfig( public Builder mergePscInstanceConfig( com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig value) { if (pscInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) + if (((bitField0_ & 0x10000000) != 0) && pscInstanceConfig_ != null && pscInstanceConfig_ != com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig @@ -27250,7 +30584,7 @@ public Builder mergePscInstanceConfig( pscInstanceConfigBuilder_.mergeFrom(value); } if (pscInstanceConfig_ != null) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -27269,7 +30603,7 @@ public Builder mergePscInstanceConfig( * */ public Builder clearPscInstanceConfig() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x10000000); pscInstanceConfig_ = null; if (pscInstanceConfigBuilder_ != null) { pscInstanceConfigBuilder_.dispose(); @@ -27293,7 +30627,7 @@ public Builder clearPscInstanceConfig() { */ public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.Builder getPscInstanceConfigBuilder() { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); return internalGetPscInstanceConfigFieldBuilder().getBuilder(); } @@ -27372,7 +30706,7 @@ public Builder clearPscInstanceConfig() { * @return Whether the pscInstanceInfo field is set. */ public boolean hasPscInstanceInfo() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** @@ -27421,7 +30755,7 @@ public Builder setPscInstanceInfo( } else { pscInstanceInfoBuilder_.setMessage(value); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -27445,7 +30779,7 @@ public Builder setPscInstanceInfo( } else { pscInstanceInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -27465,7 +30799,7 @@ public Builder setPscInstanceInfo( public Builder mergePscInstanceInfo( com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo value) { if (pscInstanceInfoBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) + if (((bitField0_ & 0x20000000) != 0) && pscInstanceInfo_ != null && pscInstanceInfo_ != com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance()) { @@ -27477,7 +30811,7 @@ public Builder mergePscInstanceInfo( pscInstanceInfoBuilder_.mergeFrom(value); } if (pscInstanceInfo_ != null) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); } return this; @@ -27496,7 +30830,7 @@ public Builder mergePscInstanceInfo( * */ public Builder clearPscInstanceInfo() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x20000000); pscInstanceInfo_ = null; if (pscInstanceInfoBuilder_ != null) { pscInstanceInfoBuilder_.dispose(); @@ -27520,7 +30854,7 @@ public Builder clearPscInstanceInfo() { */ public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder getPscInstanceInfoBuilder() { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return internalGetPscInstanceInfoFieldBuilder().getBuilder(); } @@ -27598,7 +30932,7 @@ public Builder clearPscInstanceInfo() { * @return Whether the networkConfig field is set. */ public boolean hasNetworkConfig() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** @@ -27645,7 +30979,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(value); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -27668,7 +31002,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -27687,7 +31021,7 @@ public Builder setNetworkConfig( public Builder mergeNetworkConfig( com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig value) { if (networkConfigBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) + if (((bitField0_ & 0x40000000) != 0) && networkConfig_ != null && networkConfig_ != com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig @@ -27700,7 +31034,7 @@ public Builder mergeNetworkConfig( networkConfigBuilder_.mergeFrom(value); } if (networkConfig_ != null) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); } return this; @@ -27718,7 +31052,7 @@ public Builder mergeNetworkConfig( * */ public Builder clearNetworkConfig() { - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x40000000); networkConfig_ = null; if (networkConfigBuilder_ != null) { networkConfigBuilder_.dispose(); @@ -27741,7 +31075,7 @@ public Builder clearNetworkConfig() { */ public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.Builder getNetworkConfigBuilder() { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return internalGetNetworkConfigFieldBuilder().getBuilder(); } @@ -27816,12 +31150,12 @@ public Builder clearNetworkConfig() { * * * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1393 + * google/cloud/alloydb/v1beta/resources.proto;l=1472 * @return Whether the geminiConfig field is set. */ @java.lang.Deprecated public boolean hasGeminiConfig() { - return ((bitField0_ & 0x20000000) != 0); + return ((bitField0_ & 0x80000000) != 0); } /** @@ -27837,7 +31171,7 @@ public boolean hasGeminiConfig() { * * * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1393 + * google/cloud/alloydb/v1beta/resources.proto;l=1472 * @return The geminiConfig. */ @java.lang.Deprecated @@ -27873,7 +31207,7 @@ public Builder setGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceCon } else { geminiConfigBuilder_.setMessage(value); } - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -27898,7 +31232,7 @@ public Builder setGeminiConfig( } else { geminiConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -27918,7 +31252,7 @@ public Builder setGeminiConfig( @java.lang.Deprecated public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceConfig value) { if (geminiConfigBuilder_ == null) { - if (((bitField0_ & 0x20000000) != 0) + if (((bitField0_ & 0x80000000) != 0) && geminiConfig_ != null && geminiConfig_ != com.google.cloud.alloydb.v1beta.GeminiInstanceConfig.getDefaultInstance()) { @@ -27930,7 +31264,7 @@ public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceC geminiConfigBuilder_.mergeFrom(value); } if (geminiConfig_ != null) { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); } return this; @@ -27950,7 +31284,7 @@ public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceC */ @java.lang.Deprecated public Builder clearGeminiConfig() { - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); geminiConfig_ = null; if (geminiConfigBuilder_ != null) { geminiConfigBuilder_.dispose(); @@ -27974,7 +31308,7 @@ public Builder clearGeminiConfig() { */ @java.lang.Deprecated public com.google.cloud.alloydb.v1beta.GeminiInstanceConfig.Builder getGeminiConfigBuilder() { - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); return internalGetGeminiConfigFieldBuilder().getBuilder(); } @@ -28040,7 +31374,7 @@ private void ensureOutboundPublicIpAddressesIsMutable() { outboundPublicIpAddresses_ = new com.google.protobuf.LazyStringArrayList(outboundPublicIpAddresses_); } - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; } /** @@ -28135,7 +31469,7 @@ public Builder setOutboundPublicIpAddresses(int index, java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.set(index, value); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -28160,7 +31494,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.add(value); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -28182,7 +31516,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) { public Builder addAllOutboundPublicIpAddresses(java.lang.Iterablevalues) { ensureOutboundPublicIpAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outboundPublicIpAddresses_); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -28202,7 +31536,7 @@ public Builder addAllOutboundPublicIpAddresses(java.lang.Iterable */ public Builder clearConnectionPoolConfig() { - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000004); connectionPoolConfig_ = null; if (connectionPoolConfigBuilder_ != null) { connectionPoolConfigBuilder_.dispose(); @@ -28536,7 +31870,7 @@ public Builder clearConnectionPoolConfig() { */ public com.google.cloud.alloydb.v1beta.Instance.ConnectionPoolConfig.Builder getConnectionPoolConfigBuilder() { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; onChanged(); return internalGetConnectionPoolConfigFieldBuilder().getBuilder(); } @@ -28612,7 +31946,7 @@ public Builder clearConnectionPoolConfig() { * @return Whether the gcaConfig field is set. */ public boolean hasGcaConfig() { - return ((bitField1_ & 0x00000002) != 0); + return ((bitField1_ & 0x00000008) != 0); } /** @@ -28658,7 +31992,7 @@ public Builder setGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig va } else { gcaConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -28681,7 +32015,7 @@ public Builder setGcaConfig( } else { gcaConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -28699,7 +32033,7 @@ public Builder setGcaConfig( */ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig value) { if (gcaConfigBuilder_ == null) { - if (((bitField1_ & 0x00000002) != 0) + if (((bitField1_ & 0x00000008) != 0) && gcaConfig_ != null && gcaConfig_ != com.google.cloud.alloydb.v1beta.GCAInstanceConfig.getDefaultInstance()) { @@ -28711,7 +32045,7 @@ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig gcaConfigBuilder_.mergeFrom(value); } if (gcaConfig_ != null) { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; onChanged(); } return this; @@ -28729,7 +32063,7 @@ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig * */ public Builder clearGcaConfig() { - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000008); gcaConfig_ = null; if (gcaConfigBuilder_ != null) { gcaConfigBuilder_.dispose(); @@ -28751,7 +32085,7 @@ public Builder clearGcaConfig() { * */ public com.google.cloud.alloydb.v1beta.GCAInstanceConfig.Builder getGcaConfigBuilder() { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; onChanged(); return internalGetGcaConfigFieldBuilder().getBuilder(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java index 2180c542d45f..ea7da9109437 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java @@ -776,6 +776,59 @@ java.lang.String getDatabaseFlagsOrDefault( com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfigOrBuilder getQueryInsightsConfigOrBuilder(); + /** + * + * + * + * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *+ * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ * + * @return Whether the queryInsightsInfo field is set. + */ + boolean hasQueryInsightsInfo(); + + /** + * + * + *+ * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *+ * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ * + * @return The queryInsightsInfo. + */ + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo getQueryInsightsInfo(); + + /** + * + * + *+ * Output only. Instance level Query Insights information, which is read-only + * and available in the output only. Contains the effective query insights + * settings for this instance, by merging customer's provided + * `QueryInsightsInstanceConfig` with the Query Insights defaults. + *+ * + *+ * .google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfo query_insights_info = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ */ + com.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfoOrBuilder + getQueryInsightsInfoOrBuilder(); + /** * * @@ -820,6 +873,59 @@ java.lang.String getDatabaseFlagsOrDefault( com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfigOrBuilder getObservabilityConfigOrBuilder(); + /** + * + * + *+ * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *+ * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ * + * @return Whether the observabilityInstanceInfo field is set. + */ + boolean hasObservabilityInstanceInfo(); + + /** + * + * + *+ * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *+ * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ * + * @return The observabilityInstanceInfo. + */ + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo getObservabilityInstanceInfo(); + + /** + * + * + *+ * Output only. Instance level observability information, contains the + * effective values of observability settings for this instance, by merging + * customer's provided `ObservabilityInstanceConfig` with the + * Observability defaults. + *+ * + *+ * .google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfo observability_instance_info = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ */ + com.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceInfoOrBuilder + getObservabilityInstanceInfoOrBuilder(); + /** * * @@ -1291,7 +1397,7 @@ java.lang.String getAnnotationsOrDefault( * * * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1393 + * google/cloud/alloydb/v1beta/resources.proto;l=1472 * @return Whether the geminiConfig field is set. */ @java.lang.Deprecated @@ -1310,7 +1416,7 @@ java.lang.String getAnnotationsOrDefault( * * * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1393 + * google/cloud/alloydb/v1beta/resources.proto;l=1472 * @return The geminiConfig. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java index 0e99b0e985ba..b3ac9ba41276 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java @@ -168,10 +168,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1beta_Instance_ReadPoolConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -504,7 +512,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tSECONDARY\020\002:u\352Ar\n" + "\036alloydb.googleapis.com/Cluster\022:projects/{proje" + "ct}/locations/{location}/clusters/{cluster}*\010clusters2\007clusterR\001\001B\010\n" - + "\006source\"\371.\n" + + "\006source\"\2605\n" + "\010Instance\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -529,39 +537,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005nodes\030\024" + " \003(\0132*.google.cloud.alloydb.v1beta.Instance.NodeB\003\340A\003\022`\n" + "\025query_insights_config\030\025 \001(\0132A.google.cl" - + "oud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig\022_\n" - + "\024observability_config\030\032" - + " \001(\0132A.google.cloud.alloydb.v1beta.Instance.ObservabilityInstanceConfig\022N\n" - + "\020read_pool_config\030\016" - + " \001(\01324.google.cloud.alloydb.v1beta.Instance.ReadPoolConfig\022\027\n\n" + + "oud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig\022a\n" + + "\023query_insights_info\030/" + + " \001(\0132?.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceInfoB\003\340A\003\022_\n" + + "\024observability_config\030\032 \001(\0132A.google.cloud." + + "alloydb.v1beta.Instance.ObservabilityInstanceConfig\022i\n" + + "\033observability_instance_info\030, \001(\0132?.google.cloud.alloydb.v1beta.I" + + "nstance.ObservabilityInstanceInfoB\003\340A\003\022N\n" + + "\020read_pool_config\030\016 \001(\01324.google.cloud." + + "alloydb.v1beta.Instance.ReadPoolConfig\022\027\n\n" + "ip_address\030\017 \001(\tB\003\340A\003\022&\n" + "\021public_ip_address\030\033 \001(" + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022\030\n" + "\013reconciling\030\020 \001(\010B\003\340A\003\022\014\n" + "\004etag\030\021 \001(\t\022K\n" - + "\013annotations\030\022 \003(\01326" - + ".google.cloud.alloydb.v1beta.Instance.AnnotationsEntry\022I\n\r" - + "update_policy\030\026 \001(\01322." - + "google.cloud.alloydb.v1beta.Instance.UpdatePolicy\022c\n" - + "\030client_connection_config\030\027 " - + "\001(\0132<.google.cloud.alloydb.v1beta.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r" + + "\013annotations\030\022" + + " \003(\01326.google.cloud.alloydb.v1beta.Instance.AnnotationsEntry\022I\n\r" + + "update_policy\030\026 " + + "\001(\01322.google.cloud.alloydb.v1beta.Instance.UpdatePolicy\022c\n" + + "\030client_connection_config\030\027" + + " \001(\0132<.google.cloud.alloydb.v1beta.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r" + "satisfies_pzs\030\030 \001(\010B\003\340A\003\022Y\n" + "\023psc_instance_config\030\034" + " \001(\01327.google.cloud.alloydb.v1beta.Instance.PscInstanceConfigB\003\340A\001\022U\n" - + "\021psc_instance_info\030." - + " \001(\01325.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoB\003\340A\003\022X\n" - + "\016network_config\030\035 \001(\0132;.google.cloud.allo" - + "ydb.v1beta.Instance.InstanceNetworkConfigB\003\340A\001\022O\n\r" - + "gemini_config\030! \001(\01321.google.c" - + "loud.alloydb.v1beta.GeminiInstanceConfigB\005\030\001\340A\001\0221\n" + + "\021psc_instance_info\030. \001(\01325.google.cloud.al" + + "loydb.v1beta.Instance.PscInstanceInfoB\003\340A\003\022X\n" + + "\016network_config\030\035 \001(\0132;.google.clou" + + "d.alloydb.v1beta.Instance.InstanceNetworkConfigB\003\340A\001\022O\n\r" + + "gemini_config\030! \001(\01321.go" + + "ogle.cloud.alloydb.v1beta.GeminiInstanceConfigB\005\030\001\340A\001\0221\n" + "\034outbound_public_ip_addresses\030\" \003(" + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022V\n" + "\021activation_policy\030#" + " \001(\01626.google.cloud.alloydb.v1beta.Instance.ActivationPolicyB\003\340A\001\022_\n" - + "\026connection_pool_config\030% \001(\0132:.google.cloud.alloyd" - + "b.v1beta.Instance.ConnectionPoolConfigB\003\340A\001\022G\n\n" - + "gca_config\030&" - + " \001(\0132..google.cloud.alloydb.v1beta.GCAInstanceConfigB\003\340A\003\0328\n\r" + + "\026connection_pool_config\030% \001(\0132:.google.cloud." + + "alloydb.v1beta.Instance.ConnectionPoolConfigB\003\340A\001\022G\n\n" + + "gca_config\030& \001(\0132..google.c" + + "loud.alloydb.v1beta.GCAInstanceConfigB\003\340A\003\0328\n\r" + "MachineConfig\022\021\n" + "\tcpu_count\030\001 \001(\005\022\024\n" + "\014machine_type\030\004 \001(\t\032R\n" @@ -579,7 +591,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\002\210\001\001B\032\n" + "\030_record_application_tagsB\030\n" + "\026_record_client_addressB\031\n" - + "\027_query_plans_per_minute\032\372\004\n" + + "\027_query_plans_per_minute\032\302\001\n" + + "\031QueryInsightsInstanceInfo\022\024\n" + + "\007enabled\030\001 \001(\010B\003\340A\003\022$\n" + + "\027record_application_tags\030\002 \001(\010B\003\340A\003\022\"\n" + + "\025record_client_address\030\003 \001(\010B\003\340A\003\022 \n" + + "\023query_string_length\030\004 \001(\r" + + "B\003\340A\003\022#\n" + + "\026query_plans_per_minute\030\005 \001(\r" + + "B\003\340A\003\032\372\004\n" + "\033ObservabilityInstanceConfig\022\024\n" + "\007enabled\030\001 \001(\010H\000\210\001\001\022\036\n" + "\021preserve_comments\030\002 \001(\010H\001\210\001\001\022\036\n" @@ -601,26 +621,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027_query_plans_per_minuteB\027\n" + "\025_track_active_queriesB\027\n" + "\025_track_client_addressB \n" - + "\036_assistive_experiences_enabled\032$\n" + + "\036_assistive_experiences_enabled\032\241\003\n" + + "\031ObservabilityInstanceInfo\022\024\n" + + "\007enabled\030\002 \001(\010B\003\340A\003\022\036\n" + + "\021preserve_comments\030\003 \001(\010B\003\340A\003\022\036\n" + + "\021track_wait_events\030\004 \001(\010B\003\340A\003\022#\n" + + "\026track_wait_event_types\030\005 \001(\010B\003\340A\003\022$\n" + + "\027max_query_string_length\030\006 \001(\005B\003\340A\003\022$\n" + + "\027record_application_tags\030\007 \001(\010B\003\340A\003\022#\n" + + "\026query_plans_per_minute\030\010 \001(\005B\003\340A\003\022!\n" + + "\024track_active_queries\030\t \001(\010B\003\340A\003\022!\n" + + "\024track_client_address\030\n" + + " \001(\010B\003\340A\003\022*\n" + + "\035assistive_experiences_enabled\030\013 \001(\010B\003\340A\003\022&\n" + + "\027track_active_query_plan\030\r" + + " \001(\010B\005\030\001\340A\003\032$\n" + "\016ReadPoolConfig\022\022\n\n" + "node_count\030\001 \001(\005\032\221\001\n" + "\014UpdatePolicy\022E\n" - + "\004mode\030\001" - + " \001(\01627.google.cloud.alloydb.v1beta.Instance.UpdatePolicy.Mode\":\n" + + "\004mode\030\001 \001(\016" + + "27.google.cloud.alloydb.v1beta.Instance.UpdatePolicy.Mode\":\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\013\n" + "\007DEFAULT\020\001\022\017\n" + "\013FORCE_APPLY\020\002\032z\n" + "\026ClientConnectionConfig\022\037\n" + "\022require_connectors\030\001 \001(\010B\003\340A\001\022?\n\n" - + "ssl_config\030\002" - + " \001(\0132&.google.cloud.alloydb.v1beta.SslConfigB\003\340A\001\0329\n" + + "ssl_config\030\002 \001(\0132&.g" + + "oogle.cloud.alloydb.v1beta.SslConfigB\003\340A\001\0329\n" + "\022PscInterfaceConfig\022#\n" + "\033network_attachment_resource\030\001 \001(\t\032\251\001\n" + "\027PscAutoConnectionConfig\022\030\n" + "\020consumer_project\030\001 \001(\t\022\030\n" - + "\020consumer_network\030\002 \001(\t\022\037\n" - + "\n" + + "\020consumer_network\030\002 \001(\t\022\037\n\n" + "ip_address\030\003 \001(\tB\013\340A\003\342\214\317\327\010\002\010\002\022\023\n" + "\006status\030\004 \001(\tB\003\340A\003\022$\n" + "\027consumer_network_status\030\005 \001(\tB\003\340A\003\032\264\005\n" @@ -629,15 +662,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(compute.googleapis.com/ServiceAttachment\022&\n" + "\031allowed_consumer_projects\030\002 \003(\tB\003\340A\001\022\031\n" + "\014psc_dns_name\030\007 \001(\tB\003\340A\003\022\\\n" - + "\025psc_interface_configs\030\010" - + " \003(\01328.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigB\003\340A\001\022`\n" - + "\024psc_auto_connections\030\t \003(\0132=.google.cloud" - + ".alloydb.v1beta.Instance.PscAutoConnectionConfigB\003\340A\001\022V\n" - + "\022psc_auto_dns_state\030\013 \001(" - + "\01625.google.cloud.alloydb.v1beta.Instance.PscAutoDnsStateB\003\340A\001\022\203\001\n" + + "\025psc_interface_configs\030\010 \003(\01328.go" + + "ogle.cloud.alloydb.v1beta.Instance.PscInterfaceConfigB\003\340A\001\022`\n" + + "\024psc_auto_connections\030\t" + + " \003(\0132=.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigB\003\340A\001\022V\n" + + "\022psc_auto_dns_state\030\013 \001(\01625.google.cloud." + + "alloydb.v1beta.Instance.PscAutoDnsStateB\003\340A\001\022\203\001\n" + " psc_auto_connection_policy_state\030\r" - + " \001(\0162T.google.cloud." - + "alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyStateB\003\340A\001\"k\n" + + " \001(\0162T.google.cloud.alloydb.v1beta.In" + + "stance.PscInstanceConfig.PscAutoConnectionPolicyStateB\003\340A\001\"k\n" + "\034PscAutoConnectionPolicyState\0220\n" + ",PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" @@ -648,9 +681,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$effective_psc_auto_connection_policy\030\003 \001(\010B\003\340A\003\022&\n" + "\031service_connection_policy\030\004 \001(\tB\003\340A\003\032\356\002\n" + "\025InstanceNetworkConfig\022x\n" - + "\034authorized_external_networks\030\001 \003(\0132M." - + "google.cloud.alloydb.v1beta.Instance.Ins" - + "tanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + + "\034authorized_external_networks\030\001 \003(\0132M.google.cloud.allo" + + "ydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + "\020enable_public_ip\030\002 \001(\010B\003\340A\001\022&\n" + "\031enable_outbound_public_ip\030\003 \001(\010B\003\340A\001\0227\n" + "\007network\030\004 \001(\tB&\340A\003\372A \n" @@ -661,8 +693,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024ConnectionPoolConfig\022\024\n" + "\007enabled\030\014 \001(\010B\003\340A\001\022Y\n" + "\005flags\030\r" - + " \003(\0132E.google.cloud.alloydb.v1beta.Insta" - + "nce.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n" + + " \003(\0132E.google.clo" + + "ud.alloydb.v1beta.Instance.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n" + "\014pooler_count\030\016 \001(\005B\003\340A\003\032,\n\n" + "FlagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -703,8 +735,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035ACTIVATION_POLICY_UNSPECIFIED\020\000\022\n\n" + "\006ALWAYS\020\001\022\t\n" + "\005NEVER\020\002:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Instance\022Oprojects/{projec" - + "t}/locations/{location}/clusters/{cluster}/instances/{instance}*" + + "\037alloydb.googleapis.com/Instance\022Oprojects/{project}/locations/{loc" + + "ation}/clusters/{cluster}/instances/{instance}*" + "\tinstances2\010instanceR\001\001\"\212\003\n" + "\016ConnectionInfo\022\014\n" + "\004name\030\001 \001(\t\022\027\n\n" @@ -715,9 +747,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014instance_uid\030\004 \001(\tB\003\340A\003\022\031\n" + "\014psc_dns_name\030\006 \001(\tB\003\340A\003\022\036\n" + "\021psc_auto_dns_name\030\t \001(\tB\003\340A\003:\254\001\352A\250\001\n" - + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{project}/locations/{location}/clu" - + "sters/{cluster}/instances/{instance}/con" - + "nectionInfo*\017connectionInfos2\016connectionInfo\"\251\r\n" + + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{project}/l" + + "ocations/{location}/clusters/{cluster}/i" + + "nstances/{instance}/connectionInfo*\017connectionInfos2\016connectionInfo\"\251\r\n" + "\006Backup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -737,20 +769,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB&\340A\002\372A \n" + "\036alloydb.googleapis.com/Cluster\022\030\n" + "\013reconciling\030\013 \001(\010B\003\340A\003\022M\n" - + "\021encryption_config\030\014" - + " \001(\0132-.google.cloud.alloydb.v1beta.EncryptionConfigB\003\340A\001\022I\n" + + "\021encryption_config\030\014 \001(\0132-.google." + + "cloud.alloydb.v1beta.EncryptionConfigB\003\340A\001\022I\n" + "\017encryption_info\030\r" + " \001(\0132+.google.cloud.alloydb.v1beta.EncryptionInfoB\003\340A\003\022\014\n" + "\004etag\030\016 \001(\t\022I\n" - + "\013annotations\030\020" - + " \003(\01324.google.cloud.alloydb.v1beta.Backup.AnnotationsEntry\022\027\n\n" + + "\013annotations\030\020 \003(\01324.googl" + + "e.cloud.alloydb.v1beta.Backup.AnnotationsEntry\022\027\n\n" + "size_bytes\030\021 \001(\003B\003\340A\003\0224\n" + "\013expiry_time\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022U\n" - + "\017expiry_quantity\030\024" - + " \001(\01327.google.cloud.alloydb.v1beta.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + + "\017expiry_quantity\030\024 \001(\01327.google." + + "cloud.alloydb.v1beta.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + "satisfies_pzs\030\025 \001(\010B\003\340A\003\022K\n" - + "\020database_version\030\026 " - + "\001(\0162,.google.cloud.alloydb.v1beta.DatabaseVersionB\003\340A\003\022F\n" + + "\020database_version\030\026" + + " \001(\0162,.google.cloud.alloydb.v1beta.DatabaseVersionB\003\340A\003\022F\n" + "\004tags\030\031 \003(\0132-.google.cloud.alloydb.v1beta.Backup.TagsEntryB" + "\t\340A\004\340A\005\340A\001\032W\n" + "\023QuantityBasedExpiry\022\034\n" @@ -760,7 +792,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\0322\n" + "\020AnnotationsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\032+\n" + "\tTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -776,33 +809,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tON_DEMAND\020\001\022\r\n" + "\tAUTOMATED\020\002\022\016\n\n" + "CONTINUOUS\020\003:p\352Am\n" - + "\035alloydb.googleapis.com/Backup\0228proj" - + "ects/{project}/locations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\220" - + "\t\n" + + "\035alloydb.googleapis.com/Backup\0228projects/{project}/lo", + "cations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\220\t\n" + "\025SupportedDatabaseFlag\022d\n" - + "\023string_restrictions\030\007 \001(\0132E.google.cloud.alloydb.v1beta.Su" - + "pportedDatabaseFlag.StringRestrictionsH\000\022f\n" - + "\024integer_restrictions\030\010 \001(\0132F.google." - + "cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\n" + + "\023string_restrictions\030\007 \001(\0132E.google." + + "cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictionsH\000\022f\n" + + "\024integer_restrictions\030\010 \001(\0132F.google.cloud.alloydb.v1b" + + "eta.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\n" + "\030recommended_string_value\030\n" + " \001(\tH\001\022@\n" + "\031recommended_integer_value\030\013" + " \001(\0132\033.google.protobuf.Int64ValueH\001\022\014\n" + "\004name\030\001 \001(\t\022\021\n" + "\tflag_name\030\002 \001(\t\022P\n\n" - + "value_type\030\003 \001(\0162<.google.cloud.alloy" - + "db.v1beta.SupportedDatabaseFlag.ValueType\022\037\n" + + "value_type\030\003 \001" + + "(\0162<.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType\022\037\n" + "\027accepts_multiple_values\030\004 \001(\010\022K\n" + "\025supported_db_versions\030\005" + " \003(\0162,.google.cloud.alloydb.v1beta.DatabaseVersion\022\033\n" + "\023requires_db_restart\030\006 \001(\010\022G\n" - + "\005scope\030\t \001(\01628.go" - + "ogle.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope\032,\n" + + "\005scope\030\t" + + " \001(\01628.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope\032,\n" + "\022StringRestrictions\022\026\n" + "\016allowed_values\030\001 \003(\t\032u\n" + "\023IntegerRestrictions\022.\n" - + "\tmin_value\030\001 \001(\0132\033.google.protobuf.", - "Int64Value\022.\n" + + "\tmin_value\030\001 \001(\0132\033.google.protobuf.Int64Value\022.\n" + "\tmax_value\030\002 \001(\0132\033.google.protobuf.Int64Value\"U\n" + "\tValueType\022\032\n" + "\026VALUE_TYPE_UNSPECIFIED\020\000\022\n\n" @@ -814,9 +845,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021SCOPE_UNSPECIFIED\020\000\022\014\n" + "\010DATABASE\020\001\022\023\n" + "\017CONNECTION_POOL\020\002:\227\001\352A\223\001\n" - + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224projects/{pro" - + "ject}/locations/{location}/flags/{flag}*" - + "\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224projects/{project}/locations/{" + + "location}/flags/{flag}*\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + "\014restrictionsB\023\n" + "\021recommended_value\"\376\002\n" + "\004User\022\021\n" @@ -830,8 +860,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025USER_TYPE_UNSPECIFIED\020\000\022\024\n" + "\020ALLOYDB_BUILT_IN\020\001\022\024\n" + "\020ALLOYDB_IAM_USER\020\002:y\352Av\n" - + "\033alloydb.googleapis.com/User\022Gprojects/{project}/" - + "locations/{location}/clusters/{cluster}/users/{user}*\005users2\004userR\001\001\"\202\003\n" + + "\033alloydb.googleapis.com/User\022Gprojects/{project}/locations/{locati" + + "on}/clusters/{cluster}/users/{user}*\005users2\004userR\001\001\"\202\003\n" + "\010Database\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\027\n" + "\007charset\030\002 \001(\tB\006\340A\001\340A\005\022\031\n" @@ -841,8 +871,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021database_template\030\006 \001(\tB\006\340A\004\340A\005\022&\n" + "\024is_template_database\030\007" + " \001(\010B\003\340A\001H\000\210\001\001:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/locations/{l" - + "ocation}/clusters/{cluster}/databases/{database}*" + + "\037alloydb.googleapis.com/Database\022Oprojects" + + "/{project}/locations/{location}/clusters/{cluster}/databases/{database}*" + "\tdatabases2\010databaseR\001\001B\027\n" + "\025_is_template_database*^\n" + "\014InstanceView\022\035\n" @@ -866,20 +896,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SUBSCRIPTION_TYPE_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\t\n" + "\005TRIAL\020\002B\273\005\n" - + "\037com.google.cloud.alloydb.v1betaB\016Resourc" - + "esProtoP\001Z9cloud.google.com/go/alloydb/a" - + "piv1beta/alloydbpb;alloydbpb\252\002\033Google.Cl" - + "oud.AlloyDb.V1Beta\312\002\033Google\\Cloud\\AlloyD" - + "b\\V1beta\352\002\036Google::Cloud::AlloyDB::V1beta\352A\246\001\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/locations/{l" - + "ocation}/keyRings/{key_ring}/cryptoKeys/" - + "{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n" - + "\036compute.googleapis.com/N" - + "etwork\022,projects/{project}/global/networks/{network}\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locations" - + "/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352Aw\n" - + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{project}" - + "/regions/{region}/serviceAttachments/{service_attachment}b\006proto3" + + "\037com.google.cloud.alloydb.v1betaB\016ResourcesProtoP\001Z9cloud." + + "google.com/go/alloydb/apiv1beta/alloydbp" + + "b;alloydbpb\252\002\033Google.Cloud.AlloyDb.V1Bet" + + "a\312\002\033Google\\Cloud\\AlloyDb\\V1beta\352\002\036Google::Cloud::AlloyDB::V1beta\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects" + + "/{project}/locations/{location}/keyRings" + + "/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n" + + "\036c" + + "ompute.googleapis.com/Network\022,projects/{project}/global/networks/{network}\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locations/{location}/keyRi" + + "ngs/{key_ring}/cryptoKeys/{crypto_key}\352Aw\n" + + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{project}/regions/{region}" + + "/serviceAttachments/{service_attachment}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1195,7 +1224,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WritableNode", "Nodes", "QueryInsightsConfig", + "QueryInsightsInfo", "ObservabilityConfig", + "ObservabilityInstanceInfo", "ReadPoolConfig", "IpAddress", "PublicIpAddress", @@ -1241,8 +1272,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QueryStringLength", "QueryPlansPerMinute", }); - internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor = + internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_descriptor = internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(3); + internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1beta_Instance_QueryInsightsInstanceInfo_descriptor, + new java.lang.String[] { + "Enabled", + "RecordApplicationTags", + "RecordClientAddress", + "QueryStringLength", + "QueryPlansPerMinute", + }); + internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor = + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(4); internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceConfig_descriptor, @@ -1258,8 +1301,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TrackClientAddress", "AssistiveExperiencesEnabled", }); + internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_descriptor = + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(5); + internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1beta_Instance_ObservabilityInstanceInfo_descriptor, + new java.lang.String[] { + "Enabled", + "PreserveComments", + "TrackWaitEvents", + "TrackWaitEventTypes", + "MaxQueryStringLength", + "RecordApplicationTags", + "QueryPlansPerMinute", + "TrackActiveQueries", + "TrackClientAddress", + "AssistiveExperiencesEnabled", + "TrackActiveQueryPlan", + }); internal_static_google_cloud_alloydb_v1beta_Instance_ReadPoolConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(4); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(6); internal_static_google_cloud_alloydb_v1beta_Instance_ReadPoolConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_ReadPoolConfig_descriptor, @@ -1267,7 +1328,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeCount", }); internal_static_google_cloud_alloydb_v1beta_Instance_UpdatePolicy_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(5); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(7); internal_static_google_cloud_alloydb_v1beta_Instance_UpdatePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_UpdatePolicy_descriptor, @@ -1275,7 +1336,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Mode", }); internal_static_google_cloud_alloydb_v1beta_Instance_ClientConnectionConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(6); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(8); internal_static_google_cloud_alloydb_v1beta_Instance_ClientConnectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_ClientConnectionConfig_descriptor, @@ -1283,7 +1344,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequireConnectors", "SslConfig", }); internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(7); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(9); internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_descriptor, @@ -1291,7 +1352,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkAttachmentResource", }); internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(8); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(10); internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_descriptor, @@ -1299,7 +1360,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConsumerProject", "ConsumerNetwork", "IpAddress", "Status", "ConsumerNetworkStatus", }); internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(9); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(11); internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor, @@ -1313,7 +1374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PscAutoConnectionPolicyState", }); internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(10); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(12); internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_descriptor, @@ -1324,7 +1385,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceConnectionPolicy", }); internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(11); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(13); internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_descriptor, @@ -1345,7 +1406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CidrRange", }); internal_static_google_cloud_alloydb_v1beta_Instance_ConnectionPoolConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(12); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(14); internal_static_google_cloud_alloydb_v1beta_Instance_ConnectionPoolConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_ConnectionPoolConfig_descriptor, @@ -1362,7 +1423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1beta_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(13); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(15); internal_static_google_cloud_alloydb_v1beta_Instance_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_LabelsEntry_descriptor, @@ -1370,7 +1431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1beta_Instance_DatabaseFlagsEntry_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(14); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(16); internal_static_google_cloud_alloydb_v1beta_Instance_DatabaseFlagsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_DatabaseFlagsEntry_descriptor, @@ -1378,7 +1439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1beta_Instance_AnnotationsEntry_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(15); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(17); internal_static_google_cloud_alloydb_v1beta_Instance_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_AnnotationsEntry_descriptor, diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto index d9e11384472d..6d2caafa78c1 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto @@ -864,6 +864,27 @@ message Instance { optional uint32 query_plans_per_minute = 5; } + // Instance level Query Insights information, which is read-only and available + // in the output only. + message QueryInsightsInstanceInfo { + // Output only. Whether Query Insights is enabled. + bool enabled = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether to record application tags. + bool record_application_tags = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether to record client address. + bool record_client_address = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Maximum query string length. + uint32 query_string_length = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of query execution plans captured per minute. + uint32 query_plans_per_minute = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Observability Instance specific configuration. message ObservabilityInstanceConfig { // Observability feature status for an instance. @@ -910,6 +931,50 @@ message Instance { optional bool assistive_experiences_enabled = 10; } + message ObservabilityInstanceInfo { + // Output only. Observability feature status for an instance. + bool enabled = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Preserve comments in query string for an instance. + bool preserve_comments = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Track wait events during query execution for an instance. + bool track_wait_events = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Track wait event types during query execution for an + // instance. + bool track_wait_event_types = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Query string length. The default value is 10k. + int32 max_query_string_length = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Record application tags for an instance. + bool record_application_tags = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of query execution plans captured by Insights per + // minute for all queries combined. + int32 query_plans_per_minute = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Track actively running queries on the instance. + bool track_active_queries = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Track client address for an instance. + bool track_client_address = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether assistive experiences are enabled for this AlloyDB + // instance. + bool assistive_experiences_enabled = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates whether to track active query plans for an + // instance. Deprecated: Use track_active_queries instead. + bool track_active_query_plan = 13 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + } + // Configuration for a read pool instance. message ReadPoolConfig { // Read capacity, i.e. number of nodes in a read pool instance. @@ -1328,9 +1393,23 @@ message Instance { // Configuration for query insights. QueryInsightsInstanceConfig query_insights_config = 21; + // Output only. Instance level Query Insights information, which is read-only + // and available in the output only. Contains the effective query insights + // settings for this instance, by merging customer's provided + // `QueryInsightsInstanceConfig` with the Query Insights defaults. + QueryInsightsInstanceInfo query_insights_info = 47 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Configuration for observability. ObservabilityInstanceConfig observability_config = 26; + // Output only. Instance level observability information, contains the + // effective values of observability settings for this instance, by merging + // customer's provided `ObservabilityInstanceConfig` with the + // Observability defaults. + ObservabilityInstanceInfo observability_instance_info = 44 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Read pool instance configuration. // This is required if the value of instanceType is READ_POOL. ReadPoolConfig read_pool_config = 14; diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java index bedb53d67b64..f13630ec44ce 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java @@ -63,6 +63,8 @@ private BuildOptions() { secretEnv_ = com.google.protobuf.LazyStringArrayList.emptyList(); volumes_ = java.util.Collections.emptyList(); defaultLogsBucketBehavior_ = 0; + workerRelease_ = ""; + resolvedWorkerRelease_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1284,6 +1286,66 @@ public interface PoolOptionOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *+ * Output only. OUTPUT_ONLY. The release or release channel used to run the + * Build. This is set to the same value as + * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily + * access. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];+ * + * @return The workerRelease. + */ + java.lang.String getWorkerRelease(); + + /** + * + * + *+ * Output only. OUTPUT_ONLY. The release or release channel used to run the + * Build. This is set to the same value as + * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily + * access. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];+ * + * @return The bytes for workerRelease. + */ + com.google.protobuf.ByteString getWorkerReleaseBytes(); + + /** + * + * + *+ * Output only. OUTPUT_ONLY. Worker release resolved from the release + * channel. + *+ * + *string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];+ * + * @return The resolvedWorkerRelease. + */ + java.lang.String getResolvedWorkerRelease(); + + /** + * + * + *+ * Output only. OUTPUT_ONLY. Worker release resolved from the release + * channel. + *+ * + *string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];+ * + * @return The bytes for resolvedWorkerRelease. + */ + com.google.protobuf.ByteString getResolvedWorkerReleaseBytes(); } /** @@ -1322,6 +1384,8 @@ private PoolOption(com.google.protobuf.GeneratedMessage.Builder> builder) { private PoolOption() { name_ = ""; + workerRelease_ = ""; + resolvedWorkerRelease_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1400,6 +1464,120 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int WORKER_RELEASE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object workerRelease_ = ""; + + /** + * + * + *+ * Output only. OUTPUT_ONLY. The release or release channel used to run the + * Build. This is set to the same value as + * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily + * access. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];+ * + * @return The workerRelease. + */ + @java.lang.Override + public java.lang.String getWorkerRelease() { + java.lang.Object ref = workerRelease_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerRelease_ = s; + return s; + } + } + + /** + * + * + *+ * Output only. OUTPUT_ONLY. The release or release channel used to run the + * Build. This is set to the same value as + * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily + * access. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];+ * + * @return The bytes for workerRelease. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkerReleaseBytes() { + java.lang.Object ref = workerRelease_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOLVED_WORKER_RELEASE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object resolvedWorkerRelease_ = ""; + + /** + * + * + *+ * Output only. OUTPUT_ONLY. Worker release resolved from the release + * channel. + *+ * + *string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];+ * + * @return The resolvedWorkerRelease. + */ + @java.lang.Override + public java.lang.String getResolvedWorkerRelease() { + java.lang.Object ref = resolvedWorkerRelease_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolvedWorkerRelease_ = s; + return s; + } + } + + /** + * + * + *+ * Output only. OUTPUT_ONLY. Worker release resolved from the release + * channel. + *+ * + *string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];+ * + * @return The bytes for resolvedWorkerRelease. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResolvedWorkerReleaseBytes() { + java.lang.Object ref = resolvedWorkerRelease_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolvedWorkerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1417,6 +1595,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerRelease_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, workerRelease_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resolvedWorkerRelease_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, resolvedWorkerRelease_); + } getUnknownFields().writeTo(output); } @@ -1429,6 +1613,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerRelease_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, workerRelease_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resolvedWorkerRelease_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, resolvedWorkerRelease_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1446,6 +1636,8 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloudbuild.v1.BuildOptions.PoolOption) obj; if (!getName().equals(other.getName())) return false; + if (!getWorkerRelease().equals(other.getWorkerRelease())) return false; + if (!getResolvedWorkerRelease().equals(other.getResolvedWorkerRelease())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1459,6 +1651,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + WORKER_RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getWorkerRelease().hashCode(); + hash = (37 * hash) + RESOLVED_WORKER_RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getResolvedWorkerRelease().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1604,6 +1800,8 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + workerRelease_ = ""; + resolvedWorkerRelease_ = ""; return this; } @@ -1643,6 +1841,12 @@ private void buildPartial0(com.google.cloudbuild.v1.BuildOptions.PoolOption resu if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workerRelease_ = workerRelease_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resolvedWorkerRelease_ = resolvedWorkerRelease_; + } } @java.lang.Override @@ -1663,6 +1867,16 @@ public Builder mergeFrom(com.google.cloudbuild.v1.BuildOptions.PoolOption other) bitField0_ |= 0x00000001; onChanged(); } + if (!other.getWorkerRelease().isEmpty()) { + workerRelease_ = other.workerRelease_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getResolvedWorkerRelease().isEmpty()) { + resolvedWorkerRelease_ = other.resolvedWorkerRelease_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1695,6 +1909,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 34: + { + workerRelease_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + resolvedWorkerRelease_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1845,6 +2071,253 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object workerRelease_ = ""; + + /** + * + * + *+ * Output only. OUTPUT_ONLY. The release or release channel used to run the + * Build. This is set to the same value as + * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily + * access. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];+ * + * @return The workerRelease. + */ + public java.lang.String getWorkerRelease() { + java.lang.Object ref = workerRelease_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerRelease_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *+ * Output only. OUTPUT_ONLY. The release or release channel used to run the + * Build. This is set to the same value as + * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily + * access. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];+ * + * @return The bytes for workerRelease. + */ + public com.google.protobuf.ByteString getWorkerReleaseBytes() { + java.lang.Object ref = workerRelease_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *+ * Output only. OUTPUT_ONLY. The release or release channel used to run the + * Build. This is set to the same value as + * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily + * access. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];+ * + * @param value The workerRelease to set. + * @return This builder for chaining. + */ + public Builder setWorkerRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workerRelease_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *+ * Output only. OUTPUT_ONLY. The release or release channel used to run the + * Build. This is set to the same value as + * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily + * access. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];+ * + * @return This builder for chaining. + */ + public Builder clearWorkerRelease() { + workerRelease_ = getDefaultInstance().getWorkerRelease(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *+ * Output only. OUTPUT_ONLY. The release or release channel used to run the + * Build. This is set to the same value as + * `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily + * access. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];+ * + * @param value The bytes for workerRelease to set. + * @return This builder for chaining. + */ + public Builder setWorkerReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerRelease_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object resolvedWorkerRelease_ = ""; + + /** + * + * + *+ * Output only. OUTPUT_ONLY. Worker release resolved from the release + * channel. + *+ * + *string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ * + * @return The resolvedWorkerRelease. + */ + public java.lang.String getResolvedWorkerRelease() { + java.lang.Object ref = resolvedWorkerRelease_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolvedWorkerRelease_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *+ * Output only. OUTPUT_ONLY. Worker release resolved from the release + * channel. + *+ * + *string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ * + * @return The bytes for resolvedWorkerRelease. + */ + public com.google.protobuf.ByteString getResolvedWorkerReleaseBytes() { + java.lang.Object ref = resolvedWorkerRelease_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolvedWorkerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *+ * Output only. OUTPUT_ONLY. Worker release resolved from the release + * channel. + *+ * + *string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ * + * @param value The resolvedWorkerRelease to set. + * @return This builder for chaining. + */ + public Builder setResolvedWorkerRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resolvedWorkerRelease_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *+ * Output only. OUTPUT_ONLY. Worker release resolved from the release + * channel. + *+ * + *string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ * + * @return This builder for chaining. + */ + public Builder clearResolvedWorkerRelease() { + resolvedWorkerRelease_ = getDefaultInstance().getResolvedWorkerRelease(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *+ * Output only. OUTPUT_ONLY. Worker release resolved from the release + * channel. + *+ * + *string resolved_worker_release = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ * + * @param value The bytes for resolvedWorkerRelease to set. + * @return This builder for chaining. + */ + public Builder setResolvedWorkerReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resolvedWorkerRelease_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.BuildOptions.PoolOption) } @@ -2252,7 +2725,7 @@ public com.google.cloudbuild.v1.BuildOptions.LogStreamingOption getLogStreamingO *string worker_pool = 7 [deprecated = true];* * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @return The workerPool. */ @java.lang.Override @@ -2279,7 +2752,7 @@ public java.lang.String getWorkerPool() { *string worker_pool = 7 [deprecated = true];* * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @return The bytes for workerPool. */ @java.lang.Override @@ -2674,86 +3147,194 @@ public com.google.cloudbuild.v1.Volume getVolumes(int index) { ** Global list of volumes to mount for ALL build steps * - * Each volume is created as an empty volume prior to starting the build - * process. Upon completion of the build, volumes and their contents are - * discarded. Global volume names and paths cannot conflict with the volumes - * defined a build step. + * Each volume is created as an empty volume prior to starting the build + * process. Upon completion of the build, volumes and their contents are + * discarded. Global volume names and paths cannot conflict with the volumes + * defined a build step. + * + * Using a global volume in a build with only one step is not valid as + * it is indicative of a build request with an incorrect configuration. + *+ * + *repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;+ */ + @java.lang.Override + public com.google.cloudbuild.v1.VolumeOrBuilder getVolumesOrBuilder(int index) { + return volumes_.get(index); + } + + public static final int DEFAULT_LOGS_BUCKET_BEHAVIOR_FIELD_NUMBER = 21; + private int defaultLogsBucketBehavior_ = 0; + + /** + * + * + *+ * Optional. Option to specify how default logs buckets are setup. + *+ * + *+ * .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The enum numeric value on the wire for defaultLogsBucketBehavior. + */ + @java.lang.Override + public int getDefaultLogsBucketBehaviorValue() { + return defaultLogsBucketBehavior_; + } + + /** + * + * + *+ * Optional. Option to specify how default logs buckets are setup. + *+ * + *+ * .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The defaultLogsBucketBehavior. + */ + @java.lang.Override + public com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior + getDefaultLogsBucketBehavior() { + com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior result = + com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior.forNumber( + defaultLogsBucketBehavior_); + return result == null + ? com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior.UNRECOGNIZED + : result; + } + + public static final int ENABLE_STRUCTURED_LOGGING_FIELD_NUMBER = 23; + private boolean enableStructuredLogging_ = false; + + /** + * + * + *+ * Optional. Option to specify whether structured logging is enabled. + * + * If true, JSON-formatted logs are parsed as structured logs. + *+ * + *bool enable_structured_logging = 23 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The enableStructuredLogging. + */ + @java.lang.Override + public boolean getEnableStructuredLogging() { + return enableStructuredLogging_; + } + + public static final int WORKER_RELEASE_FIELD_NUMBER = 25; + + @SuppressWarnings("serial") + private volatile java.lang.Object workerRelease_ = ""; + + /** + * * - * Using a global volume in a build with only one step is not valid as - * it is indicative of a build request with an incorrect configuration. + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. ** - *repeated .google.devtools.cloudbuild.v1.Volume volumes = 14;+ *string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The workerRelease. */ @java.lang.Override - public com.google.cloudbuild.v1.VolumeOrBuilder getVolumesOrBuilder(int index) { - return volumes_.get(index); + public java.lang.String getWorkerRelease() { + java.lang.Object ref = workerRelease_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerRelease_ = s; + return s; + } } - public static final int DEFAULT_LOGS_BUCKET_BEHAVIOR_FIELD_NUMBER = 21; - private int defaultLogsBucketBehavior_ = 0; - /** * * *- * Optional. Option to specify how default logs buckets are setup. + * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. ** - *- * .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL]; - *+ *string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL];* - * @return The enum numeric value on the wire for defaultLogsBucketBehavior. + * @return The bytes for workerRelease. */ @java.lang.Override - public int getDefaultLogsBucketBehaviorValue() { - return defaultLogsBucketBehavior_; + public com.google.protobuf.ByteString getWorkerReleaseBytes() { + java.lang.Object ref = workerRelease_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int RESOLVED_WORKER_RELEASE_FIELD_NUMBER = 26; + + @SuppressWarnings("serial") + private volatile java.lang.Object resolvedWorkerRelease_ = ""; + /** * * *- * Optional. Option to specify how default logs buckets are setup. + * Output only. Worker release resolved from the release channel. ** - *- * .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL]; - *+ *string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];* - * @return The defaultLogsBucketBehavior. + * @return The resolvedWorkerRelease. */ @java.lang.Override - public com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior - getDefaultLogsBucketBehavior() { - com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior result = - com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior.forNumber( - defaultLogsBucketBehavior_); - return result == null - ? com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior.UNRECOGNIZED - : result; + public java.lang.String getResolvedWorkerRelease() { + java.lang.Object ref = resolvedWorkerRelease_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolvedWorkerRelease_ = s; + return s; + } } - public static final int ENABLE_STRUCTURED_LOGGING_FIELD_NUMBER = 23; - private boolean enableStructuredLogging_ = false; - /** * * *- * Optional. Option to specify whether structured logging is enabled. - * - * If true, JSON-formatted logs are parsed as structured logs. + * Output only. Worker release resolved from the release channel. ** - *bool enable_structured_logging = 23 [(.google.api.field_behavior) = OPTIONAL];+ *string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];* - * @return The enableStructuredLogging. + * @return The bytes for resolvedWorkerRelease. */ @java.lang.Override - public boolean getEnableStructuredLogging() { - return enableStructuredLogging_; + public com.google.protobuf.ByteString getResolvedWorkerReleaseBytes() { + java.lang.Object ref = resolvedWorkerRelease_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolvedWorkerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -2830,6 +3411,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableStructuredLogging_ != false) { output.writeBool(23, enableStructuredLogging_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerRelease_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 25, workerRelease_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resolvedWorkerRelease_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 26, resolvedWorkerRelease_); + } getUnknownFields().writeTo(output); } @@ -2915,6 +3502,12 @@ public int getSerializedSize() { if (enableStructuredLogging_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, enableStructuredLogging_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerRelease_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(25, workerRelease_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resolvedWorkerRelease_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(26, resolvedWorkerRelease_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2949,6 +3542,8 @@ public boolean equals(final java.lang.Object obj) { if (!getVolumesList().equals(other.getVolumesList())) return false; if (defaultLogsBucketBehavior_ != other.defaultLogsBucketBehavior_) return false; if (getEnableStructuredLogging() != other.getEnableStructuredLogging()) return false; + if (!getWorkerRelease().equals(other.getWorkerRelease())) return false; + if (!getResolvedWorkerRelease().equals(other.getResolvedWorkerRelease())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3002,6 +3597,10 @@ public int hashCode() { hash = (53 * hash) + defaultLogsBucketBehavior_; hash = (37 * hash) + ENABLE_STRUCTURED_LOGGING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableStructuredLogging()); + hash = (37 * hash) + WORKER_RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getWorkerRelease().hashCode(); + hash = (37 * hash) + RESOLVED_WORKER_RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getResolvedWorkerRelease().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3177,6 +3776,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00002000); defaultLogsBucketBehavior_ = 0; enableStructuredLogging_ = false; + workerRelease_ = ""; + resolvedWorkerRelease_ = ""; return this; } @@ -3276,6 +3877,12 @@ private void buildPartial0(com.google.cloudbuild.v1.BuildOptions result) { if (((from_bitField0_ & 0x00008000) != 0)) { result.enableStructuredLogging_ = enableStructuredLogging_; } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.workerRelease_ = workerRelease_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.resolvedWorkerRelease_ = resolvedWorkerRelease_; + } result.bitField0_ |= to_bitField0_; } @@ -3387,6 +3994,16 @@ public Builder mergeFrom(com.google.cloudbuild.v1.BuildOptions other) { if (other.getEnableStructuredLogging() != false) { setEnableStructuredLogging(other.getEnableStructuredLogging()); } + if (!other.getWorkerRelease().isEmpty()) { + workerRelease_ = other.workerRelease_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (!other.getResolvedWorkerRelease().isEmpty()) { + resolvedWorkerRelease_ = other.resolvedWorkerRelease_; + bitField0_ |= 0x00020000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3529,6 +4146,18 @@ public Builder mergeFrom( bitField0_ |= 0x00008000; break; } // case 184 + case 202: + { + workerRelease_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 202 + case 210: + { + resolvedWorkerRelease_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 210 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4441,7 +5070,7 @@ public Builder clearLogStreamingOption() { *string worker_pool = 7 [deprecated = true];* * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @return The workerPool. */ @java.lang.Deprecated @@ -4467,7 +5096,7 @@ public java.lang.String getWorkerPool() { *string worker_pool = 7 [deprecated = true];* * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @return The bytes for workerPool. */ @java.lang.Deprecated @@ -4493,7 +5122,7 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() { *string worker_pool = 7 [deprecated = true];* * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @param value The workerPool to set. * @return This builder for chaining. */ @@ -4518,7 +5147,7 @@ public Builder setWorkerPool(java.lang.String value) { *string worker_pool = 7 [deprecated = true];* * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4539,7 +5168,7 @@ public Builder clearWorkerPool() { *string worker_pool = 7 [deprecated = true];* * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @param value The bytes for workerPool to set. * @return This builder for chaining. */ @@ -6023,6 +6652,238 @@ public Builder clearEnableStructuredLogging() { return this; } + private java.lang.Object workerRelease_ = ""; + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The workerRelease. + */ + public java.lang.String getWorkerRelease() { + java.lang.Object ref = workerRelease_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerRelease_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The bytes for workerRelease. + */ + public com.google.protobuf.ByteString getWorkerReleaseBytes() { + java.lang.Object ref = workerRelease_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL];+ * + * @param value The workerRelease to set. + * @return This builder for chaining. + */ + public Builder setWorkerRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workerRelease_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return This builder for chaining. + */ + public Builder clearWorkerRelease() { + workerRelease_ = getDefaultInstance().getWorkerRelease(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL];+ * + * @param value The bytes for workerRelease to set. + * @return This builder for chaining. + */ + public Builder setWorkerReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerRelease_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private java.lang.Object resolvedWorkerRelease_ = ""; + + /** + * + * + *+ * Output only. Worker release resolved from the release channel. + *+ * + *string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ * + * @return The resolvedWorkerRelease. + */ + public java.lang.String getResolvedWorkerRelease() { + java.lang.Object ref = resolvedWorkerRelease_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolvedWorkerRelease_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *+ * Output only. Worker release resolved from the release channel. + *+ * + *string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ * + * @return The bytes for resolvedWorkerRelease. + */ + public com.google.protobuf.ByteString getResolvedWorkerReleaseBytes() { + java.lang.Object ref = resolvedWorkerRelease_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolvedWorkerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *+ * Output only. Worker release resolved from the release channel. + *+ * + *string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ * + * @param value The resolvedWorkerRelease to set. + * @return This builder for chaining. + */ + public Builder setResolvedWorkerRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resolvedWorkerRelease_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *+ * Output only. Worker release resolved from the release channel. + *+ * + *string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ * + * @return This builder for chaining. + */ + public Builder clearResolvedWorkerRelease() { + resolvedWorkerRelease_ = getDefaultInstance().getResolvedWorkerRelease(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + + /** + * + * + *+ * Output only. Worker release resolved from the release channel. + *+ * + *string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ * + * @param value The bytes for resolvedWorkerRelease to set. + * @return This builder for chaining. + */ + public Builder setResolvedWorkerReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resolvedWorkerRelease_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.BuildOptions) } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java index 1a6152862333..52eee5c64e68 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java @@ -272,7 +272,7 @@ public interface BuildOptionsOrBuilder *string worker_pool = 7 [deprecated = true];* * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @return The workerPool. */ @java.lang.Deprecated @@ -288,7 +288,7 @@ public interface BuildOptionsOrBuilder *string worker_pool = 7 [deprecated = true];* * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2590 * @return The bytes for workerPool. */ @java.lang.Deprecated @@ -656,4 +656,58 @@ public interface BuildOptionsOrBuilder * @return The enableStructuredLogging. */ boolean getEnableStructuredLogging(); + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The workerRelease. + */ + java.lang.String getWorkerRelease(); + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 25 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The bytes for workerRelease. + */ + com.google.protobuf.ByteString getWorkerReleaseBytes(); + + /** + * + * + *+ * Output only. Worker release resolved from the release channel. + *+ * + *string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];+ * + * @return The resolvedWorkerRelease. + */ + java.lang.String getResolvedWorkerRelease(); + + /** + * + * + *+ * Output only. Worker release resolved from the release channel. + *+ * + *string resolved_worker_release = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];+ * + * @return The bytes for resolvedWorkerRelease. + */ + com.google.protobuf.ByteString getResolvedWorkerReleaseBytes(); } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java index ade37c0b4a34..4b3ded79bfb3 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java @@ -995,7 +995,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "trigger_id\030\002 \001(\tB\003\340A\002\022A\n" + "\007trigger\030\003 \001(\0132+.google.d" + "evtools.cloudbuild.v1.BuildTriggerB\003\340A\002\022/\n" - + "\013update_mask\030\005 \001(\0132\032.google.protobuf.FieldMask\"\276\014\n" + + "\013update_mask\030\005 \001(\0132\032.google.protobuf.FieldMask\"\305\r\n" + "\014BuildOptions\022L\n" + "\026source_provenance_hash\030\001" + " \003(\0162,.google.devtools.cloudbuild.v1.Hash.HashType\022Y\n" @@ -1021,10 +1021,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007volumes\030\016 \003(\0132%.google.devtools.cloudbuild.v1.Volume\022p\n" + "\034default_logs_bucket_behavior\030\025 \001(\0162E.google.devtools.cloudbuild.v1.Bu" + "ildOptions.DefaultLogsBucketBehaviorB\003\340A\001\022&\n" - + "\031enable_structured_logging\030\027 \001(\010B\003\340A\001\032E\n\n" + + "\031enable_structured_logging\030\027 \001(\010B\003\340A\001\022\033\n" + + "\016worker_release\030\031 \001(\tB\003\340A\001\022$\n" + + "\027resolved_worker_release\030\032 \001(\tB\003\340A\003\032\210\001\n\n" + "PoolOption\0227\n" + "\004name\030\001 \001(\tB)\372A&\n" - + "$cloudbuild.googleapis.com/WorkerPool\".\n" + + "$cloudbuild.googleapis.com/WorkerPool\022\033\n" + + "\016worker_release\030\004 \001(\tB\003\340A\003\022$\n" + + "\027resolved_worker_release\030\005 \001(\tB\003\340A\003\".\n" + "\014VerifyOption\022\020\n" + "\014NOT_VERIFIED\020\000\022\014\n" + "\010VERIFIED\020\001\"\222\001\n" @@ -1071,12 +1075,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016peered_network\030\t \001(\tB&\340A\001\372A \n" + "\036compute.googleapis.com/Network\022L\n" + "\007secrets\030\n" - + " \001(\01326.google.devtools.cloudbuild.v1.GitHubEnterpriseSecretsB\003\340A\001\022\031\n" + + " \001(\01326.google.d" + + "evtools.cloudbuild.v1.GitHubEnterpriseSecretsB\003\340A\001\022\031\n" + "\014display_name\030\013 \001(\tB\003\340A\001\022\023\n" + "\006ssl_ca\030\014 \001(\tB\003\340A\001:\265\001\352A\261\001\n" - + "0cloudbuild.googleapis.com/GithubEnterpriseConfig\0223projects/{project}" - + "/githubEnterpriseConfigs/{config}\022Hproje" - + "cts/{project}/locations/{location}/githubEnterpriseConfigs/{config}\"\355\002\n" + + "0cloudbuild.googleapis.com/GithubEnterpriseConfig\0223pro" + + "jects/{project}/githubEnterpriseConfigs/{config}\022Hprojects/{project}/locations/{" + + "location}/githubEnterpriseConfigs/{config}\"\355\002\n" + "\027GitHubEnterpriseSecrets\022Q\n" + "\030private_key_version_name\030\005 \001(\tB/\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022T\n" @@ -1090,15 +1095,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" + "\003uid\030\003 \001(\tB\003\340A\003\022O\n" - + "\013annotations\030\004" - + " \003(\0132:.google.devtools.cloudbuild.v1.WorkerPool.AnnotationsEntry\0224\n" + + "\013annotations\030\004 \003(\0132:.google.devto" + + "ols.cloudbuild.v1.WorkerPool.AnnotationsEntry\0224\n" + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013delete_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022C\n" + "\005state\030\010" + " \001(\0162/.google.devtools.cloudbuild.v1.WorkerPool.StateB\003\340A\003\022T\n" - + "\026private_pool_v1_config\030\014" - + " \001(\01322.google.devtools.cloudbuild.v1.PrivatePoolV1ConfigH\000\022\021\n" + + "\026private_pool_v1_config\030\014 \001(\01322.google.de" + + "vtools.cloudbuild.v1.PrivatePoolV1ConfigH\000\022\021\n" + "\004etag\030\013 \001(\tB\003\340A\003\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -1110,28 +1115,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DELETING\020\003\022\013\n" + "\007DELETED\020\004\022\014\n" + "\010UPDATING\020\005:\211\001\352A\205\001\n" - + "$cloudbuild.googleapis.com/WorkerPool\022Aprojects/{project}/locations/{locat" - + "ion}/workerPools/{worker_pool}*\013workerPools2\n" + + "$cloudbuild.googleapis.com/WorkerPool\022Aprojects/{project}/l" + + "ocations/{location}/workerPools/{worker_pool}*\013workerPools2\n" + "workerPoolR\001\001B\010\n" - + "\006config\"\272\007\n" + + "\006config\"\327\007\n" + "\023PrivatePoolV1Config\022V\n\r" - + "worker_config\030\001 \001(\0132?.go" - + "ogle.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig\022X\n" - + "\016network_config\030\002" - + " \001(\0132@.google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig\022n\n" - + "\027private_service_connect\030\005 \001(\0132H.google.devtool" - + "s.cloudbuild.v1.PrivatePoolV1Config.PrivateServiceConnectB\003\340A\005\032\220\001\n" + + "worker_config\030\001" + + " \001(\0132?.google.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig\022X\n" + + "\016network_config\030\002 \001(\0132@.google.devtools.cl" + + "oudbuild.v1.PrivatePoolV1Config.NetworkConfig\022n\n" + + "\027private_service_connect\030\005 \001(\0132H" + + ".google.devtools.cloudbuild.v1.PrivatePo" + + "olV1Config.PrivateServiceConnectB\003\340A\005\032\255\001\n" + "\014WorkerConfig\022\031\n" + "\014machine_type\030\001 \001(\tB\003\340A\001\022\024\n" + "\014disk_size_gb\030\002 \001(\003\022.\n" + "\034enable_nested_virtualization\030\003" - + " \001(\010B\003\340A\001H\000\210\001\001B\037\n" + + " \001(\010B\003\340A\001H\000\210\001\001\022\033\n" + + "\016worker_release\030\004 \001(\tB\003\340A\001B\037\n" + "\035_enable_nested_virtualization\032\266\002\n\r" + "NetworkConfig\022A\n" + "\016peered_network\030\001 \001(\tB)\340A\005\340A\002\372A \n" + "\036compute.googleapis.com/Network\022d\n\r" - + "egress_option\030\002 \001(\0162M." - + "google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption\022$\n" + + "egress_option\030\002 \001(\0162M.google.devtools.cloudbuild.v1.Privat" + + "ePoolV1Config.NetworkConfig.EgressOption\022$\n" + "\027peered_network_ip_range\030\003 \001(\tB\003\340A\005\"V\n" + "\014EgressOption\022\035\n" + "\031EGRESS_OPTION_UNSPECIFIED\020\000\022\024\n" @@ -1159,8 +1166,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "allow_missing\030\003 \001(\010\022\025\n\r" + "validate_only\030\004 \001(\010\"\253\001\n" + "\027UpdateWorkerPoolRequest\022C\n" - + "\013worker_pool\030\001 \001" - + "(\0132).google.devtools.cloudbuild.v1.WorkerPoolB\003\340A\002\0224\n" + + "\013worker_pool\030\001" + + " \001(\0132).google.devtools.cloudbuild.v1.WorkerPoolB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\025\n\r" + "validate_only\030\004 \001(\010\"z\n" @@ -1189,147 +1196,147 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\002 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" + "complete_time\030\003 \001(\0132\032.google.protobuf.Timestamp2\371-\n\n" + "CloudBuild\022\267\002\n" - + "\013CreateBuild\0221.google.devtools.cloudbuild.v1.Cr" - + "eateBuildRequest\032\035.google.longrunning.Operation\"\325\001\312A\037\n" - + "\005Build\022\026BuildOperationMetadata\332A\020project_id,build\332A\006parent\202\323\344\223\002^\"" - + " /v1/projects/{project_id}/builds:\005buildZ" - + "3\"*/v1/{parent=projects/*/locations/*}/builds:\005build\212\323\344\223\002-\022+\n" + + "\013CreateBuild\0221.google.devtools.cloudbuild.v" + + "1.CreateBuildRequest\032\035.google.longrunning.Operation\"\325\001\312A\037\n" + + "\005Build\022\026BuildOperation" + + "Metadata\332A\020project_id,build\332A\006parent\202\323\344\223\002^\"" + + " /v1/projects/{project_id}/builds:\005bu" + + "ildZ3\"*/v1/{parent=projects/*/locations/*}/builds:\005build\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\217\002\n" - + "\010GetBuild\022..google.devtools.cloudbuild.v1.GetBuildReq" - + "uest\032$.google.devtools.cloudbuild.v1.Build\"\254\001\332A\r" - + "project_id,id\332A\004name\202\323\344\223\002U\022%/v1/" - + "projects/{project_id}/builds/{id}Z,\022*/v1" - + "/{name=projects/*/locations/*/builds/*}\212\323\344\223\0024\0222\n" + + "\010GetBuild\022..google.devtools.cloudbuild.v1.GetBuil" + + "dRequest\032$.google.devtools.cloudbuild.v1.Build\"\254\001\332A\r" + + "project_id,id\332A\004name\202\323\344\223\002U\022%" + + "/v1/projects/{project_id}/builds/{id}Z,\022" + + "*/v1/{name=projects/*/locations/*/builds/*}\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\221\002\n\n" - + "ListBuilds\0220.google.devtools.cloudbuild.v1.ListBuildsReque" - + "st\0321.google.devtools.cloudbuild.v1.ListB" - + "uildsResponse\"\235\001\332A\021project_id,filter\202\323\344\223\002P\022" - + " /v1/projects/{project_id}/buildsZ,\022*" - + "/v1/{parent=projects/*/locations/*}/builds\212\323\344\223\002-\022+\n" + + "ListBuilds\0220.google.devtools.cloudbuild.v1.ListBuildsR" + + "equest\0321.google.devtools.cloudbuild.v1.L" + + "istBuildsResponse\"\235\001\332A\021project_id,filter\202\323\344\223\002P\022" + + " /v1/projects/{project_id}/builds" + + "Z,\022*/v1/{parent=projects/*/locations/*}/builds\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\251\002\n" - + "\013CancelBuild\0221.google.devtools.cloudbuild.v1.CancelBuildRequest" - + "\032$.google.devtools.cloudbuild.v1.Build\"\300\001\332A\r" - + "project_id,id\332A\004name\202\323\344\223\002i\",/v1/proj" - + "ects/{project_id}/builds/{id}:cancel:\001*Z" - + "6\"1/v1/{name=projects/*/locations/*/builds/*}:cancel:\001*\212\323\344\223\0024\0222\n" + + "\013CancelBuild\0221.google.devtools.cloudbuild.v1.CancelBuildReq" + + "uest\032$.google.devtools.cloudbuild.v1.Build\"\300\001\332A\r" + + "project_id,id\332A\004name\202\323\344\223\002i\",/v1/" + + "projects/{project_id}/builds/{id}:cancel" + + ":\001*Z6\"1/v1/{name=projects/*/locations/*/builds/*}:cancel:\001*\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\300\002\n\n" - + "RetryBuild\0220.google.devtools.cloudbuild.v1" - + ".RetryBuildRequest\032\035.google.longrunning.Operation\"\340\001\312A\037\n" + + "RetryBuild\0220.google.devtools.cloudbuil" + + "d.v1.RetryBuildRequest\032\035.google.longrunning.Operation\"\340\001\312A\037\n" + "\005Build\022\026BuildOperationMetadata\332A\r" - + "project_id,id\332A\004name\202\323\344\223\002g\"+/v1" - + "/projects/{project_id}/builds/{id}:retry" - + ":\001*Z5\"0/v1/{name=projects/*/locations/*/builds/*}:retry:\001*\212\323\344\223\0024\0222\n" + + "project_id,id\332A\004name\202\323\344\223\002g\"" + + "+/v1/projects/{project_id}/builds/{id}:r" + + "etry:\001*Z5\"0/v1/{name=projects/*/locations/*/builds/*}:retry:\001*\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\301\002\n" - + "\014ApproveBuild\0222.google.devtools.cloudbui" - + "ld.v1.ApproveBuildRequest\032\035.google.longrunning.Operation\"\335\001\312A\037\n" - + "\005Build\022\026BuildOperationMetadata\332A\024name,approval_result\202\323\344\223" - + "\002d\"&/v1/{name=projects/*/builds/*}:appro" - + "ve:\001*Z7\"2/v1/{name=projects/*/locations/*/builds/*}:approve:\001*\212\323\344\223\0024\0222\n" + + "\014ApproveBuild\0222.google.devtools.clou" + + "dbuild.v1.ApproveBuildRequest\032\035.google.longrunning.Operation\"\335\001\312A\037\n" + + "\005Build\022\026BuildOperationMetadata\332A\024name,approval_result" + + "\202\323\344\223\002d\"&/v1/{name=projects/*/builds/*}:a" + + "pprove:\001*Z7\"2/v1/{name=projects/*/locations/*/builds/*}:approve:\001*\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\273\002\n" - + "\022CreateBuildTrigger\0228.google.devtools.cloudbuild.v1.CreateBuildTriggerReques" - + "t\032+.google.devtools.cloudbuild.v1.BuildT" - + "rigger\"\275\001\332A\022project_id,trigger\332A\006parent\202" - + "\323\344\223\002f\"\"/v1/projects/{project_id}/trigger" - + "s:\007triggerZ7\",/v1/{parent=projects/*/locations/*}/triggers:\007trigger\212\323\344\223\002-\022+\n" + + "\022CreateBuildTrigger\0228.google.devtools.cloudbuild.v1.CreateBuildTriggerRe" + + "quest\032+.google.devtools.cloudbuild.v1.Bu" + + "ildTrigger\"\275\001\332A\022project_id,trigger\332A\006par" + + "ent\202\323\344\223\002f\"\"/v1/projects/{project_id}/tri" + + "ggers:\007triggerZ7\",/v1/{parent=projects/*/locations/*}/triggers:\007trigger\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\272\002\n" - + "\017GetBuildTrigger\0225.google.devtools.clo" - + "udbuild.v1.GetBuildTriggerRequest\032+.goog" - + "le.devtools.cloudbuild.v1.BuildTrigger\"\302" - + "\001\332A\025project_id,trigger_id\332A\004name\202\323\344\223\002a\022/" - + "/v1/projects/{project_id}/triggers/{trig" - + "ger_id}Z.\022,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + + "\017GetBuildTrigger\0225.google.devtools.cloudbuild.v1.GetBuildTriggerRequest\032+." + + "google.devtools.cloudbuild.v1.BuildTrigg" + + "er\"\302\001\332A\025project_id,trigger_id\332A\004name\202\323\344\223" + + "\002a\022//v1/projects/{project_id}/triggers/{" + + "trigger_id}Z.\022,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\243\002\n" - + "\021ListBuildTriggers\0227.google.devtools.clou" - + "dbuild.v1.ListBuildTriggersRequest\0328.goo" - + "gle.devtools.cloudbuild.v1.ListBuildTriggersResponse\"\232\001\332A\n" - + "project_id\202\323\344\223\002T\022\"/v1/projects/{project_id}/triggersZ.\022,/v1/{p" - + "arent=projects/*/locations/*}/triggers\212\323\344\223\002-\022+\n" + + "\021ListBuildTriggers\0227.google.devtools.cloudbuild.v1.ListBuildTriggersRequest\0328" + + ".google.devtools.cloudbuild.v1.ListBuildTriggersResponse\"\232\001\332A\n" + + "project_id\202\323\344\223\002T\022\"/v1/projects/{project_id}/triggersZ.\022,/v" + + "1/{parent=projects/*/locations/*}/triggers\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\253\002\n" - + "\022DeleteBuildTrigger\0228.google.devtools.cloudbuild.v1.DeleteBuildTrig" - + "gerRequest\032\026.google.protobuf.Empty\"\302\001\332A\025" - + "project_id,trigger_id\332A\004name\202\323\344\223\002a*//v1/" - + "projects/{project_id}/triggers/{trigger_" - + "id}Z.*,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + + "\022DeleteBuildTrigger\0228.google.devtools.cloudbuild.v1.DeleteBuild" + + "TriggerRequest\032\026.google.protobuf.Empty\"\302" + + "\001\332A\025project_id,trigger_id\332A\004name\202\323\344\223\002a*/" + + "/v1/projects/{project_id}/triggers/{trig" + + "ger_id}Z.*,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\366\002\n" - + "\022UpdateBuildTrigger\0228.google.devtools.cloudbu" - + "ild.v1.UpdateBuildTriggerRequest\032+.googl" - + "e.devtools.cloudbuild.v1.BuildTrigger\"\370\001" - + "\332A\035project_id,trigger_id,trigger\202\323\344\223\002\204\0012" - + "//v1/projects/{project_id}/triggers/{trigger_id}:\007triggerZH2=/v1/{trigger.resour" - + "ce_name=projects/*/locations/*/triggers/*}:\007trigger\212\323\344\223\002G\022E\n" - + "\025trigger.resource_na" - + "me\022,projects/*/locations/{location=*}/triggers/*\022\341\002\n" - + "\017RunBuildTrigger\0225.google.devtools.cloudbuild.v1.RunBuildTriggerRequ" - + "est\032\035.google.longrunning.Operation\"\367\001\312A\037\n" - + "\005Build\022\026BuildOperationMetadata\332A\034projec" - + "t_id,trigger_id,source\202\323\344\223\002t\"3/v1/projec" - + "ts/{project_id}/triggers/{trigger_id}:ru" - + "n:\006sourceZ5\"0/v1/{name=projects/*/locations/*/triggers/*}:run:\001*\212\323\344\223\0026\0224\n" + + "\022UpdateBuildTrigger\0228.google.devtools.clo" + + "udbuild.v1.UpdateBuildTriggerRequest\032+.google.devtools.cloudbuild.v1.BuildTrigge" + + "r\"\370\001\332A\035project_id,trigger_id,trigger\202\323\344\223" + + "\002\204\0012//v1/projects/{project_id}/triggers/" + + "{trigger_id}:\007triggerZH2=/v1/{trigger.re" + + "source_name=projects/*/locations/*/triggers/*}:\007trigger\212\323\344\223\002G\022E\n" + + "\025trigger.resourc" + + "e_name\022,projects/*/locations/{location=*}/triggers/*\022\341\002\n" + + "\017RunBuildTrigger\0225.google.devtools.cloudbuild.v1.RunBuildTrigger" + + "Request\032\035.google.longrunning.Operation\"\367\001\312A\037\n" + + "\005Build\022\026BuildOperationMetadata\332A\034pr" + + "oject_id,trigger_id,source\202\323\344\223\002t\"3/v1/pr" + + "ojects/{project_id}/triggers/{trigger_id" + + "}:run:\006sourceZ5\"0/v1/{name=projects/*/locations/*/triggers/*}:run:\001*\212\323\344\223\0026\0224\n" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\225\002\n" - + "\025ReceiveTriggerWebhook\022;.google.devtools.cloudbuild.v1.ReceiveTriggerWeb" - + "hookRequest\032<.google.devtools.cloudbuild" - + ".v1.ReceiveTriggerWebhookResponse\"\200\001\202\323\344\223" - + "\002z\"4/v1/projects/{project_id}/triggers/{" - + "trigger}:webhook:\004bodyZ<\"4/v1/{name=proj" - + "ects/*/locations/*/triggers/*}:webhook:\004body\022\271\002\n" - + "\020CreateWorkerPool\0226.google.devto" - + "ols.cloudbuild.v1.CreateWorkerPoolRequest\032\035.google.longrunning.Operation\"\315\001\312A/\n\n" - + "WorkerPool\022!CreateWorkerPoolOperationMetadata\332A!parent,worker_pool,worker_pool_i" - + "d\202\323\344\223\002>\"//v1/{parent=projects/*/locations/*}/workerPools:\013worker_pool\212\323\344\223\002-\022+\n" + + "\025ReceiveTriggerWebhook\022;.google.devtools.cloudbuild.v1.ReceiveTrigge" + + "rWebhookRequest\032<.google.devtools.cloudb" + + "uild.v1.ReceiveTriggerWebhookResponse\"\200\001" + + "\202\323\344\223\002z\"4/v1/projects/{project_id}/trigge" + + "rs/{trigger}:webhook:\004bodyZ<\"4/v1/{name=" + + "projects/*/locations/*/triggers/*}:webhook:\004body\022\271\002\n" + + "\020CreateWorkerPool\0226.google.devtools.cloudbuild.v1.CreateWorkerPoolRe" + + "quest\032\035.google.longrunning.Operation\"\315\001\312A/\n\n" + + "WorkerPool\022!CreateWorkerPoolOperationMetadata\332A!parent,worker_pool,worker_po" + + "ol_id\202\323\344\223\002>\"//v1/{parent=projects/*/loca" + + "tions/*}/workerPools:\013worker_pool\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\356\001\n\r" - + "GetWorkerPool\0223.google.devtools.cloudbuild.v1.GetWorkerPoolRequest\032).google" - + ".devtools.cloudbuild.v1.WorkerPool\"}\332A\004n" - + "ame\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + + "GetWorkerPool\0223.google.devtools.cloudbuild.v1.GetWorkerPoolRequest\032).go" + + "ogle.devtools.cloudbuild.v1.WorkerPool\"}" + + "\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + "\004name\022/projects/*/locations/{location=*}/workerPools/*\022\246\002\n" - + "\020DeleteWorkerPool\0226.google.devtools" - + ".cloudbuild.v1.DeleteWorkerPoolRequest\032\035.google.longrunning.Operation\"\272\001\312A:\n" - + "\025google.protobuf.Empty\022!DeleteWorkerPoolOper" - + "ationMetadata\332A\004name\202\323\344\223\0021*//v1/{name=pr" - + "ojects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + + "\020DeleteWorkerPool\0226.google.devt" + + "ools.cloudbuild.v1.DeleteWorkerPoolRequest\032\035.google.longrunning.Operation\"\272\001\312A:\n" + + "\025google.protobuf.Empty\022!DeleteWorkerPool" + + "OperationMetadata\332A\004name\202\323\344\223\0021*//v1/{nam" + + "e=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + "\004name\022/projects/*/locations/{location=*}/workerPools/*\022\323\002\n" - + "\020UpdateWorkerPool\0226.google.devtools.cloudbuild.v1.UpdateWo" - + "rkerPoolRequest\032\035.google.longrunning.Operation\"\347\001\312A/\n\n" - + "WorkerPool\022!UpdateWorkerPoolOperationMetadata\332A\027worker_pool,update" - + "_mask\202\323\344\223\002J2;/v1/{worker_pool.name=proje" - + "cts/*/locations/*/workerPools/*}:\013worker_pool\212\323\344\223\002E\022C\n" + + "\020UpdateWorkerPool\0226.google.devtools.cloudbuild.v1.Upda" + + "teWorkerPoolRequest\032\035.google.longrunning.Operation\"\347\001\312A/\n\n" + + "WorkerPool\022!UpdateWorkerPoolOperationMetadata\332A\027worker_pool,up" + + "date_mask\202\323\344\223\002J2;/v1/{worker_pool.name=p" + + "rojects/*/locations/*/workerPools/*}:\013worker_pool\212\323\344\223\002E\022C\n" + "\020worker_pool.name\022/projects/*/locations/{location=*}/workerPools/*\022\365\001\n" - + "\017ListWorkerPools\0225.google.devtools.cloudbuild.v1.ListWorkerPoolsRequest\0326.go" - + "ogle.devtools.cloudbuild.v1.ListWorkerPo" - + "olsResponse\"s\332A\006parent\202\323\344\223\0021\022//v1/{paren" - + "t=projects/*/locations/*}/workerPools\212\323\344\223\002-\022+\n" + + "\017ListWorkerPools\0225.google.devtools.cloudbuild.v1.ListWorkerPoolsRequest\032" + + "6.google.devtools.cloudbuild.v1.ListWork" + + "erPoolsResponse\"s\332A\006parent\202\323\344\223\0021\022//v1/{p" + + "arent=projects/*/locations/*}/workerPools\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\240\002\n" - + "\030GetDefaultServiceAccount\022>.google.devtools.cloudbuild.v1.GetDefault" - + "ServiceAccountRequest\0324.google.devtools." - + "cloudbuild.v1.DefaultServiceAccount\"\215\001\332A" - + "\004name\202\323\344\223\0029\0227/v1/{name=projects/*/locations/*/defaultServiceAccount}\212\323\344\223\002A\022?\n" - + "\004name\0227projects/*/locations/{location=*}/de" - + "faultServiceAccount\032M\312A\031cloudbuild.googl" - + "eapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\256\n\n" - + "\030com.google.cloudbuild.v1P\001ZAcloud.google.com/go/cloudbuil" - + "d/apiv1/v2/cloudbuildpb;cloudbuildpb\242\002\003G" - + "CB\252\002\032Google.Cloud.CloudBuild.V1\312\002\025Google" - + "\\Cloud\\Build\\V1\352\002\030Google::Cloud::Build::V1\352AN\n" - + "\036compute.googleapis.com/Network\022,p" - + "rojects/{project}/global/networks/{network}\352AY\n" - + "!iam.googleapis.com/ServiceAccoun" - + "t\0224projects/{project}/serviceAccounts/{service_account}\352AJ\n" + + "\030GetDefaultServiceAccount\022>.google.devtools.cloudbuild.v1.GetDef" + + "aultServiceAccountRequest\0324.google.devtools.cloudbuild.v1.DefaultServiceAccount\"" + + "\215\001\332A\004name\202\323\344\223\0029\0227/v1/{name=projects/*/lo" + + "cations/*/defaultServiceAccount}\212\323\344\223\002A\022?\n" + + "\004name\0227projects/*/locations/{location=*" + + "}/defaultServiceAccount\032M\312A\031cloudbuild.g" + + "oogleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\256\n\n" + + "\030com.google.cloudbuild.v1P\001ZAcloud.google.com/go/cloud" + + "build/apiv1/v2/cloudbuildpb;cloudbuildpb" + + "\242\002\003GCB\252\002\032Google.Cloud.CloudBuild.V1\312\002\025Go" + + "ogle\\Cloud\\Build\\V1\352\002\030Google::Cloud::Build::V1\352AN\n" + + "\036compute.googleapis.com/Networ" + + "k\022,projects/{project}/global/networks/{network}\352AY\n" + + "!iam.googleapis.com/ServiceAc" + + "count\0224projects/{project}/serviceAccounts/{service_account}\352AJ\n" + "#secretmanager.googleapis.com/Secret\022#projects/{project}/secrets/{secret}\352Ad\n" - + "*secretmanager.googleapi" - + "s.com/SecretVersion\0226projects/{project}/secrets/{secret}/versions/{version}\352Af\n" - + " gkehub.googleapis.com/Membership\022Bprojec" - + "ts/{project}/locations/{location}/memberships/{cluster_name}\352Ap\n" - + "!cloudkms.googleapis.com/CryptoKey\022Kprojects/{project}/l" - + "ocations/{location}/keyRings/{keyring}/cryptoKeys/{key}\352AU\n" - + "\"pubsub.googleapis.co" - + "m/Subscription\022/projects/{project}/subscriptions/{subscription}\352A@\n" + + "*secretmanager.googleapis.com/SecretVersion\0226projects/{proje" + + "ct}/secrets/{secret}/versions/{version}\352Af\n" + + " gkehub.googleapis.com/Membership\022Bpr" + + "ojects/{project}/locations/{location}/memberships/{cluster_name}\352Ap\n" + + "!cloudkms.googleapis.com/CryptoKey\022Kprojects/{projec" + + "t}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}\352AU\n" + + "\"pubsub.googleapi" + + "s.com/Subscription\022/projects/{project}/subscriptions/{subscription}\352A@\n" + "\033pubsub.googleapis.com/Topic\022!projects/{project}/topics/{topic}\352Av\n" - + "(compute.googleapis.com/NetworkAttachment\022Jprojects/{project}/regi" - + "ons/{region}/networkAttachments/{networkattachment}\352A\236\001\n" - + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{pr" - + "oject}/locations/{location}/connections/" - + "{connection}/gitRepositoryLinks/{git_repository_link}\352A\202\001\n" - + "$cloudbuild.googleapis.com/Repository\022Zprojects/{project}/loca" - + "tions/{location}/connections/{connection}/repositories/{repository}b\006proto3" + + "(compute.googleapis.com/NetworkAttachment\022Jprojects/{project}/" + + "regions/{region}/networkAttachments/{networkattachment}\352A\236\001\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects" + + "/{project}/locations/{location}/connecti" + + "ons/{connection}/gitRepositoryLinks/{git_repository_link}\352A\202\001\n" + + "$cloudbuild.googleapis.com/Repository\022Zprojects/{project}/" + + "locations/{location}/connections/{connection}/repositories/{repository}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -2067,6 +2074,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Volumes", "DefaultLogsBucketBehavior", "EnableStructuredLogging", + "WorkerRelease", + "ResolvedWorkerRelease", }); internal_static_google_devtools_cloudbuild_v1_BuildOptions_PoolOption_descriptor = internal_static_google_devtools_cloudbuild_v1_BuildOptions_descriptor.getNestedType(0); @@ -2074,7 +2083,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_BuildOptions_PoolOption_descriptor, new java.lang.String[] { - "Name", + "Name", "WorkerRelease", "ResolvedWorkerRelease", }); internal_static_google_devtools_cloudbuild_v1_ReceiveTriggerWebhookRequest_descriptor = getDescriptor().getMessageType(57); @@ -2158,7 +2167,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_WorkerConfig_descriptor, new java.lang.String[] { - "MachineType", "DiskSizeGb", "EnableNestedVirtualization", + "MachineType", "DiskSizeGb", "EnableNestedVirtualization", "WorkerRelease", }); internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_NetworkConfig_descriptor = internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_descriptor.getNestedType( diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1Config.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1Config.java index 4de29a248149..165c0e870e07 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1Config.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PrivatePoolV1Config.java @@ -153,6 +153,34 @@ public interface WorkerConfigOrBuilder * @return The enableNestedVirtualization. */ boolean getEnableNestedVirtualization(); + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The workerRelease. + */ + java.lang.String getWorkerRelease(); + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The bytes for workerRelease. + */ + com.google.protobuf.ByteString getWorkerReleaseBytes(); } /** @@ -188,6 +216,7 @@ private WorkerConfig(com.google.protobuf.GeneratedMessage.Builder> builder) { private WorkerConfig() { machineType_ = ""; + workerRelease_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -329,6 +358,61 @@ public boolean getEnableNestedVirtualization() { return enableNestedVirtualization_; } + public static final int WORKER_RELEASE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object workerRelease_ = ""; + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The workerRelease. + */ + @java.lang.Override + public java.lang.String getWorkerRelease() { + java.lang.Object ref = workerRelease_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerRelease_ = s; + return s; + } + } + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The bytes for workerRelease. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkerReleaseBytes() { + java.lang.Object ref = workerRelease_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -352,6 +436,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(3, enableNestedVirtualization_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerRelease_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, workerRelease_); + } getUnknownFields().writeTo(output); } @@ -371,6 +458,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableNestedVirtualization_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerRelease_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, workerRelease_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -393,6 +483,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEnableNestedVirtualization()) { if (getEnableNestedVirtualization() != other.getEnableNestedVirtualization()) return false; } + if (!getWorkerRelease().equals(other.getWorkerRelease())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -413,6 +504,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableNestedVirtualization()); } + hash = (37 * hash) + WORKER_RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getWorkerRelease().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -558,6 +651,7 @@ public Builder clear() { machineType_ = ""; diskSizeGb_ = 0L; enableNestedVirtualization_ = false; + workerRelease_ = ""; return this; } @@ -605,6 +699,9 @@ private void buildPartial0(com.google.cloudbuild.v1.PrivatePoolV1Config.WorkerCo result.enableNestedVirtualization_ = enableNestedVirtualization_; to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.workerRelease_ = workerRelease_; + } result.bitField0_ |= to_bitField0_; } @@ -632,6 +729,11 @@ public Builder mergeFrom(com.google.cloudbuild.v1.PrivatePoolV1Config.WorkerConf if (other.hasEnableNestedVirtualization()) { setEnableNestedVirtualization(other.getEnableNestedVirtualization()); } + if (!other.getWorkerRelease().isEmpty()) { + workerRelease_ = other.workerRelease_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -676,6 +778,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 34: + { + workerRelease_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -973,6 +1081,122 @@ public Builder clearEnableNestedVirtualization() { return this; } + private java.lang.Object workerRelease_ = ""; + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The workerRelease. + */ + public java.lang.String getWorkerRelease() { + java.lang.Object ref = workerRelease_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerRelease_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The bytes for workerRelease. + */ + public com.google.protobuf.ByteString getWorkerReleaseBytes() { + java.lang.Object ref = workerRelease_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL];+ * + * @param value The workerRelease to set. + * @return This builder for chaining. + */ + public Builder setWorkerRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workerRelease_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return This builder for chaining. + */ + public Builder clearWorkerRelease() { + workerRelease_ = getDefaultInstance().getWorkerRelease(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. Option to specify which release or release channel + * (rapid|regular|stable) to use to run this build. + *+ * + *string worker_release = 4 [(.google.api.field_behavior) = OPTIONAL];+ * + * @param value The bytes for workerRelease to set. + * @return This builder for chaining. + */ + public Builder setWorkerReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerRelease_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig) } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto b/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto index f67f368f9dd9..5f5149beab12 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto @@ -2497,6 +2497,17 @@ message BuildOptions { string name = 1 [(google.api.resource_reference) = { type: "cloudbuild.googleapis.com/WorkerPool" }]; + + // Output only. OUTPUT_ONLY. The release or release channel used to run the + // Build. This is set to the same value as + // `PrivatePoolV1Config.WorkerConfig.worker_release` for the UI to easily + // access. + string worker_release = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. OUTPUT_ONLY. Worker release resolved from the release + // channel. + string resolved_worker_release = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Specifies the logging mode. @@ -2623,6 +2634,14 @@ message BuildOptions { // // If true, JSON-formatted logs are parsed as structured logs. bool enable_structured_logging = 23 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Option to specify which release or release channel + // (rapid|regular|stable) to use to run this build. + string worker_release = 25 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Worker release resolved from the release channel. + string resolved_worker_release = 26 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // ReceiveTriggerWebhookRequest [Experimental] is the request object accepted by @@ -2841,6 +2860,10 @@ message PrivatePoolV1Config { // machine type. By default, nested virtualization is disabled. optional bool enable_nested_virtualization = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Option to specify which release or release channel + // (rapid|regular|stable) to use to run this build. + string worker_release = 4 [(google.api.field_behavior) = OPTIONAL]; } // Defines the network configuration for the pool. diff --git a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json index 503aa98ddce0..3e2d1001f895 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json +++ b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json @@ -1475,6 +1475,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig$HardwareClass", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataproc.v1.FlinkJob", "queryAllDeclaredConstructors": true, @@ -2573,6 +2600,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataproc.v1.MultiZoneConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataproc.v1.MultiZoneConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataproc.v1.MultiZoneConfig$TargetShape", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataproc.v1.NodeGroup", "queryAllDeclaredConstructors": true, diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java index c2e606d1971c..aa9ce3e163d7 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java @@ -1844,6 +1844,319 @@ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder getAuxiliaryNode return auxiliaryNodeGroups_.get(index); } + public static final int MASTER_FLEXIBLE_CONFIG_FIELD_NUMBER = 31; + private com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig masterFlexibleConfig_; + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * master instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration across node groups: + * * For single-node clusters: `master_flexible_config` must be specified, and + * no worker configs should be set. + * * For multi-node (standard) clusters: both `master_flexible_config` and + * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + * must be specified. Mixing standard and flexible configs across node + * groups is not allowed. + * + * Only one of + * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + * `master_flexible_config` can be set. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return Whether the masterFlexibleConfig field is set. + */ + @java.lang.Override + public boolean hasMasterFlexibleConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * master instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration across node groups: + * * For single-node clusters: `master_flexible_config` must be specified, and + * no worker configs should be set. + * * For multi-node (standard) clusters: both `master_flexible_config` and + * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + * must be specified. Mixing standard and flexible configs across node + * groups is not allowed. + * + * Only one of + * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + * `master_flexible_config` can be set. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The masterFlexibleConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getMasterFlexibleConfig() { + return masterFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : masterFlexibleConfig_; + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * master instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration across node groups: + * * For single-node clusters: `master_flexible_config` must be specified, and + * no worker configs should be set. + * * For multi-node (standard) clusters: both `master_flexible_config` and + * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + * must be specified. Mixing standard and flexible configs across node + * groups is not allowed. + * + * Only one of + * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + * `master_flexible_config` can be set. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getMasterFlexibleConfigOrBuilder() { + return masterFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : masterFlexibleConfig_; + } + + public static final int WORKER_FLEXIBLE_CONFIG_FIELD_NUMBER = 32; + private com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig workerFlexibleConfig_; + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the worker group and is mutable via cluster updates and + * autoscaling. + * + * Only one of + * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + * `worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, for multi-node (standard) clusters, both + * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + * and `worker_flexible_config` must be specified. Mixing standard and + * flexible configs across node groups is not allowed. Single-node clusters do + * not specify worker configs. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return Whether the workerFlexibleConfig field is set. + */ + @java.lang.Override + public boolean hasWorkerFlexibleConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the worker group and is mutable via cluster updates and + * autoscaling. + * + * Only one of + * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + * `worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, for multi-node (standard) clusters, both + * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + * and `worker_flexible_config` must be specified. Mixing standard and + * flexible configs across node groups is not allowed. Single-node clusters do + * not specify worker configs. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The workerFlexibleConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getWorkerFlexibleConfig() { + return workerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : workerFlexibleConfig_; + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the worker group and is mutable via cluster updates and + * autoscaling. + * + * Only one of + * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + * `worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, for multi-node (standard) clusters, both + * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + * and `worker_flexible_config` must be specified. Mixing standard and + * flexible configs across node groups is not allowed. Single-node clusters do + * not specify worker configs. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getWorkerFlexibleConfigOrBuilder() { + return workerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : workerFlexibleConfig_; + } + + public static final int SECONDARY_WORKER_FLEXIBLE_CONFIG_FIELD_NUMBER = 33; + private com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondaryWorkerFlexibleConfig_; + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for a cluster's + * secondary worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the secondary worker group and is mutable via cluster + * updates and autoscaling. + * + * Only one of + * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + * or `secondary_worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, secondary workers are optional. If + * secondary workers are used in an HO cluster, they must be configured using + * `secondary_worker_flexible_config` (not `secondary_worker_config`). + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return Whether the secondaryWorkerFlexibleConfig field is set. + */ + @java.lang.Override + public boolean hasSecondaryWorkerFlexibleConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for a cluster's + * secondary worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the secondary worker group and is mutable via cluster + * updates and autoscaling. + * + * Only one of + * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + * or `secondary_worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, secondary workers are optional. If + * secondary workers are used in an HO cluster, they must be configured using + * `secondary_worker_flexible_config` (not `secondary_worker_config`). + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The secondaryWorkerFlexibleConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig + getSecondaryWorkerFlexibleConfig() { + return secondaryWorkerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : secondaryWorkerFlexibleConfig_; + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for a cluster's + * secondary worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the secondary worker group and is mutable via cluster + * updates and autoscaling. + * + * Only one of + * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + * or `secondary_worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, secondary workers are optional. If + * secondary workers are used in an HO cluster, they must be configured using + * `secondary_worker_flexible_config` (not `secondary_worker_config`). + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getSecondaryWorkerFlexibleConfigOrBuilder() { + return secondaryWorkerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : secondaryWorkerFlexibleConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1920,6 +2233,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.dataproc.v1.ClusterConfig.Engine.ENGINE_UNSPECIFIED.getNumber()) { output.writeEnum(30, engine_); } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(31, getMasterFlexibleConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(32, getWorkerFlexibleConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(33, getSecondaryWorkerFlexibleConfig()); + } getUnknownFields().writeTo(output); } @@ -1996,6 +2318,19 @@ public int getSerializedSize() { != com.google.cloud.dataproc.v1.ClusterConfig.Engine.ENGINE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(30, engine_); } + if (((bitField0_ & 0x00001000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(31, getMasterFlexibleConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(32, getWorkerFlexibleConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 33, getSecondaryWorkerFlexibleConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2067,6 +2402,20 @@ public boolean equals(final java.lang.Object obj) { if (!getDataprocMetricConfig().equals(other.getDataprocMetricConfig())) return false; } if (!getAuxiliaryNodeGroupsList().equals(other.getAuxiliaryNodeGroupsList())) return false; + if (hasMasterFlexibleConfig() != other.hasMasterFlexibleConfig()) return false; + if (hasMasterFlexibleConfig()) { + if (!getMasterFlexibleConfig().equals(other.getMasterFlexibleConfig())) return false; + } + if (hasWorkerFlexibleConfig() != other.hasWorkerFlexibleConfig()) return false; + if (hasWorkerFlexibleConfig()) { + if (!getWorkerFlexibleConfig().equals(other.getWorkerFlexibleConfig())) return false; + } + if (hasSecondaryWorkerFlexibleConfig() != other.hasSecondaryWorkerFlexibleConfig()) + return false; + if (hasSecondaryWorkerFlexibleConfig()) { + if (!getSecondaryWorkerFlexibleConfig().equals(other.getSecondaryWorkerFlexibleConfig())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2144,6 +2493,18 @@ public int hashCode() { hash = (37 * hash) + AUXILIARY_NODE_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getAuxiliaryNodeGroupsList().hashCode(); } + if (hasMasterFlexibleConfig()) { + hash = (37 * hash) + MASTER_FLEXIBLE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMasterFlexibleConfig().hashCode(); + } + if (hasWorkerFlexibleConfig()) { + hash = (37 * hash) + WORKER_FLEXIBLE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkerFlexibleConfig().hashCode(); + } + if (hasSecondaryWorkerFlexibleConfig()) { + hash = (37 * hash) + SECONDARY_WORKER_FLEXIBLE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryWorkerFlexibleConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2299,6 +2660,9 @@ private void maybeForceBuilderInitialization() { internalGetMetastoreConfigFieldBuilder(); internalGetDataprocMetricConfigFieldBuilder(); internalGetAuxiliaryNodeGroupsFieldBuilder(); + internalGetMasterFlexibleConfigFieldBuilder(); + internalGetWorkerFlexibleConfigFieldBuilder(); + internalGetSecondaryWorkerFlexibleConfigFieldBuilder(); } } @@ -2385,6 +2749,21 @@ public Builder clear() { auxiliaryNodeGroupsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00040000); + masterFlexibleConfig_ = null; + if (masterFlexibleConfigBuilder_ != null) { + masterFlexibleConfigBuilder_.dispose(); + masterFlexibleConfigBuilder_ = null; + } + workerFlexibleConfig_ = null; + if (workerFlexibleConfigBuilder_ != null) { + workerFlexibleConfigBuilder_.dispose(); + workerFlexibleConfigBuilder_ = null; + } + secondaryWorkerFlexibleConfig_ = null; + if (secondaryWorkerFlexibleConfigBuilder_ != null) { + secondaryWorkerFlexibleConfigBuilder_.dispose(); + secondaryWorkerFlexibleConfigBuilder_ = null; + } return this; } @@ -2525,6 +2904,27 @@ private void buildPartial0(com.google.cloud.dataproc.v1.ClusterConfig result) { : dataprocMetricConfigBuilder_.build(); to_bitField0_ |= 0x00000800; } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.masterFlexibleConfig_ = + masterFlexibleConfigBuilder_ == null + ? masterFlexibleConfig_ + : masterFlexibleConfigBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.workerFlexibleConfig_ = + workerFlexibleConfigBuilder_ == null + ? workerFlexibleConfig_ + : workerFlexibleConfigBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.secondaryWorkerFlexibleConfig_ = + secondaryWorkerFlexibleConfigBuilder_ == null + ? secondaryWorkerFlexibleConfig_ + : secondaryWorkerFlexibleConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } result.bitField0_ |= to_bitField0_; } @@ -2649,6 +3049,15 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { } } } + if (other.hasMasterFlexibleConfig()) { + mergeMasterFlexibleConfig(other.getMasterFlexibleConfig()); + } + if (other.hasWorkerFlexibleConfig()) { + mergeWorkerFlexibleConfig(other.getWorkerFlexibleConfig()); + } + if (other.hasSecondaryWorkerFlexibleConfig()) { + mergeSecondaryWorkerFlexibleConfig(other.getSecondaryWorkerFlexibleConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2817,6 +3226,28 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 240 + case 250: + { + input.readMessage( + internalGetMasterFlexibleConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 250 + case 258: + { + input.readMessage( + internalGetWorkerFlexibleConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 258 + case 266: + { + input.readMessage( + internalGetSecondaryWorkerFlexibleConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 266 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7149,6 +7580,1057 @@ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder addAuxiliaryNodeG return auxiliaryNodeGroupsBuilder_; } + private com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig masterFlexibleConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder> + masterFlexibleConfigBuilder_; + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * master instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration across node groups: + * * For single-node clusters: `master_flexible_config` must be specified, and + * no worker configs should be set. + * * For multi-node (standard) clusters: both `master_flexible_config` and + * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + * must be specified. Mixing standard and flexible configs across node + * groups is not allowed. + * + * Only one of + * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + * `master_flexible_config` can be set. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return Whether the masterFlexibleConfig field is set. + */ + public boolean hasMasterFlexibleConfig() { + return ((bitField0_ & 0x00080000) != 0); + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * master instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration across node groups: + * * For single-node clusters: `master_flexible_config` must be specified, and + * no worker configs should be set. + * * For multi-node (standard) clusters: both `master_flexible_config` and + * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + * must be specified. Mixing standard and flexible configs across node + * groups is not allowed. + * + * Only one of + * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + * `master_flexible_config` can be set. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The masterFlexibleConfig. + */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getMasterFlexibleConfig() { + if (masterFlexibleConfigBuilder_ == null) { + return masterFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : masterFlexibleConfig_; + } else { + return masterFlexibleConfigBuilder_.getMessage(); + } + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * master instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration across node groups: + * * For single-node clusters: `master_flexible_config` must be specified, and + * no worker configs should be set. + * * For multi-node (standard) clusters: both `master_flexible_config` and + * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + * must be specified. Mixing standard and flexible configs across node + * groups is not allowed. + * + * Only one of + * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + * `master_flexible_config` can be set. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder setMasterFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig value) { + if (masterFlexibleConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterFlexibleConfig_ = value; + } else { + masterFlexibleConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * master instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration across node groups: + * * For single-node clusters: `master_flexible_config` must be specified, and + * no worker configs should be set. + * * For multi-node (standard) clusters: both `master_flexible_config` and + * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + * must be specified. Mixing standard and flexible configs across node + * groups is not allowed. + * + * Only one of + * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + * `master_flexible_config` can be set. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder setMasterFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder builderForValue) { + if (masterFlexibleConfigBuilder_ == null) { + masterFlexibleConfig_ = builderForValue.build(); + } else { + masterFlexibleConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * master instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration across node groups: + * * For single-node clusters: `master_flexible_config` must be specified, and + * no worker configs should be set. + * * For multi-node (standard) clusters: both `master_flexible_config` and + * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + * must be specified. Mixing standard and flexible configs across node + * groups is not allowed. + * + * Only one of + * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + * `master_flexible_config` can be set. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder mergeMasterFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig value) { + if (masterFlexibleConfigBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && masterFlexibleConfig_ != null + && masterFlexibleConfig_ + != com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance()) { + getMasterFlexibleConfigBuilder().mergeFrom(value); + } else { + masterFlexibleConfig_ = value; + } + } else { + masterFlexibleConfigBuilder_.mergeFrom(value); + } + if (masterFlexibleConfig_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * master instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration across node groups: + * * For single-node clusters: `master_flexible_config` must be specified, and + * no worker configs should be set. + * * For multi-node (standard) clusters: both `master_flexible_config` and + * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + * must be specified. Mixing standard and flexible configs across node + * groups is not allowed. + * + * Only one of + * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + * `master_flexible_config` can be set. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder clearMasterFlexibleConfig() { + bitField0_ = (bitField0_ & ~0x00080000); + masterFlexibleConfig_ = null; + if (masterFlexibleConfigBuilder_ != null) { + masterFlexibleConfigBuilder_.dispose(); + masterFlexibleConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * master instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration across node groups: + * * For single-node clusters: `master_flexible_config` must be specified, and + * no worker configs should be set. + * * For multi-node (standard) clusters: both `master_flexible_config` and + * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + * must be specified. Mixing standard and flexible configs across node + * groups is not allowed. + * + * Only one of + * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + * `master_flexible_config` can be set. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder + getMasterFlexibleConfigBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return internalGetMasterFlexibleConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * master instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration across node groups: + * * For single-node clusters: `master_flexible_config` must be specified, and + * no worker configs should be set. + * * For multi-node (standard) clusters: both `master_flexible_config` and + * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + * must be specified. Mixing standard and flexible configs across node + * groups is not allowed. + * + * Only one of + * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + * `master_flexible_config` can be set. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getMasterFlexibleConfigOrBuilder() { + if (masterFlexibleConfigBuilder_ != null) { + return masterFlexibleConfigBuilder_.getMessageOrBuilder(); + } else { + return masterFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : masterFlexibleConfig_; + } + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * master instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration across node groups: + * * For single-node clusters: `master_flexible_config` must be specified, and + * no worker configs should be set. + * * For multi-node (standard) clusters: both `master_flexible_config` and + * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + * must be specified. Mixing standard and flexible configs across node + * groups is not allowed. + * + * Only one of + * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + * `master_flexible_config` can be set. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder> + internalGetMasterFlexibleConfigFieldBuilder() { + if (masterFlexibleConfigBuilder_ == null) { + masterFlexibleConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder>( + getMasterFlexibleConfig(), getParentForChildren(), isClean()); + masterFlexibleConfig_ = null; + } + return masterFlexibleConfigBuilder_; + } + + private com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig workerFlexibleConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder> + workerFlexibleConfigBuilder_; + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the worker group and is mutable via cluster updates and + * autoscaling. + * + * Only one of + * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + * `worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, for multi-node (standard) clusters, both + * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + * and `worker_flexible_config` must be specified. Mixing standard and + * flexible configs across node groups is not allowed. Single-node clusters do + * not specify worker configs. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return Whether the workerFlexibleConfig field is set. + */ + public boolean hasWorkerFlexibleConfig() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the worker group and is mutable via cluster updates and + * autoscaling. + * + * Only one of + * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + * `worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, for multi-node (standard) clusters, both + * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + * and `worker_flexible_config` must be specified. Mixing standard and + * flexible configs across node groups is not allowed. Single-node clusters do + * not specify worker configs. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The workerFlexibleConfig. + */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getWorkerFlexibleConfig() { + if (workerFlexibleConfigBuilder_ == null) { + return workerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : workerFlexibleConfig_; + } else { + return workerFlexibleConfigBuilder_.getMessage(); + } + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the worker group and is mutable via cluster updates and + * autoscaling. + * + * Only one of + * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + * `worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, for multi-node (standard) clusters, both + * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + * and `worker_flexible_config` must be specified. Mixing standard and + * flexible configs across node groups is not allowed. Single-node clusters do + * not specify worker configs. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder setWorkerFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig value) { + if (workerFlexibleConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workerFlexibleConfig_ = value; + } else { + workerFlexibleConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the worker group and is mutable via cluster updates and + * autoscaling. + * + * Only one of + * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + * `worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, for multi-node (standard) clusters, both + * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + * and `worker_flexible_config` must be specified. Mixing standard and + * flexible configs across node groups is not allowed. Single-node clusters do + * not specify worker configs. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder setWorkerFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder builderForValue) { + if (workerFlexibleConfigBuilder_ == null) { + workerFlexibleConfig_ = builderForValue.build(); + } else { + workerFlexibleConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the worker group and is mutable via cluster updates and + * autoscaling. + * + * Only one of + * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + * `worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, for multi-node (standard) clusters, both + * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + * and `worker_flexible_config` must be specified. Mixing standard and + * flexible configs across node groups is not allowed. Single-node clusters do + * not specify worker configs. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder mergeWorkerFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig value) { + if (workerFlexibleConfigBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && workerFlexibleConfig_ != null + && workerFlexibleConfig_ + != com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance()) { + getWorkerFlexibleConfigBuilder().mergeFrom(value); + } else { + workerFlexibleConfig_ = value; + } + } else { + workerFlexibleConfigBuilder_.mergeFrom(value); + } + if (workerFlexibleConfig_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the worker group and is mutable via cluster updates and + * autoscaling. + * + * Only one of + * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + * `worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, for multi-node (standard) clusters, both + * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + * and `worker_flexible_config` must be specified. Mixing standard and + * flexible configs across node groups is not allowed. Single-node clusters do + * not specify worker configs. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder clearWorkerFlexibleConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + workerFlexibleConfig_ = null; + if (workerFlexibleConfigBuilder_ != null) { + workerFlexibleConfigBuilder_.dispose(); + workerFlexibleConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the worker group and is mutable via cluster updates and + * autoscaling. + * + * Only one of + * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + * `worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, for multi-node (standard) clusters, both + * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + * and `worker_flexible_config` must be specified. Mixing standard and + * flexible configs across node groups is not allowed. Single-node clusters do + * not specify worker configs. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder + getWorkerFlexibleConfigBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return internalGetWorkerFlexibleConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the worker group and is mutable via cluster updates and + * autoscaling. + * + * Only one of + * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + * `worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, for multi-node (standard) clusters, both + * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + * and `worker_flexible_config` must be specified. Mixing standard and + * flexible configs across node groups is not allowed. Single-node clusters do + * not specify worker configs. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getWorkerFlexibleConfigOrBuilder() { + if (workerFlexibleConfigBuilder_ != null) { + return workerFlexibleConfigBuilder_.getMessageOrBuilder(); + } else { + return workerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : workerFlexibleConfig_; + } + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the worker group and is mutable via cluster updates and + * autoscaling. + * + * Only one of + * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + * `worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, for multi-node (standard) clusters, both + * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + * and `worker_flexible_config` must be specified. Mixing standard and + * flexible configs across node groups is not allowed. Single-node clusters do + * not specify worker configs. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder> + internalGetWorkerFlexibleConfigFieldBuilder() { + if (workerFlexibleConfigBuilder_ == null) { + workerFlexibleConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder>( + getWorkerFlexibleConfig(), getParentForChildren(), isClean()); + workerFlexibleConfig_ = null; + } + return workerFlexibleConfigBuilder_; + } + + private com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondaryWorkerFlexibleConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder> + secondaryWorkerFlexibleConfigBuilder_; + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for a cluster's + * secondary worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the secondary worker group and is mutable via cluster + * updates and autoscaling. + * + * Only one of + * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + * or `secondary_worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, secondary workers are optional. If + * secondary workers are used in an HO cluster, they must be configured using + * `secondary_worker_flexible_config` (not `secondary_worker_config`). + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return Whether the secondaryWorkerFlexibleConfig field is set. + */ + public boolean hasSecondaryWorkerFlexibleConfig() { + return ((bitField0_ & 0x00200000) != 0); + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for a cluster's + * secondary worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the secondary worker group and is mutable via cluster + * updates and autoscaling. + * + * Only one of + * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + * or `secondary_worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, secondary workers are optional. If + * secondary workers are used in an HO cluster, they must be configured using + * `secondary_worker_flexible_config` (not `secondary_worker_config`). + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The secondaryWorkerFlexibleConfig. + */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig + getSecondaryWorkerFlexibleConfig() { + if (secondaryWorkerFlexibleConfigBuilder_ == null) { + return secondaryWorkerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : secondaryWorkerFlexibleConfig_; + } else { + return secondaryWorkerFlexibleConfigBuilder_.getMessage(); + } + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for a cluster's + * secondary worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the secondary worker group and is mutable via cluster + * updates and autoscaling. + * + * Only one of + * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + * or `secondary_worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, secondary workers are optional. If + * secondary workers are used in an HO cluster, they must be configured using + * `secondary_worker_flexible_config` (not `secondary_worker_config`). + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder setSecondaryWorkerFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig value) { + if (secondaryWorkerFlexibleConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + secondaryWorkerFlexibleConfig_ = value; + } else { + secondaryWorkerFlexibleConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for a cluster's + * secondary worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the secondary worker group and is mutable via cluster + * updates and autoscaling. + * + * Only one of + * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + * or `secondary_worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, secondary workers are optional. If + * secondary workers are used in an HO cluster, they must be configured using + * `secondary_worker_flexible_config` (not `secondary_worker_config`). + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder setSecondaryWorkerFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder builderForValue) { + if (secondaryWorkerFlexibleConfigBuilder_ == null) { + secondaryWorkerFlexibleConfig_ = builderForValue.build(); + } else { + secondaryWorkerFlexibleConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for a cluster's + * secondary worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the secondary worker group and is mutable via cluster + * updates and autoscaling. + * + * Only one of + * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + * or `secondary_worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, secondary workers are optional. If + * secondary workers are used in an HO cluster, they must be configured using + * `secondary_worker_flexible_config` (not `secondary_worker_config`). + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder mergeSecondaryWorkerFlexibleConfig( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig value) { + if (secondaryWorkerFlexibleConfigBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) + && secondaryWorkerFlexibleConfig_ != null + && secondaryWorkerFlexibleConfig_ + != com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance()) { + getSecondaryWorkerFlexibleConfigBuilder().mergeFrom(value); + } else { + secondaryWorkerFlexibleConfig_ = value; + } + } else { + secondaryWorkerFlexibleConfigBuilder_.mergeFrom(value); + } + if (secondaryWorkerFlexibleConfig_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for a cluster's + * secondary worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the secondary worker group and is mutable via cluster + * updates and autoscaling. + * + * Only one of + * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + * or `secondary_worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, secondary workers are optional. If + * secondary workers are used in an HO cluster, they must be configured using + * `secondary_worker_flexible_config` (not `secondary_worker_config`). + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder clearSecondaryWorkerFlexibleConfig() { + bitField0_ = (bitField0_ & ~0x00200000); + secondaryWorkerFlexibleConfig_ = null; + if (secondaryWorkerFlexibleConfigBuilder_ != null) { + secondaryWorkerFlexibleConfigBuilder_.dispose(); + secondaryWorkerFlexibleConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for a cluster's + * secondary worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the secondary worker group and is mutable via cluster + * updates and autoscaling. + * + * Only one of + * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + * or `secondary_worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, secondary workers are optional. If + * secondary workers are used in an HO cluster, they must be configured using + * `secondary_worker_flexible_config` (not `secondary_worker_config`). + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder + getSecondaryWorkerFlexibleConfigBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return internalGetSecondaryWorkerFlexibleConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for a cluster's + * secondary worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the secondary worker group and is mutable via cluster + * updates and autoscaling. + * + * Only one of + * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + * or `secondary_worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, secondary workers are optional. If + * secondary workers are used in an HO cluster, they must be configured using + * `secondary_worker_flexible_config` (not `secondary_worker_config`). + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getSecondaryWorkerFlexibleConfigOrBuilder() { + if (secondaryWorkerFlexibleConfigBuilder_ != null) { + return secondaryWorkerFlexibleConfigBuilder_.getMessageOrBuilder(); + } else { + return secondaryWorkerFlexibleConfig_ == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance() + : secondaryWorkerFlexibleConfig_; + } + } + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for a cluster's + * secondary worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the secondary worker group and is mutable via cluster + * updates and autoscaling. + * + * Only one of + * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + * or `secondary_worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, secondary workers are optional. If + * secondary workers are used in an HO cluster, they must be configured using + * `secondary_worker_flexible_config` (not `secondary_worker_config`). + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder> + internalGetSecondaryWorkerFlexibleConfigFieldBuilder() { + if (secondaryWorkerFlexibleConfigBuilder_ == null) { + secondaryWorkerFlexibleConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder>( + getSecondaryWorkerFlexibleConfig(), getParentForChildren(), isClean()); + secondaryWorkerFlexibleConfig_ = null; + } + return secondaryWorkerFlexibleConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ClusterConfig) } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java index b7ecfb34b9f1..a00b884a7084 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java @@ -933,4 +933,268 @@ com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitialization */ com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder getAuxiliaryNodeGroupsOrBuilder( int index); + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * master instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration across node groups: + * * For single-node clusters: `master_flexible_config` must be specified, and + * no worker configs should be set. + * * For multi-node (standard) clusters: both `master_flexible_config` and + * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + * must be specified. Mixing standard and flexible configs across node + * groups is not allowed. + * + * Only one of + * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + * `master_flexible_config` can be set. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return Whether the masterFlexibleConfig field is set. + */ + boolean hasMasterFlexibleConfig(); + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * master instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration across node groups: + * * For single-node clusters: `master_flexible_config` must be specified, and + * no worker configs should be set. + * * For multi-node (standard) clusters: both `master_flexible_config` and + * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + * must be specified. Mixing standard and flexible configs across node + * groups is not allowed. + * + * Only one of + * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + * `master_flexible_config` can be set. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The masterFlexibleConfig. + */ + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getMasterFlexibleConfig(); + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * master instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration across node groups: + * * For single-node clusters: `master_flexible_config` must be specified, and + * no worker configs should be set. + * * For multi-node (standard) clusters: both `master_flexible_config` and + * [worker_flexible_config][google.cloud.dataproc.v1.ClusterConfig.worker_flexible_config] + * must be specified. Mixing standard and flexible configs across node + * groups is not allowed. + * + * Only one of + * [master_config][google.cloud.dataproc.v1.ClusterConfig.master_config] or + * `master_flexible_config` can be set. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig master_flexible_config = 31 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getMasterFlexibleConfigOrBuilder(); + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the worker group and is mutable via cluster updates and + * autoscaling. + * + * Only one of + * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + * `worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, for multi-node (standard) clusters, both + * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + * and `worker_flexible_config` must be specified. Mixing standard and + * flexible configs across node groups is not allowed. Single-node clusters do + * not specify worker configs. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return Whether the workerFlexibleConfig field is set. + */ + boolean hasWorkerFlexibleConfig(); + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the worker group and is mutable via cluster updates and + * autoscaling. + * + * Only one of + * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + * `worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, for multi-node (standard) clusters, both + * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + * and `worker_flexible_config` must be specified. Mixing standard and + * flexible configs across node groups is not allowed. Single-node clusters do + * not specify worker configs. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The workerFlexibleConfig. + */ + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getWorkerFlexibleConfig(); + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for the cluster's + * worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the worker group and is mutable via cluster updates and + * autoscaling. + * + * Only one of + * [worker_config][google.cloud.dataproc.v1.ClusterConfig.worker_config] or + * `worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, for multi-node (standard) clusters, both + * [master_flexible_config][google.cloud.dataproc.v1.ClusterConfig.master_flexible_config] + * and `worker_flexible_config` must be specified. Mixing standard and + * flexible configs across node groups is not allowed. Single-node clusters do + * not specify worker configs. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig worker_flexible_config = 32 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getWorkerFlexibleConfigOrBuilder(); + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for a cluster's + * secondary worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the secondary worker group and is mutable via cluster + * updates and autoscaling. + * + * Only one of + * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + * or `secondary_worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, secondary workers are optional. If + * secondary workers are used in an HO cluster, they must be configured using + * `secondary_worker_flexible_config` (not `secondary_worker_config`). + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return Whether the secondaryWorkerFlexibleConfig field is set. + */ + boolean hasSecondaryWorkerFlexibleConfig(); + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for a cluster's + * secondary worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the secondary worker group and is mutable via cluster + * updates and autoscaling. + * + * Only one of + * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + * or `secondary_worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, secondary workers are optional. If + * secondary workers are used in an HO cluster, they must be configured using + * `secondary_worker_flexible_config` (not `secondary_worker_config`). + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The secondaryWorkerFlexibleConfig. + */ + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getSecondaryWorkerFlexibleConfig(); + + /** + * + * + *+ * Optional. The High Obtainability (HO) config settings for a cluster's + * secondary worker instances. + * + * In High Obtainability (HO) mode, flexible configs are the single source of + * truth for desired cluster configuration. `num_instances` represents the + * desired capacity of the secondary worker group and is mutable via cluster + * updates and autoscaling. + * + * Only one of + * [secondary_worker_config][google.cloud.dataproc.v1.ClusterConfig.secondary_worker_config] + * or `secondary_worker_flexible_config` can be set. + * + * In High Obtainability (HO) mode, secondary workers are optional. If + * secondary workers are used in an HO cluster, they must be configured using + * `secondary_worker_flexible_config` (not `secondary_worker_config`). + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig secondary_worker_flexible_config = 33 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder + getSecondaryWorkerFlexibleConfigOrBuilder(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java index b6f704e04ae2..2289f1c802ca 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java @@ -88,6 +88,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_MultiZoneConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_MultiZoneConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -132,6 +136,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_InstanceSelectionResult_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_InstanceSelectionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -299,7 +307,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132(.google.cloud.dataproc.v1.ClusterMetricsB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\344\014\n\r" + + "\005value\030\002 \001(\t:\0028\001\"\202\017\n\r" + "ClusterConfig\022N\n" + "\014cluster_type\030\033 \001(\01623" + ".google.cloud.dataproc.v1.ClusterConfig.ClusterTypeB\003\340A\001\022N\n" @@ -336,7 +344,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026dataproc_metric_config\030\027" + " \001(\0132..google.cloud.dataproc.v1.DataprocMetricConfigB\003\340A\001\022P\n" + "\025auxiliary_node_groups\030\031" - + " \003(\0132,.google.cloud.dataproc.v1.AuxiliaryNodeGroupB\003\340A\001\"Z\n" + + " \003(\0132,.google.cloud.dataproc.v1.AuxiliaryNodeGroupB\003\340A\001\022Z\n" + + "\026master_flexible_config\030\037" + + " \001(\01325.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigB\003\340A\001\022Z\n" + + "\026worker_flexible_config\030 \001(\01325.google.c" + + "loud.dataproc.v1.FlexibleInstanceGroupConfigB\003\340A\001\022d\n" + + " secondary_worker_flexible_config\030!" + + " \001(\01325.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigB\003\340A\001\"Z\n" + "\013ClusterType\022\034\n" + "\030CLUSTER_TYPE_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\017\n" @@ -354,17 +368,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016staging_bucket\030\001 \001(\tB\003\340A\001\022[\n" + "\031kubernetes_cluster_config\030\006" + " \001(\01321.google.cloud.dataproc.v1.KubernetesClusterConfigB\003\340A\002H\000\022Y\n" - + "\031auxiliary_services_config\030\007" - + " \001(\01321.google.cloud.dataproc.v1.AuxiliaryServicesConfigB\003\340A\001B\027\n" + + "\031auxiliary_services_config\030\007 \001(\01321.google.cloud" + + ".dataproc.v1.AuxiliaryServicesConfigB\003\340A\001B\027\n" + "\025infrastructure_config\"\301\001\n" + "\027AuxiliaryServicesConfig\022H\n" - + "\020metastore_config\030\001 \001(\0132).goo" - + "gle.cloud.dataproc.v1.MetastoreConfigB\003\340A\001\022\\\n" - + "\033spark_history_server_config\030\002 \001(\0132" - + "2.google.cloud.dataproc.v1.SparkHistoryServerConfigB\003\340A\001\"\272\001\n" + + "\020metastore_config\030\001 \001(\013" + + "2).google.cloud.dataproc.v1.MetastoreConfigB\003\340A\001\022\\\n" + + "\033spark_history_server_config\030\002" + + " \001(\01322.google.cloud.dataproc.v1.SparkHistoryServerConfigB\003\340A\001\"\272\001\n" + "\016EndpointConfig\022P\n\n" - + "http_ports\030\001" - + " \003(\01327.google.cloud.dataproc.v1.EndpointConfig.HttpPortsEntryB\003\340A\003\022$\n" + + "http_ports\030\001 \003(\01327.google.cloud.dat" + + "aproc.v1.EndpointConfig.HttpPortsEntryB\003\340A\003\022$\n" + "\027enable_http_port_access\030\002 \001(\010B\003\340A\001\0320\n" + "\016HttpPortsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -374,29 +388,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020EncryptionConfig\022 \n" + "\023gce_pd_kms_key_name\030\001 \001(\tB\003\340A\001\022:\n" + "\007kms_key\030\002 \001(\tB)\340A\001\372A#\n" - + "!cloudkms.googleapis.com/CryptoKey\"\337\010\n" + + "!cloudkms.googleapis.com/CryptoKey\"\252\t\n" + "\020GceClusterConfig\022\025\n" - + "\010zone_uri\030\001 \001(\tB\003\340A\001\022\030\n" + + "\010zone_uri\030\001 \001(\tB\003\340A\001\022I\n" + + "\021multi_zone_config\030\023 \001" + + "(\0132).google.cloud.dataproc.v1.MultiZoneConfigB\003\340A\001\022\030\n" + "\013network_uri\030\002 \001(\tB\003\340A\001\022\033\n" + "\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\"\n" + "\020internal_ip_only\030\007 \001(\010B\003\340A\001H\000\210\001\001\022k\n" - + "\032private_ipv6_google_access\030\014 \001(\0162B.google.cloud.dataproc" - + ".v1.GceClusterConfig.PrivateIpv6GoogleAccessB\003\340A\001\022\034\n" + + "\032private_ipv6_google_access\030\014 \001(\0162B.google.cloud.datapro" + + "c.v1.GceClusterConfig.PrivateIpv6GoogleAccessB\003\340A\001\022\034\n" + "\017service_account\030\010 \001(\tB\003\340A\001\022#\n" + "\026service_account_scopes\030\003 \003(\tB\003\340A\001\022\014\n" + "\004tags\030\004 \003(\t\022O\n" - + "\010metadata\030\005 \003(\01328.google.cl" - + "oud.dataproc.v1.GceClusterConfig.MetadataEntryB\003\340A\001\022P\n" - + "\024reservation_affinity\030\013 \001(" - + "\0132-.google.cloud.dataproc.v1.ReservationAffinityB\003\340A\001\022M\n" + + "\010metadata\030\005 \003(\01328.google.c" + + "loud.dataproc.v1.GceClusterConfig.MetadataEntryB\003\340A\001\022P\n" + + "\024reservation_affinity\030\013 \001" + + "(\0132-.google.cloud.dataproc.v1.ReservationAffinityB\003\340A\001\022M\n" + "\023node_group_affinity\030\r" + " \001(\0132+.google.cloud.dataproc.v1.NodeGroupAffinityB\003\340A\001\022W\n" + "\030shielded_instance_config\030\016" + " \001(\01320.google.cloud.dataproc.v1.ShieldedInstanceConfigB\003\340A\001\022_\n" - + "\034confidential_instance_config\030\017 \001(\01324.google.cloud.datap" - + "roc.v1.ConfidentialInstanceConfigB\003\340A\001\022g\n" - + "\025resource_manager_tags\030\020 \003(\0132C.google.c" - + "loud.dataproc.v1.GceClusterConfig.ResourceManagerTagsEntryB\003\340A\001\032/\n\r" + + "\034confidential_instance_config\030\017 \001(\01324.google.cloud.data" + + "proc.v1.ConfidentialInstanceConfigB\003\340A\001\022g\n" + + "\025resource_manager_tags\030\020 \003(\0132C.google." + + "cloud.dataproc.v1.GceClusterConfig.ResourceManagerTagsEntryB\003\340A\001\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032:\n" @@ -408,7 +424,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027INHERIT_FROM_SUBNETWORK\020\001\022\014\n" + "\010OUTBOUND\020\002\022\021\n\r" + "BIDIRECTIONAL\020\003B\023\n" - + "\021_internal_ip_only\"0\n" + + "\021_internal_ip_only\"\231\001\n" + + "\017MultiZoneConfig\022P\n" + + "\014target_shape\030\001" + + " \001(\01625.google.cloud.dataproc.v1.MultiZoneConfig.TargetShapeB\003\340A\001\"4\n" + + "\013TargetShape\022\034\n" + + "\030TARGET_SHAPE_UNSPECIFIED\020\000\022\007\n" + + "\003ANY\020\001\"0\n" + "\021NodeGroupAffinity\022\033\n" + "\016node_group_uri\030\001 \001(\tB\003\340A\002\"\323\001\n" + "\026ShieldedInstanceConfig\022$\n" @@ -421,8 +443,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034_enable_integrity_monitoring\"\247\002\n" + "\032ConfidentialInstanceConfig\022*\n" + "\033enable_confidential_compute\030\001 \001(\010B\005\030\001\340A\001\022v\n" - + "\032confidential_instance_type\030\002 \001(\0162M.google.cloud.da" - + "taproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceTypeB\003\340A\001\"e\n" + + "\032confidential_instance_type\030\002 \001(\0162M.google.cloud.datap" + + "roc.v1.ConfidentialInstanceConfig.ConfidentialInstanceTypeB\003\340A\001\"e\n" + "\030ConfidentialInstanceType\022*\n" + "&CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003SEV\020\001\022\013\n" @@ -431,20 +453,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023InstanceGroupConfig\022\032\n\r" + "num_instances\030\001 \001(\005B\003\340A\001\022\033\n" + "\016instance_names\030\002 \003(\tB\003\340A\003\022M\n" - + "\023instance_references\030\013 \003(\0132" - + "+.google.cloud.dataproc.v1.InstanceReferenceB\003\340A\003\022\026\n" + + "\023instance_references\030\013 \003(\0132+.g" + + "oogle.cloud.dataproc.v1.InstanceReferenceB\003\340A\003\022\026\n" + "\timage_uri\030\003 \001(\tB\003\340A\001\022\035\n" + "\020machine_type_uri\030\004 \001(\tB\003\340A\001\022>\n" - + "\013disk_config\030\005" - + " \001(\0132$.google.cloud.dataproc.v1.DiskConfigB\003\340A\001\022\033\n" + + "\013disk_config\030\005 \001" + + "(\0132$.google.cloud.dataproc.v1.DiskConfigB\003\340A\001\022\033\n" + "\016is_preemptible\030\006 \001(\010B\003\340A\003\022Y\n" + "\016preemptibility\030\n" - + " \001(\0162<.google.cloud.dat" - + "aproc.v1.InstanceGroupConfig.PreemptibilityB\003\340A\001\022O\n" - + "\024managed_group_config\030\007 \001(\0132," - + ".google.cloud.dataproc.v1.ManagedGroupConfigB\003\340A\003\022F\n" - + "\014accelerators\030\010 \003(\0132+.google" - + ".cloud.dataproc.v1.AcceleratorConfigB\003\340A\001\022\035\n" + + " \001(\0162<.google.cloud.datapr" + + "oc.v1.InstanceGroupConfig.PreemptibilityB\003\340A\001\022O\n" + + "\024managed_group_config\030\007 \001(\0132,.go" + + "ogle.cloud.dataproc.v1.ManagedGroupConfigB\003\340A\003\022F\n" + + "\014accelerators\030\010 \003(\0132+.google.cl" + + "oud.dataproc.v1.AcceleratorConfigB\003\340A\001\022\035\n" + "\020min_cpu_platform\030\t \001(\tB\003\340A\001\022\036\n" + "\021min_num_instances\030\014 \001(\005B\003\340A\001\022]\n" + "\033instance_flexibility_policy\030\r" @@ -470,12 +492,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033instance_group_manager_name\030\002 \001(\tB\003\340A\003\022\'\n" + "\032instance_group_manager_uri\030\003 \001(\tB\003\340A\003\"\246\006\n" + "\031InstanceFlexibilityPolicy\022m\n" - + "\026provisioning_model_mix\030\001 \001(\0132H.google.cloud" - + ".dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixB\003\340A\001\022k\n" - + "\027instance_selection_list\030\002 \003(\0132E.google.cloud.datapro" - + "c.v1.InstanceFlexibilityPolicy.InstanceSelectionB\003\340A\001\022t\n" - + "\032instance_selection_results\030\003 \003(\0132K.google.cloud.dataproc.v1.Ins" - + "tanceFlexibilityPolicy.InstanceSelectionResultB\003\340A\003\032\274\001\n" + + "\026provisioning_model_mix\030\001 \001(\0132H.google.cloud.da" + + "taproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixB\003\340A\001\022k\n" + + "\027instance_selection_list\030\002 \003(\0132E.google.cloud.dataproc.v" + + "1.InstanceFlexibilityPolicy.InstanceSelectionB\003\340A\001\022t\n" + + "\032instance_selection_results\030\003 \003(\0132K.google.cloud.dataproc.v1.Instan" + + "ceFlexibilityPolicy.InstanceSelectionResultB\003\340A\003\032\274\001\n" + "\024ProvisioningModelMix\022(\n" + "\026standard_capacity_base\030\001 \001(\005B\003\340A\001H\000\210\001\001\0226\n" + "$standard_capacity_percent_above_base\030\002" @@ -491,7 +513,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014machine_type\030\001 \001(\tB\003\340A\003H\000\210\001\001\022\032\n" + "\010vm_count\030\002 \001(\005B\003\340A\003H\001\210\001\001B\017\n\r" + "_machine_typeB\013\n" - + "\t_vm_count\"L\n" + + "\t_vm_count\"\244\002\n" + + "\033FlexibleInstanceGroupConfig\022\032\n\r" + + "num_instances\030\001 \001(\005B\003\340A\001\022\027\n\n" + + "core_count\030\002 \001(\005B\003\340A\001\022\036\n" + + "\021boot_disk_size_gb\030\003 \001(\005B\003\340A\001\022`\n" + + "\016hardware_class\030\004 \001(\0162C.google." + + "cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClassB\003\340A\001\"N\n\r" + + "HardwareClass\022\036\n" + + "\032HARDWARE_CLASS_UNSPECIFIED\020\000\022\014\n" + + "\010STANDARD\020\001\022\017\n" + + "\013PERFORMANCE\020\002\"L\n" + "\021AcceleratorConfig\022\034\n" + "\024accelerator_type_uri\030\001 \001(\t\022\031\n" + "\021accelerator_count\030\002 \001(\005\"\200\003\n\n" @@ -503,13 +535,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032boot_disk_provisioned_iops\030\005 \001(\003B\003\340A\001H\000\210\001\001\0222\n" + " boot_disk_provisioned_throughput\030\006" + " \001(\003B\003\340A\001H\001\210\001\001\022P\n" - + "\025attached_disk_configs\030\007 \003(\0132," - + ".google.cloud.dataproc.v1.AttachedDiskConfigB\003\340A\001B\035\n" + + "\025attached_disk_configs\030\007" + + " \003(\0132,.google.cloud.dataproc.v1.AttachedDiskConfigB\003\340A\001B\035\n" + "\033_boot_disk_provisioned_iopsB#\n" + "!_boot_disk_provisioned_throughput\"\377\002\n" + "\022AttachedDiskConfig\022M\n" - + "\tdisk_type\030\001 \001(\0162" - + "5.google.cloud.dataproc.v1.AttachedDiskConfig.DiskTypeB\003\340A\001\022\031\n" + + "\tdisk_type\030\001" + + " \001(\01625.google.cloud.dataproc.v1.AttachedDiskConfig.DiskTypeB\003\340A\001\022\031\n" + "\014disk_size_gb\030\002 \001(\005B\003\340A\001\022\"\n" + "\020provisioned_iops\030\003 \001(\003B\003\340A\001H\000\210\001\001\022(\n" + "\026provisioned_throughput\030\004" @@ -523,8 +555,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_provisioned_iopsB\031\n" + "\027_provisioned_throughput\"n\n" + "\022AuxiliaryNodeGroup\022<\n\n" - + "node_group\030\001" - + " \001(\0132#.google.cloud.dataproc.v1.NodeGroupB\003\340A\002\022\032\n\r" + + "node_group\030\001 \001(\0132#." + + "google.cloud.dataproc.v1.NodeGroupB\003\340A\002\022\032\n\r" + "node_group_id\030\002 \001(\tB\003\340A\001\"\275\003\n" + "\tNodeGroup\022\014\n" + "\004name\030\001 \001(\t\022<\n" @@ -532,16 +564,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0162(.google.cloud.dataproc.v1.NodeGroup.RoleB\003\340A\002\022M\n" + "\021node_group_config\030\003" + " \001(\0132-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022D\n" - + "\006labels\030\004 \003(\013" - + "2/.google.cloud.dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\004" + + " \003(\0132/.google.cloud.dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"(\n" + "\004Role\022\024\n" + "\020ROLE_UNSPECIFIED\020\000\022\n\n" + "\006DRIVER\020\001:v\352As\n" - + "!dataproc.googleapis.com/NodeGroup\022Nprojects/{proje" - + "ct}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + + "!dataproc.googleapis.com/NodeGroup\022Npro" + + "jects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + "\030NodeInitializationAction\022\034\n" + "\017executable_file\030\001 \001(\tB\003\340A\002\0229\n" + "\021execution_timeout\030\002" @@ -595,17 +627,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022tgt_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n" + "\005realm\030\017 \001(\tB\003\340A\001\"\306\001\n" + "\016IdentityConfig\022r\n" - + "\034user_service_account_mapping\030\001 \003(\0132G.google.cloud.dataproc.v1.Identity" - + "Config.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + + "\034user_service_account_mapping\030\001 \003(\0132G.google.cloud.dataproc" + + ".v1.IdentityConfig.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + "\036UserServiceAccountMappingEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\371\001\n" + "\016SoftwareConfig\022\032\n\r" + "image_version\030\001 \001(\tB\003\340A\001\022Q\n\n" - + "properties\030\002 \003(\01328.google.cloud.dataproc." - + "v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" - + "\023optional_components\030\003" - + " \003(\0162#.google.cloud.dataproc.v1.ComponentB\003\340A\001\0321\n" + + "properties\030\002 \003(\01328.google.clo" + + "ud.dataproc.v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" + + "\023optional_components\030\003 \003(\0162" + + "#.google.cloud.dataproc.v1.ComponentB\003\340A\001\0321\n" + "\017PropertiesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\272\003\n" @@ -615,8 +647,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020auto_delete_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\000\0229\n" + "\017auto_delete_ttl\030\003" - + " \001(\0132\031.google.protobuf.DurationB\003\340A\001H\000\0225\n" - + "\r" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001H\000\0225\n\r" + "idle_stop_ttl\030\005 \001(\0132\031.google.protobuf.DurationB\003\340A\001\0229\n" + "\016auto_stop_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\001\0227\n\r" @@ -630,10 +661,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032dataproc_metastore_service\030\001 \001(\tB(\340A\002\372A\"\n" + " metastore.googleapis.com/Service\"\232\002\n" + "\016ClusterMetrics\022O\n" - + "\014hdfs_metrics\030\001 \003(\01329.google.cloud.d" - + "ataproc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" - + "\014yarn_metrics\030\002 \003(\01329.google.cloud." - + "dataproc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + + "\014hdfs_metrics\030\001 \003(\01329.go" + + "ogle.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" + + "\014yarn_metrics\030\002 \003(\01329.g" + + "oogle.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + "\020HdfsMetricsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\003:\0028\001\0322\n" @@ -641,11 +672,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\003:\0028\001\"\235\003\n" + "\024DataprocMetricConfig\022K\n" - + "\007metrics\030\001 \003(\01325.google.c" - + "loud.dataproc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + + "\007metrics\030\001 \003(" + + "\01325.google.cloud.dataproc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + "\006Metric\022W\n\r" - + "metric_source\030\001 " - + "\001(\0162;.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + + "metric_source\030\001 \001(\0162;.google.cloud.dataproc." + + "v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + "\020metric_overrides\030\002 \003(\tB\003\340A\001\"\264\001\n" + "\014MetricSource\022\035\n" + "\031METRIC_SOURCE_UNSPECIFIED\020\000\022\035\n" @@ -663,8 +694,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007cluster\030\002" + " \001(\0132!.google.cloud.dataproc.v1.ClusterB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\022V\n" - + " action_on_failed_primary_workers\030\005 \001(\0162\'" - + ".google.cloud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n" + + " action_on_failed_primary_workers\030\005" + + " \001(\0162\'.google.cloud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n" + "\024UpdateClusterRequest\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\005 \001(\tB\003\340A\002\022\031\n" @@ -712,8 +743,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\003 \001(\tB\003\340A\002\022\031\n" + "\014cluster_name\030\002 \001(\tB\003\340A\002\022\034\n" + "\017tarball_gcs_dir\030\004 \001(\tB\003\340A\001\022[\n" - + "\016tarball_access\030\005 \001(\0162>.google.cloud.dataproc" - + ".v1.DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + + "\016tarball_access\030\005 \001(\0162>.google.cl" + + "oud.dataproc.v1.DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + "\022diagnosis_interval\030\006" + " \001(\0132\025.google.type.IntervalB\003\340A\001\022\021\n" + "\004jobs\030\n" @@ -726,8 +757,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026DiagnoseClusterResults\022\027\n\n" + "output_uri\030\001 \001(\tB\003\340A\003\"\370\001\n" + "\023ReservationAffinity\022Y\n" - + "\030consume_reservation_type\030\001" - + " \001(\01622.google.cloud.dataproc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n" + + "\030consume_reservation_type\030\001 \001(\01622.google.cloud.dat" + + "aproc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n" + "\003key\030\002 \001(\tB\003\340A\001\022\023\n" + "\006values\030\003 \003(\tB\003\340A\001\"_\n" + "\004Type\022\024\n" @@ -735,53 +766,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016NO_RESERVATION\020\001\022\023\n" + "\017ANY_RESERVATION\020\002\022\030\n" + "\024SPECIFIC_RESERVATION\020\0032\344\020\n" - + "\021ClusterController\022\200\002\n\r" - + "CreateCluster\022..google.cloud.dataproc.v1.CreateClus" - + "terRequest\032\035.google.longrunning.Operation\"\237\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\332A\031project_id" - + ",region,cluster\202\323\344\223\002>\"3/v1/projects/{pro" - + "ject_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" - + "UpdateCluster\022..google.cloud.dat" - + "aproc.v1.UpdateClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMe" - + "tadata\332A2project_id,region,cluster_name," - + "cluster,update_mask\202\323\344\223\002M2B/v1/projects/" - + "{project_id}/regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" - + "\013StopCluster\022,.google.cloud.dataproc.v1.StopClusterReq" - + "uest\032\035.google.longrunning.Operation\"\221\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.Clu" - + "sterOperationMetadata\202\323\344\223\002L\"G/v1/project" - + "s/{project_id}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" - + "\014StartCluster\022-.google.cloud.dataproc.v1.StartCluster" - + "Request\032\035.google.longrunning.Operation\"\222\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1." - + "ClusterOperationMetadata\202\323\344\223\002M\"H/v1/proj" - + "ects/{project_id}/regions/{region}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" - + "DeleteCluster\022..google.cloud.dataproc.v1.DeleteC" - + "lusterRequest\032\035.google.longrunning.Operation\"\270\001\312AJ\n" - + "\025google.protobuf.Empty\0221google.cloud.dataproc.v1.ClusterOperationMeta" - + "data\332A\036project_id,region,cluster_name\202\323\344" - + "\223\002D*B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" - + "GetCluster\022+.google.cloud.dataproc.v1.GetClu" - + "sterRequest\032!.google.cloud.dataproc.v1.C" - + "luster\"k\332A\036project_id,region,cluster_nam" - + "e\202\323\344\223\002D\022B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\331\001\n" - + "\014ListClusters\022-.google.cloud.dataproc.v1." - + "ListClustersRequest\032..google.cloud.datap" - + "roc.v1.ListClustersResponse\"j\332A\021project_" - + "id,region\332A\030project_id,region,filter\202\323\344\223" - + "\0025\0223/v1/projects/{project_id}/regions/{region}/clusters\022\252\002\n" - + "\017DiagnoseCluster\0220.google.cloud.dataproc.v1.DiagnoseClusterRe" - + "quest\032\035.google.longrunning.Operation\"\305\001\312AK\n" - + "\026DiagnoseClusterResults\0221google.cloud" - + ".dataproc.v1.ClusterOperationMetadata\332A\036" - + "project_id,region,cluster_name\202\323\344\223\002P\"K/v" - + "1/projects/{project_id}/regions/{region}" - + "/clusters/{cluster_name}:diagnose:\001*\032K\312A" - + "\027dataproc.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBl\n" - + "\034com.google.cloud.dataproc.v1B\r" - + "ClustersProtoP\001Z;cloud.google.com/go/dataproc/v2/apiv" - + "1/dataprocpb;dataprocpbb\006proto3" + + "\021ClusterController\022\200\002\n" + + "\r" + + "CreateCluster\022..google.cloud.dataproc.v" + + "1.CreateClusterRequest\032\035.google.longrunning.Operation\"\237\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\332" + + "A\031project_id,region,cluster\202\323\344\223\002>\"3/v1/p" + + "rojects/{project_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" + + "UpdateCluster\022..goog" + + "le.cloud.dataproc.v1.UpdateClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.Cluste" + + "rOperationMetadata\332A2project_id,region,c" + + "luster_name,cluster,update_mask\202\323\344\223\002M2B/" + + "v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" + + "\013StopCluster\022,.google.cloud.dataproc.v1.St" + + "opClusterRequest\032\035.google.longrunning.Operation\"\221\001\312A<\n" + + "\007Cluster\0221google.cloud.dat" + + "aproc.v1.ClusterOperationMetadata\202\323\344\223\002L\"" + + "G/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" + + "\014StartCluster\022-.google.cloud.dataproc.v1." + + "StartClusterRequest\032\035.google.longrunning.Operation\"\222\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\202\323\344\223" + + "\002M\"H/v1/projects/{project_id}/regions/{r" + + "egion}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" + + "DeleteCluster\022..google.cloud.datapro" + + "c.v1.DeleteClusterRequest\032\035.google.longrunning.Operation\"\270\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.dataproc.v1.ClusterO" + + "perationMetadata\332A\036project_id,region,clu" + + "ster_name\202\323\344\223\002D*B/v1/projects/{project_i" + + "d}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" + + "GetCluster\022+.google.cloud.dataproc.v1.GetClusterRequest\032!.google.cloud.d" + + "ataproc.v1.Cluster\"k\332A\036project_id,region" + + ",cluster_name\202\323\344\223\002D\022B/v1/projects/{proje", + "ct_id}/regions/{region}/clusters/{cluste" + + "r_name}\022\331\001\n\014ListClusters\022-.google.cloud." + + "dataproc.v1.ListClustersRequest\032..google" + + ".cloud.dataproc.v1.ListClustersResponse\"" + + "j\332A\021project_id,region\332A\030project_id,regio" + + "n,filter\202\323\344\223\0025\0223/v1/projects/{project_id" + + "}/regions/{region}/clusters\022\252\002\n\017Diagnose" + + "Cluster\0220.google.cloud.dataproc.v1.Diagn" + + "oseClusterRequest\032\035.google.longrunning.O" + + "peration\"\305\001\312AK\n\026DiagnoseClusterResults\0221" + + "google.cloud.dataproc.v1.ClusterOperatio" + + "nMetadata\332A\036project_id,region,cluster_na" + + "me\202\323\344\223\002P\"K/v1/projects/{project_id}/regi" + + "ons/{region}/clusters/{cluster_name}:dia" + + "gnose:\001*\032K\312A\027dataproc.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformBl\n\034com.google.cloud.dataproc.v1B\rC" + + "lustersProtoP\001Z;cloud.google.com/go/data" + + "proc/v2/apiv1/dataprocpb;dataprocpbb\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -849,6 +885,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MetastoreConfig", "DataprocMetricConfig", "AuxiliaryNodeGroups", + "MasterFlexibleConfig", + "WorkerFlexibleConfig", + "SecondaryWorkerFlexibleConfig", }); internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor = getDescriptor().getMessageType(2); @@ -908,6 +947,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor, new java.lang.String[] { "ZoneUri", + "MultiZoneConfig", "NetworkUri", "SubnetworkUri", "InternalIpOnly", @@ -938,8 +978,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor = + internal_static_google_cloud_dataproc_v1_MultiZoneConfig_descriptor = getDescriptor().getMessageType(8); + internal_static_google_cloud_dataproc_v1_MultiZoneConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_MultiZoneConfig_descriptor, + new java.lang.String[] { + "TargetShape", + }); + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor = + getDescriptor().getMessageType(9); internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor, @@ -947,7 +995,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroupUri", }); internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(10); internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor, @@ -955,7 +1003,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", }); internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(11); internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor, @@ -963,7 +1011,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableConfidentialCompute", "ConfidentialInstanceType", }); internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(12); internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor, @@ -984,7 +1032,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartupConfig", }); internal_static_google_cloud_dataproc_v1_StartupConfig_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(13); internal_static_google_cloud_dataproc_v1_StartupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_StartupConfig_descriptor, @@ -992,7 +1040,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequiredRegistrationFraction", }); internal_static_google_cloud_dataproc_v1_InstanceReference_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_dataproc_v1_InstanceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_InstanceReference_descriptor, @@ -1000,7 +1048,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceName", "InstanceId", "PublicKey", "PublicEciesKey", }); internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor, @@ -1008,7 +1056,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceTemplateName", "InstanceGroupManagerName", "InstanceGroupManagerUri", }); internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_InstanceFlexibilityPolicy_descriptor, @@ -1042,8 +1090,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "MachineType", "VmCount", }); + internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_descriptor, + new java.lang.String[] { + "NumInstances", "CoreCount", "BootDiskSizeGb", "HardwareClass", + }); internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(18); internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor, @@ -1051,7 +1107,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AcceleratorTypeUri", "AcceleratorCount", }); internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(19); internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor, @@ -1065,7 +1121,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AttachedDiskConfigs", }); internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(20); internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_AttachedDiskConfig_descriptor, @@ -1073,7 +1129,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskType", "DiskSizeGb", "ProvisionedIops", "ProvisionedThroughput", }); internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(21); internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_AuxiliaryNodeGroup_descriptor, @@ -1081,7 +1137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroup", "NodeGroupId", }); internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(22); internal_static_google_cloud_dataproc_v1_NodeGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_NodeGroup_descriptor, @@ -1097,7 +1153,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(23); internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor, @@ -1105,7 +1161,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutableFile", "ExecutionTimeout", }); internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(24); internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor, @@ -1113,7 +1169,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "Detail", "StateStartTime", "Substate", }); internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(25); internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor, @@ -1121,7 +1177,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KerberosConfig", "IdentityConfig", }); internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(26); internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor, @@ -1143,7 +1199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Realm", }); internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(27); internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor, @@ -1159,7 +1215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(28); internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor, @@ -1175,7 +1231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(29); internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor, @@ -1191,7 +1247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StopTtl", }); internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor = - getDescriptor().getMessageType(28); + getDescriptor().getMessageType(30); internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor, @@ -1199,7 +1255,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataprocMetastoreService", }); internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor = - getDescriptor().getMessageType(29); + getDescriptor().getMessageType(31); internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor, @@ -1223,7 +1279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(32); internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor, @@ -1239,7 +1295,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MetricSource", "MetricOverrides", }); internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(33); internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor, @@ -1247,7 +1303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "Cluster", "RequestId", "ActionOnFailedPrimaryWorkers", }); internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(34); internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor, @@ -1261,7 +1317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(35); internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor, @@ -1269,7 +1325,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(36); internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor, @@ -1277,7 +1333,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(37); internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor, @@ -1285,7 +1341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(38); internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor, @@ -1293,7 +1349,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", }); internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(39); internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor, @@ -1301,7 +1357,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "Filter", "PageSize", "PageToken", }); internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(40); internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor, @@ -1309,7 +1365,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Clusters", "NextPageToken", }); internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(41); internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor, @@ -1324,7 +1380,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "YarnApplicationIds", }); internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor = - getDescriptor().getMessageType(40); + getDescriptor().getMessageType(42); internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor, @@ -1332,7 +1388,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OutputUri", }); internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor = - getDescriptor().getMessageType(41); + getDescriptor().getMessageType(43); internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor, diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java index 1fbc91c1876b..00b8ccbb8e99 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java @@ -293,7 +293,7 @@ private ConfidentialInstanceType(int value) { * * * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute is - * deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 + * deprecated. See google/cloud/dataproc/v1/clusters.proto;l=756 * @return The enableConfidentialCompute. */ @java.lang.Override @@ -701,7 +701,7 @@ public Builder mergeFrom( * * * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute - * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 + * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=756 * @return The enableConfidentialCompute. */ @java.lang.Override @@ -723,7 +723,7 @@ public boolean getEnableConfidentialCompute() { * * * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute - * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 + * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=756 * @param value The enableConfidentialCompute to set. * @return This builder for chaining. */ @@ -749,7 +749,7 @@ public Builder setEnableConfidentialCompute(boolean value) { * * * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute - * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 + * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=756 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java index edfdf1541329..5a781ba8da52 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java @@ -39,7 +39,7 @@ public interface ConfidentialInstanceConfigOrBuilder * * * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute is - * deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 + * deprecated. See google/cloud/dataproc/v1/clusters.proto;l=756 * @return The enableConfidentialCompute. */ @java.lang.Deprecated diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FlexibleInstanceGroupConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FlexibleInstanceGroupConfig.java new file mode 100644 index 000000000000..cb3935e7e1e5 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FlexibleInstanceGroupConfig.java @@ -0,0 +1,1138 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataproc/v1/clusters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dataproc.v1; + +/** + * + * + *+ * The configuration for High Obtainability (HO) flexible instance groups. + * Flexible instance group configs serve as the single source of truth for + * desired state. + *+ * + * Protobuf type {@code google.cloud.dataproc.v1.FlexibleInstanceGroupConfig} + */ +@com.google.protobuf.Generated +public final class FlexibleInstanceGroupConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) + FlexibleInstanceGroupConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FlexibleInstanceGroupConfig"); + } + + // Use FlexibleInstanceGroupConfig.newBuilder() to construct. + private FlexibleInstanceGroupConfig(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private FlexibleInstanceGroupConfig() { + hardwareClass_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.class, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder.class); + } + + /** + * + * + *+ * Controls the hardware class for the flexible instance group. + *+ * + * Protobuf enum {@code google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass} + */ + public enum HardwareClass implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *+ * Unspecified hardware class. + *+ * + *HARDWARE_CLASS_UNSPECIFIED = 0;+ */ + HARDWARE_CLASS_UNSPECIFIED(0), + /** + * + * + *+ * Standard hardware class. + * Provides a balanced compute configuration with approximately 4GB of + * memory per vCPU and standard disk storage tiers. + * + * Candidate machine types include `n4-standard`, `n4d-standard`, + * `n2-standard`, and `n2d-standard` (Rank 0), and `c4-standard` and + * `c4d-standard` (Rank 1) (for requested core counts 2, 4, 8, 16, 32). + * + * Warning: The specific machine families and types selected for this + * hardware class are subject to change. Users should not take a + * dependency on the underlying machine type selection. + *+ * + *STANDARD = 1;+ */ + STANDARD(1), + /** + * + * + *+ * Performance hardware class. + * Provides a high-performance configuration with approximately 8GB of + * memory per vCPU (e.g. high-memory machine types) and higher-tier disk + * configurations (e.g. higher IOPS and throughput). + * + * Candidate machine types include `n4-highmem`, `n4d-highmem`, + * `n2-highmem`, and `n2d-highmem` (Rank 0), and `c4-highmem` and + * `c4d-highmem` (Rank 1) (for requested core counts 2, 4, 8, 16, 32). + * `n4`, `n4d`, `c4`, and `c4d` use Hyperdisk Balanced with provisioned + * storage, whereas `n2` and `n2d` use SSD persistent disks. + * + * Warning: The specific machine families and types selected for this + * hardware class are subject to change. Users should not take a + * dependency on the underlying machine type selection. + *+ * + *PERFORMANCE = 2;+ */ + PERFORMANCE(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "HardwareClass"); + } + + /** + * + * + *+ * Unspecified hardware class. + *+ * + *HARDWARE_CLASS_UNSPECIFIED = 0;+ */ + public static final int HARDWARE_CLASS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *+ * Standard hardware class. + * Provides a balanced compute configuration with approximately 4GB of + * memory per vCPU and standard disk storage tiers. + * + * Candidate machine types include `n4-standard`, `n4d-standard`, + * `n2-standard`, and `n2d-standard` (Rank 0), and `c4-standard` and + * `c4d-standard` (Rank 1) (for requested core counts 2, 4, 8, 16, 32). + * + * Warning: The specific machine families and types selected for this + * hardware class are subject to change. Users should not take a + * dependency on the underlying machine type selection. + *+ * + *STANDARD = 1;+ */ + public static final int STANDARD_VALUE = 1; + + /** + * + * + *+ * Performance hardware class. + * Provides a high-performance configuration with approximately 8GB of + * memory per vCPU (e.g. high-memory machine types) and higher-tier disk + * configurations (e.g. higher IOPS and throughput). + * + * Candidate machine types include `n4-highmem`, `n4d-highmem`, + * `n2-highmem`, and `n2d-highmem` (Rank 0), and `c4-highmem` and + * `c4d-highmem` (Rank 1) (for requested core counts 2, 4, 8, 16, 32). + * `n4`, `n4d`, `c4`, and `c4d` use Hyperdisk Balanced with provisioned + * storage, whereas `n2` and `n2d` use SSD persistent disks. + * + * Warning: The specific machine families and types selected for this + * hardware class are subject to change. Users should not take a + * dependency on the underlying machine type selection. + *+ * + *PERFORMANCE = 2;+ */ + public static final int PERFORMANCE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HardwareClass valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static HardwareClass forNumber(int value) { + switch (value) { + case 0: + return HARDWARE_CLASS_UNSPECIFIED; + case 1: + return STANDARD; + case 2: + return PERFORMANCE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMapinternalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap () { + public HardwareClass findValueByNumber(int number) { + return HardwareClass.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final HardwareClass[] VALUES = values(); + + public static HardwareClass valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HardwareClass(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass) + } + + public static final int NUM_INSTANCES_FIELD_NUMBER = 1; + private int numInstances_ = 0; + + /** + * + * + * + * Optional. The number of VM instances requested. + * + * For master instances, this must be 1. For worker and secondary worker + * instances, this represents the desired capacity of the group and is mutable + * via cluster update operations and autoscaling. + *+ * + *int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The numInstances. + */ + @java.lang.Override + public int getNumInstances() { + return numInstances_; + } + + public static final int CORE_COUNT_FIELD_NUMBER = 2; + private int coreCount_ = 0; + + /** + * + * + *+ * Optional. The number of vCPUs per instance. Must be a power of 2 + * (2, 4, 8, 16, 32). This is a create-time specification and is not currently + * mutable via update masks. + *+ * + *int32 core_count = 2 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The coreCount. + */ + @java.lang.Override + public int getCoreCount() { + return coreCount_; + } + + public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 3; + private int bootDiskSizeGb_ = 0; + + /** + * + * + *+ * Optional. The boot disk size in GB. This is a create-time specification and + * is not currently mutable via update masks. + *+ * + *int32 boot_disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The bootDiskSizeGb. + */ + @java.lang.Override + public int getBootDiskSizeGb() { + return bootDiskSizeGb_; + } + + public static final int HARDWARE_CLASS_FIELD_NUMBER = 4; + private int hardwareClass_ = 0; + + /** + * + * + *+ * Optional. The hardware class of the instances. This is a create-time + * specification and is not currently mutable via update masks. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The enum numeric value on the wire for hardwareClass. + */ + @java.lang.Override + public int getHardwareClassValue() { + return hardwareClass_; + } + + /** + * + * + *+ * Optional. The hardware class of the instances. This is a create-time + * specification and is not currently mutable via update masks. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The hardwareClass. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass getHardwareClass() { + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass result = + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass.forNumber( + hardwareClass_); + return result == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (numInstances_ != 0) { + output.writeInt32(1, numInstances_); + } + if (coreCount_ != 0) { + output.writeInt32(2, coreCount_); + } + if (bootDiskSizeGb_ != 0) { + output.writeInt32(3, bootDiskSizeGb_); + } + if (hardwareClass_ + != com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass + .HARDWARE_CLASS_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, hardwareClass_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (numInstances_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, numInstances_); + } + if (coreCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, coreCount_); + } + if (bootDiskSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, bootDiskSizeGb_); + } + if (hardwareClass_ + != com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass + .HARDWARE_CLASS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, hardwareClass_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig other = + (com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) obj; + + if (getNumInstances() != other.getNumInstances()) return false; + if (getCoreCount() != other.getCoreCount()) return false; + if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; + if (hardwareClass_ != other.hardwareClass_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NUM_INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getNumInstances(); + hash = (37 * hash) + CORE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCoreCount(); + hash = (37 * hash) + BOOT_DISK_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getBootDiskSizeGb(); + hash = (37 * hash) + HARDWARE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + hardwareClass_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *+ * The configuration for High Obtainability (HO) flexible instance groups. + * Flexible instance group configs serve as the single source of truth for + * desired state. + *+ * + * Protobuf type {@code google.cloud.dataproc.v1.FlexibleInstanceGroupConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.class, + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + numInstances_ = 0; + coreCount_ = 0; + bootDiskSizeGb_ = 0; + hardwareClass_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_FlexibleInstanceGroupConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig build() { + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig buildPartial() { + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig result = + new com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.numInstances_ = numInstances_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.coreCount_ = coreCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bootDiskSizeGb_ = bootDiskSizeGb_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.hardwareClass_ = hardwareClass_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig other) { + if (other == com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.getDefaultInstance()) + return this; + if (other.getNumInstances() != 0) { + setNumInstances(other.getNumInstances()); + } + if (other.getCoreCount() != 0) { + setCoreCount(other.getCoreCount()); + } + if (other.getBootDiskSizeGb() != 0) { + setBootDiskSizeGb(other.getBootDiskSizeGb()); + } + if (other.hardwareClass_ != 0) { + setHardwareClassValue(other.getHardwareClassValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + numInstances_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + coreCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + bootDiskSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + hardwareClass_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int numInstances_; + + /** + * + * + * + * Optional. The number of VM instances requested. + * + * For master instances, this must be 1. For worker and secondary worker + * instances, this represents the desired capacity of the group and is mutable + * via cluster update operations and autoscaling. + *+ * + *int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The numInstances. + */ + @java.lang.Override + public int getNumInstances() { + return numInstances_; + } + + /** + * + * + *+ * Optional. The number of VM instances requested. + * + * For master instances, this must be 1. For worker and secondary worker + * instances, this represents the desired capacity of the group and is mutable + * via cluster update operations and autoscaling. + *+ * + *int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL];+ * + * @param value The numInstances to set. + * @return This builder for chaining. + */ + public Builder setNumInstances(int value) { + + numInstances_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. The number of VM instances requested. + * + * For master instances, this must be 1. For worker and secondary worker + * instances, this represents the desired capacity of the group and is mutable + * via cluster update operations and autoscaling. + *+ * + *int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return This builder for chaining. + */ + public Builder clearNumInstances() { + bitField0_ = (bitField0_ & ~0x00000001); + numInstances_ = 0; + onChanged(); + return this; + } + + private int coreCount_; + + /** + * + * + *+ * Optional. The number of vCPUs per instance. Must be a power of 2 + * (2, 4, 8, 16, 32). This is a create-time specification and is not currently + * mutable via update masks. + *+ * + *int32 core_count = 2 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The coreCount. + */ + @java.lang.Override + public int getCoreCount() { + return coreCount_; + } + + /** + * + * + *+ * Optional. The number of vCPUs per instance. Must be a power of 2 + * (2, 4, 8, 16, 32). This is a create-time specification and is not currently + * mutable via update masks. + *+ * + *int32 core_count = 2 [(.google.api.field_behavior) = OPTIONAL];+ * + * @param value The coreCount to set. + * @return This builder for chaining. + */ + public Builder setCoreCount(int value) { + + coreCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. The number of vCPUs per instance. Must be a power of 2 + * (2, 4, 8, 16, 32). This is a create-time specification and is not currently + * mutable via update masks. + *+ * + *int32 core_count = 2 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return This builder for chaining. + */ + public Builder clearCoreCount() { + bitField0_ = (bitField0_ & ~0x00000002); + coreCount_ = 0; + onChanged(); + return this; + } + + private int bootDiskSizeGb_; + + /** + * + * + *+ * Optional. The boot disk size in GB. This is a create-time specification and + * is not currently mutable via update masks. + *+ * + *int32 boot_disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The bootDiskSizeGb. + */ + @java.lang.Override + public int getBootDiskSizeGb() { + return bootDiskSizeGb_; + } + + /** + * + * + *+ * Optional. The boot disk size in GB. This is a create-time specification and + * is not currently mutable via update masks. + *+ * + *int32 boot_disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL];+ * + * @param value The bootDiskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setBootDiskSizeGb(int value) { + + bootDiskSizeGb_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. The boot disk size in GB. This is a create-time specification and + * is not currently mutable via update masks. + *+ * + *int32 boot_disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return This builder for chaining. + */ + public Builder clearBootDiskSizeGb() { + bitField0_ = (bitField0_ & ~0x00000004); + bootDiskSizeGb_ = 0; + onChanged(); + return this; + } + + private int hardwareClass_ = 0; + + /** + * + * + *+ * Optional. The hardware class of the instances. This is a create-time + * specification and is not currently mutable via update masks. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The enum numeric value on the wire for hardwareClass. + */ + @java.lang.Override + public int getHardwareClassValue() { + return hardwareClass_; + } + + /** + * + * + *+ * Optional. The hardware class of the instances. This is a create-time + * specification and is not currently mutable via update masks. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @param value The enum numeric value on the wire for hardwareClass to set. + * @return This builder for chaining. + */ + public Builder setHardwareClassValue(int value) { + hardwareClass_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. The hardware class of the instances. This is a create-time + * specification and is not currently mutable via update masks. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The hardwareClass. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass + getHardwareClass() { + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass result = + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass.forNumber( + hardwareClass_); + return result == null + ? com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass.UNRECOGNIZED + : result; + } + + /** + * + * + *+ * Optional. The hardware class of the instances. This is a create-time + * specification and is not currently mutable via update masks. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @param value The hardwareClass to set. + * @return This builder for chaining. + */ + public Builder setHardwareClass( + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + hardwareClass_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. The hardware class of the instances. This is a create-time + * specification and is not currently mutable via update masks. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return This builder for chaining. + */ + public Builder clearHardwareClass() { + bitField0_ = (bitField0_ & ~0x00000008); + hardwareClass_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) + private static final com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig(); + } + + public static com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public FlexibleInstanceGroupConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FlexibleInstanceGroupConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FlexibleInstanceGroupConfigOrBuilder.java new file mode 100644 index 000000000000..4edd91dd4282 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FlexibleInstanceGroupConfigOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataproc/v1/clusters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dataproc.v1; + +@com.google.protobuf.Generated +public interface FlexibleInstanceGroupConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.FlexibleInstanceGroupConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Optional. The number of VM instances requested. + * + * For master instances, this must be 1. For worker and secondary worker + * instances, this represents the desired capacity of the group and is mutable + * via cluster update operations and autoscaling. + *+ * + *int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The numInstances. + */ + int getNumInstances(); + + /** + * + * + *+ * Optional. The number of vCPUs per instance. Must be a power of 2 + * (2, 4, 8, 16, 32). This is a create-time specification and is not currently + * mutable via update masks. + *+ * + *int32 core_count = 2 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The coreCount. + */ + int getCoreCount(); + + /** + * + * + *+ * Optional. The boot disk size in GB. This is a create-time specification and + * is not currently mutable via update masks. + *+ * + *int32 boot_disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL];+ * + * @return The bootDiskSizeGb. + */ + int getBootDiskSizeGb(); + + /** + * + * + *+ * Optional. The hardware class of the instances. This is a create-time + * specification and is not currently mutable via update masks. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The enum numeric value on the wire for hardwareClass. + */ + int getHardwareClassValue(); + + /** + * + * + *+ * Optional. The hardware class of the instances. This is a create-time + * specification and is not currently mutable via update masks. + *+ * + *+ * .google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass hardware_class = 4 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The hardwareClass. + */ + com.google.cloud.dataproc.v1.FlexibleInstanceGroupConfig.HardwareClass getHardwareClass(); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java index 2a9cf308c18c..97deea63bd62 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java @@ -372,6 +372,71 @@ public com.google.protobuf.ByteString getZoneUriBytes() { } } + public static final int MULTI_ZONE_CONFIG_FIELD_NUMBER = 19; + private com.google.cloud.dataproc.v1.MultiZoneConfig multiZoneConfig_; + + /** + * + * + *+ * Optional. Controls how instances within this Cluster are allowed to exist + * in multiple Zones within the Region. Only one of `zone_uri` or + * `multi_zone_config` must be set. + *+ * + *+ * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return Whether the multiZoneConfig field is set. + */ + @java.lang.Override + public boolean hasMultiZoneConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *+ * Optional. Controls how instances within this Cluster are allowed to exist + * in multiple Zones within the Region. Only one of `zone_uri` or + * `multi_zone_config` must be set. + *+ * + *+ * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The multiZoneConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.MultiZoneConfig getMultiZoneConfig() { + return multiZoneConfig_ == null + ? com.google.cloud.dataproc.v1.MultiZoneConfig.getDefaultInstance() + : multiZoneConfig_; + } + + /** + * + * + *+ * Optional. Controls how instances within this Cluster are allowed to exist + * in multiple Zones within the Region. Only one of `zone_uri` or + * `multi_zone_config` must be set. + *+ * + *+ * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + @java.lang.Override + public com.google.cloud.dataproc.v1.MultiZoneConfigOrBuilder getMultiZoneConfigOrBuilder() { + return multiZoneConfig_ == null + ? com.google.cloud.dataproc.v1.MultiZoneConfig.getDefaultInstance() + : multiZoneConfig_; + } + public static final int NETWORK_URI_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -545,7 +610,7 @@ public com.google.protobuf.ByteString getSubnetworkUriBytes() { */ @java.lang.Override public boolean hasInternalIpOnly() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -1026,7 +1091,7 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasReservationAffinity() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -1086,7 +1151,7 @@ public com.google.cloud.dataproc.v1.ReservationAffinity getReservationAffinity() */ @java.lang.Override public boolean hasNodeGroupAffinity() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -1147,7 +1212,7 @@ public com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffin */ @java.lang.Override public boolean hasShieldedInstanceConfig() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1212,7 +1277,7 @@ public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceCo */ @java.lang.Override public boolean hasConfidentialInstanceConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1418,13 +1483,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subnetworkUri_)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, subnetworkUri_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(7, internalIpOnly_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessage.writeString(output, 8, serviceAccount_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(11, getReservationAffinity()); } if (privateIpv6GoogleAccess_ @@ -1433,13 +1498,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(12, privateIpv6GoogleAccess_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(13, getNodeGroupAffinity()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(14, getShieldedInstanceConfig()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(15, getConfidentialInstanceConfig()); } com.google.protobuf.GeneratedMessage.serializeStringMapTo( @@ -1447,6 +1512,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetResourceManagerTags(), ResourceManagerTagsDefaultEntryHolder.defaultEntry, 16); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(19, getMultiZoneConfig()); + } getUnknownFields().writeTo(output); } @@ -1491,13 +1559,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subnetworkUri_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, subnetworkUri_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, internalIpOnly_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(8, serviceAccount_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getReservationAffinity()); } @@ -1507,14 +1575,14 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, privateIpv6GoogleAccess_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getNodeGroupAffinity()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getShieldedInstanceConfig()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 15, getConfidentialInstanceConfig()); @@ -1529,6 +1597,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, resourceManagerTags__); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getMultiZoneConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1546,6 +1617,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.GceClusterConfig) obj; if (!getZoneUri().equals(other.getZoneUri())) return false; + if (hasMultiZoneConfig() != other.hasMultiZoneConfig()) return false; + if (hasMultiZoneConfig()) { + if (!getMultiZoneConfig().equals(other.getMultiZoneConfig())) return false; + } if (!getNetworkUri().equals(other.getNetworkUri())) return false; if (!getSubnetworkUri().equals(other.getSubnetworkUri())) return false; if (hasInternalIpOnly() != other.hasInternalIpOnly()) return false; @@ -1589,6 +1664,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ZONE_URI_FIELD_NUMBER; hash = (53 * hash) + getZoneUri().hashCode(); + if (hasMultiZoneConfig()) { + hash = (37 * hash) + MULTI_ZONE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMultiZoneConfig().hashCode(); + } hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; hash = (53 * hash) + getNetworkUri().hashCode(); hash = (37 * hash) + SUBNETWORK_URI_FIELD_NUMBER; @@ -1801,6 +1880,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMultiZoneConfigFieldBuilder(); internalGetReservationAffinityFieldBuilder(); internalGetNodeGroupAffinityFieldBuilder(); internalGetShieldedInstanceConfigFieldBuilder(); @@ -1813,6 +1893,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; zoneUri_ = ""; + multiZoneConfig_ = null; + if (multiZoneConfigBuilder_ != null) { + multiZoneConfigBuilder_.dispose(); + multiZoneConfigBuilder_ = null; + } networkUri_ = ""; subnetworkUri_ = ""; internalIpOnly_ = false; @@ -1881,64 +1966,69 @@ private void buildPartial0(com.google.cloud.dataproc.v1.GceClusterConfig result) if (((from_bitField0_ & 0x00000001) != 0)) { result.zoneUri_ = zoneUri_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.networkUri_ = networkUri_; + result.multiZoneConfig_ = + multiZoneConfigBuilder_ == null ? multiZoneConfig_ : multiZoneConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.subnetworkUri_ = subnetworkUri_; + result.networkUri_ = networkUri_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { - result.internalIpOnly_ = internalIpOnly_; - to_bitField0_ |= 0x00000001; + result.subnetworkUri_ = subnetworkUri_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.privateIpv6GoogleAccess_ = privateIpv6GoogleAccess_; + result.internalIpOnly_ = internalIpOnly_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.serviceAccount_ = serviceAccount_; + result.privateIpv6GoogleAccess_ = privateIpv6GoogleAccess_; } if (((from_bitField0_ & 0x00000040) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { serviceAccountScopes_.makeImmutable(); result.serviceAccountScopes_ = serviceAccountScopes_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { tags_.makeImmutable(); result.tags_ = tags_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.reservationAffinity_ = reservationAffinityBuilder_ == null ? reservationAffinity_ : reservationAffinityBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.nodeGroupAffinity_ = nodeGroupAffinityBuilder_ == null ? nodeGroupAffinity_ : nodeGroupAffinityBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null ? shieldedInstanceConfig_ : shieldedInstanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.confidentialInstanceConfig_ = confidentialInstanceConfigBuilder_ == null ? confidentialInstanceConfig_ : confidentialInstanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.resourceManagerTags_ = internalGetResourceManagerTags(); result.resourceManagerTags_.makeImmutable(); } @@ -1962,14 +2052,17 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { bitField0_ |= 0x00000001; onChanged(); } + if (other.hasMultiZoneConfig()) { + mergeMultiZoneConfig(other.getMultiZoneConfig()); + } if (!other.getNetworkUri().isEmpty()) { networkUri_ = other.networkUri_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getSubnetworkUri().isEmpty()) { subnetworkUri_ = other.subnetworkUri_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasInternalIpOnly()) { @@ -1980,13 +2073,13 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (!other.serviceAccountScopes_.isEmpty()) { if (serviceAccountScopes_.isEmpty()) { serviceAccountScopes_ = other.serviceAccountScopes_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } else { ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.addAll(other.serviceAccountScopes_); @@ -1996,7 +2089,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); @@ -2004,7 +2097,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { onChanged(); } internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; if (other.hasReservationAffinity()) { mergeReservationAffinity(other.getReservationAffinity()); } @@ -2018,7 +2111,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { mergeConfidentialInstanceConfig(other.getConfidentialInstanceConfig()); } internalGetMutableResourceManagerTags().mergeFrom(other.internalGetResourceManagerTags()); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2054,7 +2147,7 @@ public Builder mergeFrom( case 18: { networkUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 26: @@ -2080,45 +2173,45 @@ public Builder mergeFrom( internalGetMutableMetadata() .getMutableMap() .put(metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 42 case 50: { subnetworkUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 50 case 56: { internalIpOnly_ = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 56 case 66: { serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 66 case 90: { input.readMessage( internalGetReservationAffinityFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 90 case 96: { privateIpv6GoogleAccess_ = input.readEnum(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 96 case 106: { input.readMessage( internalGetNodeGroupAffinityFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 106 case 114: @@ -2126,7 +2219,7 @@ public Builder mergeFrom( input.readMessage( internalGetShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 114 case 122: @@ -2134,7 +2227,7 @@ public Builder mergeFrom( input.readMessage( internalGetConfidentialInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 122 case 130: @@ -2147,9 +2240,16 @@ public Builder mergeFrom( internalGetMutableResourceManagerTags() .getMutableMap() .put(resourceManagerTags__.getKey(), resourceManagerTags__.getValue()); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 130 + case 154: + { + input.readMessage( + internalGetMultiZoneConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 154 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2320,6 +2420,238 @@ public Builder setZoneUriBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dataproc.v1.MultiZoneConfig multiZoneConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.MultiZoneConfig, + com.google.cloud.dataproc.v1.MultiZoneConfig.Builder, + com.google.cloud.dataproc.v1.MultiZoneConfigOrBuilder> + multiZoneConfigBuilder_; + + /** + * + * + *+ * Optional. Controls how instances within this Cluster are allowed to exist + * in multiple Zones within the Region. Only one of `zone_uri` or + * `multi_zone_config` must be set. + *+ * + *+ * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return Whether the multiZoneConfig field is set. + */ + public boolean hasMultiZoneConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *+ * Optional. Controls how instances within this Cluster are allowed to exist + * in multiple Zones within the Region. Only one of `zone_uri` or + * `multi_zone_config` must be set. + *+ * + *+ * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + *+ * + * @return The multiZoneConfig. + */ + public com.google.cloud.dataproc.v1.MultiZoneConfig getMultiZoneConfig() { + if (multiZoneConfigBuilder_ == null) { + return multiZoneConfig_ == null + ? com.google.cloud.dataproc.v1.MultiZoneConfig.getDefaultInstance() + : multiZoneConfig_; + } else { + return multiZoneConfigBuilder_.getMessage(); + } + } + + /** + * + * + *+ * Optional. Controls how instances within this Cluster are allowed to exist + * in multiple Zones within the Region. Only one of `zone_uri` or + * `multi_zone_config` must be set. + *+ * + *+ * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder setMultiZoneConfig(com.google.cloud.dataproc.v1.MultiZoneConfig value) { + if (multiZoneConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multiZoneConfig_ = value; + } else { + multiZoneConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. Controls how instances within this Cluster are allowed to exist + * in multiple Zones within the Region. Only one of `zone_uri` or + * `multi_zone_config` must be set. + *+ * + *+ * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder setMultiZoneConfig( + com.google.cloud.dataproc.v1.MultiZoneConfig.Builder builderForValue) { + if (multiZoneConfigBuilder_ == null) { + multiZoneConfig_ = builderForValue.build(); + } else { + multiZoneConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. Controls how instances within this Cluster are allowed to exist + * in multiple Zones within the Region. Only one of `zone_uri` or + * `multi_zone_config` must be set. + *+ * + *+ * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder mergeMultiZoneConfig(com.google.cloud.dataproc.v1.MultiZoneConfig value) { + if (multiZoneConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && multiZoneConfig_ != null + && multiZoneConfig_ + != com.google.cloud.dataproc.v1.MultiZoneConfig.getDefaultInstance()) { + getMultiZoneConfigBuilder().mergeFrom(value); + } else { + multiZoneConfig_ = value; + } + } else { + multiZoneConfigBuilder_.mergeFrom(value); + } + if (multiZoneConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *+ * Optional. Controls how instances within this Cluster are allowed to exist + * in multiple Zones within the Region. Only one of `zone_uri` or + * `multi_zone_config` must be set. + *+ * + *+ * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public Builder clearMultiZoneConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + multiZoneConfig_ = null; + if (multiZoneConfigBuilder_ != null) { + multiZoneConfigBuilder_.dispose(); + multiZoneConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *+ * Optional. Controls how instances within this Cluster are allowed to exist + * in multiple Zones within the Region. Only one of `zone_uri` or + * `multi_zone_config` must be set. + *+ * + *+ * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public com.google.cloud.dataproc.v1.MultiZoneConfig.Builder getMultiZoneConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetMultiZoneConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *+ * Optional. Controls how instances within this Cluster are allowed to exist + * in multiple Zones within the Region. Only one of `zone_uri` or + * `multi_zone_config` must be set. + *+ * + *+ * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + public com.google.cloud.dataproc.v1.MultiZoneConfigOrBuilder getMultiZoneConfigOrBuilder() { + if (multiZoneConfigBuilder_ != null) { + return multiZoneConfigBuilder_.getMessageOrBuilder(); + } else { + return multiZoneConfig_ == null + ? com.google.cloud.dataproc.v1.MultiZoneConfig.getDefaultInstance() + : multiZoneConfig_; + } + } + + /** + * + * + *+ * Optional. Controls how instances within this Cluster are allowed to exist + * in multiple Zones within the Region. Only one of `zone_uri` or + * `multi_zone_config` must be set. + *+ * + *+ * .google.cloud.dataproc.v1.MultiZoneConfig multi_zone_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + *+ */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.MultiZoneConfig, + com.google.cloud.dataproc.v1.MultiZoneConfig.Builder, + com.google.cloud.dataproc.v1.MultiZoneConfigOrBuilder> + internalGetMultiZoneConfigFieldBuilder() { + if (multiZoneConfigBuilder_ == null) { + multiZoneConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataproc.v1.MultiZoneConfig, + com.google.cloud.dataproc.v1.MultiZoneConfig.Builder, + com.google.cloud.dataproc.v1.MultiZoneConfigOrBuilder>( + getMultiZoneConfig(), getParentForChildren(), isClean()); + multiZoneConfig_ = null; + } + return multiZoneConfigBuilder_; + } + private java.lang.Object networkUri_ = ""; /** @@ -2418,7 +2750,7 @@ public Builder setNetworkUri(java.lang.String value) { throw new NullPointerException(); } networkUri_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2447,7 +2779,7 @@ public Builder setNetworkUri(java.lang.String value) { */ public Builder clearNetworkUri() { networkUri_ = getDefaultInstance().getNetworkUri(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2481,7 +2813,7 @@ public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); networkUri_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2572,7 +2904,7 @@ public Builder setSubnetworkUri(java.lang.String value) { throw new NullPointerException(); } subnetworkUri_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2597,7 +2929,7 @@ public Builder setSubnetworkUri(java.lang.String value) { */ public Builder clearSubnetworkUri() { subnetworkUri_ = getDefaultInstance().getSubnetworkUri(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2627,7 +2959,7 @@ public Builder setSubnetworkUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); subnetworkUri_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2662,7 +2994,7 @@ public Builder setSubnetworkUriBytes(com.google.protobuf.ByteString value) { */ @java.lang.Override public boolean hasInternalIpOnly() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -2726,7 +3058,7 @@ public boolean getInternalIpOnly() { public Builder setInternalIpOnly(boolean value) { internalIpOnly_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2758,7 +3090,7 @@ public Builder setInternalIpOnly(boolean value) { * @return This builder for chaining. */ public Builder clearInternalIpOnly() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); internalIpOnly_ = false; onChanged(); return this; @@ -2800,7 +3132,7 @@ public int getPrivateIpv6GoogleAccessValue() { */ public Builder setPrivateIpv6GoogleAccessValue(int value) { privateIpv6GoogleAccess_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2848,7 +3180,7 @@ public Builder setPrivateIpv6GoogleAccess( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; privateIpv6GoogleAccess_ = value.getNumber(); onChanged(); return this; @@ -2868,7 +3200,7 @@ public Builder setPrivateIpv6GoogleAccess( * @return This builder for chaining. */ public Builder clearPrivateIpv6GoogleAccess() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); privateIpv6GoogleAccess_ = 0; onChanged(); return this; @@ -2969,7 +3301,7 @@ public Builder setServiceAccount(java.lang.String value) { throw new NullPointerException(); } serviceAccount_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2997,7 +3329,7 @@ public Builder setServiceAccount(java.lang.String value) { */ public Builder clearServiceAccount() { serviceAccount_ = getDefaultInstance().getServiceAccount(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3030,7 +3362,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); serviceAccount_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3042,7 +3374,7 @@ private void ensureServiceAccountScopesIsMutable() { if (!serviceAccountScopes_.isModifiable()) { serviceAccountScopes_ = new com.google.protobuf.LazyStringArrayList(serviceAccountScopes_); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } /** @@ -3197,7 +3529,7 @@ public Builder setServiceAccountScopes(int index, java.lang.String value) { } ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.set(index, value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3234,7 +3566,7 @@ public Builder addServiceAccountScopes(java.lang.String value) { } ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3268,7 +3600,7 @@ public Builder addServiceAccountScopes(java.lang.String value) { public Builder addAllServiceAccountScopes(java.lang.Iterablevalues) { ensureServiceAccountScopesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAccountScopes_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3300,7 +3632,7 @@ public Builder addAllServiceAccountScopes(java.lang.Iterable v */ public Builder clearServiceAccountScopes() { serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); ; onChanged(); return this; @@ -3339,7 +3671,7 @@ public Builder addServiceAccountScopesBytes(com.google.protobuf.ByteString value checkByteStringIsUtf8(value); ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3351,7 +3683,7 @@ private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } /** @@ -3441,7 +3773,7 @@ public Builder setTags(int index, java.lang.String value) { } ensureTagsIsMutable(); tags_.set(index, value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3465,7 +3797,7 @@ public Builder addTags(java.lang.String value) { } ensureTagsIsMutable(); tags_.add(value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3486,7 +3818,7 @@ public Builder addTags(java.lang.String value) { public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3505,7 +3837,7 @@ public Builder addAllTags(java.lang.Iterable values) { */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); ; onChanged(); return this; @@ -3531,7 +3863,7 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3554,7 +3886,7 @@ private com.google.protobuf.MapField interna if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return metadata_; } @@ -3656,7 +3988,7 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { } public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableMetadata().getMutableMap().clear(); return this; } @@ -3684,7 +4016,7 @@ public Builder removeMetadata(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map