Class DatabaseInstance.PoolNodeConfig (0.1.0)

public static final class DatabaseInstance.PoolNodeConfig extends GeneratedMessage implements DatabaseInstance.PoolNodeConfigOrBuilder

Details of a single read pool node of a read pool.

Protobuf type google.cloud.sql.v1beta4.DatabaseInstance.PoolNodeConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > DatabaseInstance.PoolNodeConfig

Static Fields

DNS_NAMES_FIELD_NUMBER

public static final int DNS_NAMES_FIELD_NUMBER
Field Value
Type Description
int

DNS_NAME_FIELD_NUMBER

public static final int DNS_NAME_FIELD_NUMBER
Field Value
Type Description
int

GCE_ZONE_FIELD_NUMBER

public static final int GCE_ZONE_FIELD_NUMBER
Field Value
Type Description
int

IP_ADDRESSES_FIELD_NUMBER

public static final int IP_ADDRESSES_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PSC_AUTO_CONNECTIONS_FIELD_NUMBER

public static final int PSC_AUTO_CONNECTIONS_FIELD_NUMBER
Field Value
Type Description
int
public static final int PSC_SERVICE_ATTACHMENT_LINK_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DatabaseInstance.PoolNodeConfig getDefaultInstance()
Returns
Type Description
DatabaseInstance.PoolNodeConfig

getDescriptor()

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

newBuilder()

public static DatabaseInstance.PoolNodeConfig.Builder newBuilder()
Returns
Type Description
DatabaseInstance.PoolNodeConfig.Builder

newBuilder(DatabaseInstance.PoolNodeConfig prototype)

public static DatabaseInstance.PoolNodeConfig.Builder newBuilder(DatabaseInstance.PoolNodeConfig prototype)
Parameter
Name Description
prototype DatabaseInstance.PoolNodeConfig
Returns
Type Description
DatabaseInstance.PoolNodeConfig.Builder

parseDelimitedFrom(InputStream input)

public static DatabaseInstance.PoolNodeConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DatabaseInstance.PoolNodeConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DatabaseInstance.PoolNodeConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatabaseInstance.PoolNodeConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DatabaseInstance.PoolNodeConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DatabaseInstance.PoolNodeConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DatabaseInstance.PoolNodeConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatabaseInstance.PoolNodeConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DatabaseInstance.PoolNodeConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DatabaseInstance.PoolNodeConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DatabaseInstance.PoolNodeConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatabaseInstance.PoolNodeConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DatabaseInstance.PoolNodeConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DatabaseInstance.PoolNodeConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DatabaseInstance.PoolNodeConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatabaseInstance.PoolNodeConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DatabaseInstance.PoolNodeConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DatabaseInstance.PoolNodeConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DatabaseInstance.PoolNodeConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatabaseInstance.PoolNodeConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DatabaseInstance.PoolNodeConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DatabaseInstance.PoolNodeConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DatabaseInstance.PoolNodeConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatabaseInstance.PoolNodeConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DatabaseInstance.PoolNodeConfig> parser()
Returns
Type Description
Parser<PoolNodeConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public DatabaseInstance.PoolNodeConfig getDefaultInstanceForType()
Returns
Type Description
DatabaseInstance.PoolNodeConfig

getDnsName()

public String getDnsName()

Output only. The DNS name of the read pool node.

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

Returns
Type Description
String

The dnsName.

getDnsNameBytes()

public ByteString getDnsNameBytes()

Output only. The DNS name of the read pool node.

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

Returns
Type Description
ByteString

The bytes for dnsName.

getDnsNames(int index)

public DnsNameMapping getDnsNames(int index)

Output only. The list of DNS names used by this read pool node.

repeated .google.cloud.sql.v1beta4.DnsNameMapping dns_names = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DnsNameMapping

getDnsNamesCount()

public int getDnsNamesCount()

Output only. The list of DNS names used by this read pool node.

repeated .google.cloud.sql.v1beta4.DnsNameMapping dns_names = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getDnsNamesList()

public List<DnsNameMapping> getDnsNamesList()

Output only. The list of DNS names used by this read pool node.

repeated .google.cloud.sql.v1beta4.DnsNameMapping dns_names = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<DnsNameMapping>

getDnsNamesOrBuilder(int index)

public DnsNameMappingOrBuilder getDnsNamesOrBuilder(int index)

Output only. The list of DNS names used by this read pool node.

repeated .google.cloud.sql.v1beta4.DnsNameMapping dns_names = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DnsNameMappingOrBuilder

getDnsNamesOrBuilderList()

public List<? extends DnsNameMappingOrBuilder> getDnsNamesOrBuilderList()

Output only. The list of DNS names used by this read pool node.

repeated .google.cloud.sql.v1beta4.DnsNameMapping dns_names = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.sql.v1beta4.DnsNameMappingOrBuilder>

getGceZone()

public String getGceZone()

Output only. The zone of the read pool node.

optional string gce_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The gceZone.

getGceZoneBytes()

public ByteString getGceZoneBytes()

Output only. The zone of the read pool node.

optional string gce_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for gceZone.

getIpAddresses(int index)

public IpMapping getIpAddresses(int index)

Output only. Mappings containing IP addresses that can be used to connect to the read pool node.

repeated .google.cloud.sql.v1beta4.IpMapping ip_addresses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
IpMapping

getIpAddressesCount()

public int getIpAddressesCount()

Output only. Mappings containing IP addresses that can be used to connect to the read pool node.

repeated .google.cloud.sql.v1beta4.IpMapping ip_addresses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getIpAddressesList()

public List<IpMapping> getIpAddressesList()

Output only. Mappings containing IP addresses that can be used to connect to the read pool node.

repeated .google.cloud.sql.v1beta4.IpMapping ip_addresses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<IpMapping>

getIpAddressesOrBuilder(int index)

public IpMappingOrBuilder getIpAddressesOrBuilder(int index)

Output only. Mappings containing IP addresses that can be used to connect to the read pool node.

repeated .google.cloud.sql.v1beta4.IpMapping ip_addresses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
IpMappingOrBuilder

getIpAddressesOrBuilderList()

public List<? extends IpMappingOrBuilder> getIpAddressesOrBuilderList()

Output only. Mappings containing IP addresses that can be used to connect to the read pool node.

repeated .google.cloud.sql.v1beta4.IpMapping ip_addresses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.sql.v1beta4.IpMappingOrBuilder>

getName()

public String getName()

Output only. The name of the read pool node, to be used for retrieving metrics and logs.

optional string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the read pool node, to be used for retrieving metrics and logs.

optional string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<DatabaseInstance.PoolNodeConfig> getParserForType()
Returns
Type Description
Parser<PoolNodeConfig>
Overrides

getPscAutoConnections(int index)

public PscAutoConnectionConfig getPscAutoConnections(int index)

Output only. The list of settings for requested automatically-setup Private Service Connect (PSC) consumer endpoints that can be used to connect to this read pool node.

repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PscAutoConnectionConfig

getPscAutoConnectionsCount()

public int getPscAutoConnectionsCount()

Output only. The list of settings for requested automatically-setup Private Service Connect (PSC) consumer endpoints that can be used to connect to this read pool node.

repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getPscAutoConnectionsList()

public List<PscAutoConnectionConfig> getPscAutoConnectionsList()

Output only. The list of settings for requested automatically-setup Private Service Connect (PSC) consumer endpoints that can be used to connect to this read pool node.

repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<PscAutoConnectionConfig>

getPscAutoConnectionsOrBuilder(int index)

public PscAutoConnectionConfigOrBuilder getPscAutoConnectionsOrBuilder(int index)

Output only. The list of settings for requested automatically-setup Private Service Connect (PSC) consumer endpoints that can be used to connect to this read pool node.

repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PscAutoConnectionConfigOrBuilder

getPscAutoConnectionsOrBuilderList()

public List<? extends PscAutoConnectionConfigOrBuilder> getPscAutoConnectionsOrBuilderList()

Output only. The list of settings for requested automatically-setup Private Service Connect (PSC) consumer endpoints that can be used to connect to this read pool node.

repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.sql.v1beta4.PscAutoConnectionConfigOrBuilder>
public String getPscServiceAttachmentLink()

Output only. The Private Service Connect (PSC) service attachment of the read pool node.

optional string psc_service_attachment_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The pscServiceAttachmentLink.

getPscServiceAttachmentLinkBytes()

public ByteString getPscServiceAttachmentLinkBytes()

Output only. The Private Service Connect (PSC) service attachment of the read pool node.

optional string psc_service_attachment_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for pscServiceAttachmentLink.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public DatabaseInstance.SqlInstanceState getState()

Output only. The current state of the read pool node.

optional .google.cloud.sql.v1beta4.DatabaseInstance.SqlInstanceState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DatabaseInstance.SqlInstanceState

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the read pool node.

optional .google.cloud.sql.v1beta4.DatabaseInstance.SqlInstanceState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasDnsName()

public boolean hasDnsName()

Output only. The DNS name of the read pool node.

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

Returns
Type Description
boolean

Whether the dnsName field is set.

hasGceZone()

public boolean hasGceZone()

Output only. The zone of the read pool node.

optional string gce_zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the gceZone field is set.

hasName()

public boolean hasName()

Output only. The name of the read pool node, to be used for retrieving metrics and logs.

optional string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the name field is set.

public boolean hasPscServiceAttachmentLink()

Output only. The Private Service Connect (PSC) service attachment of the read pool node.

optional string psc_service_attachment_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the pscServiceAttachmentLink field is set.

hasState()

public boolean hasState()

Output only. The current state of the read pool node.

optional .google.cloud.sql.v1beta4.DatabaseInstance.SqlInstanceState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the state field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DatabaseInstance.PoolNodeConfig.Builder newBuilderForType()
Returns
Type Description
DatabaseInstance.PoolNodeConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected DatabaseInstance.PoolNodeConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DatabaseInstance.PoolNodeConfig.Builder
Overrides

toBuilder()

public DatabaseInstance.PoolNodeConfig.Builder toBuilder()
Returns
Type Description
DatabaseInstance.PoolNodeConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException