Class RouterStatusNatStatus

  • All Implemented Interfaces:
    RouterStatusNatStatusOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class RouterStatusNatStatus
    extends com.google.protobuf.GeneratedMessageV3
    implements RouterStatusNatStatusOrBuilder
     Status of a NAT contained in this router.
     
    Protobuf type google.cloud.compute.v1.RouterStatusNatStatus
    See Also:
    Serialized Form
    • Field Detail

      • AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER

        public static final int AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DRAIN_AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER

        public static final int DRAIN_AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DRAIN_USER_ALLOCATED_NAT_IPS_FIELD_NUMBER

        public static final int DRAIN_USER_ALLOCATED_NAT_IPS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MIN_EXTRA_NAT_IPS_NEEDED_FIELD_NUMBER

        public static final int MIN_EXTRA_NAT_IPS_NEEDED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NUM_VM_ENDPOINTS_WITH_NAT_MAPPINGS_FIELD_NUMBER

        public static final int NUM_VM_ENDPOINTS_WITH_NAT_MAPPINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RULE_STATUS_FIELD_NUMBER

        public static final int RULE_STATUS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • USER_ALLOCATED_NAT_IP_RESOURCES_FIELD_NUMBER

        public static final int USER_ALLOCATED_NAT_IP_RESOURCES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • USER_ALLOCATED_NAT_IPS_FIELD_NUMBER

        public static final int USER_ALLOCATED_NAT_IPS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getAutoAllocatedNatIpsList

        public com.google.protobuf.ProtocolStringList getAutoAllocatedNatIpsList()
         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()
         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)
         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)
         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()
         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()
         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)
         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)
         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()
         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()
         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)
         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)
         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()
         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()
         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()
         Unique name of this NAT.
         
        optional string name = 3373707;
        Specified by:
        hasName in interface RouterStatusNatStatusOrBuilder
        Returns:
        Whether the name field is set.
      • getNameBytes

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

        public boolean hasNumVmEndpointsWithNatMappings()
         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()
         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.
      • 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
      • getUserAllocatedNatIpResourcesList

        public com.google.protobuf.ProtocolStringList getUserAllocatedNatIpResourcesList()
         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()
         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)
         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)
         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()
         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()
         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)
         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)
         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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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
      • newBuilderForType

        public RouterStatusNatStatus.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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