Class SqlIpConfig.Builder (2.7.0)

public static final class SqlIpConfig.Builder extends GeneratedMessageV3.Builder<SqlIpConfig.Builder> implements SqlIpConfigOrBuilder

IP Management configuration.

Protobuf type google.cloud.clouddms.v1.SqlIpConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllAuthorizedNetworks(Iterable<? extends SqlAclEntry> values)

public SqlIpConfig.Builder addAllAuthorizedNetworks(Iterable<? extends SqlAclEntry> values)

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.clouddms.v1.SqlAclEntry>
Returns
TypeDescription
SqlIpConfig.Builder

addAuthorizedNetworks(SqlAclEntry value)

public SqlIpConfig.Builder addAuthorizedNetworks(SqlAclEntry value)

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Parameter
NameDescription
valueSqlAclEntry
Returns
TypeDescription
SqlIpConfig.Builder

addAuthorizedNetworks(SqlAclEntry.Builder builderForValue)

public SqlIpConfig.Builder addAuthorizedNetworks(SqlAclEntry.Builder builderForValue)

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Parameter
NameDescription
builderForValueSqlAclEntry.Builder
Returns
TypeDescription
SqlIpConfig.Builder

addAuthorizedNetworks(int index, SqlAclEntry value)

public SqlIpConfig.Builder addAuthorizedNetworks(int index, SqlAclEntry value)

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Parameters
NameDescription
indexint
valueSqlAclEntry
Returns
TypeDescription
SqlIpConfig.Builder

addAuthorizedNetworks(int index, SqlAclEntry.Builder builderForValue)

public SqlIpConfig.Builder addAuthorizedNetworks(int index, SqlAclEntry.Builder builderForValue)

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Parameters
NameDescription
indexint
builderForValueSqlAclEntry.Builder
Returns
TypeDescription
SqlIpConfig.Builder

addAuthorizedNetworksBuilder()

public SqlAclEntry.Builder addAuthorizedNetworksBuilder()

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Returns
TypeDescription
SqlAclEntry.Builder

addAuthorizedNetworksBuilder(int index)

public SqlAclEntry.Builder addAuthorizedNetworksBuilder(int index)

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
SqlAclEntry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SqlIpConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SqlIpConfig.Builder
Overrides

build()

public SqlIpConfig build()
Returns
TypeDescription
SqlIpConfig

buildPartial()

public SqlIpConfig buildPartial()
Returns
TypeDescription
SqlIpConfig

clear()

public SqlIpConfig.Builder clear()
Returns
TypeDescription
SqlIpConfig.Builder
Overrides

clearAuthorizedNetworks()

public SqlIpConfig.Builder clearAuthorizedNetworks()

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Returns
TypeDescription
SqlIpConfig.Builder

clearEnableIpv4()

public SqlIpConfig.Builder clearEnableIpv4()

Whether the instance should be assigned an IPv4 address or not.

.google.protobuf.BoolValue enable_ipv4 = 1;

Returns
TypeDescription
SqlIpConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public SqlIpConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SqlIpConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SqlIpConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SqlIpConfig.Builder
Overrides

clearPrivateNetwork()

public SqlIpConfig.Builder clearPrivateNetwork()

The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, projects/myProject/global/networks/default. This setting can be updated, but it cannot be removed after it is set.

string private_network = 2;

Returns
TypeDescription
SqlIpConfig.Builder

This builder for chaining.

clearRequireSsl()

public SqlIpConfig.Builder clearRequireSsl()

Whether SSL connections over IP should be enforced or not.

.google.protobuf.BoolValue require_ssl = 3;

Returns
TypeDescription
SqlIpConfig.Builder

clone()

public SqlIpConfig.Builder clone()
Returns
TypeDescription
SqlIpConfig.Builder
Overrides

getAuthorizedNetworks(int index)

public SqlAclEntry getAuthorizedNetworks(int index)

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
SqlAclEntry

getAuthorizedNetworksBuilder(int index)

public SqlAclEntry.Builder getAuthorizedNetworksBuilder(int index)

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
SqlAclEntry.Builder

getAuthorizedNetworksBuilderList()

public List<SqlAclEntry.Builder> getAuthorizedNetworksBuilderList()

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Returns
TypeDescription
List<Builder>

getAuthorizedNetworksCount()

public int getAuthorizedNetworksCount()

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Returns
TypeDescription
int

getAuthorizedNetworksList()

public List<SqlAclEntry> getAuthorizedNetworksList()

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Returns
TypeDescription
List<SqlAclEntry>

getAuthorizedNetworksOrBuilder(int index)

public SqlAclEntryOrBuilder getAuthorizedNetworksOrBuilder(int index)

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
SqlAclEntryOrBuilder

getAuthorizedNetworksOrBuilderList()

public List<? extends SqlAclEntryOrBuilder> getAuthorizedNetworksOrBuilderList()

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Returns
TypeDescription
List<? extends com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder>

getDefaultInstanceForType()

public SqlIpConfig getDefaultInstanceForType()
Returns
TypeDescription
SqlIpConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnableIpv4()

public BoolValue getEnableIpv4()

Whether the instance should be assigned an IPv4 address or not.

.google.protobuf.BoolValue enable_ipv4 = 1;

Returns
TypeDescription
BoolValue

The enableIpv4.

getEnableIpv4Builder()

public BoolValue.Builder getEnableIpv4Builder()

Whether the instance should be assigned an IPv4 address or not.

.google.protobuf.BoolValue enable_ipv4 = 1;

Returns
TypeDescription
Builder

getEnableIpv4OrBuilder()

public BoolValueOrBuilder getEnableIpv4OrBuilder()

Whether the instance should be assigned an IPv4 address or not.

.google.protobuf.BoolValue enable_ipv4 = 1;

Returns
TypeDescription
BoolValueOrBuilder

getPrivateNetwork()

public String getPrivateNetwork()

The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, projects/myProject/global/networks/default. This setting can be updated, but it cannot be removed after it is set.

string private_network = 2;

Returns
TypeDescription
String

The privateNetwork.

getPrivateNetworkBytes()

public ByteString getPrivateNetworkBytes()

The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, projects/myProject/global/networks/default. This setting can be updated, but it cannot be removed after it is set.

string private_network = 2;

Returns
TypeDescription
ByteString

The bytes for privateNetwork.

getRequireSsl()

public BoolValue getRequireSsl()

Whether SSL connections over IP should be enforced or not.

.google.protobuf.BoolValue require_ssl = 3;

Returns
TypeDescription
BoolValue

The requireSsl.

getRequireSslBuilder()

public BoolValue.Builder getRequireSslBuilder()

Whether SSL connections over IP should be enforced or not.

.google.protobuf.BoolValue require_ssl = 3;

Returns
TypeDescription
Builder

getRequireSslOrBuilder()

public BoolValueOrBuilder getRequireSslOrBuilder()

Whether SSL connections over IP should be enforced or not.

.google.protobuf.BoolValue require_ssl = 3;

Returns
TypeDescription
BoolValueOrBuilder

hasEnableIpv4()

public boolean hasEnableIpv4()

Whether the instance should be assigned an IPv4 address or not.

.google.protobuf.BoolValue enable_ipv4 = 1;

Returns
TypeDescription
boolean

Whether the enableIpv4 field is set.

hasRequireSsl()

public boolean hasRequireSsl()

Whether SSL connections over IP should be enforced or not.

.google.protobuf.BoolValue require_ssl = 3;

Returns
TypeDescription
boolean

Whether the requireSsl field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEnableIpv4(BoolValue value)

public SqlIpConfig.Builder mergeEnableIpv4(BoolValue value)

Whether the instance should be assigned an IPv4 address or not.

.google.protobuf.BoolValue enable_ipv4 = 1;

Parameter
NameDescription
valueBoolValue
Returns
TypeDescription
SqlIpConfig.Builder

mergeFrom(SqlIpConfig other)

public SqlIpConfig.Builder mergeFrom(SqlIpConfig other)
Parameter
NameDescription
otherSqlIpConfig
Returns
TypeDescription
SqlIpConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SqlIpConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SqlIpConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SqlIpConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SqlIpConfig.Builder
Overrides

mergeRequireSsl(BoolValue value)

public SqlIpConfig.Builder mergeRequireSsl(BoolValue value)

Whether SSL connections over IP should be enforced or not.

.google.protobuf.BoolValue require_ssl = 3;

Parameter
NameDescription
valueBoolValue
Returns
TypeDescription
SqlIpConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SqlIpConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SqlIpConfig.Builder
Overrides

removeAuthorizedNetworks(int index)

public SqlIpConfig.Builder removeAuthorizedNetworks(int index)

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
SqlIpConfig.Builder

setAuthorizedNetworks(int index, SqlAclEntry value)

public SqlIpConfig.Builder setAuthorizedNetworks(int index, SqlAclEntry value)

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Parameters
NameDescription
indexint
valueSqlAclEntry
Returns
TypeDescription
SqlIpConfig.Builder

setAuthorizedNetworks(int index, SqlAclEntry.Builder builderForValue)

public SqlIpConfig.Builder setAuthorizedNetworks(int index, SqlAclEntry.Builder builderForValue)

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;

Parameters
NameDescription
indexint
builderForValueSqlAclEntry.Builder
Returns
TypeDescription
SqlIpConfig.Builder

setEnableIpv4(BoolValue value)

public SqlIpConfig.Builder setEnableIpv4(BoolValue value)

Whether the instance should be assigned an IPv4 address or not.

.google.protobuf.BoolValue enable_ipv4 = 1;

Parameter
NameDescription
valueBoolValue
Returns
TypeDescription
SqlIpConfig.Builder

setEnableIpv4(BoolValue.Builder builderForValue)

public SqlIpConfig.Builder setEnableIpv4(BoolValue.Builder builderForValue)

Whether the instance should be assigned an IPv4 address or not.

.google.protobuf.BoolValue enable_ipv4 = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
SqlIpConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SqlIpConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SqlIpConfig.Builder
Overrides

setPrivateNetwork(String value)

public SqlIpConfig.Builder setPrivateNetwork(String value)

The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, projects/myProject/global/networks/default. This setting can be updated, but it cannot be removed after it is set.

string private_network = 2;

Parameter
NameDescription
valueString

The privateNetwork to set.

Returns
TypeDescription
SqlIpConfig.Builder

This builder for chaining.

setPrivateNetworkBytes(ByteString value)

public SqlIpConfig.Builder setPrivateNetworkBytes(ByteString value)

The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, projects/myProject/global/networks/default. This setting can be updated, but it cannot be removed after it is set.

string private_network = 2;

Parameter
NameDescription
valueByteString

The bytes for privateNetwork to set.

Returns
TypeDescription
SqlIpConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SqlIpConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SqlIpConfig.Builder
Overrides

setRequireSsl(BoolValue value)

public SqlIpConfig.Builder setRequireSsl(BoolValue value)

Whether SSL connections over IP should be enforced or not.

.google.protobuf.BoolValue require_ssl = 3;

Parameter
NameDescription
valueBoolValue
Returns
TypeDescription
SqlIpConfig.Builder

setRequireSsl(BoolValue.Builder builderForValue)

public SqlIpConfig.Builder setRequireSsl(BoolValue.Builder builderForValue)

Whether SSL connections over IP should be enforced or not.

.google.protobuf.BoolValue require_ssl = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
SqlIpConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SqlIpConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SqlIpConfig.Builder
Overrides