Class Quota.Builder (0.54.0)

publicstaticfinalclass Quota.BuilderextendsGeneratedMessageV3.Builder<Quota.Builder>implementsQuotaOrBuilder

Represents quota for Edge Container resources.

Protobuf type google.cloud.edgecontainer.v1.Quota

Implements

QuotaOrBuilder

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()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicQuota.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Quota.Builder
Overrides

build()

publicQuotabuild()
Returns
Type Description
Quota

buildPartial()

publicQuotabuildPartial()
Returns
Type Description
Quota

clear()

publicQuota.Builderclear()
Returns
Type Description
Quota.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicQuota.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Quota.Builder
Overrides

clearLimit()

publicQuota.BuilderclearLimit()

Quota limit for this metric.

double limit = 2;

Returns
Type Description
Quota.Builder

This builder for chaining.

clearMetric()

publicQuota.BuilderclearMetric()

Name of the quota metric.

string metric = 1;

Returns
Type Description
Quota.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicQuota.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Quota.Builder
Overrides

clearUsage()

publicQuota.BuilderclearUsage()

Current usage of this metric.

double usage = 3;

Returns
Type Description
Quota.Builder

This builder for chaining.

clone()

publicQuota.Builderclone()
Returns
Type Description
Quota.Builder
Overrides

getDefaultInstanceForType()

publicQuotagetDefaultInstanceForType()
Returns
Type Description
Quota

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLimit()

publicdoublegetLimit()

Quota limit for this metric.

double limit = 2;

Returns
Type Description
double

The limit.

getMetric()

publicStringgetMetric()

Name of the quota metric.

string metric = 1;

Returns
Type Description
String

The metric.

getMetricBytes()

publicByteStringgetMetricBytes()

Name of the quota metric.

string metric = 1;

Returns
Type Description
ByteString

The bytes for metric.

getUsage()

publicdoublegetUsage()

Current usage of this metric.

double usage = 3;

Returns
Type Description
double

The usage.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Quota other)

publicQuota.BuildermergeFrom(Quotaother)
Parameter
Name Description
other Quota
Returns
Type Description
Quota.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicQuota.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Quota.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicQuota.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Quota.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalQuota.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Quota.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicQuota.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Quota.Builder
Overrides

setLimit(double value)

publicQuota.BuildersetLimit(doublevalue)

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)

publicQuota.BuildersetMetric(Stringvalue)

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)

publicQuota.BuildersetMetricBytes(ByteStringvalue)

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)

publicQuota.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Quota.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalQuota.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Quota.Builder
Overrides

setUsage(double value)

publicQuota.BuildersetUsage(doublevalue)

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.

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年10月30日 UTC.