Class SqlIpConfig.Builder (2.54.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.clouddms.v1.SqlAclEntry>
Returns
Type Description
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
Name Description
value SqlAclEntry
Returns
Type Description
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
Name Description
builderForValue SqlAclEntry.Builder
Returns
Type Description
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
Name Description
index int
value SqlAclEntry
Returns
Type Description
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
Name Description
index int
builderForValue SqlAclEntry.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
SqlAclEntry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SqlIpConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SqlIpConfig.Builder
Overrides

build()

public SqlIpConfig build()
Returns
Type Description
SqlIpConfig

buildPartial()

public SqlIpConfig buildPartial()
Returns
Type Description
SqlIpConfig

clear()

public SqlIpConfig.Builder clear()
Returns
Type Description
SqlIpConfig.Builder
Overrides

clearAllocatedIpRange()

public SqlIpConfig.Builder clearAllocatedIpRange()

Optional. The name of the allocated IP address range for the private IP Cloud SQL instance. This name refers to an already allocated IP range address. If set, the instance IP address will be created in the allocated range. Note that this IP address range can't be modified after the instance is created. If you change the VPC when configuring connectivity settings for the migration job, this field is not relevant.

string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SqlIpConfig.Builder

This builder for chaining.

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
Type Description
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
Type Description
SqlIpConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public SqlIpConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SqlIpConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SqlIpConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
SqlIpConfig.Builder

clone()

public SqlIpConfig.Builder clone()
Returns
Type Description
SqlIpConfig.Builder
Overrides

getAllocatedIpRange()

public String getAllocatedIpRange()

Optional. The name of the allocated IP address range for the private IP Cloud SQL instance. This name refers to an already allocated IP range address. If set, the instance IP address will be created in the allocated range. Note that this IP address range can't be modified after the instance is created. If you change the VPC when configuring connectivity settings for the migration job, this field is not relevant.

string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The allocatedIpRange.

getAllocatedIpRangeBytes()

public ByteString getAllocatedIpRangeBytes()

Optional. The name of the allocated IP address range for the private IP Cloud SQL instance. This name refers to an already allocated IP range address. If set, the instance IP address will be created in the allocated range. Note that this IP address range can't be modified after the instance is created. If you change the VPC when configuring connectivity settings for the migration job, this field is not relevant.

string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for allocatedIpRange.

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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder>

getDefaultInstanceForType()

public SqlIpConfig getDefaultInstanceForType()
Returns
Type Description
SqlIpConfig

getDescriptorForType()

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

getEnableIpv4()

public BoolValue getEnableIpv4()

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

.google.protobuf.BoolValue enable_ipv4 = 1;

Returns
Type Description
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
Type Description
Builder

getEnableIpv4OrBuilder()

public BoolValueOrBuilder getEnableIpv4OrBuilder()

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

.google.protobuf.BoolValue enable_ipv4 = 1;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
Builder

getRequireSslOrBuilder()

public BoolValueOrBuilder getRequireSslOrBuilder()

Whether SSL connections over IP should be enforced or not.

.google.protobuf.BoolValue require_ssl = 3;

Returns
Type Description
BoolValueOrBuilder

hasEnableIpv4()

public boolean hasEnableIpv4()

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

.google.protobuf.BoolValue enable_ipv4 = 1;

Returns
Type Description
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
Type Description
boolean

Whether the requireSsl field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value BoolValue
Returns
Type Description
SqlIpConfig.Builder

mergeFrom(SqlIpConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SqlIpConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value BoolValue
Returns
Type Description
SqlIpConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SqlIpConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
SqlIpConfig.Builder

setAllocatedIpRange(String value)

public SqlIpConfig.Builder setAllocatedIpRange(String value)

Optional. The name of the allocated IP address range for the private IP Cloud SQL instance. This name refers to an already allocated IP range address. If set, the instance IP address will be created in the allocated range. Note that this IP address range can't be modified after the instance is created. If you change the VPC when configuring connectivity settings for the migration job, this field is not relevant.

string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The allocatedIpRange to set.

Returns
Type Description
SqlIpConfig.Builder

This builder for chaining.

setAllocatedIpRangeBytes(ByteString value)

public SqlIpConfig.Builder setAllocatedIpRangeBytes(ByteString value)

Optional. The name of the allocated IP address range for the private IP Cloud SQL instance. This name refers to an already allocated IP range address. If set, the instance IP address will be created in the allocated range. Note that this IP address range can't be modified after the instance is created. If you change the VPC when configuring connectivity settings for the migration job, this field is not relevant.

string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for allocatedIpRange to set.

Returns
Type Description
SqlIpConfig.Builder

This builder for chaining.

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
Name Description
index int
value SqlAclEntry
Returns
Type Description
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
Name Description
index int
builderForValue SqlAclEntry.Builder
Returns
Type Description
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
Name Description
value BoolValue
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
SqlIpConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SqlIpConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The privateNetwork to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for privateNetwork to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value BoolValue
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
SqlIpConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SqlIpConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SqlIpConfig.Builder
Overrides