Class ProvisioningQuota.Builder

  • All Implemented Interfaces:
    ProvisioningQuotaOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ProvisioningQuota

    public static final class ProvisioningQuota.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
    implements ProvisioningQuotaOrBuilder
     A provisioning quota for a given project.
     
    Protobuf type google.cloud.baremetalsolution.v2.ProvisioningQuota
    • Method Detail

      • 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.Builder<ProvisioningQuota.Builder>
      • clear

        public ProvisioningQuota.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
      • getDefaultInstanceForType

        public ProvisioningQuota getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

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

        public ProvisioningQuota.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
      • setField

        public ProvisioningQuota.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
      • clearField

        public ProvisioningQuota.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
      • clearOneof

        public ProvisioningQuota.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
      • setRepeatedField

        public ProvisioningQuota.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
      • addRepeatedField

        public ProvisioningQuota.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
      • mergeFrom

        public ProvisioningQuota.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProvisioningQuota.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
      • mergeFrom

        public ProvisioningQuota.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProvisioningQuota.Builder>
        Throws:
        IOException
      • 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.
      • setName

        public ProvisioningQuota.Builder setName​(String value)
         Output only. The name of the provisioning quota.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ProvisioningQuota.Builder clearName()
         Output only. The name of the provisioning quota.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public ProvisioningQuota.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The name of the provisioning quota.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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.
      • setAssetTypeValue

        public ProvisioningQuota.Builder setAssetTypeValue​(int value)
         The asset type of this provisioning quota.
         
        .google.cloud.baremetalsolution.v2.ProvisioningQuota.AssetType asset_type = 2;
        Parameters:
        value - The enum numeric value on the wire for assetType to set.
        Returns:
        This builder for chaining.
      • setAssetType

        public ProvisioningQuota.Builder setAssetType​(ProvisioningQuota.AssetType value)
         The asset type of this provisioning quota.
         
        .google.cloud.baremetalsolution.v2.ProvisioningQuota.AssetType asset_type = 2;
        Parameters:
        value - The assetType to set.
        Returns:
        This builder for chaining.
      • clearAssetType

        public ProvisioningQuota.Builder clearAssetType()
         The asset type of this provisioning quota.
         
        .google.cloud.baremetalsolution.v2.ProvisioningQuota.AssetType asset_type = 2;
        Returns:
        This builder for chaining.
      • 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.
      • setGcpService

        public ProvisioningQuota.Builder setGcpService​(String value)
         The gcp service of the provisioning quota.
         
        string gcp_service = 3;
        Parameters:
        value - The gcpService to set.
        Returns:
        This builder for chaining.
      • clearGcpService

        public ProvisioningQuota.Builder clearGcpService()
         The gcp service of the provisioning quota.
         
        string gcp_service = 3;
        Returns:
        This builder for chaining.
      • setGcpServiceBytes

        public ProvisioningQuota.Builder setGcpServiceBytes​(com.google.protobuf.ByteString value)
         The gcp service of the provisioning quota.
         
        string gcp_service = 3;
        Parameters:
        value - The bytes for gcpService to set.
        Returns:
        This builder for chaining.
      • 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.
      • setLocation

        public ProvisioningQuota.Builder setLocation​(String value)
         The specific location of the provisioining quota.
         
        string location = 4;
        Parameters:
        value - The location to set.
        Returns:
        This builder for chaining.
      • clearLocation

        public ProvisioningQuota.Builder clearLocation()
         The specific location of the provisioining quota.
         
        string location = 4;
        Returns:
        This builder for chaining.
      • setLocationBytes

        public ProvisioningQuota.Builder setLocationBytes​(com.google.protobuf.ByteString value)
         The specific location of the provisioining quota.
         
        string location = 4;
        Parameters:
        value - The bytes for location to set.
        Returns:
        This builder for chaining.
      • getAvailableCount

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

        public ProvisioningQuota.Builder setAvailableCount​(int value)
         The available count of the provisioning quota.
         
        int32 available_count = 5;
        Parameters:
        value - The availableCount to set.
        Returns:
        This builder for chaining.
      • clearAvailableCount

        public ProvisioningQuota.Builder clearAvailableCount()
         The available count of the provisioning quota.
         
        int32 available_count = 5;
        Returns:
        This builder for chaining.
      • 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.
      • clearInstanceQuota

        public ProvisioningQuota.Builder clearInstanceQuota()
         Instance quota.
         
        .google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;
      • getInstanceQuotaBuilder

        public InstanceQuota.Builder getInstanceQuotaBuilder()
         Instance quota.
         
        .google.cloud.baremetalsolution.v2.InstanceQuota instance_quota = 6;
      • hasServerCount

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

        public ProvisioningQuota.Builder setServerCount​(long value)
         Server count.
         
        int64 server_count = 7;
        Parameters:
        value - The serverCount to set.
        Returns:
        This builder for chaining.
      • clearServerCount

        public ProvisioningQuota.Builder clearServerCount()
         Server count.
         
        int64 server_count = 7;
        Returns:
        This builder for chaining.
      • hasNetworkBandwidth

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

        public ProvisioningQuota.Builder setNetworkBandwidth​(long value)
         Network bandwidth, Gbps
         
        int64 network_bandwidth = 8;
        Parameters:
        value - The networkBandwidth to set.
        Returns:
        This builder for chaining.
      • clearNetworkBandwidth

        public ProvisioningQuota.Builder clearNetworkBandwidth()
         Network bandwidth, Gbps
         
        int64 network_bandwidth = 8;
        Returns:
        This builder for chaining.
      • hasStorageGib

        public boolean hasStorageGib()
         Storage size (GB).
         
        int64 storage_gib = 9;
        Specified by:
        hasStorageGib in interface ProvisioningQuotaOrBuilder
        Returns:
        Whether the storageGib field is set.
      • setStorageGib

        public ProvisioningQuota.Builder setStorageGib​(long value)
         Storage size (GB).
         
        int64 storage_gib = 9;
        Parameters:
        value - The storageGib to set.
        Returns:
        This builder for chaining.
      • clearStorageGib

        public ProvisioningQuota.Builder clearStorageGib()
         Storage size (GB).
         
        int64 storage_gib = 9;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ProvisioningQuota.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>
      • mergeUnknownFields

        public final ProvisioningQuota.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProvisioningQuota.Builder>