Class ConnectionInfo.Builder (0.7.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
Type Description
Descriptor

Methods

addAllPemCertificateChain(Iterable<String> values)

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

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 [(.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)

public ConnectionInfo.Builder addPemCertificateChain(String value)

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 [(.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)

public ConnectionInfo.Builder addPemCertificateChainBytes(ByteString value)

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 [(.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 IP address for the Instance. 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()

public ConnectionInfo.Builder clearPemCertificateChain()

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

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 IP address for the Instance. 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 IP address for the Instance. 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)

public String getPemCertificateChain(int index)

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 [(.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)

public ByteString getPemCertificateChainBytes(int index)

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 [(.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()

public int getPemCertificateChainCount()

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of pemCertificateChain.

getPemCertificateChainList()

public ProtocolStringList getPemCertificateChainList()

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the pemCertificateChain.

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 IP address for the Instance. 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 IP address for the Instance. 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)

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

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 [(.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.

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