Class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings (1.59.0)

public final class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings extends GeneratedMessageV3 implements VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappingsOrBuilder

Contains information of NAT Mappings provided by a NAT Rule.

Protobuf type google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings

Static Fields

DRAIN_NAT_IP_PORT_RANGES_FIELD_NUMBER

public static final int DRAIN_NAT_IP_PORT_RANGES_FIELD_NUMBER
Field Value
Type Description
int

NAT_IP_PORT_RANGES_FIELD_NUMBER

public static final int NAT_IP_PORT_RANGES_FIELD_NUMBER
Field Value
Type Description
int

NUM_TOTAL_DRAIN_NAT_PORTS_FIELD_NUMBER

public static final int NUM_TOTAL_DRAIN_NAT_PORTS_FIELD_NUMBER
Field Value
Type Description
int

NUM_TOTAL_NAT_PORTS_FIELD_NUMBER

public static final int NUM_TOTAL_NAT_PORTS_FIELD_NUMBER
Field Value
Type Description
int

RULE_NUMBER_FIELD_NUMBER

public static final int RULE_NUMBER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings getDefaultInstance()
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings

getDescriptor()

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

newBuilder()

public static VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder newBuilder()
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder

newBuilder(VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings prototype)

public static VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder newBuilder(VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings prototype)
Parameter
Name Description
prototype VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder

parseDelimitedFrom(InputStream input)

public static VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings> parser()
Returns
Type Description
Parser<VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings getDefaultInstanceForType()
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings

getDrainNatIpPortRanges(int index)

public String getDrainNatIpPortRanges(int index)

List of all drain IP:port-range mappings assigned to this interface by this rule. 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
index int

The index of the element to return.

Returns
Type Description
String

The drainNatIpPortRanges at the given index.

getDrainNatIpPortRangesBytes(int index)

public ByteString getDrainNatIpPortRangesBytes(int index)

List of all drain IP:port-range mappings assigned to this interface by this rule. 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
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the drainNatIpPortRanges at the given index.

getDrainNatIpPortRangesCount()

public int getDrainNatIpPortRangesCount()

List of all drain IP:port-range mappings assigned to this interface by this rule. 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
int

The count of drainNatIpPortRanges.

getDrainNatIpPortRangesList()

public ProtocolStringList getDrainNatIpPortRangesList()

List of all drain IP:port-range mappings assigned to this interface by this rule. 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
ProtocolStringList

A list containing the drainNatIpPortRanges.

getNatIpPortRanges(int index)

public String getNatIpPortRanges(int index)

A list of all IP:port-range mappings assigned to this interface by this rule. 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
index int

The index of the element to return.

Returns
Type Description
String

The natIpPortRanges at the given index.

getNatIpPortRangesBytes(int index)

public ByteString getNatIpPortRangesBytes(int index)

A list of all IP:port-range mappings assigned to this interface by this rule. 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
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the natIpPortRanges at the given index.

getNatIpPortRangesCount()

public int getNatIpPortRangesCount()

A list of all IP:port-range mappings assigned to this interface by this rule. 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
int

The count of natIpPortRanges.

getNatIpPortRangesList()

public ProtocolStringList getNatIpPortRangesList()

A list of all IP:port-range mappings assigned to this interface by this rule. 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
ProtocolStringList

A list containing the natIpPortRanges.

getNumTotalDrainNatPorts()

public int getNumTotalDrainNatPorts()

Total number of drain ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges.

optional int32 num_total_drain_nat_ports = 335532793;

Returns
Type Description
int

The numTotalDrainNatPorts.

getNumTotalNatPorts()

public int getNumTotalNatPorts()

Total number of ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field nat_ip_port_ranges.

optional int32 num_total_nat_ports = 299904384;

Returns
Type Description
int

The numTotalNatPorts.

getParserForType()

public Parser<VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings> getParserForType()
Returns
Type Description
Parser<VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>
Overrides

getRuleNumber()

public int getRuleNumber()

Rule number of the NAT Rule.

optional int32 rule_number = 535211500;

Returns
Type Description
int

The ruleNumber.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasNumTotalDrainNatPorts()

public boolean hasNumTotalDrainNatPorts()

Total number of drain ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges.

optional int32 num_total_drain_nat_ports = 335532793;

Returns
Type Description
boolean

Whether the numTotalDrainNatPorts field is set.

hasNumTotalNatPorts()

public boolean hasNumTotalNatPorts()

Total number of ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field nat_ip_port_ranges.

optional int32 num_total_nat_ports = 299904384;

Returns
Type Description
boolean

Whether the numTotalNatPorts field is set.

hasRuleNumber()

public boolean hasRuleNumber()

Rule number of the NAT Rule.

optional int32 rule_number = 535211500;

Returns
Type Description
boolean

Whether the ruleNumber field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder newBuilderForType()
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder toBuilder()
Returns
Type Description
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException