Class ConnectSettings.ConnectPoolNodeConfig.Builder (0.1.0)

public static final class ConnectSettings.ConnectPoolNodeConfig.Builder extends GeneratedMessage.Builder<ConnectSettings.ConnectPoolNodeConfig.Builder> implements ConnectSettings.ConnectPoolNodeConfigOrBuilder

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

Protobuf type google.cloud.sql.v1.ConnectSettings.ConnectPoolNodeConfig

Static Methods

getDescriptor()

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

Methods

addAllDnsNames(Iterable<? extends DnsNameMapping> values)

public ConnectSettings.ConnectPoolNodeConfig.Builder addAllDnsNames(Iterable<? extends DnsNameMapping> values)

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

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.sql.v1.DnsNameMapping>
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

addAllIpAddresses(Iterable<? extends IpMapping> values)

public ConnectSettings.ConnectPoolNodeConfig.Builder addAllIpAddresses(Iterable<? extends IpMapping> values)

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

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.sql.v1.IpMapping>
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

addDnsNames(DnsNameMapping value)

public ConnectSettings.ConnectPoolNodeConfig.Builder addDnsNames(DnsNameMapping value)

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

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

Parameter
Name Description
value DnsNameMapping
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

addDnsNames(DnsNameMapping.Builder builderForValue)

public ConnectSettings.ConnectPoolNodeConfig.Builder addDnsNames(DnsNameMapping.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue DnsNameMapping.Builder
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

addDnsNames(int index, DnsNameMapping value)

public ConnectSettings.ConnectPoolNodeConfig.Builder addDnsNames(int index, DnsNameMapping value)

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

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

Parameters
Name Description
index int
value DnsNameMapping
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

addDnsNames(int index, DnsNameMapping.Builder builderForValue)

public ConnectSettings.ConnectPoolNodeConfig.Builder addDnsNames(int index, DnsNameMapping.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue DnsNameMapping.Builder
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

addDnsNamesBuilder()

public DnsNameMapping.Builder addDnsNamesBuilder()

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

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

Returns
Type Description
DnsNameMapping.Builder

addDnsNamesBuilder(int index)

public DnsNameMapping.Builder addDnsNamesBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
DnsNameMapping.Builder

addIpAddresses(IpMapping value)

public ConnectSettings.ConnectPoolNodeConfig.Builder addIpAddresses(IpMapping value)

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

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

Parameter
Name Description
value IpMapping
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

addIpAddresses(IpMapping.Builder builderForValue)

public ConnectSettings.ConnectPoolNodeConfig.Builder addIpAddresses(IpMapping.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue IpMapping.Builder
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

addIpAddresses(int index, IpMapping value)

public ConnectSettings.ConnectPoolNodeConfig.Builder addIpAddresses(int index, IpMapping value)

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

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

Parameters
Name Description
index int
value IpMapping
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

addIpAddresses(int index, IpMapping.Builder builderForValue)

public ConnectSettings.ConnectPoolNodeConfig.Builder addIpAddresses(int index, IpMapping.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue IpMapping.Builder
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

addIpAddressesBuilder()

public IpMapping.Builder addIpAddressesBuilder()

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

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

Returns
Type Description
IpMapping.Builder

addIpAddressesBuilder(int index)

public IpMapping.Builder addIpAddressesBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
IpMapping.Builder

build()

public ConnectSettings.ConnectPoolNodeConfig build()
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig

buildPartial()

public ConnectSettings.ConnectPoolNodeConfig buildPartial()
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig

clear()

public ConnectSettings.ConnectPoolNodeConfig.Builder clear()
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder
Overrides

clearDnsName()

public ConnectSettings.ConnectPoolNodeConfig.Builder clearDnsName()

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

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

Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

This builder for chaining.

clearDnsNames()

public ConnectSettings.ConnectPoolNodeConfig.Builder clearDnsNames()

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

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

Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

clearIpAddresses()

public ConnectSettings.ConnectPoolNodeConfig.Builder clearIpAddresses()

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

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

Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

clearName()

public ConnectSettings.ConnectPoolNodeConfig.Builder clearName()

Output only. The name of the read pool node. Doesn't include the project ID.

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

Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public ConnectSettings.ConnectPoolNodeConfig getDefaultInstanceForType()
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDnsName()

public String getDnsName()

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

optional string dns_name = 3 [(.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 = 3 [(.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.v1.DnsNameMapping dns_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DnsNameMapping

getDnsNamesBuilder(int index)

public DnsNameMapping.Builder getDnsNamesBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
DnsNameMapping.Builder

getDnsNamesBuilderList()

public List<DnsNameMapping.Builder> getDnsNamesBuilderList()

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

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

Returns
Type Description
List<Builder>

getDnsNamesCount()

public int getDnsNamesCount()

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

repeated .google.cloud.sql.v1.DnsNameMapping dns_names = 4 [(.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.v1.DnsNameMapping dns_names = 4 [(.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.v1.DnsNameMapping dns_names = 4 [(.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.v1.DnsNameMapping dns_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

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

Parameter
Name Description
index int
Returns
Type Description
IpMapping

getIpAddressesBuilder(int index)

public IpMapping.Builder getIpAddressesBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
IpMapping.Builder

getIpAddressesBuilderList()

public List<IpMapping.Builder> getIpAddressesBuilderList()

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

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

Returns
Type Description
List<Builder>

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

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

getName()

public String getName()

Output only. The name of the read pool node. Doesn't include the project ID.

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. Doesn't include the project ID.

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

Returns
Type Description
ByteString

The bytes for name.

hasDnsName()

public boolean hasDnsName()

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

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

Returns
Type Description
boolean

Whether the dnsName field is set.

hasName()

public boolean hasName()

Output only. The name of the read pool node. Doesn't include the project ID.

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

Returns
Type Description
boolean

Whether the name field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConnectSettings.ConnectPoolNodeConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeDnsNames(int index)

public ConnectSettings.ConnectPoolNodeConfig.Builder removeDnsNames(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

removeIpAddresses(int index)

public ConnectSettings.ConnectPoolNodeConfig.Builder removeIpAddresses(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

setDnsName(String value)

public ConnectSettings.ConnectPoolNodeConfig.Builder setDnsName(String value)

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

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

Parameter
Name Description
value String

The dnsName to set.

Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

This builder for chaining.

setDnsNameBytes(ByteString value)

public ConnectSettings.ConnectPoolNodeConfig.Builder setDnsNameBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for dnsName to set.

Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

This builder for chaining.

setDnsNames(int index, DnsNameMapping value)

public ConnectSettings.ConnectPoolNodeConfig.Builder setDnsNames(int index, DnsNameMapping value)

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

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

Parameters
Name Description
index int
value DnsNameMapping
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

setDnsNames(int index, DnsNameMapping.Builder builderForValue)

public ConnectSettings.ConnectPoolNodeConfig.Builder setDnsNames(int index, DnsNameMapping.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue DnsNameMapping.Builder
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

setIpAddresses(int index, IpMapping value)

public ConnectSettings.ConnectPoolNodeConfig.Builder setIpAddresses(int index, IpMapping value)

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

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

Parameters
Name Description
index int
value IpMapping
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

setIpAddresses(int index, IpMapping.Builder builderForValue)

public ConnectSettings.ConnectPoolNodeConfig.Builder setIpAddresses(int index, IpMapping.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue IpMapping.Builder
Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

setName(String value)

public ConnectSettings.ConnectPoolNodeConfig.Builder setName(String value)

Output only. The name of the read pool node. Doesn't include the project ID.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ConnectSettings.ConnectPoolNodeConfig.Builder setNameBytes(ByteString value)

Output only. The name of the read pool node. Doesn't include the project ID.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ConnectSettings.ConnectPoolNodeConfig.Builder

This builder for chaining.