Class NatInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkmanagement.v1beta1.NatInfo
- All Implemented Interfaces:
NatInfoOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class NatInfo
extends com.google.protobuf.GeneratedMessage
implements NatInfoOrBuilder
For display only. Metadata associated with NAT.Protobuf type
google.cloud.networkmanagement.v1beta1.NatInfo- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFor display only.static enumTypes of Cloud NAT gateway.static enumTypes of NAT.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanType of Cloud NAT gateway.intType of Cloud NAT gateway.static NatInfostatic final com.google.protobuf.Descriptors.DescriptorThe name of Cloud NAT Gateway.com.google.protobuf.ByteStringThe name of Cloud NAT Gateway.URI of the network where NAT translation takes place.com.google.protobuf.ByteStringURI of the network where NAT translation takes place.Destination IP address after NAT translation.com.google.protobuf.ByteStringDestination IP address after NAT translation.intDestination port after NAT translation.Source IP address after NAT translation.com.google.protobuf.ByteStringSource IP address after NAT translation.intSource port after NAT translation.Destination IP address before NAT translation.com.google.protobuf.ByteStringDestination IP address before NAT translation.intDestination port before NAT translation.Source IP address before NAT translation.com.google.protobuf.ByteStringSource IP address before NAT translation.intSource port before NAT translation.com.google.protobuf.Parser<NatInfo>IP protocol in string format, for example: "TCP", "UDP", "ICMP".com.google.protobuf.ByteStringIP protocol in string format, for example: "TCP", "UDP", "ICMP".Uri of the Cloud Router.com.google.protobuf.ByteStringUri of the Cloud Router.intgetType()Type of NAT.intType of NAT.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic NatInfo.Builderstatic NatInfo.BuildernewBuilder(NatInfo prototype) protected NatInfo.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static NatInfoparseDelimitedFrom(InputStream input) static NatInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NatInfoparseFrom(byte[] data) static NatInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NatInfoparseFrom(com.google.protobuf.ByteString data) static NatInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NatInfoparseFrom(com.google.protobuf.CodedInputStream input) static NatInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NatInfoparseFrom(InputStream input) static NatInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NatInfoparseFrom(ByteBuffer data) static NatInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<NatInfo>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
PROTOCOL_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER- See Also:
-
NETWORK_URI_FIELD_NUMBER
public static final int NETWORK_URI_FIELD_NUMBER- See Also:
-
OLD_SOURCE_IP_FIELD_NUMBER
public static final int OLD_SOURCE_IP_FIELD_NUMBER- See Also:
-
NEW_SOURCE_IP_FIELD_NUMBER
public static final int NEW_SOURCE_IP_FIELD_NUMBER- See Also:
-
OLD_DESTINATION_IP_FIELD_NUMBER
public static final int OLD_DESTINATION_IP_FIELD_NUMBER- See Also:
-
NEW_DESTINATION_IP_FIELD_NUMBER
public static final int NEW_DESTINATION_IP_FIELD_NUMBER- See Also:
-
OLD_SOURCE_PORT_FIELD_NUMBER
public static final int OLD_SOURCE_PORT_FIELD_NUMBER- See Also:
-
NEW_SOURCE_PORT_FIELD_NUMBER
public static final int NEW_SOURCE_PORT_FIELD_NUMBER- See Also:
-
OLD_DESTINATION_PORT_FIELD_NUMBER
public static final int OLD_DESTINATION_PORT_FIELD_NUMBER- See Also:
-
NEW_DESTINATION_PORT_FIELD_NUMBER
public static final int NEW_DESTINATION_PORT_FIELD_NUMBER- See Also:
-
ROUTER_URI_FIELD_NUMBER
public static final int ROUTER_URI_FIELD_NUMBER- See Also:
-
NAT_GATEWAY_NAME_FIELD_NUMBER
public static final int NAT_GATEWAY_NAME_FIELD_NUMBER- See Also:
-
CLOUD_NAT_GATEWAY_TYPE_FIELD_NUMBER
public static final int CLOUD_NAT_GATEWAY_TYPE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getTypeValue
public int getTypeValue()Type of NAT.
.google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1;- Specified by:
getTypeValuein interfaceNatInfoOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
Type of NAT.
.google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1;- Specified by:
getTypein interfaceNatInfoOrBuilder- Returns:
- The type.
-
getProtocol
IP protocol in string format, for example: "TCP", "UDP", "ICMP".
string protocol = 2;- Specified by:
getProtocolin interfaceNatInfoOrBuilder- Returns:
- The protocol.
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()IP protocol in string format, for example: "TCP", "UDP", "ICMP".
string protocol = 2;- Specified by:
getProtocolBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for protocol.
-
getNetworkUri
URI of the network where NAT translation takes place.
string network_uri = 3;- Specified by:
getNetworkUriin interfaceNatInfoOrBuilder- Returns:
- The networkUri.
-
getNetworkUriBytes
public com.google.protobuf.ByteString getNetworkUriBytes()URI of the network where NAT translation takes place.
string network_uri = 3;- Specified by:
getNetworkUriBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for networkUri.
-
getOldSourceIp
Source IP address before NAT translation.
string old_source_ip = 4;- Specified by:
getOldSourceIpin interfaceNatInfoOrBuilder- Returns:
- The oldSourceIp.
-
getOldSourceIpBytes
public com.google.protobuf.ByteString getOldSourceIpBytes()Source IP address before NAT translation.
string old_source_ip = 4;- Specified by:
getOldSourceIpBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for oldSourceIp.
-
getNewSourceIp
Source IP address after NAT translation.
string new_source_ip = 5;- Specified by:
getNewSourceIpin interfaceNatInfoOrBuilder- Returns:
- The newSourceIp.
-
getNewSourceIpBytes
public com.google.protobuf.ByteString getNewSourceIpBytes()Source IP address after NAT translation.
string new_source_ip = 5;- Specified by:
getNewSourceIpBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for newSourceIp.
-
getOldDestinationIp
Destination IP address before NAT translation.
string old_destination_ip = 6;- Specified by:
getOldDestinationIpin interfaceNatInfoOrBuilder- Returns:
- The oldDestinationIp.
-
getOldDestinationIpBytes
public com.google.protobuf.ByteString getOldDestinationIpBytes()Destination IP address before NAT translation.
string old_destination_ip = 6;- Specified by:
getOldDestinationIpBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for oldDestinationIp.
-
getNewDestinationIp
Destination IP address after NAT translation.
string new_destination_ip = 7;- Specified by:
getNewDestinationIpin interfaceNatInfoOrBuilder- Returns:
- The newDestinationIp.
-
getNewDestinationIpBytes
public com.google.protobuf.ByteString getNewDestinationIpBytes()Destination IP address after NAT translation.
string new_destination_ip = 7;- Specified by:
getNewDestinationIpBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for newDestinationIp.
-
getOldSourcePort
public int getOldSourcePort()Source port before NAT translation. Only valid when protocol is TCP or UDP.
int32 old_source_port = 8;- Specified by:
getOldSourcePortin interfaceNatInfoOrBuilder- Returns:
- The oldSourcePort.
-
getNewSourcePort
public int getNewSourcePort()Source port after NAT translation. Only valid when protocol is TCP or UDP.
int32 new_source_port = 9;- Specified by:
getNewSourcePortin interfaceNatInfoOrBuilder- Returns:
- The newSourcePort.
-
getOldDestinationPort
public int getOldDestinationPort()Destination port before NAT translation. Only valid when protocol is TCP or UDP.
int32 old_destination_port = 10;- Specified by:
getOldDestinationPortin interfaceNatInfoOrBuilder- Returns:
- The oldDestinationPort.
-
getNewDestinationPort
public int getNewDestinationPort()Destination port after NAT translation. Only valid when protocol is TCP or UDP.
int32 new_destination_port = 11;- Specified by:
getNewDestinationPortin interfaceNatInfoOrBuilder- Returns:
- The newDestinationPort.
-
getRouterUri
Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
string router_uri = 12;- Specified by:
getRouterUriin interfaceNatInfoOrBuilder- Returns:
- The routerUri.
-
getRouterUriBytes
public com.google.protobuf.ByteString getRouterUriBytes()Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
string router_uri = 12;- Specified by:
getRouterUriBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for routerUri.
-
getNatGatewayName
The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
string nat_gateway_name = 13;- Specified by:
getNatGatewayNamein interfaceNatInfoOrBuilder- Returns:
- The natGatewayName.
-
getNatGatewayNameBytes
public com.google.protobuf.ByteString getNatGatewayNameBytes()The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
string nat_gateway_name = 13;- Specified by:
getNatGatewayNameBytesin interfaceNatInfoOrBuilder- Returns:
- The bytes for natGatewayName.
-
getCloudNatGatewayTypeValue
public int getCloudNatGatewayTypeValue()Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT.
.google.cloud.networkmanagement.v1beta1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14;- Specified by:
getCloudNatGatewayTypeValuein interfaceNatInfoOrBuilder- Returns:
- The enum numeric value on the wire for cloudNatGatewayType.
-
getCloudNatGatewayType
Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT.
.google.cloud.networkmanagement.v1beta1.NatInfo.CloudNatGatewayType cloud_nat_gateway_type = 14;- Specified by:
getCloudNatGatewayTypein interfaceNatInfoOrBuilder- Returns:
- The cloudNatGatewayType.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static NatInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NatInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NatInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NatInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NatInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NatInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static NatInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static NatInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static NatInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected NatInfo.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-