Class VmEndpointNatMappingsInterfaceNatMappings (1.12.1)

public final class VmEndpointNatMappingsInterfaceNatMappings extends GeneratedMessageV3 implements VmEndpointNatMappingsInterfaceNatMappingsOrBuilder

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

Protobuf type google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings

Inheritance

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

Static Fields

DRAIN_NAT_IP_PORT_RANGES_FIELD_NUMBER

public static final int DRAIN_NAT_IP_PORT_RANGES_FIELD_NUMBER
Field Value
TypeDescription
int

NAT_IP_PORT_RANGES_FIELD_NUMBER

public static final int NAT_IP_PORT_RANGES_FIELD_NUMBER
Field Value
TypeDescription
int

NUM_TOTAL_DRAIN_NAT_PORTS_FIELD_NUMBER

public static final int NUM_TOTAL_DRAIN_NAT_PORTS_FIELD_NUMBER
Field Value
TypeDescription
int

NUM_TOTAL_NAT_PORTS_FIELD_NUMBER

public static final int NUM_TOTAL_NAT_PORTS_FIELD_NUMBER
Field Value
TypeDescription
int

RULE_MAPPINGS_FIELD_NUMBER

public static final int RULE_MAPPINGS_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_ALIAS_IP_RANGE_FIELD_NUMBER

public static final int SOURCE_ALIAS_IP_RANGE_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_VIRTUAL_IP_FIELD_NUMBER

public static final int SOURCE_VIRTUAL_IP_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VmEndpointNatMappingsInterfaceNatMappings getDefaultInstance()
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static VmEndpointNatMappingsInterfaceNatMappings.Builder newBuilder()
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings.Builder

newBuilder(VmEndpointNatMappingsInterfaceNatMappings prototype)

public static VmEndpointNatMappingsInterfaceNatMappings.Builder newBuilder(VmEndpointNatMappingsInterfaceNatMappings prototype)
Parameter
NameDescription
prototypeVmEndpointNatMappingsInterfaceNatMappings
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings.Builder

parseDelimitedFrom(InputStream input)

public static VmEndpointNatMappingsInterfaceNatMappings parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappingsInterfaceNatMappings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static VmEndpointNatMappingsInterfaceNatMappings parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappingsInterfaceNatMappings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VmEndpointNatMappingsInterfaceNatMappings parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappingsInterfaceNatMappings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VmEndpointNatMappingsInterfaceNatMappings parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappingsInterfaceNatMappings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static VmEndpointNatMappingsInterfaceNatMappings parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappingsInterfaceNatMappings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static VmEndpointNatMappingsInterfaceNatMappings parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VmEndpointNatMappingsInterfaceNatMappings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<VmEndpointNatMappingsInterfaceNatMappings> parser()
Returns
TypeDescription
Parser<VmEndpointNatMappingsInterfaceNatMappings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public VmEndpointNatMappingsInterfaceNatMappings getDefaultInstanceForType()
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings

getDrainNatIpPortRanges(int index)

public String getDrainNatIpPortRanges(int index)

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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. 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
TypeDescription
int

The count of drainNatIpPortRanges.

getDrainNatIpPortRangesList()

public ProtocolStringList getDrainNatIpPortRangesList()

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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. 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
TypeDescription
int

The count of natIpPortRanges.

getNatIpPortRangesList()

public ProtocolStringList getNatIpPortRangesList()

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
TypeDescription
ProtocolStringList

A list containing the natIpPortRanges.

getNumTotalDrainNatPorts()

public int getNumTotalDrainNatPorts()

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

optional int32 num_total_drain_nat_ports = 335532793;

Returns
TypeDescription
int

The numTotalDrainNatPorts.

getNumTotalNatPorts()

public int getNumTotalNatPorts()

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

optional int32 num_total_nat_ports = 299904384;

Returns
TypeDescription
int

The numTotalNatPorts.

getParserForType()

public Parser<VmEndpointNatMappingsInterfaceNatMappings> getParserForType()
Returns
TypeDescription
Parser<VmEndpointNatMappingsInterfaceNatMappings>
Overrides

getRuleMappings(int index)

public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings getRuleMappings(int index)

Information about mappings provided by rules in this NAT.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings

getRuleMappingsCount()

public int getRuleMappingsCount()

Information about mappings provided by rules in this NAT.

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

Returns
TypeDescription
int

getRuleMappingsList()

public List<VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings> getRuleMappingsList()

Information about mappings provided by rules in this NAT.

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

Returns
TypeDescription
List<VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>

getRuleMappingsOrBuilder(int index)

public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappingsOrBuilder getRuleMappingsOrBuilder(int index)

Information about mappings provided by rules in this NAT.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappingsOrBuilder

getRuleMappingsOrBuilderList()

public List<? extends VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappingsOrBuilder> getRuleMappingsOrBuilderList()

Information about mappings provided by rules in this NAT.

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

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappingsOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceAliasIpRange()

public String getSourceAliasIpRange()

Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24".

optional string source_alias_ip_range = 440340952;

Returns
TypeDescription
String

The sourceAliasIpRange.

getSourceAliasIpRangeBytes()

public ByteString getSourceAliasIpRangeBytes()

Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24".

optional string source_alias_ip_range = 440340952;

Returns
TypeDescription
ByteString

The bytes for sourceAliasIpRange.

getSourceVirtualIp()

public String getSourceVirtualIp()

Primary IP of the VM for this NIC.

optional string source_virtual_ip = 149836159;

Returns
TypeDescription
String

The sourceVirtualIp.

getSourceVirtualIpBytes()

public ByteString getSourceVirtualIpBytes()

Primary IP of the VM for this NIC.

optional string source_virtual_ip = 149836159;

Returns
TypeDescription
ByteString

The bytes for sourceVirtualIp.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasNumTotalDrainNatPorts()

public boolean hasNumTotalDrainNatPorts()

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

optional int32 num_total_drain_nat_ports = 335532793;

Returns
TypeDescription
boolean

Whether the numTotalDrainNatPorts field is set.

hasNumTotalNatPorts()

public boolean hasNumTotalNatPorts()

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

optional int32 num_total_nat_ports = 299904384;

Returns
TypeDescription
boolean

Whether the numTotalNatPorts field is set.

hasSourceAliasIpRange()

public boolean hasSourceAliasIpRange()

Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24".

optional string source_alias_ip_range = 440340952;

Returns
TypeDescription
boolean

Whether the sourceAliasIpRange field is set.

hasSourceVirtualIp()

public boolean hasSourceVirtualIp()

Primary IP of the VM for this NIC.

optional string source_virtual_ip = 149836159;

Returns
TypeDescription
boolean

Whether the sourceVirtualIp field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public VmEndpointNatMappingsInterfaceNatMappings.Builder newBuilderForType()
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VmEndpointNatMappingsInterfaceNatMappings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public VmEndpointNatMappingsInterfaceNatMappings.Builder toBuilder()
Returns
TypeDescription
VmEndpointNatMappingsInterfaceNatMappings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException