Class ConnectionInfo.Builder (0.36.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.v1alpha.ConnectionInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllPemCertificateChain(Iterable<String> values) (deprecated)

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

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

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
Name Description
values Iterable<String>

The pemCertificateChain to add.

Returns
Type Description
ConnectionInfo.Builder

This builder for chaining.

addPemCertificateChain(String value) (deprecated)

public ConnectionInfo.Builder addPemCertificateChain(String value)

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

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
Name Description
value String

The pemCertificateChain to add.

Returns
Type Description
ConnectionInfo.Builder

This builder for chaining.

addPemCertificateChainBytes(ByteString value) (deprecated)

public ConnectionInfo.Builder addPemCertificateChainBytes(ByteString value)

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

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
Name Description
value ByteString

The bytes of the pemCertificateChain to add.

Returns
Type Description
ConnectionInfo.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConnectionInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConnectionInfo.Builder
Overrides

build()

public ConnectionInfo build()
Returns
Type Description
ConnectionInfo

buildPartial()

public ConnectionInfo buildPartial()
Returns
Type Description
ConnectionInfo

clear()

public ConnectionInfo.Builder clear()
Returns
Type Description
ConnectionInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ConnectionInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
ConnectionInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ConnectionInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ConnectionInfo.Builder
Overrides

clearPemCertificateChain() (deprecated)

public ConnectionInfo.Builder clearPemCertificateChain()

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

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
Type Description
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
Type Description
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
Type Description
ConnectionInfo.Builder

This builder for chaining.

clone()

public ConnectionInfo.Builder clone()
Returns
Type Description
ConnectionInfo.Builder
Overrides

getDefaultInstanceForType()

public ConnectionInfo getDefaultInstanceForType()
Returns
Type Description
ConnectionInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

getPemCertificateChain(int index) (deprecated)

public String getPemCertificateChain(int index)

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

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
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The pemCertificateChain at the given index.

getPemCertificateChainBytes(int index) (deprecated)

public ByteString getPemCertificateChainBytes(int index)

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

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
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the pemCertificateChain at the given index.

getPemCertificateChainCount() (deprecated)

public int getPemCertificateChainCount()

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

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
Type Description
int

The count of pemCertificateChain.

getPemCertificateChainList() (deprecated)

public ProtocolStringList getPemCertificateChainList()

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

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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for publicIpAddress.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConnectionInfo other)

public ConnectionInfo.Builder mergeFrom(ConnectionInfo other)
Parameter
Name Description
other ConnectionInfo
Returns
Type Description
ConnectionInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConnectionInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConnectionInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ConnectionInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ConnectionInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConnectionInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConnectionInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ConnectionInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The instanceUid to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for instanceUid to set.

Returns
Type Description
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
Name Description
value String

The ipAddress to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ConnectionInfo.Builder

This builder for chaining.

setPemCertificateChain(int index, String value) (deprecated)

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

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

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
Name Description
index int

The index to set the value at.

value String

The pemCertificateChain to set.

Returns
Type Description
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
Name Description
value String

The pscDnsName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for pscDnsName to set.

Returns
Type Description
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
Name Description
value String

The publicIpAddress to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for publicIpAddress to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ConnectionInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ConnectionInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConnectionInfo.Builder
Overrides