Class InstanceQuota.Builder

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

    public static final class InstanceQuota.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<InstanceQuota.Builder>
    implements InstanceQuotaOrBuilder
     A resource budget.
     
    Protobuf type google.cloud.baremetalsolution.v2.InstanceQuota
    • 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<InstanceQuota.Builder>
      • clear

        public InstanceQuota.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<InstanceQuota.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<InstanceQuota.Builder>
      • getDefaultInstanceForType

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

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

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

        public InstanceQuota.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<InstanceQuota.Builder>
      • setField

        public InstanceQuota.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<InstanceQuota.Builder>
      • clearField

        public InstanceQuota.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<InstanceQuota.Builder>
      • clearOneof

        public InstanceQuota.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<InstanceQuota.Builder>
      • setRepeatedField

        public InstanceQuota.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<InstanceQuota.Builder>
      • addRepeatedField

        public InstanceQuota.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<InstanceQuota.Builder>
      • mergeFrom

        public InstanceQuota.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<InstanceQuota.Builder>
      • isInitialized

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

        public InstanceQuota.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<InstanceQuota.Builder>
        Throws:
        IOException
      • getName

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

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

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

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

        public InstanceQuota.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The name of the instance quota.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getInstanceType

        @Deprecated
        public String getInstanceType()
        Deprecated.
        google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated. See google/cloud/baremetalsolution/v2/provisioning.proto;l=550
         Instance type.
         Deprecated: use gcp_service.
         
        string instance_type = 2 [deprecated = true];
        Specified by:
        getInstanceType in interface InstanceQuotaOrBuilder
        Returns:
        The instanceType.
      • getInstanceTypeBytes

        @Deprecated
        public com.google.protobuf.ByteString getInstanceTypeBytes()
        Deprecated.
        google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated. See google/cloud/baremetalsolution/v2/provisioning.proto;l=550
         Instance type.
         Deprecated: use gcp_service.
         
        string instance_type = 2 [deprecated = true];
        Specified by:
        getInstanceTypeBytes in interface InstanceQuotaOrBuilder
        Returns:
        The bytes for instanceType.
      • setInstanceType

        @Deprecated
        public InstanceQuota.Builder setInstanceType​(String value)
        Deprecated.
        google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated. See google/cloud/baremetalsolution/v2/provisioning.proto;l=550
         Instance type.
         Deprecated: use gcp_service.
         
        string instance_type = 2 [deprecated = true];
        Parameters:
        value - The instanceType to set.
        Returns:
        This builder for chaining.
      • clearInstanceType

        @Deprecated
        public InstanceQuota.Builder clearInstanceType()
        Deprecated.
        google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated. See google/cloud/baremetalsolution/v2/provisioning.proto;l=550
         Instance type.
         Deprecated: use gcp_service.
         
        string instance_type = 2 [deprecated = true];
        Returns:
        This builder for chaining.
      • setInstanceTypeBytes

        @Deprecated
        public InstanceQuota.Builder setInstanceTypeBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        google.cloud.baremetalsolution.v2.InstanceQuota.instance_type is deprecated. See google/cloud/baremetalsolution/v2/provisioning.proto;l=550
         Instance type.
         Deprecated: use gcp_service.
         
        string instance_type = 2 [deprecated = true];
        Parameters:
        value - The bytes for instanceType to set.
        Returns:
        This builder for chaining.
      • getGcpService

        public String getGcpService()
         The gcp service of the provisioning quota.
         
        string gcp_service = 5;
        Specified by:
        getGcpService in interface InstanceQuotaOrBuilder
        Returns:
        The gcpService.
      • getGcpServiceBytes

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

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

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

        public InstanceQuota.Builder setGcpServiceBytes​(com.google.protobuf.ByteString value)
         The gcp service of the provisioning quota.
         
        string gcp_service = 5;
        Parameters:
        value - The bytes for gcpService to set.
        Returns:
        This builder for chaining.
      • getLocationBytes

        public com.google.protobuf.ByteString getLocationBytes()
         Location where the quota applies.
         
        string location = 3;
        Specified by:
        getLocationBytes in interface InstanceQuotaOrBuilder
        Returns:
        The bytes for location.
      • setLocation

        public InstanceQuota.Builder setLocation​(String value)
         Location where the quota applies.
         
        string location = 3;
        Parameters:
        value - The location to set.
        Returns:
        This builder for chaining.
      • clearLocation

        public InstanceQuota.Builder clearLocation()
         Location where the quota applies.
         
        string location = 3;
        Returns:
        This builder for chaining.
      • setLocationBytes

        public InstanceQuota.Builder setLocationBytes​(com.google.protobuf.ByteString value)
         Location where the quota applies.
         
        string location = 3;
        Parameters:
        value - The bytes for location to set.
        Returns:
        This builder for chaining.
      • getAvailableMachineCount

        public int getAvailableMachineCount()
         Number of machines than can be created for the given location and
         instance_type.
         
        int32 available_machine_count = 4;
        Specified by:
        getAvailableMachineCount in interface InstanceQuotaOrBuilder
        Returns:
        The availableMachineCount.
      • setAvailableMachineCount

        public InstanceQuota.Builder setAvailableMachineCount​(int value)
         Number of machines than can be created for the given location and
         instance_type.
         
        int32 available_machine_count = 4;
        Parameters:
        value - The availableMachineCount to set.
        Returns:
        This builder for chaining.
      • clearAvailableMachineCount

        public InstanceQuota.Builder clearAvailableMachineCount()
         Number of machines than can be created for the given location and
         instance_type.
         
        int32 available_machine_count = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final InstanceQuota.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<InstanceQuota.Builder>
      • mergeUnknownFields

        public final InstanceQuota.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<InstanceQuota.Builder>