Class ExternalAccessRule.Builder (0.46.0)

public static final class ExternalAccessRule.Builder extends GeneratedMessageV3.Builder<ExternalAccessRule.Builder> implements ExternalAccessRuleOrBuilder

External access firewall rules for filtering incoming traffic destined to ExternalAddress resources.

Protobuf type google.cloud.vmwareengine.v1.ExternalAccessRule

Static Methods

getDescriptor()

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

Methods

addAllDestinationIpRanges(Iterable<? extends ExternalAccessRule.IpRange> values)

public ExternalAccessRule.Builder addAllDestinationIpRanges(Iterable<? extends ExternalAccessRule.IpRange> values)

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Parameter
Name Description
values Iterable<? extends com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange>
Returns
Type Description
ExternalAccessRule.Builder

addAllDestinationPorts(Iterable<String> values)

public ExternalAccessRule.Builder addAllDestinationPorts(Iterable<String> values)

A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all destination ports, specify ["0-65535"].

repeated string destination_ports = 12;

Parameter
Name Description
values Iterable<String>

The destinationPorts to add.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

addAllSourceIpRanges(Iterable<? extends ExternalAccessRule.IpRange> values)

public ExternalAccessRule.Builder addAllSourceIpRanges(Iterable<? extends ExternalAccessRule.IpRange> values)

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Parameter
Name Description
values Iterable<? extends com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange>
Returns
Type Description
ExternalAccessRule.Builder

addAllSourcePorts(Iterable<String> values)

public ExternalAccessRule.Builder addAllSourcePorts(Iterable<String> values)

A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all source ports, specify ["0-65535"].

repeated string source_ports = 10;

Parameter
Name Description
values Iterable<String>

The sourcePorts to add.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

addDestinationIpRanges(ExternalAccessRule.IpRange value)

public ExternalAccessRule.Builder addDestinationIpRanges(ExternalAccessRule.IpRange value)

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Parameter
Name Description
value ExternalAccessRule.IpRange
Returns
Type Description
ExternalAccessRule.Builder

addDestinationIpRanges(ExternalAccessRule.IpRange.Builder builderForValue)

public ExternalAccessRule.Builder addDestinationIpRanges(ExternalAccessRule.IpRange.Builder builderForValue)

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Parameter
Name Description
builderForValue ExternalAccessRule.IpRange.Builder
Returns
Type Description
ExternalAccessRule.Builder

addDestinationIpRanges(int index, ExternalAccessRule.IpRange value)

public ExternalAccessRule.Builder addDestinationIpRanges(int index, ExternalAccessRule.IpRange value)

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Parameters
Name Description
index int
value ExternalAccessRule.IpRange
Returns
Type Description
ExternalAccessRule.Builder

addDestinationIpRanges(int index, ExternalAccessRule.IpRange.Builder builderForValue)

public ExternalAccessRule.Builder addDestinationIpRanges(int index, ExternalAccessRule.IpRange.Builder builderForValue)

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Parameters
Name Description
index int
builderForValue ExternalAccessRule.IpRange.Builder
Returns
Type Description
ExternalAccessRule.Builder

addDestinationIpRangesBuilder()

public ExternalAccessRule.IpRange.Builder addDestinationIpRangesBuilder()

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Returns
Type Description
ExternalAccessRule.IpRange.Builder

addDestinationIpRangesBuilder(int index)

public ExternalAccessRule.IpRange.Builder addDestinationIpRangesBuilder(int index)

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Parameter
Name Description
index int
Returns
Type Description
ExternalAccessRule.IpRange.Builder

addDestinationPorts(String value)

public ExternalAccessRule.Builder addDestinationPorts(String value)

A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all destination ports, specify ["0-65535"].

repeated string destination_ports = 12;

Parameter
Name Description
value String

The destinationPorts to add.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

addDestinationPortsBytes(ByteString value)

public ExternalAccessRule.Builder addDestinationPortsBytes(ByteString value)

A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all destination ports, specify ["0-65535"].

repeated string destination_ports = 12;

Parameter
Name Description
value ByteString

The bytes of the destinationPorts to add.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSourceIpRanges(ExternalAccessRule.IpRange value)

public ExternalAccessRule.Builder addSourceIpRanges(ExternalAccessRule.IpRange value)

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Parameter
Name Description
value ExternalAccessRule.IpRange
Returns
Type Description
ExternalAccessRule.Builder

addSourceIpRanges(ExternalAccessRule.IpRange.Builder builderForValue)

public ExternalAccessRule.Builder addSourceIpRanges(ExternalAccessRule.IpRange.Builder builderForValue)

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Parameter
Name Description
builderForValue ExternalAccessRule.IpRange.Builder
Returns
Type Description
ExternalAccessRule.Builder

addSourceIpRanges(int index, ExternalAccessRule.IpRange value)

public ExternalAccessRule.Builder addSourceIpRanges(int index, ExternalAccessRule.IpRange value)

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Parameters
Name Description
index int
value ExternalAccessRule.IpRange
Returns
Type Description
ExternalAccessRule.Builder

addSourceIpRanges(int index, ExternalAccessRule.IpRange.Builder builderForValue)

public ExternalAccessRule.Builder addSourceIpRanges(int index, ExternalAccessRule.IpRange.Builder builderForValue)

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Parameters
Name Description
index int
builderForValue ExternalAccessRule.IpRange.Builder
Returns
Type Description
ExternalAccessRule.Builder

addSourceIpRangesBuilder()

public ExternalAccessRule.IpRange.Builder addSourceIpRangesBuilder()

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Returns
Type Description
ExternalAccessRule.IpRange.Builder

addSourceIpRangesBuilder(int index)

public ExternalAccessRule.IpRange.Builder addSourceIpRangesBuilder(int index)

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Parameter
Name Description
index int
Returns
Type Description
ExternalAccessRule.IpRange.Builder

addSourcePorts(String value)

public ExternalAccessRule.Builder addSourcePorts(String value)

A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all source ports, specify ["0-65535"].

repeated string source_ports = 10;

Parameter
Name Description
value String

The sourcePorts to add.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

addSourcePortsBytes(ByteString value)

public ExternalAccessRule.Builder addSourcePortsBytes(ByteString value)

A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all source ports, specify ["0-65535"].

repeated string source_ports = 10;

Parameter
Name Description
value ByteString

The bytes of the sourcePorts to add.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

build()

public ExternalAccessRule build()
Returns
Type Description
ExternalAccessRule

buildPartial()

public ExternalAccessRule buildPartial()
Returns
Type Description
ExternalAccessRule

clear()

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

clearAction()

public ExternalAccessRule.Builder clearAction()

The action that the external access rule performs.

.google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7;

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

clearCreateTime()

public ExternalAccessRule.Builder clearCreateTime()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExternalAccessRule.Builder

clearDescription()

public ExternalAccessRule.Builder clearDescription()

User-provided description for this external access rule.

string description = 5;

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

clearDestinationIpRanges()

public ExternalAccessRule.Builder clearDestinationIpRanges()

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Returns
Type Description
ExternalAccessRule.Builder

clearDestinationPorts()

public ExternalAccessRule.Builder clearDestinationPorts()

A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all destination ports, specify ["0-65535"].

repeated string destination_ports = 12;

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIpProtocol()

public ExternalAccessRule.Builder clearIpProtocol()

The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive): tcp, udp, or icmp.

string ip_protocol = 8;

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

clearName()

public ExternalAccessRule.Builder clearName()

Output only. The resource name of this external access rule. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule

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

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ExternalAccessRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ExternalAccessRule.Builder
Overrides

clearPriority()

public ExternalAccessRule.Builder clearPriority()

External access rule priority, which determines the external access rule to use when multiple rules apply. If multiple rules have the same priority, their ordering is non-deterministic. If specific ordering is required, assign unique priorities to enforce such ordering. The external access rule priority is an integer from 100 to 4096, both inclusive. Lower integers indicate higher precedence. For example, a rule with priority 100 has higher precedence than a rule with priority 101.

int32 priority = 6;

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

clearSourceIpRanges()

public ExternalAccessRule.Builder clearSourceIpRanges()

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Returns
Type Description
ExternalAccessRule.Builder

clearSourcePorts()

public ExternalAccessRule.Builder clearSourcePorts()

A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all source ports, specify ["0-65535"].

repeated string source_ports = 10;

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

clearState()

public ExternalAccessRule.Builder clearState()

Output only. The state of the resource.

.google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

clearUid()

public ExternalAccessRule.Builder clearUid()

Output only. System-generated unique identifier for the resource.

string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

clearUpdateTime()

public ExternalAccessRule.Builder clearUpdateTime()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExternalAccessRule.Builder

clone()

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

getAction()

public ExternalAccessRule.Action getAction()

The action that the external access rule performs.

.google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7;

Returns
Type Description
ExternalAccessRule.Action

The action.

getActionValue()

public int getActionValue()

The action that the external access rule performs.

.google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7;

Returns
Type Description
int

The enum numeric value on the wire for action.

getCreateTime()

public Timestamp getCreateTime()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ExternalAccessRule getDefaultInstanceForType()
Returns
Type Description
ExternalAccessRule

getDescription()

public String getDescription()

User-provided description for this external access rule.

string description = 5;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

User-provided description for this external access rule.

string description = 5;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDestinationIpRanges(int index)

public ExternalAccessRule.IpRange getDestinationIpRanges(int index)

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Parameter
Name Description
index int
Returns
Type Description
ExternalAccessRule.IpRange

getDestinationIpRangesBuilder(int index)

public ExternalAccessRule.IpRange.Builder getDestinationIpRangesBuilder(int index)

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Parameter
Name Description
index int
Returns
Type Description
ExternalAccessRule.IpRange.Builder

getDestinationIpRangesBuilderList()

public List<ExternalAccessRule.IpRange.Builder> getDestinationIpRangesBuilderList()

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Returns
Type Description
List<Builder>

getDestinationIpRangesCount()

public int getDestinationIpRangesCount()

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Returns
Type Description
int

getDestinationIpRangesList()

public List<ExternalAccessRule.IpRange> getDestinationIpRangesList()

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Returns
Type Description
List<IpRange>

getDestinationIpRangesOrBuilder(int index)

public ExternalAccessRule.IpRangeOrBuilder getDestinationIpRangesOrBuilder(int index)

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Parameter
Name Description
index int
Returns
Type Description
ExternalAccessRule.IpRangeOrBuilder

getDestinationIpRangesOrBuilderList()

public List<? extends ExternalAccessRule.IpRangeOrBuilder> getDestinationIpRangesOrBuilderList()

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Returns
Type Description
List<? extends com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder>

getDestinationPorts(int index)

public String getDestinationPorts(int index)

A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all destination ports, specify ["0-65535"].

repeated string destination_ports = 12;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The destinationPorts at the given index.

getDestinationPortsBytes(int index)

public ByteString getDestinationPortsBytes(int index)

A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all destination ports, specify ["0-65535"].

repeated string destination_ports = 12;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the destinationPorts at the given index.

getDestinationPortsCount()

public int getDestinationPortsCount()

A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all destination ports, specify ["0-65535"].

repeated string destination_ports = 12;

Returns
Type Description
int

The count of destinationPorts.

getDestinationPortsList()

public ProtocolStringList getDestinationPortsList()

A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all destination ports, specify ["0-65535"].

repeated string destination_ports = 12;

Returns
Type Description
ProtocolStringList

A list containing the destinationPorts.

getIpProtocol()

public String getIpProtocol()

The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive): tcp, udp, or icmp.

string ip_protocol = 8;

Returns
Type Description
String

The ipProtocol.

getIpProtocolBytes()

public ByteString getIpProtocolBytes()

The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive): tcp, udp, or icmp.

string ip_protocol = 8;

Returns
Type Description
ByteString

The bytes for ipProtocol.

getName()

public String getName()

Output only. The resource name of this external access rule. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of this external access rule. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule

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

Returns
Type Description
ByteString

The bytes for name.

getPriority()

public int getPriority()

External access rule priority, which determines the external access rule to use when multiple rules apply. If multiple rules have the same priority, their ordering is non-deterministic. If specific ordering is required, assign unique priorities to enforce such ordering. The external access rule priority is an integer from 100 to 4096, both inclusive. Lower integers indicate higher precedence. For example, a rule with priority 100 has higher precedence than a rule with priority 101.

int32 priority = 6;

Returns
Type Description
int

The priority.

getSourceIpRanges(int index)

public ExternalAccessRule.IpRange getSourceIpRanges(int index)

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Parameter
Name Description
index int
Returns
Type Description
ExternalAccessRule.IpRange

getSourceIpRangesBuilder(int index)

public ExternalAccessRule.IpRange.Builder getSourceIpRangesBuilder(int index)

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Parameter
Name Description
index int
Returns
Type Description
ExternalAccessRule.IpRange.Builder

getSourceIpRangesBuilderList()

public List<ExternalAccessRule.IpRange.Builder> getSourceIpRangesBuilderList()

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Returns
Type Description
List<Builder>

getSourceIpRangesCount()

public int getSourceIpRangesCount()

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Returns
Type Description
int

getSourceIpRangesList()

public List<ExternalAccessRule.IpRange> getSourceIpRangesList()

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Returns
Type Description
List<IpRange>

getSourceIpRangesOrBuilder(int index)

public ExternalAccessRule.IpRangeOrBuilder getSourceIpRangesOrBuilder(int index)

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Parameter
Name Description
index int
Returns
Type Description
ExternalAccessRule.IpRangeOrBuilder

getSourceIpRangesOrBuilderList()

public List<? extends ExternalAccessRule.IpRangeOrBuilder> getSourceIpRangesOrBuilderList()

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Returns
Type Description
List<? extends com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRangeOrBuilder>

getSourcePorts(int index)

public String getSourcePorts(int index)

A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all source ports, specify ["0-65535"].

repeated string source_ports = 10;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The sourcePorts at the given index.

getSourcePortsBytes(int index)

public ByteString getSourcePortsBytes(int index)

A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all source ports, specify ["0-65535"].

repeated string source_ports = 10;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the sourcePorts at the given index.

getSourcePortsCount()

public int getSourcePortsCount()

A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all source ports, specify ["0-65535"].

repeated string source_ports = 10;

Returns
Type Description
int

The count of sourcePorts.

getSourcePortsList()

public ProtocolStringList getSourcePortsList()

A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all source ports, specify ["0-65535"].

repeated string source_ports = 10;

Returns
Type Description
ProtocolStringList

A list containing the sourcePorts.

getState()

public ExternalAccessRule.State getState()

Output only. The state of the resource.

.google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExternalAccessRule.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the resource.

.google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUid()

public String getUid()

Output only. System-generated unique identifier for the resource.

string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. System-generated unique identifier for the resource.

string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public ExternalAccessRule.Builder mergeCreateTime(Timestamp value)

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ExternalAccessRule.Builder

mergeFrom(ExternalAccessRule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExternalAccessRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExternalAccessRule.Builder
Overrides

mergeUpdateTime(Timestamp value)

public ExternalAccessRule.Builder mergeUpdateTime(Timestamp value)

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ExternalAccessRule.Builder

removeDestinationIpRanges(int index)

public ExternalAccessRule.Builder removeDestinationIpRanges(int index)

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Parameter
Name Description
index int
Returns
Type Description
ExternalAccessRule.Builder

removeSourceIpRanges(int index)

public ExternalAccessRule.Builder removeSourceIpRanges(int index)

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Parameter
Name Description
index int
Returns
Type Description
ExternalAccessRule.Builder

setAction(ExternalAccessRule.Action value)

public ExternalAccessRule.Builder setAction(ExternalAccessRule.Action value)

The action that the external access rule performs.

.google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7;

Parameter
Name Description
value ExternalAccessRule.Action

The action to set.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

setActionValue(int value)

public ExternalAccessRule.Builder setActionValue(int value)

The action that the external access rule performs.

.google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7;

Parameter
Name Description
value int

The enum numeric value on the wire for action to set.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public ExternalAccessRule.Builder setCreateTime(Timestamp value)

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ExternalAccessRule.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ExternalAccessRule.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Creation time of this resource.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ExternalAccessRule.Builder

setDescription(String value)

public ExternalAccessRule.Builder setDescription(String value)

User-provided description for this external access rule.

string description = 5;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ExternalAccessRule.Builder setDescriptionBytes(ByteString value)

User-provided description for this external access rule.

string description = 5;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

setDestinationIpRanges(int index, ExternalAccessRule.IpRange value)

public ExternalAccessRule.Builder setDestinationIpRanges(int index, ExternalAccessRule.IpRange value)

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Parameters
Name Description
index int
value ExternalAccessRule.IpRange
Returns
Type Description
ExternalAccessRule.Builder

setDestinationIpRanges(int index, ExternalAccessRule.IpRange.Builder builderForValue)

public ExternalAccessRule.Builder setDestinationIpRanges(int index, ExternalAccessRule.IpRange.Builder builderForValue)

If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify 0.0.0.0/0. To match a specific external IP address, specify it using the IpRange.external_address property.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;

Parameters
Name Description
index int
builderForValue ExternalAccessRule.IpRange.Builder
Returns
Type Description
ExternalAccessRule.Builder

setDestinationPorts(int index, String value)

public ExternalAccessRule.Builder setDestinationPorts(int index, String value)

A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all destination ports, specify ["0-65535"].

repeated string destination_ports = 12;

Parameters
Name Description
index int

The index to set the value at.

value String

The destinationPorts to set.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpProtocol(String value)

public ExternalAccessRule.Builder setIpProtocol(String value)

The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive): tcp, udp, or icmp.

string ip_protocol = 8;

Parameter
Name Description
value String

The ipProtocol to set.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

setIpProtocolBytes(ByteString value)

public ExternalAccessRule.Builder setIpProtocolBytes(ByteString value)

The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive): tcp, udp, or icmp.

string ip_protocol = 8;

Parameter
Name Description
value ByteString

The bytes for ipProtocol to set.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

setName(String value)

public ExternalAccessRule.Builder setName(String value)

Output only. The resource name of this external access rule. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ExternalAccessRule.Builder setNameBytes(ByteString value)

Output only. The resource name of this external access rule. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

setPriority(int value)

public ExternalAccessRule.Builder setPriority(int value)

External access rule priority, which determines the external access rule to use when multiple rules apply. If multiple rules have the same priority, their ordering is non-deterministic. If specific ordering is required, assign unique priorities to enforce such ordering. The external access rule priority is an integer from 100 to 4096, both inclusive. Lower integers indicate higher precedence. For example, a rule with priority 100 has higher precedence than a rule with priority 101.

int32 priority = 6;

Parameter
Name Description
value int

The priority to set.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

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

public ExternalAccessRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExternalAccessRule.Builder
Overrides

setSourceIpRanges(int index, ExternalAccessRule.IpRange value)

public ExternalAccessRule.Builder setSourceIpRanges(int index, ExternalAccessRule.IpRange value)

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Parameters
Name Description
index int
value ExternalAccessRule.IpRange
Returns
Type Description
ExternalAccessRule.Builder

setSourceIpRanges(int index, ExternalAccessRule.IpRange.Builder builderForValue)

public ExternalAccessRule.Builder setSourceIpRanges(int index, ExternalAccessRule.IpRange.Builder builderForValue)

If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, ExternalAddress resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify 0.0.0.0/0.

repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;

Parameters
Name Description
index int
builderForValue ExternalAccessRule.IpRange.Builder
Returns
Type Description
ExternalAccessRule.Builder

setSourcePorts(int index, String value)

public ExternalAccessRule.Builder setSourcePorts(int index, String value)

A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: ["22"], ["80","443"], or ["12345-12349"]. To match all source ports, specify ["0-65535"].

repeated string source_ports = 10;

Parameters
Name Description
index int

The index to set the value at.

value String

The sourcePorts to set.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

setState(ExternalAccessRule.State value)

public ExternalAccessRule.Builder setState(ExternalAccessRule.State value)

Output only. The state of the resource.

.google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ExternalAccessRule.State

The state to set.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

setStateValue(int value)

public ExternalAccessRule.Builder setStateValue(int value)

Output only. The state of the resource.

.google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

setUid(String value)

public ExternalAccessRule.Builder setUid(String value)

Output only. System-generated unique identifier for the resource.

string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

setUidBytes(ByteString value)

public ExternalAccessRule.Builder setUidBytes(ByteString value)

Output only. System-generated unique identifier for the resource.

string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
ExternalAccessRule.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public ExternalAccessRule.Builder setUpdateTime(Timestamp value)

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ExternalAccessRule.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ExternalAccessRule.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Last update time of this resource.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ExternalAccessRule.Builder