public final class Quota extends GeneratedMessageV3 implements QuotaOrBuilder
A quotas entry.
Protobuf type google.cloud.compute.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
OWNER_FIELD_NUMBER
public static final int OWNER_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()
[Output Only] Quota limit for this metric.
optional double limit = 102976443;
Returns
Type | Description |
double | The limit.
|
getMetric()
public String getMetric()
[Output Only] Name of the quota metric.
Check the Metric enum for the list of possible values.
optional string metric = 533067184;
Returns
Type | Description |
String | The metric.
|
getMetricBytes()
public ByteString getMetricBytes()
[Output Only] Name of the quota metric.
Check the Metric enum for the list of possible values.
optional string metric = 533067184;
Returns
getOwner()
[Output Only] Owning resource. This is the resource on which this quota is applied.
optional string owner = 106164915;
Returns
Type | Description |
String | The owner.
|
getOwnerBytes()
public ByteString getOwnerBytes()
[Output Only] Owning resource. This is the resource on which this quota is applied.
optional string owner = 106164915;
Returns
getParserForType()
public Parser<Quota> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUsage()
[Output Only] Current usage of this metric.
optional double usage = 111574433;
Returns
Type | Description |
double | The usage.
|
hasLimit()
public boolean hasLimit()
[Output Only] Quota limit for this metric.
optional double limit = 102976443;
Returns
Type | Description |
boolean | Whether the limit field is set.
|
hasMetric()
public boolean hasMetric()
[Output Only] Name of the quota metric.
Check the Metric enum for the list of possible values.
optional string metric = 533067184;
Returns
Type | Description |
boolean | Whether the metric field is set.
|
hasOwner()
public boolean hasOwner()
[Output Only] Owning resource. This is the resource on which this quota is applied.
optional string owner = 106164915;
Returns
Type | Description |
boolean | Whether the owner field is set.
|
hasUsage()
public boolean hasUsage()
[Output Only] Current usage of this metric.
optional double usage = 111574433;
Returns
Type | Description |
boolean | Whether the usage field is set.
|
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