Send feedback
Class Quota.Builder (0.39.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.39.0 keyboard_arrow_down
public static final class Quota . Builder extends GeneratedMessageV3 . Builder<Quota . Builder > implements QuotaOrBuilder
Represents quota for Edge Container resources.
Protobuf type google.cloud.edgecontainer.v1.Quota
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Quota . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
Returns
Type
Description
Quota
buildPartial()
public Quota buildPartial ()
Returns
Type
Description
Quota
clear()
public Quota . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Quota . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearLimit()
public Quota . Builder clearLimit ()
Quota limit for this metric.
double limit = 2;
Returns
Type
Description
Quota.Builder
This builder for chaining.
clearMetric()
public Quota . Builder clearMetric ()
Name of the quota metric.
string metric = 1;
Returns
Type
Description
Quota.Builder
This builder for chaining.
clearOneof(Descriptors.OneofDescriptor oneof)
public Quota . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearUsage()
public Quota . Builder clearUsage ()
Current usage of this metric.
double usage = 3;
Returns
Type
Description
Quota.Builder
This builder for chaining.
clone()
public Quota . Builder clone ()
Overrides
getDefaultInstanceForType()
public Quota getDefaultInstanceForType ()
Returns
Type
Description
Quota
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getLimit()
Quota limit for this metric.
double limit = 2;
Returns
Type
Description
double
The limit.
getMetric()
public String getMetric ()
Name of the quota metric.
string metric = 1;
Returns
Type
Description
String
The metric.
getMetricBytes()
public ByteString getMetricBytes ()
Name of the quota metric.
string metric = 1;
Returns
Type
Description
ByteString
The bytes for metric.
getUsage()
Current usage of this metric.
double usage = 3;
Returns
Type
Description
double
The usage.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(Quota other)
public Quota . Builder mergeFrom ( Quota other )
Parameter
Name
Description
other
Quota
public Quota . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public Quota . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Quota . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Quota . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setLimit(double value)
public Quota . Builder setLimit ( double value )
Quota limit for this metric.
double limit = 2;
Parameter
Name
Description
value
double
The limit to set.
Returns
Type
Description
Quota.Builder
This builder for chaining.
setMetric(String value)
public Quota . Builder setMetric ( String value )
Name of the quota metric.
string metric = 1;
Parameter
Name
Description
value
String
The metric to set.
Returns
Type
Description
Quota.Builder
This builder for chaining.
setMetricBytes(ByteString value)
public Quota . Builder setMetricBytes ( ByteString value )
Name of the quota metric.
string metric = 1;
Parameter
Name
Description
value
ByteString
The bytes for metric to set.
Returns
Type
Description
Quota.Builder
This builder for chaining.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Quota . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Quota . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setUsage(double value)
public Quota . Builder setUsage ( double value )
Current usage of this metric.
double usage = 3;
Parameter
Name
Description
value
double
The usage to set.
Returns
Type
Description
Quota.Builder
This builder for chaining.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]