Class ExternalAccessRule.Builder (0.29.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The destinationPorts to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The sourcePorts to add.

Returns
TypeDescription
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
NameDescription
valueExternalAccessRule.IpRange
Returns
TypeDescription
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
NameDescription
builderForValueExternalAccessRule.IpRange.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueExternalAccessRule.IpRange
Returns
TypeDescription
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
NameDescription
indexint
builderForValueExternalAccessRule.IpRange.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The destinationPorts to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the destinationPorts to add.

Returns
TypeDescription
ExternalAccessRule.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExternalAccessRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueExternalAccessRule.IpRange
Returns
TypeDescription
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
NameDescription
builderForValueExternalAccessRule.IpRange.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueExternalAccessRule.IpRange
Returns
TypeDescription
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
NameDescription
indexint
builderForValueExternalAccessRule.IpRange.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The sourcePorts to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the sourcePorts to add.

Returns
TypeDescription
ExternalAccessRule.Builder

This builder for chaining.

build()

public ExternalAccessRule build()
Returns
TypeDescription
ExternalAccessRule

buildPartial()

public ExternalAccessRule buildPartial()
Returns
TypeDescription
ExternalAccessRule

clear()

public ExternalAccessRule.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ExternalAccessRule.Builder

clearDescription()

public ExternalAccessRule.Builder clearDescription()

User-provided description for this external access rule.

string description = 5;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ExternalAccessRule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ExternalAccessRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ExternalAccessRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ExternalAccessRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ExternalAccessRule.Builder

clone()

public ExternalAccessRule.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ExternalAccessRule getDefaultInstanceForType()
Returns
TypeDescription
ExternalAccessRule

getDescription()

public String getDescription()

User-provided description for this external access rule.

string description = 5;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

User-provided description for this external access rule.

string description = 5;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
ExternalAccessRule.Builder

mergeFrom(ExternalAccessRule other)

public ExternalAccessRule.Builder mergeFrom(ExternalAccessRule other)
Parameter
NameDescription
otherExternalAccessRule
Returns
TypeDescription
ExternalAccessRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExternalAccessRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueExternalAccessRule.Action

The action to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ExternalAccessRule.Builder

setDescription(String value)

public ExternalAccessRule.Builder setDescription(String value)

User-provided description for this external access rule.

string description = 5;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
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
NameDescription
indexint
valueExternalAccessRule.IpRange
Returns
TypeDescription
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
NameDescription
indexint
builderForValueExternalAccessRule.IpRange.Builder
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The destinationPorts to set.

Returns
TypeDescription
ExternalAccessRule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExternalAccessRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The ipProtocol to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for ipProtocol to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueint

The priority to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueExternalAccessRule.IpRange
Returns
TypeDescription
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
NameDescription
indexint
builderForValueExternalAccessRule.IpRange.Builder
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The sourcePorts to set.

Returns
TypeDescription
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
NameDescription
valueExternalAccessRule.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The uid to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
ExternalAccessRule.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ExternalAccessRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ExternalAccessRule.Builder