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:
  • 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getTypeValue

      public int getTypeValue()
       Type of NAT.
       
      .google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1;
      Specified by:
      getTypeValue in interface NatInfoOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • getType

      public NatInfo.Type getType()
       Type of NAT.
       
      .google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1;
      Specified by:
      getType in interface NatInfoOrBuilder
      Returns:
      The type.
    • getProtocol

      public String getProtocol()
       IP protocol in string format, for example: "TCP", "UDP", "ICMP".
       
      string protocol = 2;
      Specified by:
      getProtocol in interface NatInfoOrBuilder
      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:
      getProtocolBytes in interface NatInfoOrBuilder
      Returns:
      The bytes for protocol.
    • getNetworkUri

      public String getNetworkUri()
       URI of the network where NAT translation takes place.
       
      string network_uri = 3;
      Specified by:
      getNetworkUri in interface NatInfoOrBuilder
      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:
      getNetworkUriBytes in interface NatInfoOrBuilder
      Returns:
      The bytes for networkUri.
    • getOldSourceIp

      public String getOldSourceIp()
       Source IP address before NAT translation.
       
      string old_source_ip = 4;
      Specified by:
      getOldSourceIp in interface NatInfoOrBuilder
      Returns:
      The oldSourceIp.
    • getOldSourceIpBytes

      public com.google.protobuf.ByteString getOldSourceIpBytes()
       Source IP address before NAT translation.
       
      string old_source_ip = 4;
      Specified by:
      getOldSourceIpBytes in interface NatInfoOrBuilder
      Returns:
      The bytes for oldSourceIp.
    • getNewSourceIp

      public String getNewSourceIp()
       Source IP address after NAT translation.
       
      string new_source_ip = 5;
      Specified by:
      getNewSourceIp in interface NatInfoOrBuilder
      Returns:
      The newSourceIp.
    • getNewSourceIpBytes

      public com.google.protobuf.ByteString getNewSourceIpBytes()
       Source IP address after NAT translation.
       
      string new_source_ip = 5;
      Specified by:
      getNewSourceIpBytes in interface NatInfoOrBuilder
      Returns:
      The bytes for newSourceIp.
    • getOldDestinationIp

      public String getOldDestinationIp()
       Destination IP address before NAT translation.
       
      string old_destination_ip = 6;
      Specified by:
      getOldDestinationIp in interface NatInfoOrBuilder
      Returns:
      The oldDestinationIp.
    • getOldDestinationIpBytes

      public com.google.protobuf.ByteString getOldDestinationIpBytes()
       Destination IP address before NAT translation.
       
      string old_destination_ip = 6;
      Specified by:
      getOldDestinationIpBytes in interface NatInfoOrBuilder
      Returns:
      The bytes for oldDestinationIp.
    • getNewDestinationIp

      public String getNewDestinationIp()
       Destination IP address after NAT translation.
       
      string new_destination_ip = 7;
      Specified by:
      getNewDestinationIp in interface NatInfoOrBuilder
      Returns:
      The newDestinationIp.
    • getNewDestinationIpBytes

      public com.google.protobuf.ByteString getNewDestinationIpBytes()
       Destination IP address after NAT translation.
       
      string new_destination_ip = 7;
      Specified by:
      getNewDestinationIpBytes in interface NatInfoOrBuilder
      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:
      getOldSourcePort in interface NatInfoOrBuilder
      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:
      getNewSourcePort in interface NatInfoOrBuilder
      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:
      getOldDestinationPort in interface NatInfoOrBuilder
      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:
      getNewDestinationPort in interface NatInfoOrBuilder
      Returns:
      The newDestinationPort.
    • getRouterUri

      public String getRouterUri()
       Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
       
      string router_uri = 12;
      Specified by:
      getRouterUri in interface NatInfoOrBuilder
      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:
      getRouterUriBytes in interface NatInfoOrBuilder
      Returns:
      The bytes for routerUri.
    • getNatGatewayName

      public String getNatGatewayName()
       The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
       
      string nat_gateway_name = 13;
      Specified by:
      getNatGatewayName in interface NatInfoOrBuilder
      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:
      getNatGatewayNameBytes in interface NatInfoOrBuilder
      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:
      getCloudNatGatewayTypeValue in interface NatInfoOrBuilder
      Returns:
      The enum numeric value on the wire for cloudNatGatewayType.
    • getCloudNatGatewayType

      public NatInfo.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:
      getCloudNatGatewayType in interface NatInfoOrBuilder
      Returns:
      The cloudNatGatewayType.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static NatInfo parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NatInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NatInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NatInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NatInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NatInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public NatInfo.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static NatInfo.Builder newBuilder()
    • newBuilder

      public static NatInfo.Builder newBuilder(NatInfo prototype)
    • toBuilder

      public NatInfo.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected NatInfo.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static NatInfo getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<NatInfo> parser()
    • getParserForType

      public com.google.protobuf.Parser<NatInfo> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public NatInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder