Class NatInfo (1.42.0)

public final class NatInfo extends GeneratedMessageV3 implements NatInfoOrBuilder

For display only. Metadata associated with NAT.

Protobuf type google.cloud.networkmanagement.v1.NatInfo

Implements

NatInfoOrBuilder

Static Fields

NAT_GATEWAY_NAME_FIELD_NUMBER

public static final int NAT_GATEWAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_URI_FIELD_NUMBER

public static final int NETWORK_URI_FIELD_NUMBER
Field Value
TypeDescription
int

NEW_DESTINATION_IP_FIELD_NUMBER

public static final int NEW_DESTINATION_IP_FIELD_NUMBER
Field Value
TypeDescription
int

NEW_DESTINATION_PORT_FIELD_NUMBER

public static final int NEW_DESTINATION_PORT_FIELD_NUMBER
Field Value
TypeDescription
int

NEW_SOURCE_IP_FIELD_NUMBER

public static final int NEW_SOURCE_IP_FIELD_NUMBER
Field Value
TypeDescription
int

NEW_SOURCE_PORT_FIELD_NUMBER

public static final int NEW_SOURCE_PORT_FIELD_NUMBER
Field Value
TypeDescription
int

OLD_DESTINATION_IP_FIELD_NUMBER

public static final int OLD_DESTINATION_IP_FIELD_NUMBER
Field Value
TypeDescription
int

OLD_DESTINATION_PORT_FIELD_NUMBER

public static final int OLD_DESTINATION_PORT_FIELD_NUMBER
Field Value
TypeDescription
int

OLD_SOURCE_IP_FIELD_NUMBER

public static final int OLD_SOURCE_IP_FIELD_NUMBER
Field Value
TypeDescription
int

OLD_SOURCE_PORT_FIELD_NUMBER

public static final int OLD_SOURCE_PORT_FIELD_NUMBER
Field Value
TypeDescription
int

PROTOCOL_FIELD_NUMBER

public static final int PROTOCOL_FIELD_NUMBER
Field Value
TypeDescription
int

ROUTER_URI_FIELD_NUMBER

public static final int ROUTER_URI_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NatInfo getDefaultInstance()
Returns
TypeDescription
NatInfo

getDescriptor()

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

newBuilder()

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

newBuilder(NatInfo prototype)

public static NatInfo.Builder newBuilder(NatInfo prototype)
Parameter
NameDescription
prototypeNatInfo
Returns
TypeDescription
NatInfo.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public NatInfo getDefaultInstanceForType()
Returns
TypeDescription
NatInfo

getNatGatewayName()

public String getNatGatewayName()

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

string nat_gateway_name = 13;

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

The bytes for natGatewayName.

getNetworkUri()

public String getNetworkUri()

URI of the network where NAT translation takes place.

string network_uri = 3;

Returns
TypeDescription
String

The networkUri.

getNetworkUriBytes()

public ByteString getNetworkUriBytes()

URI of the network where NAT translation takes place.

string network_uri = 3;

Returns
TypeDescription
ByteString

The bytes for networkUri.

getNewDestinationIp()

public String getNewDestinationIp()

Destination IP address after NAT translation.

string new_destination_ip = 7;

Returns
TypeDescription
String

The newDestinationIp.

getNewDestinationIpBytes()

public ByteString getNewDestinationIpBytes()

Destination IP address after NAT translation.

string new_destination_ip = 7;

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

The newDestinationPort.

getNewSourceIp()

public String getNewSourceIp()

Source IP address after NAT translation.

string new_source_ip = 5;

Returns
TypeDescription
String

The newSourceIp.

getNewSourceIpBytes()

public ByteString getNewSourceIpBytes()

Source IP address after NAT translation.

string new_source_ip = 5;

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

The newSourcePort.

getOldDestinationIp()

public String getOldDestinationIp()

Destination IP address before NAT translation.

string old_destination_ip = 6;

Returns
TypeDescription
String

The oldDestinationIp.

getOldDestinationIpBytes()

public ByteString getOldDestinationIpBytes()

Destination IP address before NAT translation.

string old_destination_ip = 6;

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

The oldDestinationPort.

getOldSourceIp()

public String getOldSourceIp()

Source IP address before NAT translation.

string old_source_ip = 4;

Returns
TypeDescription
String

The oldSourceIp.

getOldSourceIpBytes()

public ByteString getOldSourceIpBytes()

Source IP address before NAT translation.

string old_source_ip = 4;

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

The oldSourcePort.

getParserForType()

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

getProtocol()

public String getProtocol()

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

string protocol = 2;

Returns
TypeDescription
String

The protocol.

getProtocolBytes()

public ByteString getProtocolBytes()

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

string protocol = 2;

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

The routerUri.

getRouterUriBytes()

public ByteString getRouterUriBytes()

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

string router_uri = 12;

Returns
TypeDescription
ByteString

The bytes for routerUri.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public NatInfo.Type getType()

Type of NAT.

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

Returns
TypeDescription
NatInfo.Type

The type.

getTypeValue()

public int getTypeValue()

Type of NAT.

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

Returns
TypeDescription
int

The enum numeric value on the wire for type.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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