Class Quota.Builder

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

    public static final class Quota.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Quota.Builder>
    implements QuotaOrBuilder
     A quotas entry.
     
    Protobuf type google.cloud.compute.v1.Quota
    • 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<Quota.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public Quota.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<Quota.Builder>
        Throws:
        IOException
      • hasLimit

        public boolean hasLimit()
         [Output Only] Quota limit for this metric.
         
        optional double limit = 102976443;
        Specified by:
        hasLimit in interface QuotaOrBuilder
        Returns:
        Whether the limit field is set.
      • getLimit

        public double getLimit()
         [Output Only] Quota limit for this metric.
         
        optional double limit = 102976443;
        Specified by:
        getLimit in interface QuotaOrBuilder
        Returns:
        The limit.
      • setLimit

        public Quota.Builder setLimit​(double value)
         [Output Only] Quota limit for this metric.
         
        optional double limit = 102976443;
        Parameters:
        value - The limit to set.
        Returns:
        This builder for chaining.
      • clearLimit

        public Quota.Builder clearLimit()
         [Output Only] Quota limit for this metric.
         
        optional double limit = 102976443;
        Returns:
        This builder for chaining.
      • hasMetric

        public boolean hasMetric()
         [Output Only] Name of the quota metric.
         Check the Metric enum for the list of possible values.
         
        optional string metric = 533067184;
        Specified by:
        hasMetric in interface QuotaOrBuilder
        Returns:
        Whether the metric field is set.
      • getMetric

        public String getMetric()
         [Output Only] Name of the quota metric.
         Check the Metric enum for the list of possible values.
         
        optional string metric = 533067184;
        Specified by:
        getMetric in interface QuotaOrBuilder
        Returns:
        The metric.
      • getMetricBytes

        public com.google.protobuf.ByteString getMetricBytes()
         [Output Only] Name of the quota metric.
         Check the Metric enum for the list of possible values.
         
        optional string metric = 533067184;
        Specified by:
        getMetricBytes in interface QuotaOrBuilder
        Returns:
        The bytes for metric.
      • setMetric

        public Quota.Builder setMetric​(String value)
         [Output Only] Name of the quota metric.
         Check the Metric enum for the list of possible values.
         
        optional string metric = 533067184;
        Parameters:
        value - The metric to set.
        Returns:
        This builder for chaining.
      • clearMetric

        public Quota.Builder clearMetric()
         [Output Only] Name of the quota metric.
         Check the Metric enum for the list of possible values.
         
        optional string metric = 533067184;
        Returns:
        This builder for chaining.
      • setMetricBytes

        public Quota.Builder setMetricBytes​(com.google.protobuf.ByteString value)
         [Output Only] Name of the quota metric.
         Check the Metric enum for the list of possible values.
         
        optional string metric = 533067184;
        Parameters:
        value - The bytes for metric to set.
        Returns:
        This builder for chaining.
      • hasOwner

        public boolean hasOwner()
         [Output Only] Owning resource. This is the resource on which this quota is applied.
         
        optional string owner = 106164915;
        Specified by:
        hasOwner in interface QuotaOrBuilder
        Returns:
        Whether the owner field is set.
      • getOwner

        public String getOwner()
         [Output Only] Owning resource. This is the resource on which this quota is applied.
         
        optional string owner = 106164915;
        Specified by:
        getOwner in interface QuotaOrBuilder
        Returns:
        The owner.
      • getOwnerBytes

        public com.google.protobuf.ByteString getOwnerBytes()
         [Output Only] Owning resource. This is the resource on which this quota is applied.
         
        optional string owner = 106164915;
        Specified by:
        getOwnerBytes in interface QuotaOrBuilder
        Returns:
        The bytes for owner.
      • setOwner

        public Quota.Builder setOwner​(String value)
         [Output Only] Owning resource. This is the resource on which this quota is applied.
         
        optional string owner = 106164915;
        Parameters:
        value - The owner to set.
        Returns:
        This builder for chaining.
      • clearOwner

        public Quota.Builder clearOwner()
         [Output Only] Owning resource. This is the resource on which this quota is applied.
         
        optional string owner = 106164915;
        Returns:
        This builder for chaining.
      • setOwnerBytes

        public Quota.Builder setOwnerBytes​(com.google.protobuf.ByteString value)
         [Output Only] Owning resource. This is the resource on which this quota is applied.
         
        optional string owner = 106164915;
        Parameters:
        value - The bytes for owner to set.
        Returns:
        This builder for chaining.
      • hasUsage

        public boolean hasUsage()
         [Output Only] Current usage of this metric.
         
        optional double usage = 111574433;
        Specified by:
        hasUsage in interface QuotaOrBuilder
        Returns:
        Whether the usage field is set.
      • getUsage

        public double getUsage()
         [Output Only] Current usage of this metric.
         
        optional double usage = 111574433;
        Specified by:
        getUsage in interface QuotaOrBuilder
        Returns:
        The usage.
      • setUsage

        public Quota.Builder setUsage​(double value)
         [Output Only] Current usage of this metric.
         
        optional double usage = 111574433;
        Parameters:
        value - The usage to set.
        Returns:
        This builder for chaining.
      • clearUsage

        public Quota.Builder clearUsage()
         [Output Only] Current usage of this metric.
         
        optional double usage = 111574433;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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