Class RouterStatusNatStatus

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.RouterStatusNatStatus
All Implemented Interfaces:
RouterStatusNatStatusOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class RouterStatusNatStatus extends com.google.protobuf.GeneratedMessage implements RouterStatusNatStatusOrBuilder
 Status of a NAT contained in this router.
 
Protobuf type google.cloud.compute.v1.RouterStatusNatStatus
See Also:
  • Field Details

    • AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER

      public static final int AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER
      See Also:
    • DRAIN_AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER

      public static final int DRAIN_AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER
      See Also:
    • DRAIN_USER_ALLOCATED_NAT_IPS_FIELD_NUMBER

      public static final int DRAIN_USER_ALLOCATED_NAT_IPS_FIELD_NUMBER
      See Also:
    • MIN_EXTRA_NAT_IPS_NEEDED_FIELD_NUMBER

      public static final int MIN_EXTRA_NAT_IPS_NEEDED_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • NUM_VM_ENDPOINTS_WITH_NAT_MAPPINGS_FIELD_NUMBER

      public static final int NUM_VM_ENDPOINTS_WITH_NAT_MAPPINGS_FIELD_NUMBER
      See Also:
    • RULE_STATUS_FIELD_NUMBER

      public static final int RULE_STATUS_FIELD_NUMBER
      See Also:
    • USER_ALLOCATED_NAT_IP_RESOURCES_FIELD_NUMBER

      public static final int USER_ALLOCATED_NAT_IP_RESOURCES_FIELD_NUMBER
      See Also:
    • USER_ALLOCATED_NAT_IPS_FIELD_NUMBER

      public static final int USER_ALLOCATED_NAT_IPS_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
    • getAutoAllocatedNatIpsList

      public com.google.protobuf.ProtocolStringList getAutoAllocatedNatIpsList()
       Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]
       
      repeated string auto_allocated_nat_ips = 510794246;
      Specified by:
      getAutoAllocatedNatIpsList in interface RouterStatusNatStatusOrBuilder
      Returns:
      A list containing the autoAllocatedNatIps.
    • getAutoAllocatedNatIpsCount

      public int getAutoAllocatedNatIpsCount()
       Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]
       
      repeated string auto_allocated_nat_ips = 510794246;
      Specified by:
      getAutoAllocatedNatIpsCount in interface RouterStatusNatStatusOrBuilder
      Returns:
      The count of autoAllocatedNatIps.
    • getAutoAllocatedNatIps

      public String getAutoAllocatedNatIps(int index)
       Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]
       
      repeated string auto_allocated_nat_ips = 510794246;
      Specified by:
      getAutoAllocatedNatIps in interface RouterStatusNatStatusOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The autoAllocatedNatIps at the given index.
    • getAutoAllocatedNatIpsBytes

      public com.google.protobuf.ByteString getAutoAllocatedNatIpsBytes(int index)
       Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]
       
      repeated string auto_allocated_nat_ips = 510794246;
      Specified by:
      getAutoAllocatedNatIpsBytes in interface RouterStatusNatStatusOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the autoAllocatedNatIps at the given index.
    • getDrainAutoAllocatedNatIpsList

      public com.google.protobuf.ProtocolStringList getDrainAutoAllocatedNatIpsList()
       Output only. A list of IPs auto-allocated for NAT that are in drain mode.
       Example: ["1.1.1.1", "179.12.26.133"].
       
      repeated string drain_auto_allocated_nat_ips = 309184557;
      Specified by:
      getDrainAutoAllocatedNatIpsList in interface RouterStatusNatStatusOrBuilder
      Returns:
      A list containing the drainAutoAllocatedNatIps.
    • getDrainAutoAllocatedNatIpsCount

      public int getDrainAutoAllocatedNatIpsCount()
       Output only. A list of IPs auto-allocated for NAT that are in drain mode.
       Example: ["1.1.1.1", "179.12.26.133"].
       
      repeated string drain_auto_allocated_nat_ips = 309184557;
      Specified by:
      getDrainAutoAllocatedNatIpsCount in interface RouterStatusNatStatusOrBuilder
      Returns:
      The count of drainAutoAllocatedNatIps.
    • getDrainAutoAllocatedNatIps

      public String getDrainAutoAllocatedNatIps(int index)
       Output only. A list of IPs auto-allocated for NAT that are in drain mode.
       Example: ["1.1.1.1", "179.12.26.133"].
       
      repeated string drain_auto_allocated_nat_ips = 309184557;
      Specified by:
      getDrainAutoAllocatedNatIps in interface RouterStatusNatStatusOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The drainAutoAllocatedNatIps at the given index.
    • getDrainAutoAllocatedNatIpsBytes

      public com.google.protobuf.ByteString getDrainAutoAllocatedNatIpsBytes(int index)
       Output only. A list of IPs auto-allocated for NAT that are in drain mode.
       Example: ["1.1.1.1", "179.12.26.133"].
       
      repeated string drain_auto_allocated_nat_ips = 309184557;
      Specified by:
      getDrainAutoAllocatedNatIpsBytes in interface RouterStatusNatStatusOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the drainAutoAllocatedNatIps at the given index.
    • getDrainUserAllocatedNatIpsList

      public com.google.protobuf.ProtocolStringList getDrainUserAllocatedNatIpsList()
       Output only. A list of IPs user-allocated for NAT that are in drain mode.
       Example: ["1.1.1.1", "179.12.26.133"].
       
      repeated string drain_user_allocated_nat_ips = 305268553;
      Specified by:
      getDrainUserAllocatedNatIpsList in interface RouterStatusNatStatusOrBuilder
      Returns:
      A list containing the drainUserAllocatedNatIps.
    • getDrainUserAllocatedNatIpsCount

      public int getDrainUserAllocatedNatIpsCount()
       Output only. A list of IPs user-allocated for NAT that are in drain mode.
       Example: ["1.1.1.1", "179.12.26.133"].
       
      repeated string drain_user_allocated_nat_ips = 305268553;
      Specified by:
      getDrainUserAllocatedNatIpsCount in interface RouterStatusNatStatusOrBuilder
      Returns:
      The count of drainUserAllocatedNatIps.
    • getDrainUserAllocatedNatIps

      public String getDrainUserAllocatedNatIps(int index)
       Output only. A list of IPs user-allocated for NAT that are in drain mode.
       Example: ["1.1.1.1", "179.12.26.133"].
       
      repeated string drain_user_allocated_nat_ips = 305268553;
      Specified by:
      getDrainUserAllocatedNatIps in interface RouterStatusNatStatusOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The drainUserAllocatedNatIps at the given index.
    • getDrainUserAllocatedNatIpsBytes

      public com.google.protobuf.ByteString getDrainUserAllocatedNatIpsBytes(int index)
       Output only. A list of IPs user-allocated for NAT that are in drain mode.
       Example: ["1.1.1.1", "179.12.26.133"].
       
      repeated string drain_user_allocated_nat_ips = 305268553;
      Specified by:
      getDrainUserAllocatedNatIpsBytes in interface RouterStatusNatStatusOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the drainUserAllocatedNatIps at the given index.
    • hasMinExtraNatIpsNeeded

      public boolean hasMinExtraNatIpsNeeded()
       Output only. The number of extra IPs to allocate. This will be greater than 0 only if
       user-specified IPs are NOT enough to allow all configured VMs to use NAT.
       This value is meaningful only when auto-allocation of NAT IPs is *not*
       used.
       
      optional int32 min_extra_nat_ips_needed = 365786338;
      Specified by:
      hasMinExtraNatIpsNeeded in interface RouterStatusNatStatusOrBuilder
      Returns:
      Whether the minExtraNatIpsNeeded field is set.
    • getMinExtraNatIpsNeeded

      public int getMinExtraNatIpsNeeded()
       Output only. The number of extra IPs to allocate. This will be greater than 0 only if
       user-specified IPs are NOT enough to allow all configured VMs to use NAT.
       This value is meaningful only when auto-allocation of NAT IPs is *not*
       used.
       
      optional int32 min_extra_nat_ips_needed = 365786338;
      Specified by:
      getMinExtraNatIpsNeeded in interface RouterStatusNatStatusOrBuilder
      Returns:
      The minExtraNatIpsNeeded.
    • hasName

      public boolean hasName()
       Output only. Unique name of this NAT.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface RouterStatusNatStatusOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Output only. Unique name of this NAT.
       
      optional string name = 3373707;
      Specified by:
      getName in interface RouterStatusNatStatusOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Unique name of this NAT.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface RouterStatusNatStatusOrBuilder
      Returns:
      The bytes for name.
    • hasNumVmEndpointsWithNatMappings

      public boolean hasNumVmEndpointsWithNatMappings()
       Output only. Number of VM endpoints (i.e., Nics) that can use NAT.
       
      optional int32 num_vm_endpoints_with_nat_mappings = 512367468;
      Specified by:
      hasNumVmEndpointsWithNatMappings in interface RouterStatusNatStatusOrBuilder
      Returns:
      Whether the numVmEndpointsWithNatMappings field is set.
    • getNumVmEndpointsWithNatMappings

      public int getNumVmEndpointsWithNatMappings()
       Output only. Number of VM endpoints (i.e., Nics) that can use NAT.
       
      optional int32 num_vm_endpoints_with_nat_mappings = 512367468;
      Specified by:
      getNumVmEndpointsWithNatMappings in interface RouterStatusNatStatusOrBuilder
      Returns:
      The numVmEndpointsWithNatMappings.
    • getRuleStatusList

      public List<RouterStatusNatStatusNatRuleStatus> getRuleStatusList()
       Status of rules in this NAT.
       
      repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;
      Specified by:
      getRuleStatusList in interface RouterStatusNatStatusOrBuilder
    • getRuleStatusOrBuilderList

      public List<? extends RouterStatusNatStatusNatRuleStatusOrBuilder> getRuleStatusOrBuilderList()
       Status of rules in this NAT.
       
      repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;
      Specified by:
      getRuleStatusOrBuilderList in interface RouterStatusNatStatusOrBuilder
    • getRuleStatusCount

      public int getRuleStatusCount()
       Status of rules in this NAT.
       
      repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;
      Specified by:
      getRuleStatusCount in interface RouterStatusNatStatusOrBuilder
    • getRuleStatus

      public RouterStatusNatStatusNatRuleStatus getRuleStatus(int index)
       Status of rules in this NAT.
       
      repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;
      Specified by:
      getRuleStatus in interface RouterStatusNatStatusOrBuilder
    • getRuleStatusOrBuilder

      public RouterStatusNatStatusNatRuleStatusOrBuilder getRuleStatusOrBuilder(int index)
       Status of rules in this NAT.
       
      repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;
      Specified by:
      getRuleStatusOrBuilder in interface RouterStatusNatStatusOrBuilder
    • getUserAllocatedNatIpResourcesList

      public com.google.protobuf.ProtocolStringList getUserAllocatedNatIpResourcesList()
       Output only. A list of fully qualified URLs of reserved IP address resources.
       
      repeated string user_allocated_nat_ip_resources = 212776151;
      Specified by:
      getUserAllocatedNatIpResourcesList in interface RouterStatusNatStatusOrBuilder
      Returns:
      A list containing the userAllocatedNatIpResources.
    • getUserAllocatedNatIpResourcesCount

      public int getUserAllocatedNatIpResourcesCount()
       Output only. A list of fully qualified URLs of reserved IP address resources.
       
      repeated string user_allocated_nat_ip_resources = 212776151;
      Specified by:
      getUserAllocatedNatIpResourcesCount in interface RouterStatusNatStatusOrBuilder
      Returns:
      The count of userAllocatedNatIpResources.
    • getUserAllocatedNatIpResources

      public String getUserAllocatedNatIpResources(int index)
       Output only. A list of fully qualified URLs of reserved IP address resources.
       
      repeated string user_allocated_nat_ip_resources = 212776151;
      Specified by:
      getUserAllocatedNatIpResources in interface RouterStatusNatStatusOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The userAllocatedNatIpResources at the given index.
    • getUserAllocatedNatIpResourcesBytes

      public com.google.protobuf.ByteString getUserAllocatedNatIpResourcesBytes(int index)
       Output only. A list of fully qualified URLs of reserved IP address resources.
       
      repeated string user_allocated_nat_ip_resources = 212776151;
      Specified by:
      getUserAllocatedNatIpResourcesBytes in interface RouterStatusNatStatusOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the userAllocatedNatIpResources at the given index.
    • getUserAllocatedNatIpsList

      public com.google.protobuf.ProtocolStringList getUserAllocatedNatIpsList()
       Output only. A list of IPs user-allocated for NAT.
       They will be raw IP strings like "179.12.26.133".
       
      repeated string user_allocated_nat_ips = 506878242;
      Specified by:
      getUserAllocatedNatIpsList in interface RouterStatusNatStatusOrBuilder
      Returns:
      A list containing the userAllocatedNatIps.
    • getUserAllocatedNatIpsCount

      public int getUserAllocatedNatIpsCount()
       Output only. A list of IPs user-allocated for NAT.
       They will be raw IP strings like "179.12.26.133".
       
      repeated string user_allocated_nat_ips = 506878242;
      Specified by:
      getUserAllocatedNatIpsCount in interface RouterStatusNatStatusOrBuilder
      Returns:
      The count of userAllocatedNatIps.
    • getUserAllocatedNatIps

      public String getUserAllocatedNatIps(int index)
       Output only. A list of IPs user-allocated for NAT.
       They will be raw IP strings like "179.12.26.133".
       
      repeated string user_allocated_nat_ips = 506878242;
      Specified by:
      getUserAllocatedNatIps in interface RouterStatusNatStatusOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The userAllocatedNatIps at the given index.
    • getUserAllocatedNatIpsBytes

      public com.google.protobuf.ByteString getUserAllocatedNatIpsBytes(int index)
       Output only. A list of IPs user-allocated for NAT.
       They will be raw IP strings like "179.12.26.133".
       
      repeated string user_allocated_nat_ips = 506878242;
      Specified by:
      getUserAllocatedNatIpsBytes in interface RouterStatusNatStatusOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the userAllocatedNatIps at the given index.
    • 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 RouterStatusNatStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RouterStatusNatStatus parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RouterStatusNatStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RouterStatusNatStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RouterStatusNatStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RouterStatusNatStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

      public static RouterStatusNatStatus.Builder newBuilder()
    • newBuilder

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

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

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

      public static RouterStatusNatStatus getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<RouterStatusNatStatus> 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 RouterStatusNatStatus getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder