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). + * + * + **/ @@ -301,11 +304,14 @@ public DeveloperKnowledgeFutureStub newStub( * Google's developer documentation. * A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + * or `documents/{uri_without_scheme}`) to fetch the full content of the top + * results. * All document content is provided in Markdown format. * */ @@ -393,11 +399,14 @@ default void answerQuery( * Google's developer documentation. * A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + * or `documents/{uri_without_scheme}`) to fetch the full content of the top + * results. * All document content is provided in Markdown format. * */ @@ -421,11 +430,14 @@ public final io.grpc.ServerServiceDefinition bindService() { * Google's developer documentation. * A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + * or `documents/{uri_without_scheme}`) to fetch the full content of the top + * results. * All document content is provided in Markdown format. * */ @@ -531,11 +543,14 @@ public void answerQuery( * Google's developer documentation. * A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + * or `documents/{uri_without_scheme}`) to fetch the full content of the top + * results. * All document content is provided in Markdown format. * */ @@ -631,11 +646,14 @@ public com.google.developers.knowledge.v1.AnswerQueryResponse answerQuery( * Google's developer documentation. * A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + * or `documents/{uri_without_scheme}`) to fetch the full content of the top + * results. * All document content is provided in Markdown format. * */ @@ -727,11 +745,14 @@ public com.google.developers.knowledge.v1.AnswerQueryResponse answerQuery( * Google's developer documentation. * A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + * or `documents/{uri_without_scheme}`) to fetch the full content of the top + * results. * All document content is provided in Markdown format. * */ diff --git a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/Document.java b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/Document.java index dae2fa898952..b3efb8d88be0 100644 --- a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/Document.java +++ b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/Document.java @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *+ * 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-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeClient.java b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeClient.java index 3d1766a20d94..a08fb03d7ca8 100644 --- a/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeClient.java +++ b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeClient.java @@ -45,11 +45,13 @@ * *A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] or + * `documents/{uri_without_scheme}`) to fetch the full content of the top results. * *
All document content is provided in Markdown format. * diff --git a/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/package-info.java b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/package-info.java index 3703bc44133c..98f208c71a7f 100644 --- a/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/package-info.java +++ b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/package-info.java @@ -30,11 +30,13 @@ * *
A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] or + * `documents/{uri_without_scheme}`) to fetch the full content of the top results. * *
All document content is provided in Markdown format. * diff --git a/java-developerknowledge/grpc-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeGrpc.java b/java-developerknowledge/grpc-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeGrpc.java index fcfaf1f1c7fb..34e4c18d7d58 100644 --- a/java-developerknowledge/grpc-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeGrpc.java +++ b/java-developerknowledge/grpc-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeGrpc.java @@ -28,11 +28,14 @@ * Google's developer documentation. * A typical use case is to first use * [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] - * to find relevant page URIs based on a query, and then use + * to find relevant document chunks based on a query, and then use * [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] * or * [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] - * to fetch the full content of the top results. + * with document resource names (such as + * [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + * or `documents/{uri_without_scheme}`) to fetch the full content of the top + * results. * All document content is provided in Markdown format. *
* Output only. Provides the URI of the content, such as
- * `docs.cloud.google.com/storage/docs/creating-buckets`.
+ * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
*
*
* string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -171,7 +171,7 @@ public java.lang.String getUri() {
*
*
* Output only. Provides the URI of the content, such as
- * `docs.cloud.google.com/storage/docs/creating-buckets`.
+ * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
*
*
* string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1173,7 +1173,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
*
* Output only. Provides the URI of the content, such as
- * `docs.cloud.google.com/storage/docs/creating-buckets`.
+ * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
*
*
* string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1197,7 +1197,7 @@ public java.lang.String getUri() {
*
*
* Output only. Provides the URI of the content, such as
- * `docs.cloud.google.com/storage/docs/creating-buckets`.
+ * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
*
*
* string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1221,7 +1221,7 @@ public com.google.protobuf.ByteString getUriBytes() {
*
*
* Output only. Provides the URI of the content, such as
- * `docs.cloud.google.com/storage/docs/creating-buckets`.
+ * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
*
*
* string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1244,7 +1244,7 @@ public Builder setUri(java.lang.String value) {
*
*
* Output only. Provides the URI of the content, such as
- * `docs.cloud.google.com/storage/docs/creating-buckets`.
+ * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
*
*
* string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1263,7 +1263,7 @@ public Builder clearUri() {
*
*
* Output only. Provides the URI of the content, such as
- * `docs.cloud.google.com/storage/docs/creating-buckets`.
+ * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
*
*
* string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
diff --git a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DocumentOrBuilder.java b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DocumentOrBuilder.java
index 8bc5b1b7b72b..bf0054b20961 100644
--- a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DocumentOrBuilder.java
+++ b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DocumentOrBuilder.java
@@ -61,7 +61,7 @@ public interface DocumentOrBuilder
*
*
* Output only. Provides the URI of the content, such as
- * `docs.cloud.google.com/storage/docs/creating-buckets`.
+ * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
*
*
* string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -75,7 +75,7 @@ public interface DocumentOrBuilder
*
*
* Output only. Provides the URI of the content, such as
- * `docs.cloud.google.com/storage/docs/creating-buckets`.
+ * `https://docs.cloud.google.com/storage/docs/creating-buckets`.
*
*
* string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
diff --git a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/proto/google/developers/knowledge/v1/developerknowledge.proto b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/proto/google/developers/knowledge/v1/developerknowledge.proto
index 9aba8c799352..fd315eef89d0 100644
--- a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/proto/google/developers/knowledge/v1/developerknowledge.proto
+++ b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/proto/google/developers/knowledge/v1/developerknowledge.proto
@@ -39,11 +39,14 @@ option ruby_package = "Google::Developers::DeveloperKnowledge::V1";
//
// A typical use case is to first use
// [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks]
-// to find relevant page URIs based on a query, and then use
+// to find relevant document chunks based on a query, and then use
// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument]
// or
// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments]
-// to fetch the full content of the top results.
+// with document resource names (such as
+// [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent]
+// or `documents/{uri_without_scheme}`) to fetch the full content of the top
+// results.
//
// All document content is provided in Markdown format.
service DeveloperKnowledge {
@@ -147,7 +150,7 @@ message Document {
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
// Output only. Provides the URI of the content, such as
- // `docs.cloud.google.com/storage/docs/creating-buckets`.
+ // `https://docs.cloud.google.com/storage/docs/creating-buckets`.
string uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. Contains the full content of the document in Markdown format.
diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java
index 1d23a5aa9703..0954b18ed613 100644
--- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java
+++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java
@@ -316,6 +316,45 @@
*
*
* StartSplit
Splits a clone volume from its source volume. This operation will only work for volumes which have clone_details set(clones). For volumes that are not clones, this operation will return an error.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *startSplitAsync(StartSplitRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *startSplitAsync(VolumeName name) + *
startSplitAsync(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *startSplitOperationCallable() + *
startSplitCallable() + *
GetSplitStatus
Retrieves the current state, progress, and details of a split operation for a volume. This method is relevant when the volume is a clone. For volumes that are not clones, this method will return an error.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *getSplitStatus(GetSplitStatusRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *getSplitStatus(VolumeName name) + *
getSplitStatus(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *getSplitStatusCallable() + *
EstablishVolumePeering
Establish volume peering. This is used to establish cluster and svm peerings between the GCNV and OnPrem clusters.
ExecuteOntapPost
`ExecuteOntapPost` dispatches the ONTAP `POST` request to the `StoragePool` cluster.
`ExecuteOntapPost` sends the ONTAP `POST` request to the `StoragePool` cluster.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ExecuteOntapGet
`ExecuteOntapGet` dispatches the ONTAP `GET` request to the `StoragePool` cluster.
`ExecuteOntapGet` sends the ONTAP `GET` request to the `StoragePool` cluster.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ExecuteOntapDelete
`ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the `StoragePool` cluster.
`ExecuteOntapDelete` sends the ONTAP `DELETE` request to the `StoragePool` cluster.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ExecuteOntapPatch
`ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the `StoragePool` cluster.
`ExecuteOntapPatch` sends the ONTAP `PATCH` request to the `StoragePool` cluster.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*RestoreVolume
Restores a backup to an ONTAP-mode volume.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *restoreVolumeAsync(RestoreVolumeRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *restoreVolumeAsync(StoragePoolName name, BackupSource backupSource, OntapVolumeTarget ontapVolumeTarget) + *
restoreVolumeAsync(String name, BackupSource backupSource, OntapVolumeTarget ontapVolumeTarget) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *restoreVolumeOperationCallable() + *
restoreVolumeCallable() + *
ListBackupConfigs
Lists backup configurations for all volumes in an ONTAP-mode Storage Pool.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *listBackupConfigs(ListBackupConfigsRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listBackupConfigs(StoragePoolName parent) + *
listBackupConfigs(String parent) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *listBackupConfigsPagedCallable() + *
listBackupConfigsCallable() + *
UpdateBackupConfig
Updates the backup configuration for an ONTAP-mode volume.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *updateBackupConfigAsync(UpdateBackupConfigRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *updateBackupConfigAsync(StoragePoolName name, String volumeUuid, BackupConfig backupConfig, FieldMask updateMask) + *
updateBackupConfigAsync(String name, String volumeUuid, BackupConfig backupConfig, FieldMask updateMask) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *updateBackupConfigOperationCallable() + *
updateBackupConfigCallable() + *
ListLocations
Lists information about the supported locations for this service. *
This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project.
@@ -3233,6 +3332,275 @@ public final UnaryCallable Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
*
@@ -10587,7 +10955,7 @@ public final ExecuteOntapPostResponse executeOntapPost(ExecuteOntapPostRequest r
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * `ExecuteOntapPost` dispatches the ONTAP `POST` request to the `StoragePool` cluster.
+ * `ExecuteOntapPost` sends the ONTAP `POST` request to the `StoragePool` cluster.
*
* Sample code:
*
@@ -10617,7 +10985,7 @@ public final ExecuteOntapPostResponse executeOntapPost(ExecuteOntapPostRequest r
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the `StoragePool` cluster.
+ * `ExecuteOntapGet` sends the ONTAP `GET` request to the `StoragePool` cluster.
*
* Sample code:
*
@@ -10643,7 +11011,7 @@ public final ExecuteOntapGetResponse executeOntapGet(ExecuteOntapGetRequest requ
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the `StoragePool` cluster.
+ * `ExecuteOntapGet` sends the ONTAP `GET` request to the `StoragePool` cluster.
*
* Sample code:
*
@@ -10670,7 +11038,7 @@ public final ExecuteOntapGetResponse executeOntapGet(ExecuteOntapGetRequest requ
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the `StoragePool` cluster.
+ * `ExecuteOntapDelete` sends the ONTAP `DELETE` request to the `StoragePool` cluster.
*
* Sample code:
*
@@ -10696,7 +11064,7 @@ public final ExecuteOntapDeleteResponse executeOntapDelete(ExecuteOntapDeleteReq
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the `StoragePool` cluster.
+ * `ExecuteOntapDelete` sends the ONTAP `DELETE` request to the `StoragePool` cluster.
*
* Sample code:
*
@@ -10723,7 +11091,7 @@ public final ExecuteOntapDeleteResponse executeOntapDelete(ExecuteOntapDeleteReq
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the `StoragePool` cluster.
+ * `ExecuteOntapPatch` sends the ONTAP `PATCH` request to the `StoragePool` cluster.
*
* Sample code:
*
@@ -10752,7 +11120,7 @@ public final ExecuteOntapPatchResponse executeOntapPatch(ExecuteOntapPatchReques
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the `StoragePool` cluster.
+ * `ExecuteOntapPatch` sends the ONTAP `PATCH` request to the `StoragePool` cluster.
*
* Sample code:
*
@@ -10782,10 +11150,533 @@ public final ExecuteOntapPatchResponse executeOntapPatch(ExecuteOntapPatchReques
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists information about the supported locations for this service.
+ * Restores a backup to an ONTAP-mode volume.
*
- * This method lists locations based on the resource scope provided inthe
- * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field:
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * This method lists locations based on the resource scope provided inthe
+ * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field:
* ***Global locations**: If `name` is empty, the method lists thepublic
* locations available to all projects. * **Project-specificlocations**: If
* `name` follows the format`projects/{project}`, the method lists locations visible to
@@ -11869,6 +12760,93 @@ protected ListHostGroupsFixedSizeCollection createCollection(
}
}
+ public static class ListBackupConfigsPagedResponse
+ extends AbstractPagedListResponse<
+ ListBackupConfigsRequest,
+ ListBackupConfigsResponse,
+ VolumeBackupConfig,
+ ListBackupConfigsPage,
+ ListBackupConfigsFixedSizeCollection> {
+
+ public static ApiFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]");
+ * Volume response = netAppClient.startSplitAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The full name of the clone volume to be split from its source. Format:
+ * projects/{project_number}/locations/{location}/volumes/{volume_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * String name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString();
+ * Volume response = netAppClient.startSplitAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The full name of the clone volume to be split from its source. Format:
+ * projects/{project_number}/locations/{location}/volumes/{volume_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * StartSplitRequest request =
+ * StartSplitRequest.newBuilder()
+ * .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
+ * .build();
+ * Volume response = netAppClient.startSplitAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * StartSplitRequest request =
+ * StartSplitRequest.newBuilder()
+ * .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * StartSplitRequest request =
+ * StartSplitRequest.newBuilder()
+ * .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]");
+ * SplitStatus response = netAppClient.getSplitStatus(name);
+ * }
+ * }
+ *
+ * @param name Required. The full name of the volume. Format:
+ * projects/{project_number}/locations/{location}/volumes/{volume_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SplitStatus getSplitStatus(@Nullable VolumeName name) {
+ GetSplitStatusRequest request =
+ GetSplitStatusRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getSplitStatus(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the current state, progress, and details of a split operation for a volume. This
+ * method is relevant when the volume is a clone. For volumes that are not clones, this method
+ * will return an error.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * String name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString();
+ * SplitStatus response = netAppClient.getSplitStatus(name);
+ * }
+ * }
+ *
+ * @param name Required. The full name of the volume. Format:
+ * projects/{project_number}/locations/{location}/volumes/{volume_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SplitStatus getSplitStatus(String name) {
+ GetSplitStatusRequest request = GetSplitStatusRequest.newBuilder().setName(name).build();
+ return getSplitStatus(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the current state, progress, and details of a split operation for a volume. This
+ * method is relevant when the volume is a clone. For volumes that are not clones, this method
+ * will return an error.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * GetSplitStatusRequest request =
+ * GetSplitStatusRequest.newBuilder()
+ * .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
+ * .build();
+ * SplitStatus response = netAppClient.getSplitStatus(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SplitStatus getSplitStatus(GetSplitStatusRequest request) {
+ return getSplitStatusCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the current state, progress, and details of a split operation for a volume. This
+ * method is relevant when the volume is a clone. For volumes that are not clones, this method
+ * will return an error.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * GetSplitStatusRequest request =
+ * GetSplitStatusRequest.newBuilder()
+ * .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * StoragePoolName name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]");
+ * BackupSource backupSource = BackupSource.newBuilder().build();
+ * OntapVolumeTarget ontapVolumeTarget = OntapVolumeTarget.newBuilder().build();
+ * RestoreVolumeResponse response =
+ * netAppClient.restoreVolumeAsync(name, backupSource, ontapVolumeTarget).get();
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the ONTAP mode storage pool, in the format of
+ * `projects/{project}/locations/{location}/storagePools/{storage_pool}`
+ * @param backupSource The backup source of the restore operation.
+ * @param ontapVolumeTarget The ONTAP volume target of the restore operation.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * String name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString();
+ * BackupSource backupSource = BackupSource.newBuilder().build();
+ * OntapVolumeTarget ontapVolumeTarget = OntapVolumeTarget.newBuilder().build();
+ * RestoreVolumeResponse response =
+ * netAppClient.restoreVolumeAsync(name, backupSource, ontapVolumeTarget).get();
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the ONTAP mode storage pool, in the format of
+ * `projects/{project}/locations/{location}/storagePools/{storage_pool}`
+ * @param backupSource The backup source of the restore operation.
+ * @param ontapVolumeTarget The ONTAP volume target of the restore operation.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * RestoreVolumeRequest request =
+ * RestoreVolumeRequest.newBuilder()
+ * .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
+ * .build();
+ * RestoreVolumeResponse response = netAppClient.restoreVolumeAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * RestoreVolumeRequest request =
+ * RestoreVolumeRequest.newBuilder()
+ * .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * RestoreVolumeRequest request =
+ * RestoreVolumeRequest.newBuilder()
+ * .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * StoragePoolName parent = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]");
+ * for (VolumeBackupConfig element : netAppClient.listBackupConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The ONTAP StoragePool for which to retrieve backup configuration
+ * information, in the format
+ * `projects/{project}/locations/{location}/storagePools/{storage_pool}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupConfigsPagedResponse listBackupConfigs(@Nullable StoragePoolName parent) {
+ ListBackupConfigsRequest request =
+ ListBackupConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listBackupConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists backup configurations for all volumes in an ONTAP-mode Storage Pool.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * String parent = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString();
+ * for (VolumeBackupConfig element : netAppClient.listBackupConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The ONTAP StoragePool for which to retrieve backup configuration
+ * information, in the format
+ * `projects/{project}/locations/{location}/storagePools/{storage_pool}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupConfigsPagedResponse listBackupConfigs(String parent) {
+ ListBackupConfigsRequest request =
+ ListBackupConfigsRequest.newBuilder().setParent(parent).build();
+ return listBackupConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists backup configurations for all volumes in an ONTAP-mode Storage Pool.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * ListBackupConfigsRequest request =
+ * ListBackupConfigsRequest.newBuilder()
+ * .setParent(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (VolumeBackupConfig element : netAppClient.listBackupConfigs(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupConfigsPagedResponse listBackupConfigs(ListBackupConfigsRequest request) {
+ return listBackupConfigsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists backup configurations for all volumes in an ONTAP-mode Storage Pool.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * ListBackupConfigsRequest request =
+ * ListBackupConfigsRequest.newBuilder()
+ * .setParent(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * ListBackupConfigsRequest request =
+ * ListBackupConfigsRequest.newBuilder()
+ * .setParent(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * while (true) {
+ * ListBackupConfigsResponse response = netAppClient.listBackupConfigsCallable().call(request);
+ * for (VolumeBackupConfig element : response.getVolumeBackupConfigsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * StoragePoolName name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]");
+ * String volumeUuid = "volumeUuid-1552535051";
+ * BackupConfig backupConfig = BackupConfig.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * UpdateBackupConfigResponse response =
+ * netAppClient.updateBackupConfigAsync(name, volumeUuid, backupConfig, updateMask).get();
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the StoragePool, in the format:
+ * projects/{projectNumber}/locations/{locationId}/storagePools/{poolId}
+ * @param volumeUuid Required. The UUID of the ONTAP-mode volume.
+ * @param backupConfig Required. Backup configuration to apply.
+ * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the
+ * BackupConfig for the Volume. The fields specified in the update_mask are relative to the
+ * resource, not the full request. A field will be overwritten if it is in the mask.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * String name = StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString();
+ * String volumeUuid = "volumeUuid-1552535051";
+ * BackupConfig backupConfig = BackupConfig.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * UpdateBackupConfigResponse response =
+ * netAppClient.updateBackupConfigAsync(name, volumeUuid, backupConfig, updateMask).get();
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the StoragePool, in the format:
+ * projects/{projectNumber}/locations/{locationId}/storagePools/{poolId}
+ * @param volumeUuid Required. The UUID of the ONTAP-mode volume.
+ * @param backupConfig Required. Backup configuration to apply.
+ * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the
+ * BackupConfig for the Volume. The fields specified in the update_mask are relative to the
+ * resource, not the full request. A field will be overwritten if it is in the mask.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * UpdateBackupConfigRequest request =
+ * UpdateBackupConfigRequest.newBuilder()
+ * .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
+ * .setVolumeUuid("volumeUuid-1552535051")
+ * .setBackupConfig(BackupConfig.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * UpdateBackupConfigResponse response = netAppClient.updateBackupConfigAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * UpdateBackupConfigRequest request =
+ * UpdateBackupConfigRequest.newBuilder()
+ * .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
+ * .setVolumeUuid("volumeUuid-1552535051")
+ * .setBackupConfig(BackupConfig.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ UpdateBackupConfigRequest, UpdateBackupConfigResponse, OperationMetadata>
+ updateBackupConfigOperationCallable() {
+ return stub.updateBackupConfigOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the backup configuration for an ONTAP-mode volume.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetAppClient netAppClient = NetAppClient.create()) {
+ * UpdateBackupConfigRequest request =
+ * UpdateBackupConfigRequest.newBuilder()
+ * .setName(StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
+ * .setVolumeUuid("volumeUuid-1552535051")
+ * .setBackupConfig(BackupConfig.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable