public static final class Quota.Builder extends GeneratedMessage.Builder<Quota.Builder> implements QuotaOrBuilderRepresents quota for Edge Container resources.
Protobuf type google.cloud.edgecontainer.v1.Quota
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Quota.BuilderImplements
QuotaOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Quota build()| Returns | |
|---|---|
| Type | Description |
Quota |
|
buildPartial()
public Quota buildPartial()| Returns | |
|---|---|
| Type | Description |
Quota |
|
clear()
public Quota.Builder clear()| Returns | |
|---|---|
| Type | Description |
Quota.Builder |
|
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. |
clearUsage()
public Quota.Builder clearUsage()Current usage of this metric.
double usage = 3;
| Returns | |
|---|---|
| Type | Description |
Quota.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Quota getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Quota |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLimit()
public double 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()
public double getUsage()Current usage of this metric.
double usage = 3;
| Returns | |
|---|---|
| Type | Description |
double |
The usage. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Quota other)
public Quota.Builder mergeFrom(Quota other)| Parameter | |
|---|---|
| Name | Description |
other |
Quota |
| Returns | |
|---|---|
| Type | Description |
Quota.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Quota.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Quota.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Quota.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Quota.Builder |
|
setLimit(double value)
public Quota.Builder setLimit(double value)Quota limit for this metric.
double limit = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe 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 |
StringThe 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 |
ByteStringThe bytes for metric to set. |
| Returns | |
|---|---|
| Type | Description |
Quota.Builder |
This builder for chaining. |
setUsage(double value)
public Quota.Builder setUsage(double value)Current usage of this metric.
double usage = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe usage to set. |
| Returns | |
|---|---|
| Type | Description |
Quota.Builder |
This builder for chaining. |