Class NatInfo (1.53.0)

public final class NatInfo extends GeneratedMessageV3 implements NatInfoOrBuilder

For display only. Metadata associated with NAT.

Protobuf type google.cloud.networkmanagement.v1beta1.NatInfo

Implements

NatInfoOrBuilder

Static Fields

NAT_GATEWAY_NAME_FIELD_NUMBER

public static final int NAT_GATEWAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_URI_FIELD_NUMBER

public static final int NETWORK_URI_FIELD_NUMBER
Field Value
Type Description
int

NEW_DESTINATION_IP_FIELD_NUMBER

public static final int NEW_DESTINATION_IP_FIELD_NUMBER
Field Value
Type Description
int

NEW_DESTINATION_PORT_FIELD_NUMBER

public static final int NEW_DESTINATION_PORT_FIELD_NUMBER
Field Value
Type Description
int

NEW_SOURCE_IP_FIELD_NUMBER

public static final int NEW_SOURCE_IP_FIELD_NUMBER
Field Value
Type Description
int

NEW_SOURCE_PORT_FIELD_NUMBER

public static final int NEW_SOURCE_PORT_FIELD_NUMBER
Field Value
Type Description
int

OLD_DESTINATION_IP_FIELD_NUMBER

public static final int OLD_DESTINATION_IP_FIELD_NUMBER
Field Value
Type Description
int

OLD_DESTINATION_PORT_FIELD_NUMBER

public static final int OLD_DESTINATION_PORT_FIELD_NUMBER
Field Value
Type Description
int

OLD_SOURCE_IP_FIELD_NUMBER

public static final int OLD_SOURCE_IP_FIELD_NUMBER
Field Value
Type Description
int

OLD_SOURCE_PORT_FIELD_NUMBER

public static final int OLD_SOURCE_PORT_FIELD_NUMBER
Field Value
Type Description
int

PROTOCOL_FIELD_NUMBER

public static final int PROTOCOL_FIELD_NUMBER
Field Value
Type Description
int

ROUTER_URI_FIELD_NUMBER

public static final int ROUTER_URI_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NatInfo getDefaultInstance()
Returns
Type Description
NatInfo

getDescriptor()

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

newBuilder()

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

newBuilder(NatInfo prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public NatInfo getDefaultInstanceForType()
Returns
Type Description
NatInfo

getNatGatewayName()

public String getNatGatewayName()

The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.

string nat_gateway_name = 13;

Returns
Type Description
String

The natGatewayName.

getNatGatewayNameBytes()

public ByteString getNatGatewayNameBytes()

The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.

string nat_gateway_name = 13;

Returns
Type Description
ByteString

The bytes for natGatewayName.

getNetworkUri()

public String getNetworkUri()

URI of the network where NAT translation takes place.

string network_uri = 3;

Returns
Type Description
String

The networkUri.

getNetworkUriBytes()

public ByteString getNetworkUriBytes()

URI of the network where NAT translation takes place.

string network_uri = 3;

Returns
Type Description
ByteString

The bytes for networkUri.

getNewDestinationIp()

public String getNewDestinationIp()

Destination IP address after NAT translation.

string new_destination_ip = 7;

Returns
Type Description
String

The newDestinationIp.

getNewDestinationIpBytes()

public ByteString getNewDestinationIpBytes()

Destination IP address after NAT translation.

string new_destination_ip = 7;

Returns
Type Description
ByteString

The bytes for newDestinationIp.

getNewDestinationPort()

public int getNewDestinationPort()

Destination port after NAT translation. Only valid when protocol is TCP or UDP.

int32 new_destination_port = 11;

Returns
Type Description
int

The newDestinationPort.

getNewSourceIp()

public String getNewSourceIp()

Source IP address after NAT translation.

string new_source_ip = 5;

Returns
Type Description
String

The newSourceIp.

getNewSourceIpBytes()

public ByteString getNewSourceIpBytes()

Source IP address after NAT translation.

string new_source_ip = 5;

Returns
Type Description
ByteString

The bytes for newSourceIp.

getNewSourcePort()

public int getNewSourcePort()

Source port after NAT translation. Only valid when protocol is TCP or UDP.

int32 new_source_port = 9;

Returns
Type Description
int

The newSourcePort.

getOldDestinationIp()

public String getOldDestinationIp()

Destination IP address before NAT translation.

string old_destination_ip = 6;

Returns
Type Description
String

The oldDestinationIp.

getOldDestinationIpBytes()

public ByteString getOldDestinationIpBytes()

Destination IP address before NAT translation.

string old_destination_ip = 6;

Returns
Type Description
ByteString

The bytes for oldDestinationIp.

getOldDestinationPort()

public int getOldDestinationPort()

Destination port before NAT translation. Only valid when protocol is TCP or UDP.

int32 old_destination_port = 10;

Returns
Type Description
int

The oldDestinationPort.

getOldSourceIp()

public String getOldSourceIp()

Source IP address before NAT translation.

string old_source_ip = 4;

Returns
Type Description
String

The oldSourceIp.

getOldSourceIpBytes()

public ByteString getOldSourceIpBytes()

Source IP address before NAT translation.

string old_source_ip = 4;

Returns
Type Description
ByteString

The bytes for oldSourceIp.

getOldSourcePort()

public int getOldSourcePort()

Source port before NAT translation. Only valid when protocol is TCP or UDP.

int32 old_source_port = 8;

Returns
Type Description
int

The oldSourcePort.

getParserForType()

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

getProtocol()

public String getProtocol()

IP protocol in string format, for example: "TCP", "UDP", "ICMP".

string protocol = 2;

Returns
Type Description
String

The protocol.

getProtocolBytes()

public ByteString getProtocolBytes()

IP protocol in string format, for example: "TCP", "UDP", "ICMP".

string protocol = 2;

Returns
Type Description
ByteString

The bytes for protocol.

getRouterUri()

public String getRouterUri()

Uri of the Cloud Router. Only valid when type is CLOUD_NAT.

string router_uri = 12;

Returns
Type Description
String

The routerUri.

getRouterUriBytes()

public ByteString getRouterUriBytes()

Uri of the Cloud Router. Only valid when type is CLOUD_NAT.

string router_uri = 12;

Returns
Type Description
ByteString

The bytes for routerUri.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getType()

public NatInfo.Type getType()

Type of NAT.

.google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1;

Returns
Type Description
NatInfo.Type

The type.

getTypeValue()

public int getTypeValue()

Type of NAT.

.google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1;

Returns
Type Description
int

The enum numeric value on the wire for type.

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 NatInfo.Builder newBuilderForType()
Returns
Type Description
NatInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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