Class ExternalServerConfig.Builder (0.4.0)

public static final class ExternalServerConfig.Builder extends GeneratedMessage.Builder<ExternalServerConfig.Builder> implements ExternalServerConfigOrBuilder

Configuration for external server.

Protobuf type google.cloud.ftp.v1.ExternalServerConfig

Static Methods

getDescriptor()

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

Methods

addAllAllowedCidrBlocks(Iterable<String> values)

public ExternalServerConfig.Builder addAllAllowedCidrBlocks(Iterable<String> values)

Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: 192.168.0.0/16

repeated string allowed_cidr_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The allowedCidrBlocks to add.

Returns
Type Description
ExternalServerConfig.Builder

This builder for chaining.

addAllowedCidrBlocks(String value)

public ExternalServerConfig.Builder addAllowedCidrBlocks(String value)

Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: 192.168.0.0/16

repeated string allowed_cidr_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The allowedCidrBlocks to add.

Returns
Type Description
ExternalServerConfig.Builder

This builder for chaining.

addAllowedCidrBlocksBytes(ByteString value)

public ExternalServerConfig.Builder addAllowedCidrBlocksBytes(ByteString value)

Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: 192.168.0.0/16

repeated string allowed_cidr_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the allowedCidrBlocks to add.

Returns
Type Description
ExternalServerConfig.Builder

This builder for chaining.

build()

public ExternalServerConfig build()
Returns
Type Description
ExternalServerConfig

buildPartial()

public ExternalServerConfig buildPartial()
Returns
Type Description
ExternalServerConfig

clear()

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

clearAllowedCidrBlocks()

public ExternalServerConfig.Builder clearAllowedCidrBlocks()

Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: 192.168.0.0/16

repeated string allowed_cidr_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExternalServerConfig.Builder

This builder for chaining.

clearIpAddress()

public ExternalServerConfig.Builder clearIpAddress()

Output only. IP address of the LB via which clients will connect.

string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
ExternalServerConfig.Builder

This builder for chaining.

getAllowedCidrBlocks(int index)

public String getAllowedCidrBlocks(int index)

Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: 192.168.0.0/16

repeated string allowed_cidr_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allowedCidrBlocks at the given index.

getAllowedCidrBlocksBytes(int index)

public ByteString getAllowedCidrBlocksBytes(int index)

Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: 192.168.0.0/16

repeated string allowed_cidr_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allowedCidrBlocks at the given index.

getAllowedCidrBlocksCount()

public int getAllowedCidrBlocksCount()

Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: 192.168.0.0/16

repeated string allowed_cidr_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of allowedCidrBlocks.

getAllowedCidrBlocksList()

public ProtocolStringList getAllowedCidrBlocksList()

Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: 192.168.0.0/16

repeated string allowed_cidr_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the allowedCidrBlocks.

getDefaultInstanceForType()

public ExternalServerConfig getDefaultInstanceForType()
Returns
Type Description
ExternalServerConfig

getDescriptorForType()

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

getIpAddress()

public String getIpAddress()

Output only. IP address of the LB via which clients will connect.

string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

Output only. IP address of the LB via which clients will connect.

string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for ipAddress.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExternalServerConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAllowedCidrBlocks(int index, String value)

public ExternalServerConfig.Builder setAllowedCidrBlocks(int index, String value)

Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: 192.168.0.0/16

repeated string allowed_cidr_blocks = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The allowedCidrBlocks to set.

Returns
Type Description
ExternalServerConfig.Builder

This builder for chaining.

setIpAddress(String value)

public ExternalServerConfig.Builder setIpAddress(String value)

Output only. IP address of the LB via which clients will connect.

string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
ExternalServerConfig.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public ExternalServerConfig.Builder setIpAddressBytes(ByteString value)

Output only. IP address of the LB via which clients will connect.

string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
ExternalServerConfig.Builder

This builder for chaining.