public final class Quota extends GeneratedMessageV3 implements QuotaOrBuilder
Represents quota for Edge Container resources.
Protobuf type google.cloud.edgecontainer.v1.Quota
Static Fields
LIMIT_FIELD_NUMBER
public static final int LIMIT_FIELD_NUMBER
Field Value
METRIC_FIELD_NUMBER
public static final int METRIC_FIELD_NUMBER
Field Value
USAGE_FIELD_NUMBER
public static final int USAGE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Quota getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Quota.Builder newBuilder()
Returns
newBuilder(Quota prototype)
public static Quota.Builder newBuilder(Quota prototype)
Parameter
Name | Description |
prototype | Quota
|
Returns
public static Quota parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Quota parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Quota parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Quota parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Quota parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Quota parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Quota parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Quota parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Quota parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Quota parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Quota parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Quota parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Quota> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Quota getDefaultInstanceForType()
Returns
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
getParserForType()
public Parser<Quota> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUsage()
Current usage of this metric.
double usage = 3;
Returns
Type | Description |
double | The usage.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Quota.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Quota.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Quota.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions