diff --git a/java-alloydb/README.md b/java-alloydb/README.md
index a8df5e53a65d..12fb9e2fa009 100644
--- a/java-alloydb/README.md
+++ b/java-alloydb/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
ListDatabases
Lists Databases in a given project and location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *listDatabases(ListDatabasesRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listDatabases(ClusterName parent) + *
listDatabases(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.
+ *listDatabasesPagedCallable() + *
listDatabasesCallable() + *
ListLocations
Lists information about the supported locations for this service.
Sample code: + * + *
{@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 (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + * ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + * for (Database element : alloyDBAdminClient.listDatabases(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Parent value for ListDatabasesRequest. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDatabasesPagedResponse listDatabases(ClusterName parent) { + ListDatabasesRequest request = + ListDatabasesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDatabases(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Databases in a given project and location. + * + *
Sample code: + * + *
{@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 (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + * String parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + * for (Database element : alloyDBAdminClient.listDatabases(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Parent value for ListDatabasesRequest. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDatabasesPagedResponse listDatabases(String parent) { + ListDatabasesRequest request = ListDatabasesRequest.newBuilder().setParent(parent).build(); + return listDatabases(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Databases in a given project and location. + * + *
Sample code: + * + *
{@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 (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + * ListDatabasesRequest request = + * ListDatabasesRequest.newBuilder() + * .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * for (Database element : alloyDBAdminClient.listDatabases(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 ListDatabasesPagedResponse listDatabases(ListDatabasesRequest request) { + return listDatabasesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Databases in a given project and location. + * + *
Sample code: + * + *
{@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 (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + * ListDatabasesRequest request = + * ListDatabasesRequest.newBuilder() + * .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * alloyDBAdminClient.listDatabasesPagedCallable().futureCall(request); + * // Do something. + * for (Database element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@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 (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + * ListDatabasesRequest request = + * ListDatabasesRequest.newBuilder() + * .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * while (true) { + * ListDatabasesResponse response = alloyDBAdminClient.listDatabasesCallable().call(request); + * for (Database element : response.getDatabasesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
+ * Lists Databases in a given project and location. + *+ */ + default void listDatabases( + com.google.cloud.alloydb.v1beta.ListDatabasesRequest request, + io.grpc.stub.StreamObserver
+ * Lists Databases in a given project and location. + *+ */ + public void listDatabases( + com.google.cloud.alloydb.v1beta.ListDatabasesRequest request, + io.grpc.stub.StreamObserver
+ * Lists Databases in a given project and location. + *+ */ + public com.google.cloud.alloydb.v1beta.ListDatabasesResponse listDatabases( + com.google.cloud.alloydb.v1beta.ListDatabasesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDatabasesMethod(), getCallOptions(), request); + } } /** @@ -3379,6 +3471,20 @@ public com.google.common.util.concurrent.ListenableFuture
+ * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The pscDnsName.
+ */
+ @java.lang.Override
+ public java.lang.String getPscDnsName() {
+ java.lang.Object ref = pscDnsName_;
+ 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();
+ pscDnsName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for pscDnsName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPscDnsNameBytes() {
+ java.lang.Object ref = pscDnsName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pscDnsName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -405,6 +457,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIpAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publicIpAddress_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pscDnsName_);
+ }
getUnknownFields().writeTo(output);
}
@@ -434,6 +489,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIpAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publicIpAddress_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pscDnsName_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -455,6 +513,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getPublicIpAddress().equals(other.getPublicIpAddress())) return false;
if (!getPemCertificateChainList().equals(other.getPemCertificateChainList())) return false;
if (!getInstanceUid().equals(other.getInstanceUid())) return false;
+ if (!getPscDnsName().equals(other.getPscDnsName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -478,6 +537,8 @@ public int hashCode() {
}
hash = (37 * hash) + INSTANCE_UID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceUid().hashCode();
+ hash = (37 * hash) + PSC_DNS_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getPscDnsName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -623,6 +684,7 @@ public Builder clear() {
publicIpAddress_ = "";
pemCertificateChain_ = com.google.protobuf.LazyStringArrayList.emptyList();
instanceUid_ = "";
+ pscDnsName_ = "";
return this;
}
@@ -675,6 +737,9 @@ private void buildPartial0(com.google.cloud.alloydb.v1alpha.ConnectionInfo resul
if (((from_bitField0_ & 0x00000010) != 0)) {
result.instanceUid_ = instanceUid_;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.pscDnsName_ = pscDnsName_;
+ }
}
@java.lang.Override
@@ -753,6 +818,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.ConnectionInfo other)
bitField0_ |= 0x00000010;
onChanged();
}
+ if (!other.getPscDnsName().isEmpty()) {
+ pscDnsName_ = other.pscDnsName_;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -810,6 +880,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 42
+ case 50:
+ {
+ pscDnsName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1209,7 +1285,7 @@ private void ensurePemCertificateChainIsMutable() {
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1027
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1032
* @return A list containing the pemCertificateChain.
*/
@java.lang.Deprecated
@@ -1230,7 +1306,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=1027
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1032
* @return The count of pemCertificateChain.
*/
@java.lang.Deprecated
@@ -1250,7 +1326,7 @@ public int getPemCertificateChainCount() {
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1027
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1032
* @param index The index of the element to return.
* @return The pemCertificateChain at the given index.
*/
@@ -1271,7 +1347,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=1027
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1032
* @param index The index of the value to return.
* @return The bytes of the pemCertificateChain at the given index.
*/
@@ -1292,7 +1368,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=1027
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1032
* @param index The index to set the value at.
* @param value The pemCertificateChain to set.
* @return This builder for chaining.
@@ -1321,7 +1397,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=1027
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1032
* @param value The pemCertificateChain to add.
* @return This builder for chaining.
*/
@@ -1349,7 +1425,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=1027
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1032
* @param values The pemCertificateChain to add.
* @return This builder for chaining.
*/
@@ -1374,7 +1450,7 @@ public Builder addAllPemCertificateChain(java.lang.Iterable+ * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The pscDnsName.
+ */
+ public java.lang.String getPscDnsName() {
+ java.lang.Object ref = pscDnsName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pscDnsName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for pscDnsName.
+ */
+ public com.google.protobuf.ByteString getPscDnsNameBytes() {
+ java.lang.Object ref = pscDnsName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pscDnsName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The pscDnsName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPscDnsName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pscDnsName_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPscDnsName() {
+ pscDnsName_ = getDefaultInstance().getPscDnsName();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for pscDnsName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPscDnsNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ pscDnsName_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfoOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfoOrBuilder.java
index 98d51c7a4d6a..dbee61a4d566 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfoOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfoOrBuilder.java
@@ -128,7 +128,7 @@ public interface ConnectionInfoOrBuilder
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1027
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1032
* @return A list containing the pemCertificateChain.
*/
@java.lang.Deprecated
@@ -146,7 +146,7 @@ public interface ConnectionInfoOrBuilder
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1027
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1032
* @return The count of pemCertificateChain.
*/
@java.lang.Deprecated
@@ -164,7 +164,7 @@ public interface ConnectionInfoOrBuilder
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1027
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1032
* @param index The index of the element to return.
* @return The pemCertificateChain at the given index.
*/
@@ -183,7 +183,7 @@ public interface ConnectionInfoOrBuilder
*
*
* @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1alpha/resources.proto;l=1027
+ * See google/cloud/alloydb/v1alpha/resources.proto;l=1032
* @param index The index of the value to return.
* @return The bytes of the pemCertificateChain at the given index.
*/
@@ -214,4 +214,29 @@ public interface ConnectionInfoOrBuilder
* @return The bytes for instanceUid.
*/
com.google.protobuf.ByteString getInstanceUidBytes();
+
+ /**
+ *
+ *
+ * + * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The pscDnsName.
+ */
+ java.lang.String getPscDnsName();
+ /**
+ *
+ *
+ * + * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for pscDnsName.
+ */
+ com.google.protobuf.ByteString getPscDnsNameBytes();
}
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 5a0a66bcaabc..7ead3d69753a 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
@@ -49,6 +49,7 @@ private Instance() {
gceZone_ = "";
nodes_ = java.util.Collections.emptyList();
ipAddress_ = "";
+ publicIpAddress_ = "";
etag_ = "";
}
@@ -12648,6 +12649,61 @@ public com.google.protobuf.ByteString getIpAddressBytes() {
}
}
+ public static final int PUBLIC_IP_ADDRESS_FIELD_NUMBER = 27;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object publicIpAddress_ = "";
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The publicIpAddress.
+ */
+ @java.lang.Override
+ public java.lang.String getPublicIpAddress() {
+ java.lang.Object ref = publicIpAddress_;
+ 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();
+ publicIpAddress_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for publicIpAddress.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPublicIpAddressBytes() {
+ java.lang.Object ref = publicIpAddress_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ publicIpAddress_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int RECONCILING_FIELD_NUMBER = 16;
private boolean reconciling_ = false;
/**
@@ -13190,6 +13246,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (satisfiesPzs_ != false) {
output.writeBool(24, satisfiesPzs_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIpAddress_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 27, publicIpAddress_);
+ }
if (((bitField0_ & 0x00000200) != 0)) {
output.writeMessage(28, getPscInstanceConfig());
}
@@ -13307,6 +13366,9 @@ public int getSerializedSize() {
if (satisfiesPzs_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, satisfiesPzs_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIpAddress_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, publicIpAddress_);
+ }
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getPscInstanceConfig());
}
@@ -13371,6 +13433,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getReadPoolConfig().equals(other.getReadPoolConfig())) return false;
}
if (!getIpAddress().equals(other.getIpAddress())) return false;
+ if (!getPublicIpAddress().equals(other.getPublicIpAddress())) return false;
if (getReconciling() != other.getReconciling()) return false;
if (!getEtag().equals(other.getEtag())) return false;
if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false;
@@ -13459,6 +13522,8 @@ public int hashCode() {
}
hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getIpAddress().hashCode();
+ hash = (37 * hash) + PUBLIC_IP_ADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getPublicIpAddress().hashCode();
hash = (37 * hash) + RECONCILING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling());
hash = (37 * hash) + ETAG_FIELD_NUMBER;
@@ -13729,6 +13794,7 @@ public Builder clear() {
readPoolConfigBuilder_ = null;
}
ipAddress_ = "";
+ publicIpAddress_ = "";
reconciling_ = false;
etag_ = "";
internalGetMutableAnnotations().clear();
@@ -13871,41 +13937,44 @@ private void buildPartial0(com.google.cloud.alloydb.v1alpha.Instance result) {
result.ipAddress_ = ipAddress_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
- result.reconciling_ = reconciling_;
+ result.publicIpAddress_ = publicIpAddress_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
- result.etag_ = etag_;
+ result.reconciling_ = reconciling_;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
+ result.etag_ = etag_;
+ }
+ if (((from_bitField0_ & 0x00200000) != 0)) {
result.annotations_ = internalGetAnnotations();
result.annotations_.makeImmutable();
}
- if (((from_bitField0_ & 0x00200000) != 0)) {
+ if (((from_bitField0_ & 0x00400000) != 0)) {
result.updatePolicy_ =
updatePolicyBuilder_ == null ? updatePolicy_ : updatePolicyBuilder_.build();
to_bitField0_ |= 0x00000080;
}
- if (((from_bitField0_ & 0x00400000) != 0)) {
+ if (((from_bitField0_ & 0x00800000) != 0)) {
result.clientConnectionConfig_ =
clientConnectionConfigBuilder_ == null
? clientConnectionConfig_
: clientConnectionConfigBuilder_.build();
to_bitField0_ |= 0x00000100;
}
- if (((from_bitField0_ & 0x00800000) != 0)) {
+ if (((from_bitField0_ & 0x01000000) != 0)) {
result.satisfiesPzi_ = satisfiesPzi_;
}
- if (((from_bitField0_ & 0x01000000) != 0)) {
+ if (((from_bitField0_ & 0x02000000) != 0)) {
result.satisfiesPzs_ = satisfiesPzs_;
}
- if (((from_bitField0_ & 0x02000000) != 0)) {
+ if (((from_bitField0_ & 0x04000000) != 0)) {
result.pscInstanceConfig_ =
pscInstanceConfigBuilder_ == null
? pscInstanceConfig_
: pscInstanceConfigBuilder_.build();
to_bitField0_ |= 0x00000200;
}
- if (((from_bitField0_ & 0x04000000) != 0)) {
+ if (((from_bitField0_ & 0x08000000) != 0)) {
result.networkConfig_ =
networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build();
to_bitField0_ |= 0x00000400;
@@ -14044,16 +14113,21 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Instance other) {
bitField0_ |= 0x00020000;
onChanged();
}
+ if (!other.getPublicIpAddress().isEmpty()) {
+ publicIpAddress_ = other.publicIpAddress_;
+ bitField0_ |= 0x00040000;
+ onChanged();
+ }
if (other.getReconciling() != false) {
setReconciling(other.getReconciling());
}
if (!other.getEtag().isEmpty()) {
etag_ = other.etag_;
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00100000;
onChanged();
}
internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00200000;
if (other.hasUpdatePolicy()) {
mergeUpdatePolicy(other.getUpdatePolicy());
}
@@ -14203,13 +14277,13 @@ public Builder mergeFrom(
case 128:
{
reconciling_ = input.readBool();
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00080000;
break;
} // case 128
case 138:
{
etag_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00100000;
break;
} // case 138
case 146:
@@ -14221,7 +14295,7 @@ public Builder mergeFrom(
internalGetMutableAnnotations()
.getMutableMap()
.put(annotations__.getKey(), annotations__.getValue());
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00200000;
break;
} // case 146
case 154:
@@ -14253,39 +14327,45 @@ public Builder mergeFrom(
case 178:
{
input.readMessage(getUpdatePolicyFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00400000;
break;
} // case 178
case 186:
{
input.readMessage(
getClientConnectionConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x00800000;
break;
} // case 186
case 192:
{
satisfiesPzs_ = input.readBool();
- bitField0_ |= 0x01000000;
+ bitField0_ |= 0x02000000;
break;
} // case 192
+ case 218:
+ {
+ publicIpAddress_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00040000;
+ break;
+ } // case 218
case 226:
{
input.readMessage(
getPscInstanceConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x02000000;
+ bitField0_ |= 0x04000000;
break;
} // case 226
case 234:
{
input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x08000000;
break;
} // case 234
case 240:
{
satisfiesPzi_ = input.readBool();
- bitField0_ |= 0x00800000;
+ bitField0_ |= 0x01000000;
break;
} // case 240
default:
@@ -17493,6 +17573,122 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object publicIpAddress_ = "";
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The publicIpAddress.
+ */
+ public java.lang.String getPublicIpAddress() {
+ java.lang.Object ref = publicIpAddress_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ publicIpAddress_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for publicIpAddress.
+ */
+ public com.google.protobuf.ByteString getPublicIpAddressBytes() {
+ java.lang.Object ref = publicIpAddress_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ publicIpAddress_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The publicIpAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPublicIpAddress(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ publicIpAddress_ = value;
+ bitField0_ |= 0x00040000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPublicIpAddress() {
+ publicIpAddress_ = getDefaultInstance().getPublicIpAddress();
+ bitField0_ = (bitField0_ & ~0x00040000);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for publicIpAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPublicIpAddressBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ publicIpAddress_ = value;
+ bitField0_ |= 0x00040000;
+ onChanged();
+ return this;
+ }
+
private boolean reconciling_;
/**
*
@@ -17532,7 +17728,7 @@ public boolean getReconciling() {
public Builder setReconciling(boolean value) {
reconciling_ = value;
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00080000;
onChanged();
return this;
}
@@ -17552,7 +17748,7 @@ public Builder setReconciling(boolean value) {
* @return This builder for chaining.
*/
public Builder clearReconciling() {
- bitField0_ = (bitField0_ & ~0x00040000);
+ bitField0_ = (bitField0_ & ~0x00080000);
reconciling_ = false;
onChanged();
return this;
@@ -17620,7 +17816,7 @@ public Builder setEtag(java.lang.String value) {
throw new NullPointerException();
}
etag_ = value;
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00100000;
onChanged();
return this;
}
@@ -17637,7 +17833,7 @@ public Builder setEtag(java.lang.String value) {
*/
public Builder clearEtag() {
etag_ = getDefaultInstance().getEtag();
- bitField0_ = (bitField0_ & ~0x00080000);
+ bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
return this;
}
@@ -17659,7 +17855,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
etag_ = value;
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00100000;
onChanged();
return this;
}
@@ -17684,7 +17880,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
if (!annotations_.isMutable()) {
annotations_ = annotations_.copy();
}
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00200000;
onChanged();
return annotations_;
}
@@ -17777,7 +17973,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
}
public Builder clearAnnotations() {
- bitField0_ = (bitField0_ & ~0x00100000);
+ bitField0_ = (bitField0_ & ~0x00200000);
internalGetMutableAnnotations().getMutableMap().clear();
return this;
}
@@ -17802,7 +17998,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_ |= 0x00200000;
+ bitField0_ |= 0x00400000;
onChanged();
return getUpdatePolicyFieldBuilder().getBuilder();
}
@@ -18080,7 +18276,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy.Builder getUpdateP
* @return Whether the clientConnectionConfig field is set.
*/
public boolean hasClientConnectionConfig() {
- return ((bitField0_ & 0x00400000) != 0);
+ return ((bitField0_ & 0x00800000) != 0);
}
/**
*
@@ -18126,7 +18322,7 @@ public Builder setClientConnectionConfig(
} else {
clientConnectionConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x00800000;
onChanged();
return this;
}
@@ -18148,7 +18344,7 @@ public Builder setClientConnectionConfig(
} else {
clientConnectionConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x00800000;
onChanged();
return this;
}
@@ -18166,7 +18362,7 @@ public Builder setClientConnectionConfig(
public Builder mergeClientConnectionConfig(
com.google.cloud.alloydb.v1alpha.Instance.ClientConnectionConfig value) {
if (clientConnectionConfigBuilder_ == null) {
- if (((bitField0_ & 0x00400000) != 0)
+ if (((bitField0_ & 0x00800000) != 0)
&& clientConnectionConfig_ != null
&& clientConnectionConfig_
!= com.google.cloud.alloydb.v1alpha.Instance.ClientConnectionConfig
@@ -18179,7 +18375,7 @@ public Builder mergeClientConnectionConfig(
clientConnectionConfigBuilder_.mergeFrom(value);
}
if (clientConnectionConfig_ != null) {
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x00800000;
onChanged();
}
return this;
@@ -18196,7 +18392,7 @@ public Builder mergeClientConnectionConfig(
*
*/
public Builder clearClientConnectionConfig() {
- bitField0_ = (bitField0_ & ~0x00400000);
+ bitField0_ = (bitField0_ & ~0x00800000);
clientConnectionConfig_ = null;
if (clientConnectionConfigBuilder_ != null) {
clientConnectionConfigBuilder_.dispose();
@@ -18218,7 +18414,7 @@ public Builder clearClientConnectionConfig() {
*/
public com.google.cloud.alloydb.v1alpha.Instance.ClientConnectionConfig.Builder
getClientConnectionConfigBuilder() {
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x00800000;
onChanged();
return getClientConnectionConfigFieldBuilder().getBuilder();
}
@@ -18302,7 +18498,7 @@ public boolean getSatisfiesPzi() {
public Builder setSatisfiesPzi(boolean value) {
satisfiesPzi_ = value;
- bitField0_ |= 0x00800000;
+ bitField0_ |= 0x01000000;
onChanged();
return this;
}
@@ -18318,7 +18514,7 @@ public Builder setSatisfiesPzi(boolean value) {
* @return This builder for chaining.
*/
public Builder clearSatisfiesPzi() {
- bitField0_ = (bitField0_ & ~0x00800000);
+ bitField0_ = (bitField0_ & ~0x01000000);
satisfiesPzi_ = false;
onChanged();
return this;
@@ -18355,7 +18551,7 @@ public boolean getSatisfiesPzs() {
public Builder setSatisfiesPzs(boolean value) {
satisfiesPzs_ = value;
- bitField0_ |= 0x01000000;
+ bitField0_ |= 0x02000000;
onChanged();
return this;
}
@@ -18371,7 +18567,7 @@ public Builder setSatisfiesPzs(boolean value) {
* @return This builder for chaining.
*/
public Builder clearSatisfiesPzs() {
- bitField0_ = (bitField0_ & ~0x01000000);
+ bitField0_ = (bitField0_ & ~0x02000000);
satisfiesPzs_ = false;
onChanged();
return this;
@@ -18398,7 +18594,7 @@ public Builder clearSatisfiesPzs() {
* @return Whether the pscInstanceConfig field is set.
*/
public boolean hasPscInstanceConfig() {
- return ((bitField0_ & 0x02000000) != 0);
+ return ((bitField0_ & 0x04000000) != 0);
}
/**
*
@@ -18445,7 +18641,7 @@ public Builder setPscInstanceConfig(
} else {
pscInstanceConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x02000000;
+ bitField0_ |= 0x04000000;
onChanged();
return this;
}
@@ -18468,7 +18664,7 @@ public Builder setPscInstanceConfig(
} else {
pscInstanceConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x02000000;
+ bitField0_ |= 0x04000000;
onChanged();
return this;
}
@@ -18487,7 +18683,7 @@ public Builder setPscInstanceConfig(
public Builder mergePscInstanceConfig(
com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig value) {
if (pscInstanceConfigBuilder_ == null) {
- if (((bitField0_ & 0x02000000) != 0)
+ if (((bitField0_ & 0x04000000) != 0)
&& pscInstanceConfig_ != null
&& pscInstanceConfig_
!= com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig
@@ -18500,7 +18696,7 @@ public Builder mergePscInstanceConfig(
pscInstanceConfigBuilder_.mergeFrom(value);
}
if (pscInstanceConfig_ != null) {
- bitField0_ |= 0x02000000;
+ bitField0_ |= 0x04000000;
onChanged();
}
return this;
@@ -18518,7 +18714,7 @@ public Builder mergePscInstanceConfig(
*
*/
public Builder clearPscInstanceConfig() {
- bitField0_ = (bitField0_ & ~0x02000000);
+ bitField0_ = (bitField0_ & ~0x04000000);
pscInstanceConfig_ = null;
if (pscInstanceConfigBuilder_ != null) {
pscInstanceConfigBuilder_.dispose();
@@ -18541,7 +18737,7 @@ public Builder clearPscInstanceConfig() {
*/
public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.Builder
getPscInstanceConfigBuilder() {
- bitField0_ |= 0x02000000;
+ bitField0_ |= 0x04000000;
onChanged();
return getPscInstanceConfigFieldBuilder().getBuilder();
}
@@ -18616,7 +18812,7 @@ public Builder clearPscInstanceConfig() {
* @return Whether the networkConfig field is set.
*/
public boolean hasNetworkConfig() {
- return ((bitField0_ & 0x04000000) != 0);
+ return ((bitField0_ & 0x08000000) != 0);
}
/**
*
@@ -18661,7 +18857,7 @@ public Builder setNetworkConfig(
} else {
networkConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x08000000;
onChanged();
return this;
}
@@ -18683,7 +18879,7 @@ public Builder setNetworkConfig(
} else {
networkConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x08000000;
onChanged();
return this;
}
@@ -18701,7 +18897,7 @@ public Builder setNetworkConfig(
public Builder mergeNetworkConfig(
com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig value) {
if (networkConfigBuilder_ == null) {
- if (((bitField0_ & 0x04000000) != 0)
+ if (((bitField0_ & 0x08000000) != 0)
&& networkConfig_ != null
&& networkConfig_
!= com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig
@@ -18714,7 +18910,7 @@ public Builder mergeNetworkConfig(
networkConfigBuilder_.mergeFrom(value);
}
if (networkConfig_ != null) {
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x08000000;
onChanged();
}
return this;
@@ -18731,7 +18927,7 @@ public Builder mergeNetworkConfig(
*
*/
public Builder clearNetworkConfig() {
- bitField0_ = (bitField0_ & ~0x04000000);
+ bitField0_ = (bitField0_ & ~0x08000000);
networkConfig_ = null;
if (networkConfigBuilder_ != null) {
networkConfigBuilder_.dispose();
@@ -18753,7 +18949,7 @@ public Builder clearNetworkConfig() {
*/
public com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig.Builder
getNetworkConfigBuilder() {
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x08000000;
onChanged();
return getNetworkConfigFieldBuilder().getBuilder();
}
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceOrBuilder.java
index 1c39f3668878..e2535cd822c9 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceOrBuilder.java
@@ -796,6 +796,35 @@ java.lang.String getDatabaseFlagsOrDefault(
*/
com.google.protobuf.ByteString getIpAddressBytes();
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The publicIpAddress.
+ */
+ java.lang.String getPublicIpAddress();
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for publicIpAddress.
+ */
+ com.google.protobuf.ByteString getPublicIpAddressBytes();
+
/**
*
*
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 64d167f84081..c07bd37d40b4 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
@@ -218,13 +218,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
"\n,google/cloud/alloydb/v1alpha/resources"
- + ".proto\022\034google.cloud.alloydb.v1alpha\032\036go"
- + "ogle/protobuf/duration.proto\032\037google/pro"
- + "tobuf/timestamp.proto\032\036google/protobuf/w"
- + "rappers.proto\032\033google/type/dayofweek.pro"
- + "to\032\033google/type/timeofday.proto\032\037google/"
- + "api/field_behavior.proto\032\033google/api/fie"
- + "ld_info.proto\032\031google/api/resource.proto"
+ + ".proto\022\034google.cloud.alloydb.v1alpha\032\037go"
+ + "ogle/api/field_behavior.proto\032\033google/ap"
+ + "i/field_info.proto\032\031google/api/resource."
+ + "proto\032\036google/protobuf/duration.proto\032\037g"
+ + "oogle/protobuf/timestamp.proto\032\036google/p"
+ + "rotobuf/wrappers.proto\032\033google/type/dayo"
+ + "fweek.proto\032\033google/type/timeofday.proto"
+ "\".\n\014UserPassword\022\014\n\004user\030\001 \001(\t\022\020\n\010passwo"
+ "rd\030\002 \001(\t\"\350\001\n\017MigrationSource\022\026\n\thost_por"
+ "t\030\001 \001(\tB\003\340A\003\022\031\n\014reference_id\030\002 \001(\tB\003\340A\003\022"
@@ -350,7 +350,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\022\r\n\tSECONDARY\020\002:b\352A_\n\036alloydb.googleapis"
+ ".com/Cluster\022:projects/{project}/locatio"
+ "ns/{location}/clusters/{cluster}R\001\001B\010\n\006s"
- + "ource\"\212\033\n\010Instance\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n"
+ + "ource\"\252\033\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\003uid\030\003 \001(\tB\003\340A\003\0224\n"
+ "\013create_time\030\004 \001(\0132\032.google.protobuf.Tim"
+ "estampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.googl"
@@ -376,182 +376,183 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "stance.QueryInsightsInstanceConfig\022O\n\020re"
+ "ad_pool_config\030\016 \001(\01325.google.cloud.allo"
+ "ydb.v1alpha.Instance.ReadPoolConfig\022\027\n\ni"
- + "p_address\030\017 \001(\tB\003\340A\003\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("
- + "\01327.google.cloud.alloydb.v1alpha.Instanc"
- + "e.AnnotationsEntry\022J\n\rupdate_policy\030\026 \001("
- + "\01323.google.cloud.alloydb.v1alpha.Instanc"
- + "e.UpdatePolicy\022d\n\030client_connection_conf"
- + "ig\030\027 \001(\0132=.google.cloud.alloydb.v1alpha."
- + "Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r"
- + "satisfies_pzi\030\036 \001(\010B\003\340A\003\022\032\n\rsatisfies_pz"
- + "s\030\030 \001(\010B\003\340A\003\022Z\n\023psc_instance_config\030\034 \001("
- + "\01328.google.cloud.alloydb.v1alpha.Instanc"
- + "e.PscInstanceConfigB\003\340A\001\022Y\n\016network_conf"
- + "ig\030\035 \001(\0132<.google.cloud.alloydb.v1alpha."
- + "Instance.InstanceNetworkConfigB\003\340A\001\032\"\n\rM"
- + "achineConfig\022\021\n\tcpu_count\030\001 \001(\005\032>\n\004Node\022"
- + "\017\n\007zone_id\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\n\n\002ip\030\003 \001(\t"
- + "\022\r\n\005state\030\004 \001(\t\032\372\001\n\033QueryInsightsInstanc"
- + "eConfig\022$\n\027record_application_tags\030\002 \001(\010"
- + "H\000\210\001\001\022\"\n\025record_client_address\030\003 \001(\010H\001\210\001"
- + "\001\022\033\n\023query_string_length\030\004 \001(\r\022#\n\026query_"
- + "plans_per_minute\030\005 \001(\rH\002\210\001\001B\032\n\030_record_a"
- + "pplication_tagsB\030\n\026_record_client_addres"
- + "sB\031\n\027_query_plans_per_minute\032$\n\016ReadPool"
- + "Config\022\022\n\nnode_count\030\001 \001(\005\032\222\001\n\014UpdatePol"
- + "icy\022F\n\004mode\030\001 \001(\01628.google.cloud.alloydb"
- + ".v1alpha.Instance.UpdatePolicy.Mode\":\n\004M"
- + "ode\022\024\n\020MODE_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\017"
- + "\n\013FORCE_APPLY\020\002\032{\n\026ClientConnectionConfi"
- + "g\022\037\n\022require_connectors\030\001 \001(\010B\003\340A\001\022@\n\nss"
- + "l_config\030\002 \001(\0132\'.google.cloud.alloydb.v1"
- + "alpha.SslConfigB\003\340A\001\032O\n\022PscInterfaceConf"
- + "ig\022\035\n\025consumer_endpoint_ips\030\001 \003(\t\022\032\n\022net"
- + "work_attachment\030\002 \001(\t\032\262\002\n\021PscInstanceCon"
- + "fig\022$\n\027service_attachment_link\030\001 \001(\tB\003\340A"
- + "\003\022&\n\031allowed_consumer_projects\030\002 \003(\tB\003\340A"
- + "\001\022&\n\031allowed_consumer_networks\030\003 \003(\tB\003\340A"
- + "\001\022]\n\025psc_interface_configs\030\004 \003(\01329.googl"
- + "e.cloud.alloydb.v1alpha.Instance.PscInte"
- + "rfaceConfigB\003\340A\001\022.\n!outgoing_service_att"
- + "achment_links\030\005 \003(\tB\003\340A\001\022\030\n\013psc_enabled\030"
- + "\006 \001(\010B\003\340A\001\032\344\001\n\025InstanceNetworkConfig\022y\n\034"
- + "authorized_external_networks\030\001 \003(\0132N.goo"
- + "gle.cloud.alloydb.v1alpha.Instance.Insta"
- + "nceNetworkConfig.AuthorizedNetworkB\003\340A\001\022"
- + "\035\n\020enable_public_ip\030\002 \001(\010B\003\340A\001\0321\n\021Author"
- + "izedNetwork\022\034\n\ncidr_range\030\001 \001(\tB\010\342\214\317\327\010\002\010"
- + "\002\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002"
- + " \001(\t:\0028\001\0324\n\022DatabaseFlagsEntry\022\013\n\003key\030\001 "
- + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEnt"
- + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\221\001\n\005S"
- + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005READY\020\001\022\013"
- + "\n\007STOPPED\020\002\022\014\n\010CREATING\020\003\022\014\n\010DELETING\020\004\022"
- + "\017\n\013MAINTENANCE\020\005\022\n\n\006FAILED\020\006\022\021\n\rBOOTSTRA"
- + "PPING\020\010\022\r\n\tPROMOTING\020\t\"X\n\014InstanceType\022\035"
- + "\n\031INSTANCE_TYPE_UNSPECIFIED\020\000\022\013\n\007PRIMARY"
- + "\020\001\022\r\n\tREAD_POOL\020\002\022\r\n\tSECONDARY\020\003\"N\n\020Avai"
- + "labilityType\022!\n\035AVAILABILITY_TYPE_UNSPEC"
- + "IFIED\020\000\022\t\n\005ZONAL\020\001\022\014\n\010REGIONAL\020\002:x\352Au\n\037a"
- + "lloydb.googleapis.com/Instance\022Oprojects"
- + "/{project}/locations/{location}/clusters"
- + "/{cluster}/instances/{instance}R\001\001\"\256\002\n\016C"
- + "onnectionInfo\022\014\n\004name\030\001 \001(\t\022\027\n\nip_addres"
- + "s\030\002 \001(\tB\003\340A\003\022&\n\021public_ip_address\030\005 \001(\tB"
- + "\013\340A\003\342\214\317\327\010\002\010\002\022$\n\025pem_certificate_chain\030\003 "
- + "\003(\tB\005\030\001\340A\003\022\031\n\014instance_uid\030\004 \001(\tB\003\340A\003:\213\001"
- + "\352A\207\001\n%alloydb.googleapis.com/ConnectionI"
- + "nfo\022^projects/{project}/locations/{locat"
- + "ion}/clusters/{cluster}/instances/{insta"
- + "nce}/connectionInfo\"\206\014\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\003uid\030\003"
- + " \001(\tB\003\340A\003\0224\n\013create_time\030\004 \001(\0132\032.google."
- + "protobuf.TimestampB\003\340A\003\0224\n\013update_time\030\005"
- + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
- + "\013delete_time\030\017 \001(\0132\032.google.protobuf.Tim"
- + "estampB\003\340A\003\022@\n\006labels\030\006 \003(\01320.google.clo"
- + "ud.alloydb.v1alpha.Backup.LabelsEntry\022>\n"
- + "\005state\030\007 \001(\0162*.google.cloud.alloydb.v1al"
- + "pha.Backup.StateB\003\340A\003\0227\n\004type\030\010 \001(\0162).go"
- + "ogle.cloud.alloydb.v1alpha.Backup.Type\022\023"
- + "\n\013description\030\t \001(\t\022\030\n\013cluster_uid\030\022 \001(\t"
- + "B\003\340A\003\022<\n\014cluster_name\030\n \001(\tB&\340A\002\372A \n\036all"
- + "oydb.googleapis.com/Cluster\022\030\n\013reconcili"
- + "ng\030\013 \001(\010B\003\340A\003\022N\n\021encryption_config\030\014 \001(\013"
- + "2..google.cloud.alloydb.v1alpha.Encrypti"
- + "onConfigB\003\340A\001\022J\n\017encryption_info\030\r \001(\0132,"
- + ".google.cloud.alloydb.v1alpha.Encryption"
- + "InfoB\003\340A\003\022\014\n\004etag\030\016 \001(\t\022J\n\013annotations\030\020"
- + " \003(\01325.google.cloud.alloydb.v1alpha.Back"
- + "up.AnnotationsEntry\022\027\n\nsize_bytes\030\021 \001(\003B"
- + "\003\340A\003\0224\n\013expiry_time\030\023 \001(\0132\032.google.proto"
- + "buf.TimestampB\003\340A\003\022V\n\017expiry_quantity\030\024 "
- + "\001(\01328.google.cloud.alloydb.v1alpha.Backu"
- + "p.QuantityBasedExpiryB\003\340A\003\022\032\n\rsatisfies_"
- + "pzi\030\027 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzs\030\025 \001(\010B\003\340"
- + "A\003\022L\n\020database_version\030\026 \001(\0162-.google.cl"
- + "oud.alloydb.v1alpha.DatabaseVersionB\003\340A\003"
- + "\032W\n\023QuantityBasedExpiry\022\034\n\017retention_cou"
- + "nt\030\001 \001(\005B\003\340A\003\022\"\n\025total_retention_count\030\002"
- + " \001(\005B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
- + "\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003"
- + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"Q\n\005State\022\025\n"
- + "\021STATE_UNSPECIFIED\020\000\022\t\n\005READY\020\001\022\014\n\010CREAT"
- + "ING\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\"J\n\004Type\022"
- + "\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\tON_DEMAND\020\001\022\r\n\t"
- + "AUTOMATED\020\002\022\016\n\nCONTINUOUS\020\003:_\352A\\\n\035alloyd"
- + "b.googleapis.com/Backup\0228projects/{proje"
- + "ct}/locations/{location}/backups/{backup"
- + "}R\001\001\"\334\006\n\025SupportedDatabaseFlag\022e\n\023string"
- + "_restrictions\030\007 \001(\0132F.google.cloud.alloy"
- + "db.v1alpha.SupportedDatabaseFlag.StringR"
- + "estrictionsH\000\022g\n\024integer_restrictions\030\010 "
- + "\001(\0132G.google.cloud.alloydb.v1alpha.Suppo"
- + "rtedDatabaseFlag.IntegerRestrictionsH\000\022\014"
- + "\n\004name\030\001 \001(\t\022\021\n\tflag_name\030\002 \001(\t\022Q\n\nvalue"
- + "_type\030\003 \001(\0162=.google.cloud.alloydb.v1alp"
- + "ha.SupportedDatabaseFlag.ValueType\022\037\n\027ac"
- + "cepts_multiple_values\030\004 \001(\010\022L\n\025supported"
- + "_db_versions\030\005 \003(\0162-.google.cloud.alloyd"
- + "b.v1alpha.DatabaseVersion\022\033\n\023requires_db"
- + "_restart\030\006 \001(\010\032,\n\022StringRestrictions\022\026\n\016"
- + "allowed_values\030\001 \003(\t\032u\n\023IntegerRestricti"
- + "ons\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\026VALU"
- + "E_TYPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001\022\013\n\007INTE"
- + "GER\020\002\022\t\n\005FLOAT\020\003\022\010\n\004NONE\020\004:g\352Ad\n,alloydb"
- + ".googleapis.com/SupportedDatabaseFlag\0224p"
- + "rojects/{project}/locations/{location}/f"
- + "lags/{flag}B\016\n\014restrictions\"\323\002\n\004User\022\021\n\004"
- + "name\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+.google.cloud.alloydb.v1alpha.Us"
- + "er.UserTypeB\003\340A\001\"Q\n\010UserType\022\031\n\025USER_TYP"
- + "E_UNSPECIFIED\020\000\022\024\n\020ALLOYDB_BUILT_IN\020\001\022\024\n"
- + "\020ALLOYDB_IAM_USER\020\002:l\352Ai\n\033alloydb.google"
- + "apis.com/User\022Gprojects/{project}/locati"
- + "ons/{location}/clusters/{cluster}/users/"
- + "{user}R\001\001\"\334\001\n\010Database\022\021\n\004name\030\001 \001(\tB\003\340A"
- + "\010\022\024\n\007charset\030\002 \001(\tB\003\340A\001\022\026\n\tcollation\030\003 \001"
- + "(\tB\003\340A\001:\216\001\352A\212\001\n\037alloydb.googleapis.com/D"
- + "atabase\022Oprojects/{project}/locations/{l"
- + "ocation}/clusters/{cluster}/databases/{d"
- + "atabase}*\tdatabases2\010databaseR\001\001*^\n\014Inst"
- + "anceView\022\035\n\031INSTANCE_VIEW_UNSPECIFIED\020\000\022"
- + "\027\n\023INSTANCE_VIEW_BASIC\020\001\022\026\n\022INSTANCE_VIE"
- + "W_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*j\n\017Dat"
- + "abaseVersion\022 \n\034DATABASE_VERSION_UNSPECI"
- + "FIED\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\003B\313\003\n com.google.clo"
- + "ud.alloydb.v1alphaB\016ResourcesProtoP\001Z:cl"
- + "oud.google.com/go/alloydb/apiv1alpha/all"
- + "oydbpb;alloydbpb\252\002\034Google.Cloud.AlloyDb."
- + "V1Alpha\312\002\034Google\\Cloud\\AlloyDb\\V1alpha\352\002"
- + "\037Google::Cloud::AlloyDB::V1alpha\352A\246\001\n(cl"
- + "oudkms.googleapis.com/CryptoKeyVersion\022z"
- + "projects/{project}/locations/{location}/"
- + "keyRings/{key_ring}/cryptoKeys/{crypto_k"
- + "ey}/cryptoKeyVersions/{crypto_key_versio"
- + "n}\352AN\n\036compute.googleapis.com/Network\022,p"
- + "rojects/{project}/global/networks/{netwo"
- + "rk}b\006proto3"
+ + "p_address\030\017 \001(\tB\003\340A\003\022\036\n\021public_ip_addres"
+ + "s\030\033 \001(\tB\003\340A\003\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(\01327.goog"
+ + "le.cloud.alloydb.v1alpha.Instance.Annota"
+ + "tionsEntry\022J\n\rupdate_policy\030\026 \001(\01323.goog"
+ + "le.cloud.alloydb.v1alpha.Instance.Update"
+ + "Policy\022d\n\030client_connection_config\030\027 \001(\013"
+ + "2=.google.cloud.alloydb.v1alpha.Instance"
+ + ".ClientConnectionConfigB\003\340A\001\022\032\n\rsatisfie"
+ + "s_pzi\030\036 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzs\030\030 \001(\010B"
+ + "\003\340A\003\022Z\n\023psc_instance_config\030\034 \001(\01328.goog"
+ + "le.cloud.alloydb.v1alpha.Instance.PscIns"
+ + "tanceConfigB\003\340A\001\022Y\n\016network_config\030\035 \001(\013"
+ + "2<.google.cloud.alloydb.v1alpha.Instance"
+ + ".InstanceNetworkConfigB\003\340A\001\032\"\n\rMachineCo"
+ + "nfig\022\021\n\tcpu_count\030\001 \001(\005\032>\n\004Node\022\017\n\007zone_"
+ + "id\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\n\n\002ip\030\003 \001(\t\022\r\n\005stat"
+ + "e\030\004 \001(\t\032\372\001\n\033QueryInsightsInstanceConfig\022"
+ + "$\n\027record_application_tags\030\002 \001(\010H\000\210\001\001\022\"\n"
+ + "\025record_client_address\030\003 \001(\010H\001\210\001\001\022\033\n\023que"
+ + "ry_string_length\030\004 \001(\r\022#\n\026query_plans_pe"
+ + "r_minute\030\005 \001(\rH\002\210\001\001B\032\n\030_record_applicati"
+ + "on_tagsB\030\n\026_record_client_addressB\031\n\027_qu"
+ + "ery_plans_per_minute\032$\n\016ReadPoolConfig\022\022"
+ + "\n\nnode_count\030\001 \001(\005\032\222\001\n\014UpdatePolicy\022F\n\004m"
+ + "ode\030\001 \001(\01628.google.cloud.alloydb.v1alpha"
+ + ".Instance.UpdatePolicy.Mode\":\n\004Mode\022\024\n\020M"
+ + "ODE_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\017\n\013FORCE_"
+ + "APPLY\020\002\032{\n\026ClientConnectionConfig\022\037\n\022req"
+ + "uire_connectors\030\001 \001(\010B\003\340A\001\022@\n\nssl_config"
+ + "\030\002 \001(\0132\'.google.cloud.alloydb.v1alpha.Ss"
+ + "lConfigB\003\340A\001\032O\n\022PscInterfaceConfig\022\035\n\025co"
+ + "nsumer_endpoint_ips\030\001 \003(\t\022\032\n\022network_att"
+ + "achment\030\002 \001(\t\032\262\002\n\021PscInstanceConfig\022$\n\027s"
+ + "ervice_attachment_link\030\001 \001(\tB\003\340A\003\022&\n\031all"
+ + "owed_consumer_projects\030\002 \003(\tB\003\340A\001\022&\n\031all"
+ + "owed_consumer_networks\030\003 \003(\tB\003\340A\001\022]\n\025psc"
+ + "_interface_configs\030\004 \003(\01329.google.cloud."
+ + "alloydb.v1alpha.Instance.PscInterfaceCon"
+ + "figB\003\340A\001\022.\n!outgoing_service_attachment_"
+ + "links\030\005 \003(\tB\003\340A\001\022\030\n\013psc_enabled\030\006 \001(\010B\003\340"
+ + "A\001\032\344\001\n\025InstanceNetworkConfig\022y\n\034authoriz"
+ + "ed_external_networks\030\001 \003(\0132N.google.clou"
+ + "d.alloydb.v1alpha.Instance.InstanceNetwo"
+ + "rkConfig.AuthorizedNetworkB\003\340A\001\022\035\n\020enabl"
+ + "e_public_ip\030\002 \001(\010B\003\340A\001\0321\n\021AuthorizedNetw"
+ + "ork\022\034\n\ncidr_range\030\001 \001(\tB\010\342\214\317\327\010\002\010\002\032-\n\013Lab"
+ + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001"
+ + "\0324\n\022DatabaseFlagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v"
+ + "alue\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003ke"
+ + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\221\001\n\005State\022\025\n\021"
+ + "STATE_UNSPECIFIED\020\000\022\t\n\005READY\020\001\022\013\n\007STOPPE"
+ + "D\020\002\022\014\n\010CREATING\020\003\022\014\n\010DELETING\020\004\022\017\n\013MAINT"
+ + "ENANCE\020\005\022\n\n\006FAILED\020\006\022\021\n\rBOOTSTRAPPING\020\010\022"
+ + "\r\n\tPROMOTING\020\t\"X\n\014InstanceType\022\035\n\031INSTAN"
+ + "CE_TYPE_UNSPECIFIED\020\000\022\013\n\007PRIMARY\020\001\022\r\n\tRE"
+ + "AD_POOL\020\002\022\r\n\tSECONDARY\020\003\"N\n\020Availability"
+ + "Type\022!\n\035AVAILABILITY_TYPE_UNSPECIFIED\020\000\022"
+ + "\t\n\005ZONAL\020\001\022\014\n\010REGIONAL\020\002:x\352Au\n\037alloydb.g"
+ + "oogleapis.com/Instance\022Oprojects/{projec"
+ + "t}/locations/{location}/clusters/{cluste"
+ + "r}/instances/{instance}R\001\001\"\311\002\n\016Connectio"
+ + "nInfo\022\014\n\004name\030\001 \001(\t\022\027\n\nip_address\030\002 \001(\tB"
+ + "\003\340A\003\022&\n\021public_ip_address\030\005 \001(\tB\013\340A\003\342\214\317\327"
+ + "\010\002\010\002\022$\n\025pem_certificate_chain\030\003 \003(\tB\005\030\001\340"
+ + "A\003\022\031\n\014instance_uid\030\004 \001(\tB\003\340A\003\022\031\n\014psc_dns"
+ + "_name\030\006 \001(\tB\003\340A\003:\213\001\352A\207\001\n%alloydb.googlea"
+ + "pis.com/ConnectionInfo\022^projects/{projec"
+ + "t}/locations/{location}/clusters/{cluste"
+ + "r}/instances/{instance}/connectionInfo\"\206"
+ + "\014\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\003uid\030\003 \001(\tB\003\340A\003\0224\n\013create_t"
+ + "ime\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340"
+ + "A\003\0224\n\013update_time\030\005 \001(\0132\032.google.protobu"
+ + "f.TimestampB\003\340A\003\0224\n\013delete_time\030\017 \001(\0132\032."
+ + "google.protobuf.TimestampB\003\340A\003\022@\n\006labels"
+ + "\030\006 \003(\01320.google.cloud.alloydb.v1alpha.Ba"
+ + "ckup.LabelsEntry\022>\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.v1"
+ + "alpha.Backup.Type\022\023\n\013description\030\t \001(\t\022\030"
+ + "\n\013cluster_uid\030\022 \001(\tB\003\340A\003\022<\n\014cluster_name"
+ + "\030\n \001(\tB&\340A\002\372A \n\036alloydb.googleapis.com/C"
+ + "luster\022\030\n\013reconciling\030\013 \001(\010B\003\340A\003\022N\n\021encr"
+ + "yption_config\030\014 \001(\0132..google.cloud.alloy"
+ + "db.v1alpha.EncryptionConfigB\003\340A\001\022J\n\017encr"
+ + "yption_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.a"
+ + "lloydb.v1alpha.Backup.AnnotationsEntry\022\027"
+ + "\n\nsize_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.al"
+ + "loydb.v1alpha.Backup.QuantityBasedExpiry"
+ + "B\003\340A\003\022\032\n\rsatisfies_pzi\030\027 \001(\010B\003\340A\003\022\032\n\rsat"
+ + "isfies_pzs\030\025 \001(\010B\003\340A\003\022L\n\020database_versio"
+ + "n\030\026 \001(\0162-.google.cloud.alloydb.v1alpha.D"
+ + "atabaseVersionB\003\340A\003\032W\n\023QuantityBasedExpi"
+ + "ry\022\034\n\017retention_count\030\001 \001(\005B\003\340A\003\022\"\n\025tota"
+ + "l_retention_count\030\002 \001(\005B\003\340A\003\032-\n\013LabelsEn"
+ + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020A"
+ + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 "
+ + "\001(\t:\0028\001\"Q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022"
+ + "\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\n\n\006FAILED\020\003\022\014\n\010"
+ + "DELETING\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\nCONTIN"
+ + "UOUS\020\003:_\352A\\\n\035alloydb.googleapis.com/Back"
+ + "up\0228projects/{project}/locations/{locati"
+ + "on}/backups/{backup}R\001\001\"\334\006\n\025SupportedDat"
+ + "abaseFlag\022e\n\023string_restrictions\030\007 \001(\0132F"
+ + ".google.cloud.alloydb.v1alpha.SupportedD"
+ + "atabaseFlag.StringRestrictionsH\000\022g\n\024inte"
+ + "ger_restrictions\030\010 \001(\0132G.google.cloud.al"
+ + "loydb.v1alpha.SupportedDatabaseFlag.Inte"
+ + "gerRestrictionsH\000\022\014\n\004name\030\001 \001(\t\022\021\n\tflag_"
+ + "name\030\002 \001(\t\022Q\n\nvalue_type\030\003 \001(\0162=.google."
+ + "cloud.alloydb.v1alpha.SupportedDatabaseF"
+ + "lag.ValueType\022\037\n\027accepts_multiple_values"
+ + "\030\004 \001(\010\022L\n\025supported_db_versions\030\005 \003(\0162-."
+ + "google.cloud.alloydb.v1alpha.DatabaseVer"
+ + "sion\022\033\n\023requires_db_restart\030\006 \001(\010\032,\n\022Str"
+ + "ingRestrictions\022\026\n\016allowed_values\030\001 \003(\t\032"
+ + "u\n\023IntegerRestrictions\022.\n\tmin_value\030\001 \001("
+ + "\0132\033.google.protobuf.Int64Value\022.\n\tmax_va"
+ + "lue\030\002 \001(\0132\033.google.protobuf.Int64Value\"U"
+ + "\n\tValueType\022\032\n\026VALUE_TYPE_UNSPECIFIED\020\000\022"
+ + "\n\n\006STRING\020\001\022\013\n\007INTEGER\020\002\022\t\n\005FLOAT\020\003\022\010\n\004N"
+ + "ONE\020\004:g\352Ad\n,alloydb.googleapis.com/Suppo"
+ + "rtedDatabaseFlag\0224projects/{project}/loc"
+ + "ations/{location}/flags/{flag}B\016\n\014restri"
+ + "ctions\"\323\002\n\004User\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\025\n\010pa"
+ + "ssword\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+.google.cloud"
+ + ".alloydb.v1alpha.User.UserTypeB\003\340A\001\"Q\n\010U"
+ + "serType\022\031\n\025USER_TYPE_UNSPECIFIED\020\000\022\024\n\020AL"
+ + "LOYDB_BUILT_IN\020\001\022\024\n\020ALLOYDB_IAM_USER\020\002:l"
+ + "\352Ai\n\033alloydb.googleapis.com/User\022Gprojec"
+ + "ts/{project}/locations/{location}/cluste"
+ + "rs/{cluster}/users/{user}R\001\001\"\334\001\n\010Databas"
+ + "e\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\024\n\007charset\030\002 \001(\tB\003\340"
+ + "A\001\022\026\n\tcollation\030\003 \001(\tB\003\340A\001:\216\001\352A\212\001\n\037alloy"
+ + "db.googleapis.com/Database\022Oprojects/{pr"
+ + "oject}/locations/{location}/clusters/{cl"
+ + "uster}/databases/{database}*\tdatabases2\010"
+ + "databaseR\001\001*^\n\014InstanceView\022\035\n\031INSTANCE_"
+ + "VIEW_UNSPECIFIED\020\000\022\027\n\023INSTANCE_VIEW_BASI"
+ + "C\020\001\022\026\n\022INSTANCE_VIEW_FULL\020\002*g\n\013ClusterVi"
+ + "ew\022\034\n\030CLUSTER_VIEW_UNSPECIFIED\020\000\022\026\n\022CLUS"
+ + "TER_VIEW_BASIC\020\001\022\"\n\036CLUSTER_VIEW_CONTINU"
+ + "OUS_BACKUP\020\002*j\n\017DatabaseVersion\022 \n\034DATAB"
+ + "ASE_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"
+ + "B\313\003\n com.google.cloud.alloydb.v1alphaB\016R"
+ + "esourcesProtoP\001Z:cloud.google.com/go/all"
+ + "oydb/apiv1alpha/alloydbpb;alloydbpb\252\002\034Go"
+ + "ogle.Cloud.AlloyDb.V1Alpha\312\002\034Google\\Clou"
+ + "d\\AlloyDb\\V1alpha\352\002\037Google::Cloud::Alloy"
+ + "DB::V1alpha\352A\246\001\n(cloudkms.googleapis.com"
+ + "/CryptoKeyVersion\022zprojects/{project}/lo"
+ + "cations/{location}/keyRings/{key_ring}/c"
+ + "ryptoKeys/{crypto_key}/cryptoKeyVersions"
+ + "/{crypto_key_version}\352AN\n\036compute.google"
+ + "apis.com/Network\022,projects/{project}/glo"
+ + "bal/networks/{network}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.FieldInfoProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
com.google.protobuf.DurationProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
com.google.protobuf.WrappersProto.getDescriptor(),
com.google.type.DayOfWeekProto.getDescriptor(),
com.google.type.TimeOfDayProto.getDescriptor(),
- com.google.api.FieldBehaviorProto.getDescriptor(),
- com.google.api.FieldInfoProto.getDescriptor(),
- com.google.api.ResourceProto.getDescriptor(),
});
internal_static_google_cloud_alloydb_v1alpha_UserPassword_descriptor =
getDescriptor().getMessageTypes().get(0);
@@ -791,6 +792,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"QueryInsightsConfig",
"ReadPoolConfig",
"IpAddress",
+ "PublicIpAddress",
"Reconciling",
"Etag",
"Annotations",
@@ -921,7 +923,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_alloydb_v1alpha_ConnectionInfo_descriptor,
new java.lang.String[] {
- "Name", "IpAddress", "PublicIpAddress", "PemCertificateChain", "InstanceUid",
+ "Name",
+ "IpAddress",
+ "PublicIpAddress",
+ "PemCertificateChain",
+ "InstanceUid",
+ "PscDnsName",
});
internal_static_google_cloud_alloydb_v1alpha_Backup_descriptor =
getDescriptor().getMessageTypes().get(13);
@@ -1038,14 +1045,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.FieldInfoProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
com.google.protobuf.DurationProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
com.google.protobuf.WrappersProto.getDescriptor();
com.google.type.DayOfWeekProto.getDescriptor();
com.google.type.TimeOfDayProto.getDescriptor();
- com.google.api.FieldBehaviorProto.getDescriptor();
- com.google.api.FieldInfoProto.getDescriptor();
- com.google.api.ResourceProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
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 eb213a55c215..c3b347765258 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
@@ -16,14 +16,14 @@ syntax = "proto3";
package google.cloud.alloydb.v1alpha;
+import "google/api/field_behavior.proto";
+import "google/api/field_info.proto";
+import "google/api/resource.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";
import "google/type/dayofweek.proto";
import "google/type/timeofday.proto";
-import "google/api/field_behavior.proto";
-import "google/api/field_info.proto";
-import "google/api/resource.proto";
option csharp_namespace = "Google.Cloud.AlloyDb.V1Alpha";
option go_package = "cloud.google.com/go/alloydb/apiv1alpha/alloydbpb;alloydbpb";
@@ -956,6 +956,11 @@ message Instance {
// This is the connection endpoint for an end-user application.
string ip_address = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
+ // Output only. The public IP addresses for the Instance. This is available
+ // ONLY when enable_public_ip is set. This is the connection endpoint for an
+ // end-user application.
+ string public_ip_address = 27 [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Output only. Reconciling (https://google.aip.dev/128#reconciliation).
// Set to true if the current state of Instance does not match the user's
// intended state, and the service is actively updating the resource to
@@ -1030,6 +1035,9 @@ message ConnectionInfo {
// Output only. The unique ID of the Instance.
string instance_uid = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The DNS name to use with PSC for the Instance.
+ string psc_dns_name = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// Message describing Backup object
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Backup.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Backup.java
index 7a6209928b36..ed6b95961768 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Backup.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Backup.java
@@ -2255,6 +2255,24 @@ public com.google.cloud.alloydb.v1beta.Backup.QuantityBasedExpiry getExpiryQuant
: expiryQuantity_;
}
+ public static final int SATISFIES_PZS_FIELD_NUMBER = 21;
+ private boolean satisfiesPzs_ = false;
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzs = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The satisfiesPzs.
+ */
+ @java.lang.Override
+ public boolean getSatisfiesPzs() {
+ return satisfiesPzs_;
+ }
+
public static final int DATABASE_VERSION_FIELD_NUMBER = 22;
private int databaseVersion_ = 0;
/**
@@ -2370,6 +2388,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(20, getExpiryQuantity());
}
+ if (satisfiesPzs_ != false) {
+ output.writeBool(21, satisfiesPzs_);
+ }
if (databaseVersion_
!= com.google.cloud.alloydb.v1beta.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED
.getNumber()) {
@@ -2458,6 +2479,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getExpiryQuantity());
}
+ if (satisfiesPzs_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(21, satisfiesPzs_);
+ }
if (databaseVersion_
!= com.google.cloud.alloydb.v1beta.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED
.getNumber()) {
@@ -2519,6 +2543,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasExpiryQuantity()) {
if (!getExpiryQuantity().equals(other.getExpiryQuantity())) return false;
}
+ if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false;
if (databaseVersion_ != other.databaseVersion_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
@@ -2589,6 +2614,8 @@ public int hashCode() {
hash = (37 * hash) + EXPIRY_QUANTITY_FIELD_NUMBER;
hash = (53 * hash) + getExpiryQuantity().hashCode();
}
+ hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs());
hash = (37 * hash) + DATABASE_VERSION_FIELD_NUMBER;
hash = (53 * hash) + databaseVersion_;
hash = (29 * hash) + getUnknownFields().hashCode();
@@ -2819,6 +2846,7 @@ public Builder clear() {
expiryQuantityBuilder_.dispose();
expiryQuantityBuilder_ = null;
}
+ satisfiesPzs_ = false;
databaseVersion_ = 0;
return this;
}
@@ -2930,6 +2958,9 @@ private void buildPartial0(com.google.cloud.alloydb.v1beta.Backup result) {
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
+ result.satisfiesPzs_ = satisfiesPzs_;
+ }
+ if (((from_bitField0_ & 0x00200000) != 0)) {
result.databaseVersion_ = databaseVersion_;
}
result.bitField0_ |= to_bitField0_;
@@ -3052,6 +3083,9 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Backup other) {
if (other.hasExpiryQuantity()) {
mergeExpiryQuantity(other.getExpiryQuantity());
}
+ if (other.getSatisfiesPzs() != false) {
+ setSatisfiesPzs(other.getSatisfiesPzs());
+ }
if (other.databaseVersion_ != 0) {
setDatabaseVersionValue(other.getDatabaseVersionValue());
}
@@ -3214,10 +3248,16 @@ public Builder mergeFrom(
bitField0_ |= 0x00080000;
break;
} // case 162
+ case 168:
+ {
+ satisfiesPzs_ = input.readBool();
+ bitField0_ |= 0x00100000;
+ break;
+ } // case 168
case 176:
{
databaseVersion_ = input.readEnum();
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00200000;
break;
} // case 176
default:
@@ -6190,6 +6230,59 @@ public Builder clearExpiryQuantity() {
return expiryQuantityBuilder_;
}
+ private boolean satisfiesPzs_;
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzs = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The satisfiesPzs.
+ */
+ @java.lang.Override
+ public boolean getSatisfiesPzs() {
+ return satisfiesPzs_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzs = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The satisfiesPzs to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSatisfiesPzs(boolean value) {
+
+ satisfiesPzs_ = value;
+ bitField0_ |= 0x00100000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzs = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSatisfiesPzs() {
+ bitField0_ = (bitField0_ & ~0x00100000);
+ satisfiesPzs_ = false;
+ onChanged();
+ return this;
+ }
+
private int databaseVersion_ = 0;
/**
*
@@ -6228,7 +6321,7 @@ public int getDatabaseVersionValue() {
*/
public Builder setDatabaseVersionValue(int value) {
databaseVersion_ = value;
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00200000;
onChanged();
return this;
}
@@ -6273,7 +6366,7 @@ public Builder setDatabaseVersion(com.google.cloud.alloydb.v1beta.DatabaseVersio
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00200000;
databaseVersion_ = value.getNumber();
onChanged();
return this;
@@ -6294,7 +6387,7 @@ public Builder setDatabaseVersion(com.google.cloud.alloydb.v1beta.DatabaseVersio
* @return This builder for chaining.
*/
public Builder clearDatabaseVersion() {
- bitField0_ = (bitField0_ & ~0x00100000);
+ bitField0_ = (bitField0_ & ~0x00200000);
databaseVersion_ = 0;
onChanged();
return this;
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/BackupOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/BackupOrBuilder.java
index a8a933cffe6a..9eea5133d605 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/BackupOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/BackupOrBuilder.java
@@ -730,6 +730,19 @@ java.lang.String getAnnotationsOrDefault(
*/
com.google.cloud.alloydb.v1beta.Backup.QuantityBasedExpiryOrBuilder getExpiryQuantityOrBuilder();
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzs = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The satisfiesPzs.
+ */
+ boolean getSatisfiesPzs();
+
/**
*
*
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Cluster.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Cluster.java
index 033ec0e78397..c63fc5c962f7 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Cluster.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Cluster.java
@@ -581,7 +581,7 @@ public interface NetworkConfigOrBuilder
*
*
* - * Required. The resource link for the VPC network in which cluster + * Optional. The resource link for the VPC network in which cluster * resources are created and from which they are accessible via Private IP. * The network must belong to the same project as the cluster. It is * specified in the form: @@ -590,7 +590,7 @@ public interface NetworkConfigOrBuilder ** *
- * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
*
*
* @return The network.
@@ -600,7 +600,7 @@ public interface NetworkConfigOrBuilder
*
*
* - * Required. The resource link for the VPC network in which cluster + * Optional. The resource link for the VPC network in which cluster * resources are created and from which they are accessible via Private IP. * The network must belong to the same project as the cluster. It is * specified in the form: @@ -609,7 +609,7 @@ public interface NetworkConfigOrBuilder ** *
- * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for network.
@@ -625,8 +625,8 @@ public interface NetworkConfigOrBuilder
* instance IPs for this cluster will be created in the allocated range. The
* range name must comply with RFC 1035. Specifically, the name must be 1-63
* characters long and match the regular expression
- * [a-z]([-a-z0-9]*[a-z0-9])?.
- * Field name is intended to be consistent with CloudSQL.
+ * `[a-z]([-a-z0-9]*[a-z0-9])?`.
+ * Field name is intended to be consistent with Cloud SQL.
*
*
* string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -643,8 +643,8 @@ public interface NetworkConfigOrBuilder
* instance IPs for this cluster will be created in the allocated range. The
* range name must comply with RFC 1035. Specifically, the name must be 1-63
* characters long and match the regular expression
- * [a-z]([-a-z0-9]*[a-z0-9])?.
- * Field name is intended to be consistent with CloudSQL.
+ * `[a-z]([-a-z0-9]*[a-z0-9])?`.
+ * Field name is intended to be consistent with Cloud SQL.
*
*
* string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -706,7 +706,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* - * Required. The resource link for the VPC network in which cluster + * Optional. The resource link for the VPC network in which cluster * resources are created and from which they are accessible via Private IP. * The network must belong to the same project as the cluster. It is * specified in the form: @@ -715,7 +715,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { ** *
- * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
*
*
* @return The network.
@@ -736,7 +736,7 @@ public java.lang.String getNetwork() {
*
*
* - * Required. The resource link for the VPC network in which cluster + * Optional. The resource link for the VPC network in which cluster * resources are created and from which they are accessible via Private IP. * The network must belong to the same project as the cluster. It is * specified in the form: @@ -745,7 +745,7 @@ public java.lang.String getNetwork() { ** *
- * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for network.
@@ -776,8 +776,8 @@ public com.google.protobuf.ByteString getNetworkBytes() {
* instance IPs for this cluster will be created in the allocated range. The
* range name must comply with RFC 1035. Specifically, the name must be 1-63
* characters long and match the regular expression
- * [a-z]([-a-z0-9]*[a-z0-9])?.
- * Field name is intended to be consistent with CloudSQL.
+ * `[a-z]([-a-z0-9]*[a-z0-9])?`.
+ * Field name is intended to be consistent with Cloud SQL.
*
*
* string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -805,8 +805,8 @@ public java.lang.String getAllocatedIpRange() {
* instance IPs for this cluster will be created in the allocated range. The
* range name must comply with RFC 1035. Specifically, the name must be 1-63
* characters long and match the regular expression
- * [a-z]([-a-z0-9]*[a-z0-9])?.
- * Field name is intended to be consistent with CloudSQL.
+ * `[a-z]([-a-z0-9]*[a-z0-9])?`.
+ * Field name is intended to be consistent with Cloud SQL.
*
*
* string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1202,7 +1202,7 @@ public Builder mergeFrom(
*
*
* - * Required. The resource link for the VPC network in which cluster + * Optional. The resource link for the VPC network in which cluster * resources are created and from which they are accessible via Private IP. * The network must belong to the same project as the cluster. It is * specified in the form: @@ -1211,7 +1211,7 @@ public Builder mergeFrom( ** *
- * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
*
*
* @return The network.
@@ -1231,7 +1231,7 @@ public java.lang.String getNetwork() {
*
*
* - * Required. The resource link for the VPC network in which cluster + * Optional. The resource link for the VPC network in which cluster * resources are created and from which they are accessible via Private IP. * The network must belong to the same project as the cluster. It is * specified in the form: @@ -1240,7 +1240,7 @@ public java.lang.String getNetwork() { ** *
- * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for network.
@@ -1260,7 +1260,7 @@ public com.google.protobuf.ByteString getNetworkBytes() {
*
*
* - * Required. The resource link for the VPC network in which cluster + * Optional. The resource link for the VPC network in which cluster * resources are created and from which they are accessible via Private IP. * The network must belong to the same project as the cluster. It is * specified in the form: @@ -1269,7 +1269,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { ** *
- * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
*
*
* @param value The network to set.
@@ -1288,7 +1288,7 @@ public Builder setNetwork(java.lang.String value) {
*
*
* - * Required. The resource link for the VPC network in which cluster + * Optional. The resource link for the VPC network in which cluster * resources are created and from which they are accessible via Private IP. * The network must belong to the same project as the cluster. It is * specified in the form: @@ -1297,7 +1297,7 @@ public Builder setNetwork(java.lang.String value) { ** *
- * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
@@ -1312,7 +1312,7 @@ public Builder clearNetwork() {
*
*
* - * Required. The resource link for the VPC network in which cluster + * Optional. The resource link for the VPC network in which cluster * resources are created and from which they are accessible via Private IP. * The network must belong to the same project as the cluster. It is * specified in the form: @@ -1321,7 +1321,7 @@ public Builder clearNetwork() { ** *
- * string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ * string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for network to set.
@@ -1348,8 +1348,8 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
* instance IPs for this cluster will be created in the allocated range. The
* range name must comply with RFC 1035. Specifically, the name must be 1-63
* characters long and match the regular expression
- * [a-z]([-a-z0-9]*[a-z0-9])?.
- * Field name is intended to be consistent with CloudSQL.
+ * `[a-z]([-a-z0-9]*[a-z0-9])?`.
+ * Field name is intended to be consistent with Cloud SQL.
*
*
* string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1376,8 +1376,8 @@ public java.lang.String getAllocatedIpRange() {
* instance IPs for this cluster will be created in the allocated range. The
* range name must comply with RFC 1035. Specifically, the name must be 1-63
* characters long and match the regular expression
- * [a-z]([-a-z0-9]*[a-z0-9])?.
- * Field name is intended to be consistent with CloudSQL.
+ * `[a-z]([-a-z0-9]*[a-z0-9])?`.
+ * Field name is intended to be consistent with Cloud SQL.
*
*
* string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1404,8 +1404,8 @@ public com.google.protobuf.ByteString getAllocatedIpRangeBytes() {
* instance IPs for this cluster will be created in the allocated range. The
* range name must comply with RFC 1035. Specifically, the name must be 1-63
* characters long and match the regular expression
- * [a-z]([-a-z0-9]*[a-z0-9])?.
- * Field name is intended to be consistent with CloudSQL.
+ * `[a-z]([-a-z0-9]*[a-z0-9])?`.
+ * Field name is intended to be consistent with Cloud SQL.
*
*
* string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1431,8 +1431,8 @@ public Builder setAllocatedIpRange(java.lang.String value) {
* instance IPs for this cluster will be created in the allocated range. The
* range name must comply with RFC 1035. Specifically, the name must be 1-63
* characters long and match the regular expression
- * [a-z]([-a-z0-9]*[a-z0-9])?.
- * Field name is intended to be consistent with CloudSQL.
+ * `[a-z]([-a-z0-9]*[a-z0-9])?`.
+ * Field name is intended to be consistent with Cloud SQL.
*
*
* string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1454,8 +1454,8 @@ public Builder clearAllocatedIpRange() {
* instance IPs for this cluster will be created in the allocated range. The
* range name must comply with RFC 1035. Specifically, the name must be 1-63
* characters long and match the regular expression
- * [a-z]([-a-z0-9]*[a-z0-9])?.
- * Field name is intended to be consistent with CloudSQL.
+ * `[a-z]([-a-z0-9]*[a-z0-9])?`.
+ * Field name is intended to be consistent with Cloud SQL.
*
*
* string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -3780,7 +3780,7 @@ public com.google.cloud.alloydb.v1beta.Cluster.NetworkConfig getNetworkConfig()
*
*
* @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=546
+ * google/cloud/alloydb/v1beta/resources.proto;l=547
* @return The network.
*/
@java.lang.Override
@@ -3812,7 +3812,7 @@ public java.lang.String getNetwork() {
*
*
* @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=546
+ * google/cloud/alloydb/v1beta/resources.proto;l=547
* @return The bytes for network.
*/
@java.lang.Override
@@ -4153,7 +4153,7 @@ public com.google.cloud.alloydb.v1beta.AutomatedBackupPolicy getAutomatedBackupP
* .google.cloud.alloydb.v1beta.SslConfig ssl_config = 18 [deprecated = true];
*
* @deprecated google.cloud.alloydb.v1beta.Cluster.ssl_config is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=581
+ * google/cloud/alloydb/v1beta/resources.proto;l=582
* @return Whether the sslConfig field is set.
*/
@java.lang.Override
@@ -4171,7 +4171,7 @@ public boolean hasSslConfig() {
* .google.cloud.alloydb.v1beta.SslConfig ssl_config = 18 [deprecated = true];
*
* @deprecated google.cloud.alloydb.v1beta.Cluster.ssl_config is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=581
+ * google/cloud/alloydb/v1beta/resources.proto;l=582
* @return The sslConfig.
*/
@java.lang.Override
@@ -4544,6 +4544,24 @@ public com.google.cloud.alloydb.v1beta.Cluster.PrimaryConfig getPrimaryConfig()
: primaryConfig_;
}
+ public static final int SATISFIES_PZS_FIELD_NUMBER = 30;
+ private boolean satisfiesPzs_ = false;
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzs = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The satisfiesPzs.
+ */
+ @java.lang.Override
+ public boolean getSatisfiesPzs() {
+ return satisfiesPzs_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -4638,6 +4656,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(29, getNetworkConfig());
}
+ if (satisfiesPzs_ != false) {
+ output.writeBool(30, satisfiesPzs_);
+ }
getUnknownFields().writeTo(output);
}
@@ -4750,6 +4771,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getNetworkConfig());
}
+ if (satisfiesPzs_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, satisfiesPzs_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -4828,6 +4852,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasPrimaryConfig()) {
if (!getPrimaryConfig().equals(other.getPrimaryConfig())) return false;
}
+ if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false;
if (!getSourceCase().equals(other.getSourceCase())) return false;
switch (sourceCase_) {
case 15:
@@ -4928,6 +4953,8 @@ public int hashCode() {
hash = (37 * hash) + PRIMARY_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getPrimaryConfig().hashCode();
}
+ hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs());
switch (sourceCase_) {
case 15:
hash = (37 * hash) + BACKUP_SOURCE_FIELD_NUMBER;
@@ -5210,6 +5237,7 @@ public Builder clear() {
primaryConfigBuilder_.dispose();
primaryConfigBuilder_ = null;
}
+ satisfiesPzs_ = false;
sourceCase_ = 0;
source_ = null;
return this;
@@ -5352,6 +5380,9 @@ private void buildPartial0(com.google.cloud.alloydb.v1beta.Cluster result) {
primaryConfigBuilder_ == null ? primaryConfig_ : primaryConfigBuilder_.build();
to_bitField0_ |= 0x00001000;
}
+ if (((from_bitField0_ & 0x04000000) != 0)) {
+ result.satisfiesPzs_ = satisfiesPzs_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -5491,6 +5522,9 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Cluster other) {
if (other.hasPrimaryConfig()) {
mergePrimaryConfig(other.getPrimaryConfig());
}
+ if (other.getSatisfiesPzs() != false) {
+ setSatisfiesPzs(other.getSatisfiesPzs());
+ }
switch (other.getSourceCase()) {
case BACKUP_SOURCE:
{
@@ -5705,6 +5739,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00001000;
break;
} // case 234
+ case 240:
+ {
+ satisfiesPzs_ = input.readBool();
+ bitField0_ |= 0x04000000;
+ break;
+ } // case 240
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -7813,7 +7853,7 @@ public com.google.cloud.alloydb.v1beta.Cluster.NetworkConfig.Builder getNetworkC
*
*
* @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=546
+ * google/cloud/alloydb/v1beta/resources.proto;l=547
* @return The network.
*/
@java.lang.Deprecated
@@ -7844,7 +7884,7 @@ public java.lang.String getNetwork() {
*
*
* @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=546
+ * google/cloud/alloydb/v1beta/resources.proto;l=547
* @return The bytes for network.
*/
@java.lang.Deprecated
@@ -7875,7 +7915,7 @@ public com.google.protobuf.ByteString getNetworkBytes() {
*
*
* @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=546
+ * google/cloud/alloydb/v1beta/resources.proto;l=547
* @param value The network to set.
* @return This builder for chaining.
*/
@@ -7905,7 +7945,7 @@ public Builder setNetwork(java.lang.String value) {
*
*
* @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=546
+ * google/cloud/alloydb/v1beta/resources.proto;l=547
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -7931,7 +7971,7 @@ public Builder clearNetwork() {
*
*
* @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=546
+ * google/cloud/alloydb/v1beta/resources.proto;l=547
* @param value The bytes for network to set.
* @return This builder for chaining.
*/
@@ -8772,7 +8812,7 @@ public Builder clearAutomatedBackupPolicy() {
* .google.cloud.alloydb.v1beta.SslConfig ssl_config = 18 [deprecated = true];
*
* @deprecated google.cloud.alloydb.v1beta.Cluster.ssl_config is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=581
+ * google/cloud/alloydb/v1beta/resources.proto;l=582
* @return Whether the sslConfig field is set.
*/
@java.lang.Deprecated
@@ -8789,7 +8829,7 @@ public boolean hasSslConfig() {
* .google.cloud.alloydb.v1beta.SslConfig ssl_config = 18 [deprecated = true];
*
* @deprecated google.cloud.alloydb.v1beta.Cluster.ssl_config is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=581
+ * google/cloud/alloydb/v1beta/resources.proto;l=582
* @return The sslConfig.
*/
@java.lang.Deprecated
@@ -10215,6 +10255,59 @@ public com.google.cloud.alloydb.v1beta.Cluster.PrimaryConfig.Builder getPrimaryC
return primaryConfigBuilder_;
}
+ private boolean satisfiesPzs_;
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzs = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The satisfiesPzs.
+ */
+ @java.lang.Override
+ public boolean getSatisfiesPzs() {
+ return satisfiesPzs_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzs = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The satisfiesPzs to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSatisfiesPzs(boolean value) {
+
+ satisfiesPzs_ = value;
+ bitField0_ |= 0x04000000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzs = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSatisfiesPzs() {
+ bitField0_ = (bitField0_ & ~0x04000000);
+ satisfiesPzs_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ClusterOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ClusterOrBuilder.java
index 0892764f58d9..591d8757c967 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ClusterOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ClusterOrBuilder.java
@@ -503,7 +503,7 @@ java.lang.String getLabelsOrDefault(
*
*
* @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=546
+ * google/cloud/alloydb/v1beta/resources.proto;l=547
* @return The network.
*/
@java.lang.Deprecated
@@ -524,7 +524,7 @@ java.lang.String getLabelsOrDefault(
*
*
* @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=546
+ * google/cloud/alloydb/v1beta/resources.proto;l=547
* @return The bytes for network.
*/
@java.lang.Deprecated
@@ -748,7 +748,7 @@ java.lang.String getAnnotationsOrDefault(
* .google.cloud.alloydb.v1beta.SslConfig ssl_config = 18 [deprecated = true];
*
* @deprecated google.cloud.alloydb.v1beta.Cluster.ssl_config is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=581
+ * google/cloud/alloydb/v1beta/resources.proto;l=582
* @return Whether the sslConfig field is set.
*/
@java.lang.Deprecated
@@ -763,7 +763,7 @@ java.lang.String getAnnotationsOrDefault(
* .google.cloud.alloydb.v1beta.SslConfig ssl_config = 18 [deprecated = true];
*
* @deprecated google.cloud.alloydb.v1beta.Cluster.ssl_config is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=581
+ * google/cloud/alloydb/v1beta/resources.proto;l=582
* @return The sslConfig.
*/
@java.lang.Deprecated
@@ -1033,5 +1033,18 @@ java.lang.String getAnnotationsOrDefault(
*/
com.google.cloud.alloydb.v1beta.Cluster.PrimaryConfigOrBuilder getPrimaryConfigOrBuilder();
+ /**
+ *
+ *
+ * + * Output only. Reserved for future use. + *+ * + *
bool satisfies_pzs = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The satisfiesPzs.
+ */
+ boolean getSatisfiesPzs();
+
com.google.cloud.alloydb.v1beta.Cluster.SourceCase getSourceCase();
}
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 1bed0003d536..331ed31de8e0 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
@@ -42,8 +42,10 @@ private ConnectionInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder
private ConnectionInfo() {
name_ = "";
ipAddress_ = "";
+ publicIpAddress_ = "";
pemCertificateChain_ = com.google.protobuf.LazyStringArrayList.emptyList();
instanceUid_ = "";
+ pscDnsName_ = "";
}
@java.lang.Override
@@ -177,6 +179,65 @@ public com.google.protobuf.ByteString getIpAddressBytes() {
}
}
+ public static final int PUBLIC_IP_ADDRESS_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object publicIpAddress_ = "";
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
+ * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The publicIpAddress.
+ */
+ @java.lang.Override
+ public java.lang.String getPublicIpAddress() {
+ java.lang.Object ref = publicIpAddress_;
+ 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();
+ publicIpAddress_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
+ * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The bytes for publicIpAddress.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPublicIpAddressBytes() {
+ java.lang.Object ref = publicIpAddress_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ publicIpAddress_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int PEM_CERTIFICATE_CHAIN_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
@@ -195,7 +256,7 @@ public com.google.protobuf.ByteString getIpAddressBytes() {
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=912
+ * google/cloud/alloydb/v1beta/resources.proto;l=1015
* @return A list containing the pemCertificateChain.
*/
@java.lang.Deprecated
@@ -215,7 +276,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=912
+ * google/cloud/alloydb/v1beta/resources.proto;l=1015
* @return The count of pemCertificateChain.
*/
@java.lang.Deprecated
@@ -235,7 +296,7 @@ public int getPemCertificateChainCount() {
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=912
+ * google/cloud/alloydb/v1beta/resources.proto;l=1015
* @param index The index of the element to return.
* @return The pemCertificateChain at the given index.
*/
@@ -256,7 +317,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=912
+ * google/cloud/alloydb/v1beta/resources.proto;l=1015
* @param index The index of the value to return.
* @return The bytes of the pemCertificateChain at the given index.
*/
@@ -316,6 +377,57 @@ public com.google.protobuf.ByteString getInstanceUidBytes() {
}
}
+ public static final int PSC_DNS_NAME_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pscDnsName_ = "";
+ /**
+ *
+ *
+ * + * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The pscDnsName.
+ */
+ @java.lang.Override
+ public java.lang.String getPscDnsName() {
+ java.lang.Object ref = pscDnsName_;
+ 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();
+ pscDnsName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for pscDnsName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPscDnsNameBytes() {
+ java.lang.Object ref = pscDnsName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pscDnsName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -342,6 +454,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceUid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, instanceUid_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIpAddress_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publicIpAddress_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pscDnsName_);
+ }
getUnknownFields().writeTo(output);
}
@@ -368,6 +486,12 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceUid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, instanceUid_);
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIpAddress_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publicIpAddress_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pscDnsName_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -386,8 +510,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getName().equals(other.getName())) return false;
if (!getIpAddress().equals(other.getIpAddress())) return false;
+ if (!getPublicIpAddress().equals(other.getPublicIpAddress())) return false;
if (!getPemCertificateChainList().equals(other.getPemCertificateChainList())) return false;
if (!getInstanceUid().equals(other.getInstanceUid())) return false;
+ if (!getPscDnsName().equals(other.getPscDnsName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -403,12 +529,16 @@ public int hashCode() {
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getIpAddress().hashCode();
+ hash = (37 * hash) + PUBLIC_IP_ADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getPublicIpAddress().hashCode();
if (getPemCertificateChainCount() > 0) {
hash = (37 * hash) + PEM_CERTIFICATE_CHAIN_FIELD_NUMBER;
hash = (53 * hash) + getPemCertificateChainList().hashCode();
}
hash = (37 * hash) + INSTANCE_UID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceUid().hashCode();
+ hash = (37 * hash) + PSC_DNS_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getPscDnsName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -551,8 +681,10 @@ public Builder clear() {
bitField0_ = 0;
name_ = "";
ipAddress_ = "";
+ publicIpAddress_ = "";
pemCertificateChain_ = com.google.protobuf.LazyStringArrayList.emptyList();
instanceUid_ = "";
+ pscDnsName_ = "";
return this;
}
@@ -596,12 +728,18 @@ private void buildPartial0(com.google.cloud.alloydb.v1beta.ConnectionInfo result
result.ipAddress_ = ipAddress_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.publicIpAddress_ = publicIpAddress_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
pemCertificateChain_.makeImmutable();
result.pemCertificateChain_ = pemCertificateChain_;
}
- if (((from_bitField0_ & 0x00000008) != 0)) {
+ if (((from_bitField0_ & 0x00000010) != 0)) {
result.instanceUid_ = instanceUid_;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.pscDnsName_ = pscDnsName_;
+ }
}
@java.lang.Override
@@ -659,10 +797,15 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.ConnectionInfo other) {
bitField0_ |= 0x00000002;
onChanged();
}
+ if (!other.getPublicIpAddress().isEmpty()) {
+ publicIpAddress_ = other.publicIpAddress_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
if (!other.pemCertificateChain_.isEmpty()) {
if (pemCertificateChain_.isEmpty()) {
pemCertificateChain_ = other.pemCertificateChain_;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
} else {
ensurePemCertificateChainIsMutable();
pemCertificateChain_.addAll(other.pemCertificateChain_);
@@ -671,7 +814,12 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.ConnectionInfo other) {
}
if (!other.getInstanceUid().isEmpty()) {
instanceUid_ = other.instanceUid_;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ if (!other.getPscDnsName().isEmpty()) {
+ pscDnsName_ = other.pscDnsName_;
+ bitField0_ |= 0x00000020;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -722,9 +870,21 @@ public Builder mergeFrom(
case 34:
{
instanceUid_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
break;
} // case 34
+ case 42:
+ {
+ publicIpAddress_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 42
+ case 50:
+ {
+ pscDnsName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -976,6 +1136,132 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object publicIpAddress_ = "";
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
+ * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The publicIpAddress.
+ */
+ public java.lang.String getPublicIpAddress() {
+ java.lang.Object ref = publicIpAddress_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ publicIpAddress_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
+ * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The bytes for publicIpAddress.
+ */
+ public com.google.protobuf.ByteString getPublicIpAddressBytes() {
+ java.lang.Object ref = publicIpAddress_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ publicIpAddress_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
+ * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @param value The publicIpAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPublicIpAddress(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ publicIpAddress_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
+ * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPublicIpAddress() {
+ publicIpAddress_ = getDefaultInstance().getPublicIpAddress();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
+ * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @param value The bytes for publicIpAddress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPublicIpAddressBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ publicIpAddress_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
private com.google.protobuf.LazyStringArrayList pemCertificateChain_ =
com.google.protobuf.LazyStringArrayList.emptyList();
@@ -983,7 +1269,7 @@ private void ensurePemCertificateChainIsMutable() {
if (!pemCertificateChain_.isModifiable()) {
pemCertificateChain_ = new com.google.protobuf.LazyStringArrayList(pemCertificateChain_);
}
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
}
/**
*
@@ -998,7 +1284,7 @@ private void ensurePemCertificateChainIsMutable() {
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1beta/resources.proto;l=912
+ * See google/cloud/alloydb/v1beta/resources.proto;l=1015
* @return A list containing the pemCertificateChain.
*/
@java.lang.Deprecated
@@ -1019,7 +1305,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=912
+ * See google/cloud/alloydb/v1beta/resources.proto;l=1015
* @return The count of pemCertificateChain.
*/
@java.lang.Deprecated
@@ -1039,7 +1325,7 @@ public int getPemCertificateChainCount() {
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.
- * See google/cloud/alloydb/v1beta/resources.proto;l=912
+ * See google/cloud/alloydb/v1beta/resources.proto;l=1015
* @param index The index of the element to return.
* @return The pemCertificateChain at the given index.
*/
@@ -1060,7 +1346,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=912
+ * See google/cloud/alloydb/v1beta/resources.proto;l=1015
* @param index The index of the value to return.
* @return The bytes of the pemCertificateChain at the given index.
*/
@@ -1081,7 +1367,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=912
+ * See google/cloud/alloydb/v1beta/resources.proto;l=1015
* @param index The index to set the value at.
* @param value The pemCertificateChain to set.
* @return This builder for chaining.
@@ -1093,7 +1379,7 @@ public Builder setPemCertificateChain(int index, java.lang.String value) {
}
ensurePemCertificateChainIsMutable();
pemCertificateChain_.set(index, value);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1110,7 +1396,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=912
+ * See google/cloud/alloydb/v1beta/resources.proto;l=1015
* @param value The pemCertificateChain to add.
* @return This builder for chaining.
*/
@@ -1121,7 +1407,7 @@ public Builder addPemCertificateChain(java.lang.String value) {
}
ensurePemCertificateChainIsMutable();
pemCertificateChain_.add(value);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1138,7 +1424,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=912
+ * See google/cloud/alloydb/v1beta/resources.proto;l=1015
* @param values The pemCertificateChain to add.
* @return This builder for chaining.
*/
@@ -1146,7 +1432,7 @@ public Builder addPemCertificateChain(java.lang.String value) {
public Builder addAllPemCertificateChain(java.lang.Iterable+ * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The pscDnsName.
+ */
+ public java.lang.String getPscDnsName() {
+ java.lang.Object ref = pscDnsName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pscDnsName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for pscDnsName.
+ */
+ public com.google.protobuf.ByteString getPscDnsNameBytes() {
+ java.lang.Object ref = pscDnsName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pscDnsName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The pscDnsName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPscDnsName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pscDnsName_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPscDnsName() {
+ pscDnsName_ = getDefaultInstance().getPscDnsName();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for pscDnsName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPscDnsNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ pscDnsName_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java
index 20be7db3c788..f1968c8ee273 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java
@@ -82,6 +82,39 @@ public interface ConnectionInfoOrBuilder
*/
com.google.protobuf.ByteString getIpAddressBytes();
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
+ * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The publicIpAddress.
+ */
+ java.lang.String getPublicIpAddress();
+ /**
+ *
+ *
+ * + * Output only. The public IP addresses for the Instance. This is available + * ONLY when enable_public_ip is set. This is the connection endpoint for an + * end-user application. + *+ * + *
+ * string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The bytes for publicIpAddress.
+ */
+ com.google.protobuf.ByteString getPublicIpAddressBytes();
+
/**
*
*
@@ -95,7 +128,7 @@ public interface ConnectionInfoOrBuilder
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=912
+ * google/cloud/alloydb/v1beta/resources.proto;l=1015
* @return A list containing the pemCertificateChain.
*/
@java.lang.Deprecated
@@ -113,7 +146,7 @@ public interface ConnectionInfoOrBuilder
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=912
+ * google/cloud/alloydb/v1beta/resources.proto;l=1015
* @return The count of pemCertificateChain.
*/
@java.lang.Deprecated
@@ -131,7 +164,7 @@ public interface ConnectionInfoOrBuilder
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=912
+ * google/cloud/alloydb/v1beta/resources.proto;l=1015
* @param index The index of the element to return.
* @return The pemCertificateChain at the given index.
*/
@@ -150,7 +183,7 @@ public interface ConnectionInfoOrBuilder
*
*
* @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See
- * google/cloud/alloydb/v1beta/resources.proto;l=912
+ * google/cloud/alloydb/v1beta/resources.proto;l=1015
* @param index The index of the value to return.
* @return The bytes of the pemCertificateChain at the given index.
*/
@@ -181,4 +214,29 @@ public interface ConnectionInfoOrBuilder
* @return The bytes for instanceUid.
*/
com.google.protobuf.ByteString getInstanceUidBytes();
+
+ /**
+ *
+ *
+ * + * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The pscDnsName.
+ */
+ java.lang.String getPscDnsName();
+ /**
+ *
+ *
+ * + * Output only. The DNS name to use with PSC for the Instance. + *+ * + *
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for pscDnsName.
+ */
+ com.google.protobuf.ByteString getPscDnsNameBytes();
}
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Database.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Database.java
new file mode 100644
index 000000000000..864010b3ab0c
--- /dev/null
+++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Database.java
@@ -0,0 +1,1022 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/alloydb/v1beta/resources.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.alloydb.v1beta;
+
+/**
+ *
+ *
+ * + * Message describing Database object. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Database} + */ +public final class Database extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Database) + DatabaseOrBuilder { + private static final long serialVersionUID = 0L; + // Use Database.newBuilder() to construct. + private Database(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Database() { + name_ = ""; + charset_ = ""; + collation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Database(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Database_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Database_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Database.class, + com.google.cloud.alloydb.v1beta.Database.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+ * Identifier. Name of the resource in the form of + * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`. + *+ * + *
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Identifier. Name of the resource in the form of + * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`. + *+ * + *
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHARSET_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object charset_ = "";
+ /**
+ *
+ *
+ * + * Optional. Charset for the database. + * This field can contain any PostgreSQL supported charset name. + * Example values include "UTF8", "SQL_ASCII", etc. + *+ * + *
string charset = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The charset.
+ */
+ @java.lang.Override
+ public java.lang.String getCharset() {
+ java.lang.Object ref = charset_;
+ 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();
+ charset_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Charset for the database. + * This field can contain any PostgreSQL supported charset name. + * Example values include "UTF8", "SQL_ASCII", etc. + *+ * + *
string charset = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for charset.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCharsetBytes() {
+ java.lang.Object ref = charset_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ charset_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COLLATION_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object collation_ = "";
+ /**
+ *
+ *
+ * + * Optional. Collation for the database. + * Name of the custom or native collation for postgres. + * Example values include "C", "POSIX", etc + *+ * + *
string collation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The collation.
+ */
+ @java.lang.Override
+ public java.lang.String getCollation() {
+ java.lang.Object ref = collation_;
+ 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();
+ collation_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Collation for the database. + * Name of the custom or native collation for postgres. + * Example values include "C", "POSIX", etc + *+ * + *
string collation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for collation.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCollationBytes() {
+ java.lang.Object ref = collation_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ collation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(charset_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, charset_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, collation_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(charset_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, charset_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, collation_);
+ }
+ 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.Database)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.alloydb.v1beta.Database other = (com.google.cloud.alloydb.v1beta.Database) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getCharset().equals(other.getCharset())) return false;
+ if (!getCollation().equals(other.getCollation())) 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) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + CHARSET_FIELD_NUMBER;
+ hash = (53 * hash) + getCharset().hashCode();
+ hash = (37 * hash) + COLLATION_FIELD_NUMBER;
+ hash = (53 * hash) + getCollation().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Database parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Database 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.Database parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Database 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.Database parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Database 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.Database parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Database parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Database parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Database parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Database parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Database parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.Database 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Message describing Database object. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Database} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Identifier. Name of the resource in the form of + * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`. + *+ * + *
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Identifier. Name of the resource in the form of + * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`. + *+ * + *
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Identifier. Name of the resource in the form of + * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`. + *+ * + *
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Identifier. Name of the resource in the form of + * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`. + *+ * + *
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Identifier. Name of the resource in the form of + * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`. + *+ * + *
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object charset_ = "";
+ /**
+ *
+ *
+ * + * Optional. Charset for the database. + * This field can contain any PostgreSQL supported charset name. + * Example values include "UTF8", "SQL_ASCII", etc. + *+ * + *
string charset = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The charset.
+ */
+ public java.lang.String getCharset() {
+ java.lang.Object ref = charset_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ charset_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Charset for the database. + * This field can contain any PostgreSQL supported charset name. + * Example values include "UTF8", "SQL_ASCII", etc. + *+ * + *
string charset = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for charset.
+ */
+ public com.google.protobuf.ByteString getCharsetBytes() {
+ java.lang.Object ref = charset_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ charset_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Charset for the database. + * This field can contain any PostgreSQL supported charset name. + * Example values include "UTF8", "SQL_ASCII", etc. + *+ * + *
string charset = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The charset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharset(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ charset_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Charset for the database. + * This field can contain any PostgreSQL supported charset name. + * Example values include "UTF8", "SQL_ASCII", etc. + *+ * + *
string charset = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCharset() {
+ charset_ = getDefaultInstance().getCharset();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Charset for the database. + * This field can contain any PostgreSQL supported charset name. + * Example values include "UTF8", "SQL_ASCII", etc. + *+ * + *
string charset = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for charset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharsetBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ charset_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object collation_ = "";
+ /**
+ *
+ *
+ * + * Optional. Collation for the database. + * Name of the custom or native collation for postgres. + * Example values include "C", "POSIX", etc + *+ * + *
string collation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The collation.
+ */
+ public java.lang.String getCollation() {
+ java.lang.Object ref = collation_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ collation_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Collation for the database. + * Name of the custom or native collation for postgres. + * Example values include "C", "POSIX", etc + *+ * + *
string collation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for collation.
+ */
+ public com.google.protobuf.ByteString getCollationBytes() {
+ java.lang.Object ref = collation_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ collation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Collation for the database. + * Name of the custom or native collation for postgres. + * Example values include "C", "POSIX", etc + *+ * + *
string collation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The collation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCollation(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ collation_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Collation for the database. + * Name of the custom or native collation for postgres. + * Example values include "C", "POSIX", etc + *+ * + *
string collation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCollation() {
+ collation_ = getDefaultInstance().getCollation();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Collation for the database. + * Name of the custom or native collation for postgres. + * Example values include "C", "POSIX", etc + *+ * + *
string collation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for collation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCollationBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ collation_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Database)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Database)
+ private static final com.google.cloud.alloydb.v1beta.Database DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Database();
+ }
+
+ public static com.google.cloud.alloydb.v1beta.Database getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Identifier. Name of the resource in the form of + * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`. + *+ * + *
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Identifier. Name of the resource in the form of + * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`. + *+ * + *
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Charset for the database. + * This field can contain any PostgreSQL supported charset name. + * Example values include "UTF8", "SQL_ASCII", etc. + *+ * + *
string charset = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The charset.
+ */
+ java.lang.String getCharset();
+ /**
+ *
+ *
+ * + * Optional. Charset for the database. + * This field can contain any PostgreSQL supported charset name. + * Example values include "UTF8", "SQL_ASCII", etc. + *+ * + *
string charset = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for charset.
+ */
+ com.google.protobuf.ByteString getCharsetBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Collation for the database. + * Name of the custom or native collation for postgres. + * Example values include "C", "POSIX", etc + *+ * + *
string collation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The collation.
+ */
+ java.lang.String getCollation();
+ /**
+ *
+ *
+ * + * Optional. Collation for the database. + * Name of the custom or native collation for postgres. + * Example values include "C", "POSIX", etc + *+ * + *
string collation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for collation.
+ */
+ com.google.protobuf.ByteString getCollationBytes();
+}
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequest.java
index f5bb914ec7ba..64c2299bb28d 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequest.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequest.java
@@ -209,13 +209,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
*
*
* - * Optional. A pem-encoded X.509 certificate signing request (CSR). + * Optional. A pem-encoded X.509 certificate signing request (CSR). It is + * recommended to use public_key instead. ** *
string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
*
* @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is deprecated.
- * See google/cloud/alloydb/v1beta/service.proto;l=1351
+ * See google/cloud/alloydb/v1beta/service.proto;l=1360
* @return The pemCsr.
*/
@java.lang.Override
@@ -235,13 +236,14 @@ public java.lang.String getPemCsr() {
*
*
* - * Optional. A pem-encoded X.509 certificate signing request (CSR). + * Optional. A pem-encoded X.509 certificate signing request (CSR). It is + * recommended to use public_key instead. ** *
string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
*
* @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is deprecated.
- * See google/cloud/alloydb/v1beta/service.proto;l=1351
+ * See google/cloud/alloydb/v1beta/service.proto;l=1360
* @return The bytes for pemCsr.
*/
@java.lang.Override
@@ -1172,13 +1174,14 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
*
*
* - * Optional. A pem-encoded X.509 certificate signing request (CSR). + * Optional. A pem-encoded X.509 certificate signing request (CSR). It is + * recommended to use public_key instead. ** *
string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
*
* @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is
- * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1351
+ * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1360
* @return The pemCsr.
*/
@java.lang.Deprecated
@@ -1197,13 +1200,14 @@ public java.lang.String getPemCsr() {
*
*
* - * Optional. A pem-encoded X.509 certificate signing request (CSR). + * Optional. A pem-encoded X.509 certificate signing request (CSR). It is + * recommended to use public_key instead. ** *
string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
*
* @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is
- * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1351
+ * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1360
* @return The bytes for pemCsr.
*/
@java.lang.Deprecated
@@ -1222,13 +1226,14 @@ public com.google.protobuf.ByteString getPemCsrBytes() {
*
*
* - * Optional. A pem-encoded X.509 certificate signing request (CSR). + * Optional. A pem-encoded X.509 certificate signing request (CSR). It is + * recommended to use public_key instead. ** *
string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
*
* @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is
- * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1351
+ * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1360
* @param value The pemCsr to set.
* @return This builder for chaining.
*/
@@ -1246,13 +1251,14 @@ public Builder setPemCsr(java.lang.String value) {
*
*
* - * Optional. A pem-encoded X.509 certificate signing request (CSR). + * Optional. A pem-encoded X.509 certificate signing request (CSR). It is + * recommended to use public_key instead. ** *
string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
*
* @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is
- * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1351
+ * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1360
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -1266,13 +1272,14 @@ public Builder clearPemCsr() {
*
*
* - * Optional. A pem-encoded X.509 certificate signing request (CSR). + * Optional. A pem-encoded X.509 certificate signing request (CSR). It is + * recommended to use public_key instead. ** *
string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
*
* @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is
- * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1351
+ * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1360
* @param value The bytes for pemCsr to set.
* @return This builder for chaining.
*/
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequestOrBuilder.java
index 31ff36258dba..170076c25a6f 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequestOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequestOrBuilder.java
@@ -108,13 +108,14 @@ public interface GenerateClientCertificateRequestOrBuilder
*
*
* - * Optional. A pem-encoded X.509 certificate signing request (CSR). + * Optional. A pem-encoded X.509 certificate signing request (CSR). It is + * recommended to use public_key instead. ** *
string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
*
* @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is deprecated.
- * See google/cloud/alloydb/v1beta/service.proto;l=1351
+ * See google/cloud/alloydb/v1beta/service.proto;l=1360
* @return The pemCsr.
*/
@java.lang.Deprecated
@@ -123,13 +124,14 @@ public interface GenerateClientCertificateRequestOrBuilder
*
*
* - * Optional. A pem-encoded X.509 certificate signing request (CSR). + * Optional. A pem-encoded X.509 certificate signing request (CSR). It is + * recommended to use public_key instead. ** *
string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
*
* @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is deprecated.
- * See google/cloud/alloydb/v1beta/service.proto;l=1351
+ * See google/cloud/alloydb/v1beta/service.proto;l=1360
* @return The bytes for pemCsr.
*/
@java.lang.Deprecated
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponse.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponse.java
index c9fda592e68b..9ef32728a0d1 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponse.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponse.java
@@ -77,11 +77,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* Output only. The pem-encoded, signed X.509 certificate.
*
*
- * string pem_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * string pem_certificate = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
+ * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is
+ * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1383
* @return The pemCertificate.
*/
@java.lang.Override
+ @java.lang.Deprecated
public java.lang.String getPemCertificate() {
java.lang.Object ref = pemCertificate_;
if (ref instanceof java.lang.String) {
@@ -100,11 +105,16 @@ public java.lang.String getPemCertificate() {
* Output only. The pem-encoded, signed X.509 certificate.
*
*
- * string pem_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * string pem_certificate = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
+ * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is
+ * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1383
* @return The bytes for pemCertificate.
*/
@java.lang.Override
+ @java.lang.Deprecated
public com.google.protobuf.ByteString getPemCertificateBytes() {
java.lang.Object ref = pemCertificate_;
if (ref instanceof java.lang.String) {
@@ -659,10 +669,15 @@ public Builder mergeFrom(
* Output only. The pem-encoded, signed X.509 certificate.
*
*
- * string pem_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * string pem_certificate = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
+ * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is
+ * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1383
* @return The pemCertificate.
*/
+ @java.lang.Deprecated
public java.lang.String getPemCertificate() {
java.lang.Object ref = pemCertificate_;
if (!(ref instanceof java.lang.String)) {
@@ -681,10 +696,15 @@ public java.lang.String getPemCertificate() {
* Output only. The pem-encoded, signed X.509 certificate.
*
*
- * string pem_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * string pem_certificate = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
+ * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is
+ * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1383
* @return The bytes for pemCertificate.
*/
+ @java.lang.Deprecated
public com.google.protobuf.ByteString getPemCertificateBytes() {
java.lang.Object ref = pemCertificate_;
if (ref instanceof String) {
@@ -703,11 +723,16 @@ public com.google.protobuf.ByteString getPemCertificateBytes() {
* Output only. The pem-encoded, signed X.509 certificate.
*
*
- * string pem_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * string pem_certificate = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
+ * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is
+ * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1383
* @param value The pemCertificate to set.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder setPemCertificate(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
@@ -724,10 +749,15 @@ public Builder setPemCertificate(java.lang.String value) {
* Output only. The pem-encoded, signed X.509 certificate.
*
*
- * string pem_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * string pem_certificate = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
+ * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is
+ * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1383
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder clearPemCertificate() {
pemCertificate_ = getDefaultInstance().getPemCertificate();
bitField0_ = (bitField0_ & ~0x00000001);
@@ -741,11 +771,16 @@ public Builder clearPemCertificate() {
* Output only. The pem-encoded, signed X.509 certificate.
*
*
- * string pem_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * string pem_certificate = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
+ * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is
+ * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1383
* @param value The bytes for pemCertificate to set.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder setPemCertificateBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponseOrBuilder.java
index 2beba3be98e4..99ecea06368f 100644
--- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponseOrBuilder.java
+++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponseOrBuilder.java
@@ -31,10 +31,15 @@ public interface GenerateClientCertificateResponseOrBuilder
* Output only. The pem-encoded, signed X.509 certificate.
*
*
- * string pem_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * string pem_certificate = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
+ * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is
+ * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1383
* @return The pemCertificate.
*/
+ @java.lang.Deprecated
java.lang.String getPemCertificate();
/**
*
@@ -43,10 +48,15 @@ public interface GenerateClientCertificateResponseOrBuilder
* Output only. The pem-encoded, signed X.509 certificate.
*
*
- * string pem_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * string pem_certificate = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
+ * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is
+ * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1383
* @return The bytes for pemCertificate.
*/
+ @java.lang.Deprecated
com.google.protobuf.ByteString getPemCertificateBytes();
/**
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 c4280af30001..d8d005ac3dfe 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
@@ -49,6 +49,7 @@ private Instance() {
gceZone_ = "";
nodes_ = java.util.Collections.emptyList();
ipAddress_ = "";
+ publicIpAddress_ = "";
etag_ = "";
}
@@ -5847,833 +5848,6480 @@ public com.google.protobuf.Parser- * Output only. The name of the instance resource with the format: - * * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} - * where the cluster and instance ID segments should satisfy the regex - * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of - * lowercase letters, numbers, and dashes, starting with a letter, and ending - * with a letter or number. For more details see https://google.aip.dev/122. - * The prefix of the instance resource name is the name of the parent - * resource: - * * projects/{project}/locations/{region}/clusters/{cluster_id} - *- * - *
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- 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();
- name_ = s;
- return s;
- }
+ /**
+ *
+ *
+ * + * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *
repeated string consumer_endpoint_ips = 1;
+ *
+ * @return A list containing the consumerEndpointIps.
+ */
+ java.util.List+ * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *
repeated string consumer_endpoint_ips = 1;
+ *
+ * @return The count of consumerEndpointIps.
+ */
+ int getConsumerEndpointIpsCount();
+ /**
+ *
+ *
+ * + * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *
repeated string consumer_endpoint_ips = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The consumerEndpointIps at the given index.
+ */
+ java.lang.String getConsumerEndpointIps(int index);
+ /**
+ *
+ *
+ * + * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *
repeated string consumer_endpoint_ips = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the consumerEndpointIps at the given index.
+ */
+ com.google.protobuf.ByteString getConsumerEndpointIpsBytes(int index);
+
+ /**
+ *
+ *
+ * + * The NetworkAttachment resource created in the consumer VPC to which the + * PSC interface will be linked, in the form of: + * `projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}`. + * NetworkAttachment has to be provided when the PSC interface is created. + *+ * + *
string network_attachment = 2;
+ *
+ * @return The networkAttachment.
+ */
+ java.lang.String getNetworkAttachment();
+ /**
+ *
+ *
+ * + * The NetworkAttachment resource created in the consumer VPC to which the + * PSC interface will be linked, in the form of: + * `projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}`. + * NetworkAttachment has to be provided when the PSC interface is created. + *+ * + *
string network_attachment = 2;
+ *
+ * @return The bytes for networkAttachment.
+ */
+ com.google.protobuf.ByteString getNetworkAttachmentBytes();
}
/**
*
*
* - * Output only. The name of the instance resource with the format: - * * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} - * where the cluster and instance ID segments should satisfy the regex - * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of - * lowercase letters, numbers, and dashes, starting with a letter, and ending - * with a letter or number. For more details see https://google.aip.dev/122. - * The prefix of the instance resource name is the name of the parent - * resource: - * * projects/{project}/locations/{region}/clusters/{cluster_id} + * Configuration for setting up a PSC interface. This information needs to be + * provided by the customer. + * PSC interfaces will be created and added to VMs via SLM (adding a network + * interface will require recreating the VM). For HA instances this will be + * done via LDTM. ** - *
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- * @return The bytes for name.
+ * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig}
*/
- @java.lang.Override
- public com.google.protobuf.ByteString getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ public static final class PscInterfaceConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig)
+ PscInterfaceConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PscInterfaceConfig.newBuilder() to construct.
+ private PscInterfaceConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
}
- }
- public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
+ private PscInterfaceConfig() {
+ consumerEndpointIps_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ networkAttachment_ = "";
+ }
- @SuppressWarnings("serial")
- private volatile java.lang.Object displayName_ = "";
- /**
- *
- *
- * - * User-settable and human-readable display name for the Instance. - *- * - *
string display_name = 2;
- *
- * @return The displayName.
- */
- @java.lang.Override
- public java.lang.String getDisplayName() {
- java.lang.Object ref = displayName_;
- 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();
- displayName_ = s;
- return s;
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new PscInterfaceConfig();
}
- }
- /**
- *
- *
- * - * User-settable and human-readable display name for the Instance. - *- * - *
string display_name = 2;
- *
- * @return The bytes for displayName.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getDisplayNameBytes() {
- java.lang.Object ref = displayName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- displayName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.alloydb.v1beta.ResourcesProto
+ .internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_descriptor;
}
- }
- public static final int UID_FIELD_NUMBER = 3;
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.alloydb.v1beta.ResourcesProto
+ .internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.class,
+ com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder.class);
+ }
- @SuppressWarnings("serial")
- private volatile java.lang.Object uid_ = "";
- /**
- *
- *
- * - * Output only. The system-generated UID of the resource. The UID is assigned - * when the resource is created, and it is retained until it is deleted. - *- * - *
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- * @return The uid.
- */
- @java.lang.Override
- public java.lang.String getUid() {
- java.lang.Object ref = uid_;
- 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();
- uid_ = s;
- return s;
+ public static final int CONSUMER_ENDPOINT_IPS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList consumerEndpointIps_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ * + * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *
repeated string consumer_endpoint_ips = 1;
+ *
+ * @return A list containing the consumerEndpointIps.
+ */
+ public com.google.protobuf.ProtocolStringList getConsumerEndpointIpsList() {
+ return consumerEndpointIps_;
}
- }
- /**
- *
- *
- * - * Output only. The system-generated UID of the resource. The UID is assigned - * when the resource is created, and it is retained until it is deleted. - *- * - *
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- * @return The bytes for uid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getUidBytes() {
- java.lang.Object ref = uid_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- uid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ /**
+ *
+ *
+ * + * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *
repeated string consumer_endpoint_ips = 1;
+ *
+ * @return The count of consumerEndpointIps.
+ */
+ public int getConsumerEndpointIpsCount() {
+ return consumerEndpointIps_.size();
+ }
+ /**
+ *
+ *
+ * + * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *
repeated string consumer_endpoint_ips = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The consumerEndpointIps at the given index.
+ */
+ public java.lang.String getConsumerEndpointIps(int index) {
+ return consumerEndpointIps_.get(index);
+ }
+ /**
+ *
+ *
+ * + * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *
repeated string consumer_endpoint_ips = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the consumerEndpointIps at the given index.
+ */
+ public com.google.protobuf.ByteString getConsumerEndpointIpsBytes(int index) {
+ return consumerEndpointIps_.getByteString(index);
}
- }
- public static final int CREATE_TIME_FIELD_NUMBER = 4;
- private com.google.protobuf.Timestamp createTime_;
- /**
- *
- *
- * - * Output only. Create time stamp - *- * - *
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return Whether the createTime field is set.
- */
- @java.lang.Override
- public boolean hasCreateTime() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- *
- * - * Output only. Create time stamp - *- * - *
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return The createTime.
- */
- @java.lang.Override
- public com.google.protobuf.Timestamp getCreateTime() {
- return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
- }
- /**
- *
- *
- * - * Output only. Create time stamp - *- * - *
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- */
- @java.lang.Override
- public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
- return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
- }
+ public static final int NETWORK_ATTACHMENT_FIELD_NUMBER = 2;
- public static final int UPDATE_TIME_FIELD_NUMBER = 5;
- private com.google.protobuf.Timestamp updateTime_;
- /**
- *
- *
- * - * Output only. Update time stamp - *- * - *
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return Whether the updateTime field is set.
- */
- @java.lang.Override
- public boolean hasUpdateTime() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- *
- * - * Output only. Update time stamp - *- * - *
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return The updateTime.
- */
- @java.lang.Override
- public com.google.protobuf.Timestamp getUpdateTime() {
- 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];
- *
- */
- @java.lang.Override
- public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
- return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
- }
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object networkAttachment_ = "";
+ /**
+ *
+ *
+ * + * The NetworkAttachment resource created in the consumer VPC to which the + * PSC interface will be linked, in the form of: + * `projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}`. + * NetworkAttachment has to be provided when the PSC interface is created. + *+ * + *
string network_attachment = 2;
+ *
+ * @return The networkAttachment.
+ */
+ @java.lang.Override
+ public java.lang.String getNetworkAttachment() {
+ java.lang.Object ref = networkAttachment_;
+ 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();
+ networkAttachment_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The NetworkAttachment resource created in the consumer VPC to which the + * PSC interface will be linked, in the form of: + * `projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}`. + * NetworkAttachment has to be provided when the PSC interface is created. + *+ * + *
string network_attachment = 2;
+ *
+ * @return The bytes for networkAttachment.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNetworkAttachmentBytes() {
+ java.lang.Object ref = networkAttachment_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ networkAttachment_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
- public static final int DELETE_TIME_FIELD_NUMBER = 6;
- private com.google.protobuf.Timestamp deleteTime_;
- /**
- *
- *
- * - * Output only. Delete time stamp - *- * - *
.google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return Whether the deleteTime field is set.
- */
- @java.lang.Override
- public boolean hasDeleteTime() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- *
- *
- * - * Output only. Delete time stamp - *- * - *
.google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return The deleteTime.
- */
- @java.lang.Override
- public com.google.protobuf.Timestamp getDeleteTime() {
- return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_;
- }
- /**
- *
- *
- * - * Output only. Delete time stamp - *- * - *
.google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- */
- @java.lang.Override
- public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
- return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_;
- }
+ private byte memoizedIsInitialized = -1;
- public static final int LABELS_FIELD_NUMBER = 7;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
- private static final class LabelsDefaultEntryHolder {
- static final com.google.protobuf.MapEntry- * Labels as key value pairs - *- * - *
map<string, string> labels = 7;
- */
- @java.lang.Override
- public boolean containsLabels(java.lang.String key) {
- if (key == null) {
- throw new NullPointerException("map key");
+ @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.PscInterfaceConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig other =
+ (com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig) obj;
+
+ if (!getConsumerEndpointIpsList().equals(other.getConsumerEndpointIpsList())) return false;
+ if (!getNetworkAttachment().equals(other.getNetworkAttachment())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
}
- 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;
- */
- @java.lang.Override
- public java.util.Map- * Labels as key value pairs - *- * - *
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.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getConsumerEndpointIpsCount() > 0) {
+ hash = (37 * hash) + CONSUMER_ENDPOINT_IPS_FIELD_NUMBER;
+ hash = (53 * hash) + getConsumerEndpointIpsList().hashCode();
+ }
+ hash = (37 * hash) + NETWORK_ATTACHMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getNetworkAttachment().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
- 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");
+
+ public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
}
- 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. The current serving state of the instance. - *- * - *
- * .google.cloud.alloydb.v1beta.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return The state.
- */
- @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 static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- public static final int INSTANCE_TYPE_FIELD_NUMBER = 9;
- private int instanceType_ = 0;
- /**
- *
- *
- * - * Required. The type of the instance. Specified at creation time. - *- * - *
- * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return The enum numeric value on the wire for instanceType.
- */
- @java.lang.Override
- public int getInstanceTypeValue() {
- return instanceType_;
- }
- /**
- *
- *
- * - * Required. The type of the instance. Specified at creation time. - *- * - *
- * .google.cloud.alloydb.v1beta.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return The instanceType.
- */
- @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_);
- return result == null
- ? com.google.cloud.alloydb.v1beta.Instance.InstanceType.UNRECOGNIZED
- : result;
- }
+ public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
- public static final int MACHINE_CONFIG_FIELD_NUMBER = 10;
- private com.google.cloud.alloydb.v1beta.Instance.MachineConfig machineConfig_;
- /**
- *
- *
- * - * Configurations for the machines that host the underlying - * database engine. - *- * - *
.google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
- *
- * @return Whether the machineConfig field is set.
- */
- @java.lang.Override
- public boolean hasMachineConfig() {
- return ((bitField0_ & 0x00000008) != 0);
- }
- /**
- *
- *
- * - * Configurations for the machines that host the underlying - * database engine. - *- * - *
.google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
- *
- * @return The machineConfig.
- */
- @java.lang.Override
- public com.google.cloud.alloydb.v1beta.Instance.MachineConfig getMachineConfig() {
- return machineConfig_ == null
- ? com.google.cloud.alloydb.v1beta.Instance.MachineConfig.getDefaultInstance()
- : machineConfig_;
- }
- /**
- *
- *
- * - * Configurations for the machines that host the underlying - * database engine. - *- * - *
.google.cloud.alloydb.v1beta.Instance.MachineConfig machine_config = 10;
- */
- @java.lang.Override
- public com.google.cloud.alloydb.v1beta.Instance.MachineConfigOrBuilder
- getMachineConfigOrBuilder() {
- return machineConfig_ == null
- ? com.google.cloud.alloydb.v1beta.Instance.MachineConfig.getDefaultInstance()
- : machineConfig_;
- }
+ public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- public static final int AVAILABILITY_TYPE_FIELD_NUMBER = 11;
- private int availabilityType_ = 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). - *- * - *
.google.cloud.alloydb.v1beta.Instance.AvailabilityType availability_type = 11;
- *
- * @return The enum numeric value on the wire for availabilityType.
- */
- @java.lang.Override
- public int getAvailabilityTypeValue() {
- return availabilityType_;
- }
- /**
- *
- *
- * - * 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.AvailabilityType availability_type = 11;
- *
- * @return The availabilityType.
- */
- @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 static final int GCE_ZONE_FIELD_NUMBER = 12;
+ public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
- @SuppressWarnings("serial")
- private volatile 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. - *- * - *
string gce_zone = 12;
- *
- * @return The gceZone.
- */
- @java.lang.Override
- public java.lang.String getGceZone() {
- java.lang.Object ref = gceZone_;
- 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();
- gceZone_ = s;
- return s;
+ public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- }
- /**
- *
- *
- * - * 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;
- *
- * @return The bytes for gceZone.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getGceZoneBytes() {
- java.lang.Object ref = gceZone_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- gceZone_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+
+ public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
}
- }
- public static final int DATABASE_FLAGS_FIELD_NUMBER = 13;
+ public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
- private static final class DatabaseFlagsDefaultEntryHolder {
- static final com.google.protobuf.MapEntry- * Database flags. Set at instance level. - * * They are copied from primary instance on read instance creation. - * * Read instances can set new or override existing flags that are relevant - * for reads, e.g. for enabling columnar cache on a read instance. Flags - * set on read instance may or may not be present on primary. - * - * - * 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");
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
}
- return internalGetDatabaseFlags().getMap().containsKey(key);
- }
- /** Use {@link #getDatabaseFlagsMap()} instead. */
- @java.lang.Override
- @java.lang.Deprecated
- public java.util.Map- * Database flags. Set at instance level. - * * They are copied from primary instance on read instance creation. - * * Read instances can set new or override existing flags that are relevant - * for reads, e.g. for enabling columnar cache on a read instance. Flags - * set on read instance may or may not be present on primary. - * - * - * 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 java.util.Map- * Database flags. Set at instance level. - * * They are copied from primary instance on read instance creation. - * * Read instances can set new or override existing flags that are relevant - * for reads, e.g. for enabling columnar cache on a read instance. Flags - * set on read instance may or may not be present on primary. - * - * - * 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 /* nullable */ java.lang.String getDatabaseFlagsOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
- if (key == null) {
- throw new NullPointerException("map key");
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
}
- java.util.Map- * Database flags. Set at instance level. - * * They are copied from primary instance on read instance creation. - * * Read instances can set new or override existing flags that are relevant - * for reads, e.g. for enabling columnar cache on a read instance. Flags - * set on read instance may or may not be present on primary. - * - * - * 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 java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) {
- if (key == null) {
- throw new NullPointerException("map key");
+
+ public static Builder newBuilder(
+ com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
- java.util.Map- * Output only. This is set for the read-write VM of the PRIMARY instance - * only. + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *+ * Configuration for setting up a PSC interface. This information needs to be + * provided by the customer. + * PSC interfaces will be created and added to VMs via SLM (adding a network + * interface will require recreating the VM). For HA instances this will be + * done via LDTM. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig) + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.class, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + consumerEndpointIps_ = com.google.protobuf.LazyStringArrayList.emptyList(); + networkAttachment_ = ""; + 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_PscInterfaceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig build() { + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig buildPartial() { + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig result = + new com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + consumerEndpointIps_.makeImmutable(); + result.consumerEndpointIps_ = consumerEndpointIps_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.networkAttachment_ = networkAttachment_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig) { + return mergeFrom((com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig other) { + if (other + == com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.getDefaultInstance()) + return this; + if (!other.consumerEndpointIps_.isEmpty()) { + if (consumerEndpointIps_.isEmpty()) { + consumerEndpointIps_ = other.consumerEndpointIps_; + bitField0_ |= 0x00000001; + } else { + ensureConsumerEndpointIpsIsMutable(); + consumerEndpointIps_.addAll(other.consumerEndpointIps_); + } + onChanged(); + } + if (!other.getNetworkAttachment().isEmpty()) { + networkAttachment_ = other.networkAttachment_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureConsumerEndpointIpsIsMutable(); + consumerEndpointIps_.add(s); + break; + } // case 10 + case 18: + { + networkAttachment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList consumerEndpointIps_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureConsumerEndpointIpsIsMutable() { + if (!consumerEndpointIps_.isModifiable()) { + consumerEndpointIps_ = new com.google.protobuf.LazyStringArrayList(consumerEndpointIps_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + * + * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *repeated string consumer_endpoint_ips = 1;
+ * + * @return A list containing the consumerEndpointIps. + */ + public com.google.protobuf.ProtocolStringList getConsumerEndpointIpsList() { + consumerEndpointIps_.makeImmutable(); + return consumerEndpointIps_; + } + /** + * + * + *+ * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *repeated string consumer_endpoint_ips = 1;
+ * + * @return The count of consumerEndpointIps. + */ + public int getConsumerEndpointIpsCount() { + return consumerEndpointIps_.size(); + } + /** + * + * + *+ * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *repeated string consumer_endpoint_ips = 1;
+ * + * @param index The index of the element to return. + * @return The consumerEndpointIps at the given index. + */ + public java.lang.String getConsumerEndpointIps(int index) { + return consumerEndpointIps_.get(index); + } + /** + * + * + *+ * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *repeated string consumer_endpoint_ips = 1;
+ * + * @param index The index of the value to return. + * @return The bytes of the consumerEndpointIps at the given index. + */ + public com.google.protobuf.ByteString getConsumerEndpointIpsBytes(int index) { + return consumerEndpointIps_.getByteString(index); + } + /** + * + * + *+ * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *repeated string consumer_endpoint_ips = 1;
+ * + * @param index The index to set the value at. + * @param value The consumerEndpointIps to set. + * @return This builder for chaining. + */ + public Builder setConsumerEndpointIps(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConsumerEndpointIpsIsMutable(); + consumerEndpointIps_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *+ * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *repeated string consumer_endpoint_ips = 1;
+ * + * @param value The consumerEndpointIps to add. + * @return This builder for chaining. + */ + public Builder addConsumerEndpointIps(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConsumerEndpointIpsIsMutable(); + consumerEndpointIps_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *+ * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *repeated string consumer_endpoint_ips = 1;
+ * + * @param values The consumerEndpointIps to add. + * @return This builder for chaining. + */ + public Builder addAllConsumerEndpointIps(java.lang.Iterablevalues) { + ensureConsumerEndpointIpsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, consumerEndpointIps_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + * + * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *repeated string consumer_endpoint_ips = 1;
+ * + * @return This builder for chaining. + */ + public Builder clearConsumerEndpointIps() { + consumerEndpointIps_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *+ * A list of endpoints in the consumer VPC the interface might initiate + * outbound connections to. This list has to be provided when the PSC + * interface is created. + *+ * + *repeated string consumer_endpoint_ips = 1;
+ * + * @param value The bytes of the consumerEndpointIps to add. + * @return This builder for chaining. + */ + public Builder addConsumerEndpointIpsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureConsumerEndpointIpsIsMutable(); + consumerEndpointIps_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object networkAttachment_ = ""; + /** + * + * + *+ * The NetworkAttachment resource created in the consumer VPC to which the + * PSC interface will be linked, in the form of: + * `projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}`. + * NetworkAttachment has to be provided when the PSC interface is created. + *+ * + *string network_attachment = 2;
+ * + * @return The networkAttachment. + */ + public java.lang.String getNetworkAttachment() { + java.lang.Object ref = networkAttachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkAttachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * The NetworkAttachment resource created in the consumer VPC to which the + * PSC interface will be linked, in the form of: + * `projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}`. + * NetworkAttachment has to be provided when the PSC interface is created. + *+ * + *string network_attachment = 2;
+ * + * @return The bytes for networkAttachment. + */ + public com.google.protobuf.ByteString getNetworkAttachmentBytes() { + java.lang.Object ref = networkAttachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * The NetworkAttachment resource created in the consumer VPC to which the + * PSC interface will be linked, in the form of: + * `projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}`. + * NetworkAttachment has to be provided when the PSC interface is created. + *+ * + *string network_attachment = 2;
+ * + * @param value The networkAttachment to set. + * @return This builder for chaining. + */ + public Builder setNetworkAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkAttachment_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * The NetworkAttachment resource created in the consumer VPC to which the + * PSC interface will be linked, in the form of: + * `projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}`. + * NetworkAttachment has to be provided when the PSC interface is created. + *+ * + *string network_attachment = 2;
+ * + * @return This builder for chaining. + */ + public Builder clearNetworkAttachment() { + networkAttachment_ = getDefaultInstance().getNetworkAttachment(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *+ * The NetworkAttachment resource created in the consumer VPC to which the + * PSC interface will be linked, in the form of: + * `projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}`. + * NetworkAttachment has to be provided when the PSC interface is created. + *+ * + *string network_attachment = 2;
+ * + * @param value The bytes for networkAttachment to set. + * @return This builder for chaining. + */ + public Builder setNetworkAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkAttachment_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig) + private static final com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig(); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public PscInterfaceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PscInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Output only. The service attachment created when Private + * Service Connect (PSC) is enabled for the instance. + * The name of the resource will be in the format of + * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` + *+ * + *string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return The serviceAttachmentLink. + */ + java.lang.String getServiceAttachmentLink(); + /** + * + * + *+ * Output only. The service attachment created when Private + * Service Connect (PSC) is enabled for the instance. + * The name of the resource will be in the format of + * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` + *+ * + *string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return The bytes for serviceAttachmentLink. + */ + com.google.protobuf.ByteString getServiceAttachmentLinkBytes(); + + /** + * + * + *+ * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return A list containing the allowedConsumerProjects. + */ + java.util.ListgetAllowedConsumerProjectsList(); + /** + * + * + * + * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return The count of allowedConsumerProjects. + */ + int getAllowedConsumerProjectsCount(); + /** + * + * + *+ * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the element to return. + * @return The allowedConsumerProjects at the given index. + */ + java.lang.String getAllowedConsumerProjects(int index); + /** + * + * + *+ * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerProjects at the given index. + */ + com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index); + + /** + * + * + *+ * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return A list containing the allowedConsumerNetworks. + */ + java.util.ListgetAllowedConsumerNetworksList(); + /** + * + * + * + * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return The count of allowedConsumerNetworks. + */ + int getAllowedConsumerNetworksCount(); + /** + * + * + *+ * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the element to return. + * @return The allowedConsumerNetworks at the given index. + */ + java.lang.String getAllowedConsumerNetworks(int index); + /** + * + * + *+ * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerNetworks at the given index. + */ + com.google.protobuf.ByteString getAllowedConsumerNetworksBytes(int index); + + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + java.util.List+ getPscInterfaceConfigsList(); + /** + * + * + * + * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig getPscInterfaceConfigs(int index); + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + int getPscInterfaceConfigsCount(); + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + java.util.List extends com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder> + getPscInterfaceConfigsOrBuilderList(); + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder + getPscInterfaceConfigsOrBuilder(int index); + + /** + * + * + *+ * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return A list containing the outgoingServiceAttachmentLinks. + */ + java.util.ListgetOutgoingServiceAttachmentLinksList(); + /** + * + * + * + * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return The count of outgoingServiceAttachmentLinks. + */ + int getOutgoingServiceAttachmentLinksCount(); + /** + * + * + *+ * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the element to return. + * @return The outgoingServiceAttachmentLinks at the given index. + */ + java.lang.String getOutgoingServiceAttachmentLinks(int index); + /** + * + * + *+ * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the value to return. + * @return The bytes of the outgoingServiceAttachmentLinks at the given index. + */ + com.google.protobuf.ByteString getOutgoingServiceAttachmentLinksBytes(int index); + + /** + * + * + *+ * Optional. Whether PSC connectivity is enabled for this instance. + * This is populated by referencing the value from the parent cluster. + *+ * + *bool psc_enabled = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The pscEnabled. + */ + boolean getPscEnabled(); + } + /** + * + * + *+ * PscInstanceConfig contains PSC related configuration at an + * instance level. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscInstanceConfig} + */ + public static final class PscInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) + PscInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PscInstanceConfig.newBuilder() to construct. + private PscInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private PscInstanceConfig() { + serviceAttachmentLink_ = ""; + allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedConsumerNetworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pscInterfaceConfigs_ = java.util.Collections.emptyList(); + outgoingServiceAttachmentLinks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscInstanceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.class, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.Builder.class); + } + + public static final int SERVICE_ATTACHMENT_LINK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachmentLink_ = ""; + /** + * + * + *+ * Output only. The service attachment created when Private + * Service Connect (PSC) is enabled for the instance. + * The name of the resource will be in the format of + * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` + *+ * + *string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return The serviceAttachmentLink. + */ + @java.lang.Override + public java.lang.String getServiceAttachmentLink() { + java.lang.Object ref = serviceAttachmentLink_; + 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(); + serviceAttachmentLink_ = s; + return s; + } + } + /** + * + * + *+ * Output only. The service attachment created when Private + * Service Connect (PSC) is enabled for the instance. + * The name of the resource will be in the format of + * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` + *+ * + *string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return The bytes for serviceAttachmentLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { + java.lang.Object ref = serviceAttachmentLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachmentLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *+ * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return A list containing the allowedConsumerProjects. + */ + public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { + return allowedConsumerProjects_; + } + /** + * + * + *+ * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return The count of allowedConsumerProjects. + */ + public int getAllowedConsumerProjectsCount() { + return allowedConsumerProjects_.size(); + } + /** + * + * + *+ * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the element to return. + * @return The allowedConsumerProjects at the given index. + */ + public java.lang.String getAllowedConsumerProjects(int index) { + return allowedConsumerProjects_.get(index); + } + /** + * + * + *+ * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerProjects at the given index. + */ + public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { + return allowedConsumerProjects_.getByteString(index); + } + + public static final int ALLOWED_CONSUMER_NETWORKS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedConsumerNetworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *+ * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return A list containing the allowedConsumerNetworks. + */ + public com.google.protobuf.ProtocolStringList getAllowedConsumerNetworksList() { + return allowedConsumerNetworks_; + } + /** + * + * + *+ * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return The count of allowedConsumerNetworks. + */ + public int getAllowedConsumerNetworksCount() { + return allowedConsumerNetworks_.size(); + } + /** + * + * + *+ * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the element to return. + * @return The allowedConsumerNetworks at the given index. + */ + public java.lang.String getAllowedConsumerNetworks(int index) { + return allowedConsumerNetworks_.get(index); + } + /** + * + * + *+ * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerNetworks at the given index. + */ + public com.google.protobuf.ByteString getAllowedConsumerNetworksBytes(int index) { + return allowedConsumerNetworks_.getByteString(index); + } + + public static final int PSC_INTERFACE_CONFIGS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List+ pscInterfaceConfigs_; + /** + * + * + * + * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + @java.lang.Override + public java.util.List+ getPscInterfaceConfigsList() { + return pscInterfaceConfigs_; + } + /** + * + * + * + * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder> + getPscInterfaceConfigsOrBuilderList() { + return pscInterfaceConfigs_; + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + @java.lang.Override + public int getPscInterfaceConfigsCount() { + return pscInterfaceConfigs_.size(); + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig getPscInterfaceConfigs( + int index) { + return pscInterfaceConfigs_.get(index); + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder + getPscInterfaceConfigsOrBuilder(int index) { + return pscInterfaceConfigs_.get(index); + } + + public static final int OUTGOING_SERVICE_ATTACHMENT_LINKS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList outgoingServiceAttachmentLinks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *+ * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return A list containing the outgoingServiceAttachmentLinks. + */ + public com.google.protobuf.ProtocolStringList getOutgoingServiceAttachmentLinksList() { + return outgoingServiceAttachmentLinks_; + } + /** + * + * + *+ * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return The count of outgoingServiceAttachmentLinks. + */ + public int getOutgoingServiceAttachmentLinksCount() { + return outgoingServiceAttachmentLinks_.size(); + } + /** + * + * + *+ * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the element to return. + * @return The outgoingServiceAttachmentLinks at the given index. + */ + public java.lang.String getOutgoingServiceAttachmentLinks(int index) { + return outgoingServiceAttachmentLinks_.get(index); + } + /** + * + * + *+ * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the value to return. + * @return The bytes of the outgoingServiceAttachmentLinks at the given index. + */ + public com.google.protobuf.ByteString getOutgoingServiceAttachmentLinksBytes(int index) { + return outgoingServiceAttachmentLinks_.getByteString(index); + } + + public static final int PSC_ENABLED_FIELD_NUMBER = 6; + private boolean pscEnabled_ = false; + /** + * + * + *+ * Optional. Whether PSC connectivity is enabled for this instance. + * This is populated by referencing the value from the parent cluster. + *+ * + *bool psc_enabled = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The pscEnabled. + */ + @java.lang.Override + public boolean getPscEnabled() { + return pscEnabled_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachmentLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAttachmentLink_); + } + for (int i = 0; i < allowedConsumerProjects_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, allowedConsumerProjects_.getRaw(i)); + } + for (int i = 0; i < allowedConsumerNetworks_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, allowedConsumerNetworks_.getRaw(i)); + } + for (int i = 0; i < pscInterfaceConfigs_.size(); i++) { + output.writeMessage(4, pscInterfaceConfigs_.get(i)); + } + for (int i = 0; i < outgoingServiceAttachmentLinks_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 5, outgoingServiceAttachmentLinks_.getRaw(i)); + } + if (pscEnabled_ != false) { + output.writeBool(6, pscEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachmentLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAttachmentLink_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedConsumerProjects_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedConsumerProjects_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedConsumerProjectsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < allowedConsumerNetworks_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedConsumerNetworks_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedConsumerNetworksList().size(); + } + for (int i = 0; i < pscInterfaceConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, pscInterfaceConfigs_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < outgoingServiceAttachmentLinks_.size(); i++) { + dataSize += computeStringSizeNoTag(outgoingServiceAttachmentLinks_.getRaw(i)); + } + size += dataSize; + size += 1 * getOutgoingServiceAttachmentLinksList().size(); + } + if (pscEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, pscEnabled_); + } + 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.PscInstanceConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig other = + (com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) obj; + + if (!getServiceAttachmentLink().equals(other.getServiceAttachmentLink())) return false; + if (!getAllowedConsumerProjectsList().equals(other.getAllowedConsumerProjectsList())) + return false; + if (!getAllowedConsumerNetworksList().equals(other.getAllowedConsumerNetworksList())) + return false; + if (!getPscInterfaceConfigsList().equals(other.getPscInterfaceConfigsList())) return false; + if (!getOutgoingServiceAttachmentLinksList() + .equals(other.getOutgoingServiceAttachmentLinksList())) return false; + if (getPscEnabled() != other.getPscEnabled()) 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) + SERVICE_ATTACHMENT_LINK_FIELD_NUMBER; + hash = (53 * hash) + getServiceAttachmentLink().hashCode(); + if (getAllowedConsumerProjectsCount() > 0) { + hash = (37 * hash) + ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedConsumerProjectsList().hashCode(); + } + if (getAllowedConsumerNetworksCount() > 0) { + hash = (37 * hash) + ALLOWED_CONSUMER_NETWORKS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedConsumerNetworksList().hashCode(); + } + if (getPscInterfaceConfigsCount() > 0) { + hash = (37 * hash) + PSC_INTERFACE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getPscInterfaceConfigsList().hashCode(); + } + if (getOutgoingServiceAttachmentLinksCount() > 0) { + hash = (37 * hash) + OUTGOING_SERVICE_ATTACHMENT_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getOutgoingServiceAttachmentLinksList().hashCode(); + } + hash = (37 * hash) + PSC_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPscEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig 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.PscInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig 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.PscInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig 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.PscInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.PscInstanceConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *+ * PscInstanceConfig contains PSC related configuration at an + * instance level. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscInstanceConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.class, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAttachmentLink_ = ""; + allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedConsumerNetworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (pscInterfaceConfigsBuilder_ == null) { + pscInterfaceConfigs_ = java.util.Collections.emptyList(); + } else { + pscInterfaceConfigs_ = null; + pscInterfaceConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + outgoingServiceAttachmentLinks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pscEnabled_ = 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_PscInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig build() { + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig buildPartial() { + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig result = + new com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig result) { + if (pscInterfaceConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + pscInterfaceConfigs_ = java.util.Collections.unmodifiableList(pscInterfaceConfigs_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.pscInterfaceConfigs_ = pscInterfaceConfigs_; + } else { + result.pscInterfaceConfigs_ = pscInterfaceConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAttachmentLink_ = serviceAttachmentLink_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + allowedConsumerProjects_.makeImmutable(); + result.allowedConsumerProjects_ = allowedConsumerProjects_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + allowedConsumerNetworks_.makeImmutable(); + result.allowedConsumerNetworks_ = allowedConsumerNetworks_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + outgoingServiceAttachmentLinks_.makeImmutable(); + result.outgoingServiceAttachmentLinks_ = outgoingServiceAttachmentLinks_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.pscEnabled_ = pscEnabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) { + return mergeFrom((com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig other) { + if (other + == com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.getDefaultInstance()) + return this; + if (!other.getServiceAttachmentLink().isEmpty()) { + serviceAttachmentLink_ = other.serviceAttachmentLink_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.allowedConsumerProjects_.isEmpty()) { + if (allowedConsumerProjects_.isEmpty()) { + allowedConsumerProjects_ = other.allowedConsumerProjects_; + bitField0_ |= 0x00000002; + } else { + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.addAll(other.allowedConsumerProjects_); + } + onChanged(); + } + if (!other.allowedConsumerNetworks_.isEmpty()) { + if (allowedConsumerNetworks_.isEmpty()) { + allowedConsumerNetworks_ = other.allowedConsumerNetworks_; + bitField0_ |= 0x00000004; + } else { + ensureAllowedConsumerNetworksIsMutable(); + allowedConsumerNetworks_.addAll(other.allowedConsumerNetworks_); + } + onChanged(); + } + if (pscInterfaceConfigsBuilder_ == null) { + if (!other.pscInterfaceConfigs_.isEmpty()) { + if (pscInterfaceConfigs_.isEmpty()) { + pscInterfaceConfigs_ = other.pscInterfaceConfigs_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.addAll(other.pscInterfaceConfigs_); + } + onChanged(); + } + } else { + if (!other.pscInterfaceConfigs_.isEmpty()) { + if (pscInterfaceConfigsBuilder_.isEmpty()) { + pscInterfaceConfigsBuilder_.dispose(); + pscInterfaceConfigsBuilder_ = null; + pscInterfaceConfigs_ = other.pscInterfaceConfigs_; + bitField0_ = (bitField0_ & ~0x00000008); + pscInterfaceConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPscInterfaceConfigsFieldBuilder() + : null; + } else { + pscInterfaceConfigsBuilder_.addAllMessages(other.pscInterfaceConfigs_); + } + } + } + if (!other.outgoingServiceAttachmentLinks_.isEmpty()) { + if (outgoingServiceAttachmentLinks_.isEmpty()) { + outgoingServiceAttachmentLinks_ = other.outgoingServiceAttachmentLinks_; + bitField0_ |= 0x00000010; + } else { + ensureOutgoingServiceAttachmentLinksIsMutable(); + outgoingServiceAttachmentLinks_.addAll(other.outgoingServiceAttachmentLinks_); + } + onChanged(); + } + if (other.getPscEnabled() != false) { + setPscEnabled(other.getPscEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + serviceAttachmentLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedConsumerNetworksIsMutable(); + allowedConsumerNetworks_.add(s); + break; + } // case 26 + case 34: + { + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig m = + input.readMessage( + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.parser(), + extensionRegistry); + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(m); + } else { + pscInterfaceConfigsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureOutgoingServiceAttachmentLinksIsMutable(); + outgoingServiceAttachmentLinks_.add(s); + break; + } // case 42 + case 48: + { + pscEnabled_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object serviceAttachmentLink_ = ""; + /** + * + * + * + * Output only. The service attachment created when Private + * Service Connect (PSC) is enabled for the instance. + * The name of the resource will be in the format of + * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` + *+ * + *string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The serviceAttachmentLink. + */ + public java.lang.String getServiceAttachmentLink() { + java.lang.Object ref = serviceAttachmentLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachmentLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * Output only. The service attachment created when Private + * Service Connect (PSC) is enabled for the instance. + * The name of the resource will be in the format of + * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` + *+ * + *string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The bytes for serviceAttachmentLink. + */ + public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { + java.lang.Object ref = serviceAttachmentLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachmentLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * Output only. The service attachment created when Private + * Service Connect (PSC) is enabled for the instance. + * The name of the resource will be in the format of + * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` + *+ * + *string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @param value The serviceAttachmentLink to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAttachmentLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *+ * Output only. The service attachment created when Private + * Service Connect (PSC) is enabled for the instance. + * The name of the resource will be in the format of + * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` + *+ * + *string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return This builder for chaining. + */ + public Builder clearServiceAttachmentLink() { + serviceAttachmentLink_ = getDefaultInstance().getServiceAttachmentLink(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *+ * Output only. The service attachment created when Private + * Service Connect (PSC) is enabled for the instance. + * The name of the resource will be in the format of + * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` + *+ * + *string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @param value The bytes for serviceAttachmentLink to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAttachmentLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedConsumerProjectsIsMutable() { + if (!allowedConsumerProjects_.isModifiable()) { + allowedConsumerProjects_ = + new com.google.protobuf.LazyStringArrayList(allowedConsumerProjects_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *+ * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return A list containing the allowedConsumerProjects. + */ + public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { + allowedConsumerProjects_.makeImmutable(); + return allowedConsumerProjects_; + } + /** + * + * + *+ * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return The count of allowedConsumerProjects. + */ + public int getAllowedConsumerProjectsCount() { + return allowedConsumerProjects_.size(); + } + /** + * + * + *+ * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the element to return. + * @return The allowedConsumerProjects at the given index. + */ + public java.lang.String getAllowedConsumerProjects(int index) { + return allowedConsumerProjects_.get(index); + } + /** + * + * + *+ * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerProjects at the given index. + */ + public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { + return allowedConsumerProjects_.getByteString(index); + } + /** + * + * + *+ * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index to set the value at. + * @param value The allowedConsumerProjects to set. + * @return This builder for chaining. + */ + public Builder setAllowedConsumerProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param value The allowedConsumerProjects to add. + * @return This builder for chaining. + */ + public Builder addAllowedConsumerProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param values The allowedConsumerProjects to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedConsumerProjects(java.lang.Iterablevalues) { + ensureAllowedConsumerProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedConsumerProjects_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + * + * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return This builder for chaining. + */ + public Builder clearAllowedConsumerProjects() { + allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. List of consumer projects that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param value The bytes of the allowedConsumerProjects to add. + * @return This builder for chaining. + */ + public Builder addAllowedConsumerProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedConsumerNetworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedConsumerNetworksIsMutable() { + if (!allowedConsumerNetworks_.isModifiable()) { + allowedConsumerNetworks_ = + new com.google.protobuf.LazyStringArrayList(allowedConsumerNetworks_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *+ * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return A list containing the allowedConsumerNetworks. + */ + public com.google.protobuf.ProtocolStringList getAllowedConsumerNetworksList() { + allowedConsumerNetworks_.makeImmutable(); + return allowedConsumerNetworks_; + } + /** + * + * + *+ * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return The count of allowedConsumerNetworks. + */ + public int getAllowedConsumerNetworksCount() { + return allowedConsumerNetworks_.size(); + } + /** + * + * + *+ * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the element to return. + * @return The allowedConsumerNetworks at the given index. + */ + public java.lang.String getAllowedConsumerNetworks(int index) { + return allowedConsumerNetworks_.get(index); + } + /** + * + * + *+ * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerNetworks at the given index. + */ + public com.google.protobuf.ByteString getAllowedConsumerNetworksBytes(int index) { + return allowedConsumerNetworks_.getByteString(index); + } + /** + * + * + *+ * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index to set the value at. + * @param value The allowedConsumerNetworks to set. + * @return This builder for chaining. + */ + public Builder setAllowedConsumerNetworks(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedConsumerNetworksIsMutable(); + allowedConsumerNetworks_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param value The allowedConsumerNetworks to add. + * @return This builder for chaining. + */ + public Builder addAllowedConsumerNetworks(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedConsumerNetworksIsMutable(); + allowedConsumerNetworks_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param values The allowedConsumerNetworks to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedConsumerNetworks(java.lang.Iterablevalues) { + ensureAllowedConsumerNetworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedConsumerNetworks_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + * + * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return This builder for chaining. + */ + public Builder clearAllowedConsumerNetworks() { + allowedConsumerNetworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. List of consumer networks that are allowed to create + * PSC endpoints to service-attachments to this instance. + *+ * + *+ * repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param value The bytes of the allowedConsumerNetworks to add. + * @return This builder for chaining. + */ + public Builder addAllowedConsumerNetworksBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedConsumerNetworksIsMutable(); + allowedConsumerNetworks_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List+ pscInterfaceConfigs_ = java.util.Collections.emptyList(); + + private void ensurePscInterfaceConfigsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + pscInterfaceConfigs_ = + new java.util.ArrayList ( + pscInterfaceConfigs_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder> + pscInterfaceConfigsBuilder_; + + /** + * + * + * + * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public java.util.List+ getPscInterfaceConfigsList() { + if (pscInterfaceConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pscInterfaceConfigs_); + } else { + return pscInterfaceConfigsBuilder_.getMessageList(); + } + } + /** + * + * + * + * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public int getPscInterfaceConfigsCount() { + if (pscInterfaceConfigsBuilder_ == null) { + return pscInterfaceConfigs_.size(); + } else { + return pscInterfaceConfigsBuilder_.getCount(); + } + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig getPscInterfaceConfigs( + int index) { + if (pscInterfaceConfigsBuilder_ == null) { + return pscInterfaceConfigs_.get(index); + } else { + return pscInterfaceConfigsBuilder_.getMessage(index); + } + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder setPscInterfaceConfigs( + int index, com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig value) { + if (pscInterfaceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.set(index, value); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder setPscInterfaceConfigs( + int index, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder builderForValue) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder addPscInterfaceConfigs( + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig value) { + if (pscInterfaceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(value); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder addPscInterfaceConfigs( + int index, com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig value) { + if (pscInterfaceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(index, value); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder addPscInterfaceConfigs( + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder builderForValue) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(builderForValue.build()); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder addPscInterfaceConfigs( + int index, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder builderForValue) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder addAllPscInterfaceConfigs( + java.lang.Iterable extends com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig> + values) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscInterfaceConfigs_); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder clearPscInterfaceConfigs() { + if (pscInterfaceConfigsBuilder_ == null) { + pscInterfaceConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.clear(); + } + return this; + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder removePscInterfaceConfigs(int index) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.remove(index); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.remove(index); + } + return this; + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder + getPscInterfaceConfigsBuilder(int index) { + return getPscInterfaceConfigsFieldBuilder().getBuilder(index); + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder + getPscInterfaceConfigsOrBuilder(int index) { + if (pscInterfaceConfigsBuilder_ == null) { + return pscInterfaceConfigs_.get(index); + } else { + return pscInterfaceConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public java.util.List< + ? extends com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder> + getPscInterfaceConfigsOrBuilderList() { + if (pscInterfaceConfigsBuilder_ != null) { + return pscInterfaceConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pscInterfaceConfigs_); + } + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder + addPscInterfaceConfigsBuilder() { + return getPscInterfaceConfigsFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.getDefaultInstance()); + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder + addPscInterfaceConfigsBuilder(int index) { + return getPscInterfaceConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.getDefaultInstance()); + } + /** + * + * + *+ * Optional. Configurations for setting up PSC interfaces attached to the + * instance which are used for outbound connectivity. Only primary instances + * can have PSC interface attached. All the VMs created for the primary + * instance will share the same configurations. Currently we only support 0 + * or 1 PSC interface. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public java.util.List+ getPscInterfaceConfigsBuilderList() { + return getPscInterfaceConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder> + getPscInterfaceConfigsFieldBuilder() { + if (pscInterfaceConfigsBuilder_ == null) { + pscInterfaceConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder>( + pscInterfaceConfigs_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + pscInterfaceConfigs_ = null; + } + return pscInterfaceConfigsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList outgoingServiceAttachmentLinks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureOutgoingServiceAttachmentLinksIsMutable() { + if (!outgoingServiceAttachmentLinks_.isModifiable()) { + outgoingServiceAttachmentLinks_ = + new com.google.protobuf.LazyStringArrayList(outgoingServiceAttachmentLinks_); + } + bitField0_ |= 0x00000010; + } + /** + * + * + * + * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return A list containing the outgoingServiceAttachmentLinks. + */ + public com.google.protobuf.ProtocolStringList getOutgoingServiceAttachmentLinksList() { + outgoingServiceAttachmentLinks_.makeImmutable(); + return outgoingServiceAttachmentLinks_; + } + /** + * + * + *+ * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return The count of outgoingServiceAttachmentLinks. + */ + public int getOutgoingServiceAttachmentLinksCount() { + return outgoingServiceAttachmentLinks_.size(); + } + /** + * + * + *+ * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the element to return. + * @return The outgoingServiceAttachmentLinks at the given index. + */ + public java.lang.String getOutgoingServiceAttachmentLinks(int index) { + return outgoingServiceAttachmentLinks_.get(index); + } + /** + * + * + *+ * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index of the value to return. + * @return The bytes of the outgoingServiceAttachmentLinks at the given index. + */ + public com.google.protobuf.ByteString getOutgoingServiceAttachmentLinksBytes(int index) { + return outgoingServiceAttachmentLinks_.getByteString(index); + } + /** + * + * + *+ * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param index The index to set the value at. + * @param value The outgoingServiceAttachmentLinks to set. + * @return This builder for chaining. + */ + public Builder setOutgoingServiceAttachmentLinks(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutgoingServiceAttachmentLinksIsMutable(); + outgoingServiceAttachmentLinks_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param value The outgoingServiceAttachmentLinks to add. + * @return This builder for chaining. + */ + public Builder addOutgoingServiceAttachmentLinks(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutgoingServiceAttachmentLinksIsMutable(); + outgoingServiceAttachmentLinks_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param values The outgoingServiceAttachmentLinks to add. + * @return This builder for chaining. + */ + public Builder addAllOutgoingServiceAttachmentLinks( + java.lang.Iterablevalues) { + ensureOutgoingServiceAttachmentLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outgoingServiceAttachmentLinks_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + * + * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @return This builder for chaining. + */ + public Builder clearOutgoingServiceAttachmentLinks() { + outgoingServiceAttachmentLinks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. List of service attachments that this instance has created + * endpoints to connect with. Currently, only a single outgoing service + * attachment is supported per instance. + *+ * + *+ * repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+ * + * @param value The bytes of the outgoingServiceAttachmentLinks to add. + * @return This builder for chaining. + */ + public Builder addOutgoingServiceAttachmentLinksBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOutgoingServiceAttachmentLinksIsMutable(); + outgoingServiceAttachmentLinks_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean pscEnabled_; + /** + * + * + *+ * Optional. Whether PSC connectivity is enabled for this instance. + * This is populated by referencing the value from the parent cluster. + *+ * + *bool psc_enabled = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The pscEnabled. + */ + @java.lang.Override + public boolean getPscEnabled() { + return pscEnabled_; + } + /** + * + * + *+ * Optional. Whether PSC connectivity is enabled for this instance. + * This is populated by referencing the value from the parent cluster. + *+ * + *bool psc_enabled = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @param value The pscEnabled to set. + * @return This builder for chaining. + */ + public Builder setPscEnabled(boolean value) { + + pscEnabled_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. Whether PSC connectivity is enabled for this instance. + * This is populated by referencing the value from the parent cluster. + *+ * + *bool psc_enabled = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return This builder for chaining. + */ + public Builder clearPscEnabled() { + bitField0_ = (bitField0_ & ~0x00000020); + pscEnabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) + private static final com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig(); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public PscInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface InstanceNetworkConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + java.util.List+ getAuthorizedExternalNetworksList(); + /** + * + * + * + * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + getAuthorizedExternalNetworks(int index); + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + int getAuthorizedExternalNetworksCount(); + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + java.util.List< + ? extends + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig + .AuthorizedNetworkOrBuilder> + getAuthorizedExternalNetworksOrBuilderList(); + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetworkOrBuilder + getAuthorizedExternalNetworksOrBuilder(int index); + + /** + * + * + *+ * Optional. Enabling public ip for the instance. + *+ * + *bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The enablePublicIp. + */ + boolean getEnablePublicIp(); + } + /** + * + * + *+ * Metadata related to instance level network configuration. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig} + */ + public static final class InstanceNetworkConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig) + InstanceNetworkConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use InstanceNetworkConfig.newBuilder() to construct. + private InstanceNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private InstanceNetworkConfig() { + authorizedExternalNetworks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InstanceNetworkConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.class, + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.Builder.class); + } + + public interface AuthorizedNetworkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *+ * CIDR range for one authorzied network of the instance. + *+ * + *string cidr_range = 1 [(.google.api.field_info) = { ... }
+ * + * @return The cidrRange. + */ + java.lang.String getCidrRange(); + /** + * + * + *+ * CIDR range for one authorzied network of the instance. + *+ * + *string cidr_range = 1 [(.google.api.field_info) = { ... }
+ * + * @return The bytes for cidrRange. + */ + com.google.protobuf.ByteString getCidrRangeBytes(); + } + /** + * + * + *+ * AuthorizedNetwork contains metadata for an authorized network. + *+ * + * Protobuf type {@code + * google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork} + */ + public static final class AuthorizedNetwork extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork) + AuthorizedNetworkOrBuilder { + private static final long serialVersionUID = 0L; + // Use AuthorizedNetwork.newBuilder() to construct. + private AuthorizedNetwork(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AuthorizedNetwork() { + cidrRange_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AuthorizedNetwork(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_AuthorizedNetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_AuthorizedNetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + .class, + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + .Builder.class); + } + + public static final int CIDR_RANGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cidrRange_ = ""; + /** + * + * + *+ * CIDR range for one authorzied network of the instance. + *+ * + *string cidr_range = 1 [(.google.api.field_info) = { ... }
+ * + * @return The cidrRange. + */ + @java.lang.Override + public java.lang.String getCidrRange() { + java.lang.Object ref = cidrRange_; + 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(); + cidrRange_ = s; + return s; + } + } + /** + * + * + *+ * CIDR range for one authorzied network of the instance. + *+ * + *string cidr_range = 1 [(.google.api.field_info) = { ... }
+ * + * @return The bytes for cidrRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCidrRangeBytes() { + java.lang.Object ref = cidrRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cidrRange_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cidrRange_); + } + 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.InstanceNetworkConfig.AuthorizedNetwork)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork other = + (com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork) obj; + + if (!getCidrRange().equals(other.getCidrRange())) 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) + CIDR_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getCidrRange().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + 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.InstanceNetworkConfig.AuthorizedNetwork + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + 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.InstanceNetworkConfig.AuthorizedNetwork + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + 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.InstanceNetworkConfig.AuthorizedNetwork + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.InstanceNetworkConfig.AuthorizedNetwork + 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *+ * AuthorizedNetwork contains metadata for an authorized network. + *+ * + * Protobuf type {@code + * google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork) + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig + .AuthorizedNetworkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_AuthorizedNetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_AuthorizedNetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + .class, + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + .Builder.class); + } + + // Construct using + // com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cidrRange_ = ""; + 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_InstanceNetworkConfig_AuthorizedNetwork_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + build() { + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + buildPartial() { + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork result = + new com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cidrRange_ = cidrRange_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork) { + return mergeFrom( + (com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + other) { + if (other + == com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + .getDefaultInstance()) return this; + if (!other.getCidrRange().isEmpty()) { + cidrRange_ = other.cidrRange_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + cidrRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object cidrRange_ = ""; + /** + * + * + * + * CIDR range for one authorzied network of the instance. + *+ * + *string cidr_range = 1 [(.google.api.field_info) = { ... }
+ * + * @return The cidrRange. + */ + public java.lang.String getCidrRange() { + java.lang.Object ref = cidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * CIDR range for one authorzied network of the instance. + *+ * + *string cidr_range = 1 [(.google.api.field_info) = { ... }
+ * + * @return The bytes for cidrRange. + */ + public com.google.protobuf.ByteString getCidrRangeBytes() { + java.lang.Object ref = cidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * CIDR range for one authorzied network of the instance. + *+ * + *string cidr_range = 1 [(.google.api.field_info) = { ... }
+ * + * @param value The cidrRange to set. + * @return This builder for chaining. + */ + public Builder setCidrRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cidrRange_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *+ * CIDR range for one authorzied network of the instance. + *+ * + *string cidr_range = 1 [(.google.api.field_info) = { ... }
+ * + * @return This builder for chaining. + */ + public Builder clearCidrRange() { + cidrRange_ = getDefaultInstance().getCidrRange(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *+ * CIDR range for one authorzied network of the instance. + *+ * + *string cidr_range = 1 [(.google.api.field_info) = { ... }
+ * + * @param value The bytes for cidrRange to set. + * @return This builder for chaining. + */ + public Builder setCidrRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidrRange_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork) + private static final com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig + .AuthorizedNetwork + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork(); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public AuthorizedNetwork parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int AUTHORIZED_EXTERNAL_NETWORKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork> + authorizedExternalNetworks_; + /** + * + * + * + * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + @java.lang.Override + public java.util.List< + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork> + getAuthorizedExternalNetworksList() { + return authorizedExternalNetworks_; + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig + .AuthorizedNetworkOrBuilder> + getAuthorizedExternalNetworksOrBuilderList() { + return authorizedExternalNetworks_; + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + @java.lang.Override + public int getAuthorizedExternalNetworksCount() { + return authorizedExternalNetworks_.size(); + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + getAuthorizedExternalNetworks(int index) { + return authorizedExternalNetworks_.get(index); + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetworkOrBuilder + getAuthorizedExternalNetworksOrBuilder(int index) { + return authorizedExternalNetworks_.get(index); + } + + public static final int ENABLE_PUBLIC_IP_FIELD_NUMBER = 2; + private boolean enablePublicIp_ = false; + /** + * + * + *+ * Optional. Enabling public ip for the instance. + *+ * + *bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The enablePublicIp. + */ + @java.lang.Override + public boolean getEnablePublicIp() { + return enablePublicIp_; + } + + 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 { + for (int i = 0; i < authorizedExternalNetworks_.size(); i++) { + output.writeMessage(1, authorizedExternalNetworks_.get(i)); + } + if (enablePublicIp_ != false) { + output.writeBool(2, enablePublicIp_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < authorizedExternalNetworks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, authorizedExternalNetworks_.get(i)); + } + if (enablePublicIp_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enablePublicIp_); + } + 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.InstanceNetworkConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig other = + (com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig) obj; + + if (!getAuthorizedExternalNetworksList().equals(other.getAuthorizedExternalNetworksList())) + return false; + if (getEnablePublicIp() != other.getEnablePublicIp()) 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 (getAuthorizedExternalNetworksCount() > 0) { + hash = (37 * hash) + AUTHORIZED_EXTERNAL_NETWORKS_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizedExternalNetworksList().hashCode(); + } + hash = (37 * hash) + ENABLE_PUBLIC_IP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePublicIp()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig 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.InstanceNetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig 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.InstanceNetworkConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig 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.InstanceNetworkConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.InstanceNetworkConfig 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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *+ * Metadata related to instance level network configuration. + *+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig) + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.class, + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (authorizedExternalNetworksBuilder_ == null) { + authorizedExternalNetworks_ = java.util.Collections.emptyList(); + } else { + authorizedExternalNetworks_ = null; + authorizedExternalNetworksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + enablePublicIp_ = 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_InstanceNetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig build() { + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig buildPartial() { + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig result = + new com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig result) { + if (authorizedExternalNetworksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + authorizedExternalNetworks_ = + java.util.Collections.unmodifiableList(authorizedExternalNetworks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.authorizedExternalNetworks_ = authorizedExternalNetworks_; + } else { + result.authorizedExternalNetworks_ = authorizedExternalNetworksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enablePublicIp_ = enablePublicIp_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig) { + return mergeFrom((com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig other) { + if (other + == com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.getDefaultInstance()) + return this; + if (authorizedExternalNetworksBuilder_ == null) { + if (!other.authorizedExternalNetworks_.isEmpty()) { + if (authorizedExternalNetworks_.isEmpty()) { + authorizedExternalNetworks_ = other.authorizedExternalNetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.addAll(other.authorizedExternalNetworks_); + } + onChanged(); + } + } else { + if (!other.authorizedExternalNetworks_.isEmpty()) { + if (authorizedExternalNetworksBuilder_.isEmpty()) { + authorizedExternalNetworksBuilder_.dispose(); + authorizedExternalNetworksBuilder_ = null; + authorizedExternalNetworks_ = other.authorizedExternalNetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + authorizedExternalNetworksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAuthorizedExternalNetworksFieldBuilder() + : null; + } else { + authorizedExternalNetworksBuilder_.addAllMessages(other.authorizedExternalNetworks_); + } + } + } + if (other.getEnablePublicIp() != false) { + setEnablePublicIp(other.getEnablePublicIp()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + m = + input.readMessage( + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig + .AuthorizedNetwork.parser(), + extensionRegistry); + if (authorizedExternalNetworksBuilder_ == null) { + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.add(m); + } else { + authorizedExternalNetworksBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + enablePublicIp_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork> + authorizedExternalNetworks_ = java.util.Collections.emptyList(); + + private void ensureAuthorizedExternalNetworksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + authorizedExternalNetworks_ = + new java.util.ArrayList< + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork>( + authorizedExternalNetworks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork, + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + .Builder, + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig + .AuthorizedNetworkOrBuilder> + authorizedExternalNetworksBuilder_; + + /** + * + * + * + * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public java.util.List< + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork> + getAuthorizedExternalNetworksList() { + if (authorizedExternalNetworksBuilder_ == null) { + return java.util.Collections.unmodifiableList(authorizedExternalNetworks_); + } else { + return authorizedExternalNetworksBuilder_.getMessageList(); + } + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public int getAuthorizedExternalNetworksCount() { + if (authorizedExternalNetworksBuilder_ == null) { + return authorizedExternalNetworks_.size(); + } else { + return authorizedExternalNetworksBuilder_.getCount(); + } + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + getAuthorizedExternalNetworks(int index) { + if (authorizedExternalNetworksBuilder_ == null) { + return authorizedExternalNetworks_.get(index); + } else { + return authorizedExternalNetworksBuilder_.getMessage(index); + } + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder setAuthorizedExternalNetworks( + int index, + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork value) { + if (authorizedExternalNetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.set(index, value); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder setAuthorizedExternalNetworks( + int index, + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder + builderForValue) { + if (authorizedExternalNetworksBuilder_ == null) { + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.set(index, builderForValue.build()); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder addAuthorizedExternalNetworks( + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork value) { + if (authorizedExternalNetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.add(value); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder addAuthorizedExternalNetworks( + int index, + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork value) { + if (authorizedExternalNetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.add(index, value); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder addAuthorizedExternalNetworks( + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder + builderForValue) { + if (authorizedExternalNetworksBuilder_ == null) { + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.add(builderForValue.build()); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder addAuthorizedExternalNetworks( + int index, + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder + builderForValue) { + if (authorizedExternalNetworksBuilder_ == null) { + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.add(index, builderForValue.build()); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder addAllAuthorizedExternalNetworks( + java.lang.Iterable< + ? extends + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig + .AuthorizedNetwork> + values) { + if (authorizedExternalNetworksBuilder_ == null) { + ensureAuthorizedExternalNetworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, authorizedExternalNetworks_); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder clearAuthorizedExternalNetworks() { + if (authorizedExternalNetworksBuilder_ == null) { + authorizedExternalNetworks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.clear(); + } + return this; + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public Builder removeAuthorizedExternalNetworks(int index) { + if (authorizedExternalNetworksBuilder_ == null) { + ensureAuthorizedExternalNetworksIsMutable(); + authorizedExternalNetworks_.remove(index); + onChanged(); + } else { + authorizedExternalNetworksBuilder_.remove(index); + } + return this; + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + .Builder + getAuthorizedExternalNetworksBuilder(int index) { + return getAuthorizedExternalNetworksFieldBuilder().getBuilder(index); + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig + .AuthorizedNetworkOrBuilder + getAuthorizedExternalNetworksOrBuilder(int index) { + if (authorizedExternalNetworksBuilder_ == null) { + return authorizedExternalNetworks_.get(index); + } else { + return authorizedExternalNetworksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public java.util.List< + ? extends + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig + .AuthorizedNetworkOrBuilder> + getAuthorizedExternalNetworksOrBuilderList() { + if (authorizedExternalNetworksBuilder_ != null) { + return authorizedExternalNetworksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(authorizedExternalNetworks_); + } + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + .Builder + addAuthorizedExternalNetworksBuilder() { + return getAuthorizedExternalNetworksFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + .getDefaultInstance()); + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + .Builder + addAuthorizedExternalNetworksBuilder(int index) { + return getAuthorizedExternalNetworksFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + .getDefaultInstance()); + } + /** + * + * + *+ * Optional. A list of external network authorized to access this instance. + *+ * + *+ * repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + public java.util.List< + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + .Builder> + getAuthorizedExternalNetworksBuilderList() { + return getAuthorizedExternalNetworksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork, + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + .Builder, + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig + .AuthorizedNetworkOrBuilder> + getAuthorizedExternalNetworksFieldBuilder() { + if (authorizedExternalNetworksBuilder_ == null) { + authorizedExternalNetworksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork, + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork + .Builder, + com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig + .AuthorizedNetworkOrBuilder>( + authorizedExternalNetworks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + authorizedExternalNetworks_ = null; + } + return authorizedExternalNetworksBuilder_; + } + + private boolean enablePublicIp_; + /** + * + * + *+ * Optional. Enabling public ip for the instance. + *+ * + *bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return The enablePublicIp. + */ + @java.lang.Override + public boolean getEnablePublicIp() { + return enablePublicIp_; + } + /** + * + * + *+ * Optional. Enabling public ip for the instance. + *+ * + *bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @param value The enablePublicIp to set. + * @return This builder for chaining. + */ + public Builder setEnablePublicIp(boolean value) { + + enablePublicIp_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * Optional. Enabling public ip for the instance. + *+ * + *bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * + * @return This builder for chaining. + */ + public Builder clearEnablePublicIp() { + bitField0_ = (bitField0_ & ~0x00000002); + enablePublicIp_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig) + private static final com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig(); + } + + public static com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public InstanceNetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + * + * Output only. The name of the instance resource with the format: + * * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} + * where the cluster and instance ID segments should satisfy the regex + * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of + * lowercase letters, numbers, and dashes, starting with a letter, and ending + * with a letter or number. For more details see https://google.aip.dev/122. + * The prefix of the instance resource name is the name of the parent + * resource: + * * projects/{project}/locations/{region}/clusters/{cluster_id} + *+ * + *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *+ * Output only. The name of the instance resource with the format: + * * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} + * where the cluster and instance ID segments should satisfy the regex + * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of + * lowercase letters, numbers, and dashes, starting with a letter, and ending + * with a letter or number. For more details see https://google.aip.dev/122. + * The prefix of the instance resource name is the name of the parent + * resource: + * * projects/{project}/locations/{region}/clusters/{cluster_id} + *+ * + *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *+ * User-settable and human-readable display name for the Instance. + *+ * + *string display_name = 2;
+ * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *+ * User-settable and human-readable display name for the Instance. + *+ * + *string display_name = 2;
+ * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *+ * Output only. The system-generated UID of the resource. The UID is assigned + * when the resource is created, and it is retained until it is deleted. + *+ * + *string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + /** + * + * + *+ * Output only. The system-generated UID of the resource. The UID is assigned + * when the resource is created, and it is retained until it is deleted. + *+ * + *string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *+ * Output only. Create time stamp + *+ * + *.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *+ * Output only. Create time stamp + *+ * + *.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *+ * Output only. Create time stamp + *+ * + *.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *+ * Output only. Update time stamp + *+ * + *.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *+ * Output only. Update time stamp + *+ * + *.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + 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]; + *
+ */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DELETE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp deleteTime_; + /** + * + * + *+ * Output only. Delete time stamp + *+ * + *.google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *+ * Output only. Delete time stamp + *+ * + *.google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + /** + * + * + *+ * Output only. Delete time stamp + *+ * + *.google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int LABELS_FIELD_NUMBER = 7; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntrydefaultEntry = + com.google.protobuf.MapEntry. newDefaultInstance( + com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *