Class VmEndpointNatMappingsInterfaceNatMappings.Builder (1.91.0)

public static final class VmEndpointNatMappingsInterfaceNatMappings.Builder extends GeneratedMessageV3.Builder<VmEndpointNatMappingsInterfaceNatMappings.Builder> implements VmEndpointNatMappingsInterfaceNatMappingsOrBuilder

Contain information of Nat mapping for an interface of this endpoint.

Protobuf type google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings

Static Methods

getDescriptor()

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

Methods

addAllDrainNatIpPortRanges(Iterable<String> values)

public VmEndpointNatMappingsInterfaceNatMappings.Builder addAllDrainNatIpPortRanges(Iterable<String> values)

Output only. List of all drain IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].

repeated string drain_nat_ip_port_ranges = 395440577;

Parameter
Name Description
values Iterable<String>

The drainNatIpPortRanges to add.

Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings.Builder

This builder for chaining.

addAllNatIpPortRanges(Iterable<String> values)

public VmEndpointNatMappingsInterfaceNatMappings.Builder addAllNatIpPortRanges(Iterable<String> values)

Output only. A list of all IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].

repeated string nat_ip_port_ranges = 531830810;

Parameter
Name Description
values Iterable<String>

The natIpPortRanges to add.

Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings.Builder

This builder for chaining.

addAllRuleMappings(Iterable<? extends VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings> values)

public VmEndpointNatMappingsInterfaceNatMappings.Builder addAllRuleMappings(Iterable<? extends VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings> values)

Output only. Information about mappings provided by rules in this NAT.

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings rule_mappings = 486192968;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings.Builder

addDrainNatIpPortRanges(String value)

public VmEndpointNatMappingsInterfaceNatMappings.Builder addDrainNatIpPortRanges(String value)

Output only. List of all drain IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].

repeated string drain_nat_ip_port_ranges = 395440577;

Parameter
Name Description
value String

The drainNatIpPortRanges to add.

Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings.Builder

This builder for chaining.

addDrainNatIpPortRangesBytes(ByteString value)

public VmEndpointNatMappingsInterfaceNatMappings.Builder addDrainNatIpPortRangesBytes(ByteString value)

Output only. List of all drain IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].

repeated string drain_nat_ip_port_ranges = 395440577;

Parameter
Name Description
value ByteString

The bytes of the drainNatIpPortRanges to add.

Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings.Builder

This builder for chaining.

addNatIpPortRanges(String value)

public VmEndpointNatMappingsInterfaceNatMappings.Builder addNatIpPortRanges(String value)

Output only. A list of all IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].

repeated string nat_ip_port_ranges = 531830810;

Parameter
Name Description
value String

The natIpPortRanges to add.

Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings.Builder

This builder for chaining.

addNatIpPortRangesBytes(ByteString value)

public VmEndpointNatMappingsInterfaceNatMappings.Builder addNatIpPortRangesBytes(ByteString value)

Output only. A list of all IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].

repeated string nat_ip_port_ranges = 531830810;

Parameter
Name Description
value ByteString

The bytes of the natIpPortRanges to add.

Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRuleMappings(VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings value)

public VmEndpointNatMappingsInterfaceNatMappings.Builder addRuleMappings(VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings value)

Output only. Information about mappings provided by rules in this NAT.

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings rule_mappings = 486192968;

Parameter
Name Description
value VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings.Builder

addRuleMappings(VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder builderForValue)

public VmEndpointNatMappingsInterfaceNatMappings.Builder addRuleMappings(VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder builderForValue)

Output only. Information about mappings provided by rules in this NAT.

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings rule_mappings = 486192968;

Parameter
Name Description
builderForValue VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings.Builder

addRuleMappings(int index, VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings value)

public VmEndpointNatMappingsInterfaceNatMappings.Builder addRuleMappings(int index, VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings value)

Output only. Information about mappings provided by rules in this NAT.

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings rule_mappings = 486192968;

Parameters
Name Description
index int
value VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings.Builder

addRuleMappings(int index, VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder builderForValue)

public VmEndpointNatMappingsInterfaceNatMappings.Builder addRuleMappings(int index, VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder builderForValue)

Output only. Information about mappings provided by rules in this NAT.

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings rule_mappings = 486192968;

Parameters
Name Description
index int
builderForValue VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings.Builder

addRuleMappingsBuilder()

public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder addRuleMappingsBuilder()

Output only. Information about mappings provided by rules in this NAT.

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings rule_mappings = 486192968;

Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder

addRuleMappingsBuilder(int index)

public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder addRuleMappingsBuilder(int index)

Output only. Information about mappings provided by rules in this NAT.

repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings rule_mappings = 486192968;

Parameter
Name Description
index int
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder

build()

public VmEndpointNatMappingsInterfaceNatMappings build()
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings

buildPartial()

public VmEndpointNatMappingsInterfaceNatMappings buildPartial()
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings

clear()

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

clearDrainNatIpPortRanges()

public VmEndpointNatMappingsInterfaceNatMappings.Builder clearDrainNatIpPortRanges()

Output only. List of all drain IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].

repeated string drain_nat_ip_port_ranges = 395440577;

Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNatIpPortRanges()

public VmEndpointNatMappingsInterfaceNatMappings.Builder clearNatIpPortRanges()

Output only. A list of all IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].

repeated string nat_ip_port_ranges = 531830810;

Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappings.Builder

This builder for chaining.