Package com.google.cloud.compute.v1
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 TypeMethodDescriptionbuild()clear()[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.Descriptorcom.google.protobuf.Descriptors.DescriptordoublegetLimit()[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.getOwner()[Output Only] Owning resource.com.google.protobuf.ByteString[Output Only] Owning resource.doublegetUsage()[Output Only] Current usage of this metric.booleanhasLimit()[Output Only] Quota limit for this metric.boolean[Output Only] Name of the quota metric.booleanhasOwner()[Output Only] Owning resource.booleanhasUsage()[Output Only] Current usage of this metric.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Quota.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Quota.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Quota.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Quota.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasLimitin interfaceQuotaOrBuilder- Returns:
- Whether the limit field is set.
-
getLimit
public double getLimit()[Output Only] Quota limit for this metric.
optional double limit = 102976443;- Specified by:
getLimitin interfaceQuotaOrBuilder- Returns:
- The limit.
-
setLimit
[Output Only] Quota limit for this metric.
optional double limit = 102976443;- Parameters:
value- The limit to set.- Returns:
- This builder for chaining.
-
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:
hasMetricin interfaceQuotaOrBuilder- Returns:
- Whether the metric field is set.
-
getMetric
[Output Only] Name of the quota metric. Check the Metric enum for the list of possible values.
optional string metric = 533067184;- Specified by:
getMetricin interfaceQuotaOrBuilder- 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:
getMetricBytesin interfaceQuotaOrBuilder- Returns:
- The bytes for metric.
-
setMetric
[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
[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
[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:
hasOwnerin interfaceQuotaOrBuilder- Returns:
- Whether the owner field is set.
-
getOwner
[Output Only] Owning resource. This is the resource on which this quota is applied.
optional string owner = 106164915;- Specified by:
getOwnerin interfaceQuotaOrBuilder- 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:
getOwnerBytesin interfaceQuotaOrBuilder- Returns:
- The bytes for owner.
-
setOwner
[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
[Output Only] Owning resource. This is the resource on which this quota is applied.
optional string owner = 106164915;- Returns:
- This builder for chaining.
-
setOwnerBytes
[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:
hasUsagein interfaceQuotaOrBuilder- Returns:
- Whether the usage field is set.
-
getUsage
public double getUsage()[Output Only] Current usage of this metric.
optional double usage = 111574433;- Specified by:
getUsagein interfaceQuotaOrBuilder- Returns:
- The usage.
-
setUsage
[Output Only] Current usage of this metric.
optional double usage = 111574433;- Parameters:
value- The usage to set.- Returns:
- This builder for chaining.
-
clearUsage
[Output Only] Current usage of this metric.
optional double usage = 111574433;- Returns:
- This builder for chaining.
-