Class Quota.Builder (0.12.0)

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

Implements

QuotaOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Quota.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Quota.Builder
Overrides

build()

public Quota build()
Returns
TypeDescription
Quota

buildPartial()

public Quota buildPartial()
Returns
TypeDescription
Quota

clear()

public Quota.Builder clear()
Returns
TypeDescription
Quota.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Quota.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Quota.Builder
Overrides

clearLimit()

public Quota.Builder clearLimit()

Quota limit for this metric.

double limit = 2;

Returns
TypeDescription
Quota.Builder

This builder for chaining.

clearMetric()

public Quota.Builder clearMetric()

Name of the quota metric.

string metric = 1;

Returns
TypeDescription
Quota.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Quota.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Quota.Builder
Overrides

clearUsage()

public Quota.Builder clearUsage()

Current usage of this metric.

double usage = 3;

Returns
TypeDescription
Quota.Builder

This builder for chaining.

clone()

public Quota.Builder clone()
Returns
TypeDescription
Quota.Builder
Overrides

getDefaultInstanceForType()

public Quota getDefaultInstanceForType()
Returns
TypeDescription
Quota

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLimit()

public double getLimit()

Quota limit for this metric.

double limit = 2;

Returns
TypeDescription
double

The limit.

getMetric()

public String getMetric()

Name of the quota metric.

string metric = 1;

Returns
TypeDescription
String

The metric.

getMetricBytes()

public ByteString getMetricBytes()

Name of the quota metric.

string metric = 1;

Returns
TypeDescription
ByteString

The bytes for metric.

getUsage()

public double getUsage()

Current usage of this metric.

double usage = 3;

Returns
TypeDescription
double

The usage.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Quota other)

public Quota.Builder mergeFrom(Quota other)
Parameter
NameDescription
otherQuota
Returns
TypeDescription
Quota.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Quota.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Quota.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Quota.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Quota.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Quota.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Quota.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Quota.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Quota.Builder
Overrides

setLimit(double value)

public Quota.Builder setLimit(double value)

Quota limit for this metric.

double limit = 2;

Parameter
NameDescription
valuedouble

The limit to set.

Returns
TypeDescription
Quota.Builder

This builder for chaining.

setMetric(String value)

public Quota.Builder setMetric(String value)

Name of the quota metric.

string metric = 1;

Parameter
NameDescription
valueString

The metric to set.

Returns
TypeDescription
Quota.Builder

This builder for chaining.

setMetricBytes(ByteString value)

public Quota.Builder setMetricBytes(ByteString value)

Name of the quota metric.

string metric = 1;

Parameter
NameDescription
valueByteString

The bytes for metric to set.

Returns
TypeDescription
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)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Quota.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Quota.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Quota.Builder
Overrides

setUsage(double value)

public Quota.Builder setUsage(double value)

Current usage of this metric.

double usage = 3;

Parameter
NameDescription
valuedouble

The usage to set.

Returns
TypeDescription
Quota.Builder

This builder for chaining.