Class ConnectionInfo.Builder (0.30.0)

public static final class ConnectionInfo.Builder extends GeneratedMessageV3.Builder<ConnectionInfo.Builder> implements ConnectionInfoOrBuilder

ConnectionInfo singleton resource. https://google.aip.dev/156

Protobuf type google.cloud.alloydb.v1beta.ConnectionInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllPemCertificateChain(Iterable<String> values) (deprecated)

public ConnectionInfo.Builder addAllPemCertificateChain(Iterable<String> values)

Deprecated. google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1015

Output 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];

Parameter
NameDescription
valuesIterable<String>

The pemCertificateChain to add.

Returns
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

addPemCertificateChain(String value) (deprecated)

public ConnectionInfo.Builder addPemCertificateChain(String value)

Deprecated. google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1015

Output 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];

Parameter
NameDescription
valueString

The pemCertificateChain to add.

Returns
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

addPemCertificateChainBytes(ByteString value) (deprecated)

public ConnectionInfo.Builder addPemCertificateChainBytes(ByteString value)

Deprecated. google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1015

Output 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];

Parameter
NameDescription
valueByteString

The bytes of the pemCertificateChain to add.

Returns
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConnectionInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConnectionInfo.Builder
Overrides

build()

public ConnectionInfo build()
Returns
TypeDescription
ConnectionInfo

buildPartial()

public ConnectionInfo buildPartial()
Returns
TypeDescription
ConnectionInfo

clear()

public ConnectionInfo.Builder clear()
Returns
TypeDescription
ConnectionInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ConnectionInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ConnectionInfo.Builder
Overrides

clearInstanceUid()

public ConnectionInfo.Builder clearInstanceUid()

Output only. The unique ID of the Instance.

string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

clearIpAddress()

public ConnectionInfo.Builder 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
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

clearName()

public ConnectionInfo.Builder 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
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ConnectionInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConnectionInfo.Builder
Overrides

clearPemCertificateChain() (deprecated)

public ConnectionInfo.Builder clearPemCertificateChain()

Deprecated. google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1015

Output 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
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

clearPscDnsName()

public ConnectionInfo.Builder 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
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

clearPublicIpAddress()

public ConnectionInfo.Builder 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
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

clone()

public ConnectionInfo.Builder clone()
Returns
TypeDescription
ConnectionInfo.Builder
Overrides

getDefaultInstanceForType()

public ConnectionInfo getDefaultInstanceForType()
Returns
TypeDescription
ConnectionInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstanceUid()

public String getInstanceUid()

Output only. The unique ID of the Instance.

string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The instanceUid.

getInstanceUidBytes()

public ByteString getInstanceUidBytes()

Output only. The unique ID of the Instance.

string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for instanceUid.

getIpAddress()

public String 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];

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for ipAddress.

getName()

public String 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;

Returns
TypeDescription
String

The name.

getNameBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for name.

getPemCertificateChain(int index) (deprecated)

public String getPemCertificateChain(int index)

Deprecated. google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1015

Output 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];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The pemCertificateChain at the given index.

getPemCertificateChainBytes(int index) (deprecated)

public ByteString getPemCertificateChainBytes(int index)

Deprecated. google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1015

Output 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];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the pemCertificateChain at the given index.

getPemCertificateChainCount() (deprecated)

public int getPemCertificateChainCount()

Deprecated. google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1015

Output 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
TypeDescription
int

The count of pemCertificateChain.

getPemCertificateChainList() (deprecated)

public ProtocolStringList getPemCertificateChainList()

Deprecated. google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1015

Output 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
TypeDescription
ProtocolStringList

A list containing the pemCertificateChain.

getPscDnsName()

public 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];

Returns
TypeDescription
String

The pscDnsName.

getPscDnsNameBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for pscDnsName.

getPublicIpAddress()

public 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) = { ... }

Returns
TypeDescription
String

The publicIpAddress.

getPublicIpAddressBytes()

public 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for publicIpAddress.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConnectionInfo other)

public ConnectionInfo.Builder mergeFrom(ConnectionInfo other)
Parameter
NameDescription
otherConnectionInfo
Returns
TypeDescription
ConnectionInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConnectionInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectionInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ConnectionInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ConnectionInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConnectionInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConnectionInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ConnectionInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConnectionInfo.Builder
Overrides

setInstanceUid(String value)

public ConnectionInfo.Builder setInstanceUid(String value)

Output only. The unique ID of the Instance.

string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The instanceUid to set.

Returns
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

setInstanceUidBytes(ByteString value)

public ConnectionInfo.Builder setInstanceUidBytes(ByteString value)

Output only. The unique ID of the Instance.

string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for instanceUid to set.

Returns
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

setIpAddress(String value)

public ConnectionInfo.Builder setIpAddress(String value)

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];

Parameter
NameDescription
valueString

The ipAddress to set.

Returns
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public ConnectionInfo.Builder setIpAddressBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for ipAddress to set.

Returns
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

setName(String value)

public ConnectionInfo.Builder setName(String value)

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;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ConnectionInfo.Builder setNameBytes(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.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

setPemCertificateChain(int index, String value) (deprecated)

public ConnectionInfo.Builder setPemCertificateChain(int index, String value)

Deprecated. google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1015

Output 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
NameDescription
indexint

The index to set the value at.

valueString

The pemCertificateChain to set.

Returns
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

setPscDnsName(String value)

public ConnectionInfo.Builder setPscDnsName(String value)

Output only. The DNS name to use with PSC for the Instance.

string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The pscDnsName to set.

Returns
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

setPscDnsNameBytes(ByteString value)

public ConnectionInfo.Builder setPscDnsNameBytes(ByteString value)

Output only. The DNS name to use with PSC for the Instance.

string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for pscDnsName to set.

Returns
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

setPublicIpAddress(String value)

public ConnectionInfo.Builder setPublicIpAddress(String value)

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) = { ... }

Parameter
NameDescription
valueString

The publicIpAddress to set.

Returns
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

setPublicIpAddressBytes(ByteString value)

public ConnectionInfo.Builder setPublicIpAddressBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for publicIpAddress to set.

Returns
TypeDescription
ConnectionInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ConnectionInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConnectionInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ConnectionInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConnectionInfo.Builder
Overrides