Class Quota.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Quota.Builder>
com.google.cloud.compute.v1.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.GeneratedMessage.Builder<Quota.Builder> implements QuotaOrBuilder
 A quotas entry.
 
Protobuf type google.cloud.compute.v1.Quota
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    [Output Only] Quota limit for this metric.
    [Output Only] Name of the quota metric.
    [Output Only] Owning resource.
    [Output Only] Current usage of this metric.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    double
    [Output Only] Quota limit for this metric.
    [Output Only] Name of the quota metric.
    com.google.protobuf.ByteString
    [Output Only] Name of the quota metric.
    [Output Only] Owning resource.
    com.google.protobuf.ByteString
    [Output Only] Owning resource.
    double
    [Output Only] Current usage of this metric.
    boolean
    [Output Only] Quota limit for this metric.
    boolean
    [Output Only] Name of the quota metric.
    boolean
    [Output Only] Owning resource.
    boolean
    [Output Only] Current usage of this metric.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setLimit(double value)
    [Output Only] Quota limit for this metric.
    [Output Only] Name of the quota metric.
    setMetricBytes(com.google.protobuf.ByteString value)
    [Output Only] Name of the quota metric.
    [Output Only] Owning resource.
    setOwnerBytes(com.google.protobuf.ByteString value)
    [Output Only] Owning resource.
    setUsage(double value)
    [Output Only] Current usage of this metric.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Quota.Builder mergeFrom(Quota other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.