Class ProvisioningQuota

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

    public final class ProvisioningQuota
    extends com.google.protobuf.GeneratedMessageV3
    implements ProvisioningQuotaOrBuilder
     A provisioning quota for a given project.
     
    Protobuf type google.cloud.baremetalsolution.v2.ProvisioningQuota
    See Also:
    Serialized Form
    • 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
      • getName

        public String getName()
         Output only. The name of the provisioning quota.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface ProvisioningQuotaOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The name of the provisioning quota.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface ProvisioningQuotaOrBuilder
        Returns:
        The bytes for name.
      • getAssetTypeValue

        public int getAssetTypeValue()
         The asset type of this provisioning quota.
         
        .google.cloud.baremetalsolution.v2.ProvisioningQuota.AssetType asset_type = 2;
        Specified by:
        getAssetTypeValue in interface ProvisioningQuotaOrBuilder
        Returns:
        The enum numeric value on the wire for assetType.
      • getGcpServiceBytes

        public com.google.protobuf.ByteString getGcpServiceBytes()
         The gcp service of the provisioning quota.
         
        string gcp_service = 3;
        Specified by:
        getGcpServiceBytes in interface ProvisioningQuotaOrBuilder
        Returns:
        The bytes for gcpService.
      • getLocationBytes

        public com.google.protobuf.ByteString getLocationBytes()
         The specific location of the provisioining quota.
         
        string location = 4;
        Specified by:
        getLocationBytes in interface ProvisioningQuotaOrBuilder
        Returns:
        The bytes for location.
      • getAvailableCount

        public int getAvailableCount()
         The available count of the provisioning quota.
         
        int32 available_count = 5;
        Specified by:
        getAvailableCount in interface ProvisioningQuotaOrBuilder
        Returns:
        The availableCount.
      • hasInstanceQuota

        public boolean hasInstanceQuota()
         Instance quota.
         
        .google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;
        Specified by:
        hasInstanceQuota in interface ProvisioningQuotaOrBuilder
        Returns:
        Whether the instanceQuota field is set.
      • hasServerCount

        public boolean hasServerCount()
         Server count.
         
        int64 server_count = 7;
        Specified by:
        hasServerCount in interface ProvisioningQuotaOrBuilder
        Returns:
        Whether the serverCount field is set.
      • hasNetworkBandwidth

        public boolean hasNetworkBandwidth()
         Network bandwidth, Gbps
         
        int64 network_bandwidth = 8;
        Specified by:
        hasNetworkBandwidth in interface ProvisioningQuotaOrBuilder
        Returns:
        Whether the networkBandwidth field is set.
      • hasStorageGib

        public boolean hasStorageGib()
         Storage size (GB).
         
        int64 storage_gib = 9;
        Specified by:
        hasStorageGib in interface ProvisioningQuotaOrBuilder
        Returns:
        Whether the storageGib field is set.
      • 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 ProvisioningQuota parseFrom​(ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        protected ProvisioningQuota.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

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