public final class AdminQuotaPolicy extends com.google.protobuf.GeneratedMessageV3 implements AdminQuotaPolicyOrBuilder
Quota policy created by quota administrator.Protobuf type
google.api.serviceusage.v1beta1.AdminQuotaPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
AdminQuotaPolicy.Builder
Quota policy created by quota administrator.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONTAINER_FIELD_NUMBER |
static int |
DIMENSIONS_FIELD_NUMBER |
static int |
METRIC_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
POLICY_VALUE_FIELD_NUMBER |
static int |
UNIT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsDimensions(String key)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
|
boolean |
equals(Object obj) |
String |
getContainer()
The cloud resource container at which the quota policy is created.
|
com.google.protobuf.ByteString |
getContainerBytes()
The cloud resource container at which the quota policy is created.
|
static AdminQuotaPolicy |
getDefaultInstance() |
AdminQuotaPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,String> |
getDimensions()
Deprecated.
|
int |
getDimensionsCount()
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
|
Map<String,String> |
getDimensionsMap()
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
|
String |
getDimensionsOrDefault(String key,
String defaultValue)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
|
String |
getDimensionsOrThrow(String key)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
|
String |
getMetric()
The name of the metric to which this policy applies.
|
com.google.protobuf.ByteString |
getMetricBytes()
The name of the metric to which this policy applies.
|
String |
getName()
The resource name of the policy.
|
com.google.protobuf.ByteString |
getNameBytes()
The resource name of the policy.
|
com.google.protobuf.Parser<AdminQuotaPolicy> |
getParserForType() |
long |
getPolicyValue()
The quota policy value.
|
int |
getSerializedSize() |
String |
getUnit()
The limit unit of the limit to which this policy applies.
|
com.google.protobuf.ByteString |
getUnitBytes()
The limit unit of the limit to which this policy applies.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static AdminQuotaPolicy.Builder |
newBuilder() |
static AdminQuotaPolicy.Builder |
newBuilder(AdminQuotaPolicy prototype) |
AdminQuotaPolicy.Builder |
newBuilderForType() |
protected AdminQuotaPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AdminQuotaPolicy |
parseDelimitedFrom(InputStream input) |
static AdminQuotaPolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AdminQuotaPolicy |
parseFrom(byte[] data) |
static AdminQuotaPolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AdminQuotaPolicy |
parseFrom(ByteBuffer data) |
static AdminQuotaPolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AdminQuotaPolicy |
parseFrom(com.google.protobuf.ByteString data) |
static AdminQuotaPolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AdminQuotaPolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AdminQuotaPolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AdminQuotaPolicy |
parseFrom(InputStream input) |
static AdminQuotaPolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AdminQuotaPolicy> |
parser() |
AdminQuotaPolicy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int POLICY_VALUE_FIELD_NUMBER
public static final int DIMENSIONS_FIELD_NUMBER
public static final int METRIC_FIELD_NUMBER
public static final int UNIT_FIELD_NUMBER
public static final int CONTAINER_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
The resource name of the policy. This name is generated by the server when the policy is created. Example names would be: `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminQuotaPolicies/4a3f2c1d`
string name = 1;getName in interface AdminQuotaPolicyOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The resource name of the policy. This name is generated by the server when the policy is created. Example names would be: `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminQuotaPolicies/4a3f2c1d`
string name = 1;getNameBytes in interface AdminQuotaPolicyOrBuilderpublic long getPolicyValue()
The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota).
int64 policy_value = 2;getPolicyValue in interface AdminQuotaPolicyOrBuilderpublic int getDimensionsCount()
AdminQuotaPolicyOrBuilder
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
For example, an policy on a limit with the unit `1/{project}/{region}`
could contain an entry with the key `region` and the value `us-east-1`;
the policy is only applied to quota consumed in that region.
This map has the following restrictions:
* If `region` appears as a key, its value must be a valid Cloud region.
* If `zone` appears as a key, its value must be a valid Cloud zone.
* Keys other than `region` or `zone` are not valid.
map<string, string> dimensions = 3;getDimensionsCount in interface AdminQuotaPolicyOrBuilderpublic boolean containsDimensions(String key)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
For example, an policy on a limit with the unit `1/{project}/{region}`
could contain an entry with the key `region` and the value `us-east-1`;
the policy is only applied to quota consumed in that region.
This map has the following restrictions:
* If `region` appears as a key, its value must be a valid Cloud region.
* If `zone` appears as a key, its value must be a valid Cloud zone.
* Keys other than `region` or `zone` are not valid.
map<string, string> dimensions = 3;containsDimensions in interface AdminQuotaPolicyOrBuilder@Deprecated public Map<String,String> getDimensions()
getDimensionsMap() instead.getDimensions in interface AdminQuotaPolicyOrBuilderpublic Map<String,String> getDimensionsMap()
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
For example, an policy on a limit with the unit `1/{project}/{region}`
could contain an entry with the key `region` and the value `us-east-1`;
the policy is only applied to quota consumed in that region.
This map has the following restrictions:
* If `region` appears as a key, its value must be a valid Cloud region.
* If `zone` appears as a key, its value must be a valid Cloud zone.
* Keys other than `region` or `zone` are not valid.
map<string, string> dimensions = 3;getDimensionsMap in interface AdminQuotaPolicyOrBuilderpublic String getDimensionsOrDefault(String key, String defaultValue)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
For example, an policy on a limit with the unit `1/{project}/{region}`
could contain an entry with the key `region` and the value `us-east-1`;
the policy is only applied to quota consumed in that region.
This map has the following restrictions:
* If `region` appears as a key, its value must be a valid Cloud region.
* If `zone` appears as a key, its value must be a valid Cloud zone.
* Keys other than `region` or `zone` are not valid.
map<string, string> dimensions = 3;getDimensionsOrDefault in interface AdminQuotaPolicyOrBuilderpublic String getDimensionsOrThrow(String key)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
For example, an policy on a limit with the unit `1/{project}/{region}`
could contain an entry with the key `region` and the value `us-east-1`;
the policy is only applied to quota consumed in that region.
This map has the following restrictions:
* If `region` appears as a key, its value must be a valid Cloud region.
* If `zone` appears as a key, its value must be a valid Cloud zone.
* Keys other than `region` or `zone` are not valid.
map<string, string> dimensions = 3;getDimensionsOrThrow in interface AdminQuotaPolicyOrBuilderpublic String getMetric()
The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus`
string metric = 4;getMetric in interface AdminQuotaPolicyOrBuilderpublic com.google.protobuf.ByteString getMetricBytes()
The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus`
string metric = 4;getMetricBytes in interface AdminQuotaPolicyOrBuilderpublic String getUnit()
The limit unit of the limit to which this policy applies.
An example unit would be:
`1/{project}/{region}`
Note that `{project}` and `{region}` are not placeholders in this example;
the literal characters `{` and `}` occur in the string.
string unit = 5;getUnit in interface AdminQuotaPolicyOrBuilderpublic com.google.protobuf.ByteString getUnitBytes()
The limit unit of the limit to which this policy applies.
An example unit would be:
`1/{project}/{region}`
Note that `{project}` and `{region}` are not placeholders in this example;
the literal characters `{` and `}` occur in the string.
string unit = 5;getUnitBytes in interface AdminQuotaPolicyOrBuilderpublic String getContainer()
The cloud resource container at which the quota policy is created. The
format is `{container_type}/{container_number}`
string container = 6;getContainer in interface AdminQuotaPolicyOrBuilderpublic com.google.protobuf.ByteString getContainerBytes()
The cloud resource container at which the quota policy is created. The
format is `{container_type}/{container_number}`
string container = 6;getContainerBytes in interface AdminQuotaPolicyOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AdminQuotaPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdminQuotaPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdminQuotaPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdminQuotaPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdminQuotaPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdminQuotaPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdminQuotaPolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static AdminQuotaPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AdminQuotaPolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AdminQuotaPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AdminQuotaPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AdminQuotaPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AdminQuotaPolicy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AdminQuotaPolicy.Builder newBuilder()
public static AdminQuotaPolicy.Builder newBuilder(AdminQuotaPolicy prototype)
public AdminQuotaPolicy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AdminQuotaPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AdminQuotaPolicy getDefaultInstance()
public static com.google.protobuf.Parser<AdminQuotaPolicy> parser()
public com.google.protobuf.Parser<AdminQuotaPolicy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AdminQuotaPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.