Package com.google.cloud.alloydb.v1beta
Class ConnectionInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConnectionInfo.Builder>
com.google.cloud.alloydb.v1beta.ConnectionInfo.Builder
- All Implemented Interfaces:
ConnectionInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ConnectionInfo
public static final class ConnectionInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ConnectionInfo.Builder>
implements ConnectionInfoOrBuilder
ConnectionInfo singleton resource. https://google.aip.dev/156Protobuf type
google.cloud.alloydb.v1beta.ConnectionInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllPemCertificateChain(Iterable<String> values) Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.addPemCertificateChain(String value) Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.addPemCertificateChainBytes(com.google.protobuf.ByteString value) Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.build()clear()Output only.Output only.The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.getName()The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.com.google.protobuf.ByteStringThe name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.getPemCertificateChain(int index) Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.com.google.protobuf.ByteStringgetPemCertificateChainBytes(int index) Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.intDeprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.com.google.protobuf.ProtocolStringListDeprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ConnectionInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setInstanceUid(String value) Output only.setInstanceUidBytes(com.google.protobuf.ByteString value) Output only.setIpAddress(String value) Output only.setIpAddressBytes(com.google.protobuf.ByteString value) Output only.The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.setNameBytes(com.google.protobuf.ByteString value) The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.setPemCertificateChain(int index, String value) Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.setPscDnsName(String value) Output only.setPscDnsNameBytes(com.google.protobuf.ByteString value) Output only.setPublicIpAddress(String value) Output only.setPublicIpAddressBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ConnectionInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ConnectionInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ConnectionInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConnectionInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ConnectionInfo.Builder>
-
mergeFrom
public ConnectionInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConnectionInfo.Builder>- Throws:
IOException
-
getName
The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.string name = 1;- Specified by:
getNamein interfaceConnectionInfoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.string name = 1;- Specified by:
getNameBytesin interfaceConnectionInfoOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getIpAddress
Output only. The private network IP address for the Instance. This is the default IP for the instance and is always created (even if enable_public_ip is set). This is the connection endpoint for an end-user application.
string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIpAddressin interfaceConnectionInfoOrBuilder- Returns:
- The ipAddress.
-
getIpAddressBytes
public com.google.protobuf.ByteString getIpAddressBytes()Output only. The private network IP address for the Instance. This is the default IP for the instance and is always created (even if enable_public_ip is set). This is the connection endpoint for an end-user application.
string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIpAddressBytesin interfaceConnectionInfoOrBuilder- Returns:
- The bytes for ipAddress.
-
setIpAddress
Output only. The private network IP address for the Instance. This is the default IP for the instance and is always created (even if enable_public_ip is set). This is the connection endpoint for an end-user application.
string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The ipAddress to set.- Returns:
- This builder for chaining.
-
clearIpAddress
Output only. The private network IP address for the Instance. This is the default IP for the instance and is always created (even if enable_public_ip is set). This is the connection endpoint for an end-user application.
string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setIpAddressBytes
Output only. The private network IP address for the Instance. This is the default IP for the instance and is always created (even if enable_public_ip is set). This is the connection endpoint for an end-user application.
string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for ipAddress to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Specified by:
getPublicIpAddressin interfaceConnectionInfoOrBuilder- Returns:
- The publicIpAddress.
-
getPublicIpAddressBytes
public com.google.protobuf.ByteString getPublicIpAddressBytes()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) = { ... }- Specified by:
getPublicIpAddressBytesin interfaceConnectionInfoOrBuilder- Returns:
- The bytes for publicIpAddress.
-
setPublicIpAddress
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) = { ... }- Parameters:
value- The publicIpAddress to set.- Returns:
- This builder for chaining.
-
clearPublicIpAddress
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) = { ... }- Returns:
- This builder for chaining.
-
setPublicIpAddressBytes
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) = { ... }- Parameters:
value- The bytes for publicIpAddress to set.- Returns:
- This builder for chaining.
-
getPemCertificateChainList
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPemCertificateChainListin interfaceConnectionInfoOrBuilder- Returns:
- A list containing the pemCertificateChain.
-
getPemCertificateChainCount
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPemCertificateChainCountin interfaceConnectionInfoOrBuilder- Returns:
- The count of pemCertificateChain.
-
getPemCertificateChain
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPemCertificateChainin interfaceConnectionInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The pemCertificateChain at the given index.
-
getPemCertificateChainBytes
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPemCertificateChainBytesin interfaceConnectionInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the pemCertificateChain at the given index.
-
setPemCertificateChain
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The pemCertificateChain to set.- Returns:
- This builder for chaining.
-
addPemCertificateChain
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The pemCertificateChain to add.- Returns:
- This builder for chaining.
-
addAllPemCertificateChain
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The pemCertificateChain to add.- Returns:
- This builder for chaining.
-
clearPemCertificateChain
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addPemCertificateChainBytes
@Deprecated public ConnectionInfo.Builder addPemCertificateChainBytes(com.google.protobuf.ByteString value) Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the pemCertificateChain to add.- Returns:
- This builder for chaining.
-
getInstanceUid
Output only. The unique ID of the Instance.
string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstanceUidin interfaceConnectionInfoOrBuilder- Returns:
- The instanceUid.
-
getInstanceUidBytes
public com.google.protobuf.ByteString getInstanceUidBytes()Output only. The unique ID of the Instance.
string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstanceUidBytesin interfaceConnectionInfoOrBuilder- Returns:
- The bytes for instanceUid.
-
setInstanceUid
Output only. The unique ID of the Instance.
string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The instanceUid to set.- Returns:
- This builder for chaining.
-
clearInstanceUid
Output only. The unique ID of the Instance.
string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setInstanceUidBytes
Output only. The unique ID of the Instance.
string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for instanceUid to set.- Returns:
- This builder for chaining.
-
getPscDnsName
Output only. The DNS name to use with PSC for the Instance.
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPscDnsNamein interfaceConnectionInfoOrBuilder- Returns:
- The pscDnsName.
-
getPscDnsNameBytes
public com.google.protobuf.ByteString getPscDnsNameBytes()Output only. The DNS name to use with PSC for the Instance.
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPscDnsNameBytesin interfaceConnectionInfoOrBuilder- Returns:
- The bytes for pscDnsName.
-
setPscDnsName
Output only. The DNS name to use with PSC for the Instance.
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The pscDnsName to set.- Returns:
- This builder for chaining.
-
clearPscDnsName
Output only. The DNS name to use with PSC for the Instance.
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setPscDnsNameBytes
Output only. The DNS name to use with PSC for the Instance.
string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for pscDnsName to set.- Returns:
- This builder for chaining.
-