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.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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Quota.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Quota buildPartial()
Returns
clear()
public Quota.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Quota.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLimit()
public Quota.Builder clearLimit()
Quota limit for this metric.
double limit = 2;
Returns
clearMetric()
public Quota.Builder clearMetric()
Name of the quota metric.
string metric = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Quota.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearUsage()
public Quota.Builder clearUsage()
Current usage of this metric.
double usage = 3;
Returns
clone()
public Quota.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Quota getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
getUsage()
Current usage of this metric.
double usage = 3;
Returns
Type | Description |
double | The usage.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Quota other)
public Quota.Builder mergeFrom(Quota other)
Parameter
Name | Description |
other | Quota
|
Returns
public Quota.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Quota.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Quota.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Quota.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Quota.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Quota.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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