Class ConnectionInfo.Builder (0.31.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.v1.ConnectionInfo

Static Methods

getDescriptor()

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

Methods

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

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.

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.

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