public final class NatInfo extends GeneratedMessageV3 implements NatInfoOrBuilder
For display only. Metadata associated with NAT.
Protobuf type google.cloud.networkmanagement.v1.NatInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static NatInfo.Builder newBuilder()
newBuilder(NatInfo prototype)
public static NatInfo.Builder newBuilder(NatInfo prototype)
Parameter |
---|
Name | Description |
prototype | NatInfo
|
public static NatInfo parseDelimitedFrom(InputStream input)
public static NatInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static NatInfo parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static NatInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static NatInfo parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static NatInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static NatInfo parseFrom(CodedInputStream input)
public static NatInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static NatInfo parseFrom(InputStream input)
public static NatInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static NatInfo parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static NatInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<NatInfo> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public NatInfo getDefaultInstanceForType()
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()
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.v1.NatInfo.Type type = 1;
getTypeValue()
public int getTypeValue()
Type of NAT.
.google.cloud.networkmanagement.v1.NatInfo.Type type = 1;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for type.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public NatInfo.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected NatInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public NatInfo.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides