public final class QuotaOverride extends com.google.protobuf.GeneratedMessageV3 implements QuotaOverrideOrBuilder
A quota overrideProtobuf type
google.api.serviceusage.v1beta1.QuotaOverride| Modifier and Type | Class and Description |
|---|---|
static class |
QuotaOverride.Builder
A quota override
|
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 |
ADMIN_OVERRIDE_ANCESTOR_FIELD_NUMBER |
static int |
DIMENSIONS_FIELD_NUMBER |
static int |
METRIC_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
OVERRIDE_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 override applies only to specific values
for dimensions defined in the limit unit.
|
boolean |
equals(Object obj) |
String |
getAdminOverrideAncestor()
The resource name of the ancestor that requested the override.
|
com.google.protobuf.ByteString |
getAdminOverrideAncestorBytes()
The resource name of the ancestor that requested the override.
|
static QuotaOverride |
getDefaultInstance() |
QuotaOverride |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,String> |
getDimensions()
Deprecated.
|
int |
getDimensionsCount()
If this map is nonempty, then this override applies only to specific values
for dimensions defined in the limit unit.
|
Map<String,String> |
getDimensionsMap()
If this map is nonempty, then this override 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 override applies only to specific values
for dimensions defined in the limit unit.
|
String |
getDimensionsOrThrow(String key)
If this map is nonempty, then this override applies only to specific values
for dimensions defined in the limit unit.
|
String |
getMetric()
The name of the metric to which this override applies.
|
com.google.protobuf.ByteString |
getMetricBytes()
The name of the metric to which this override applies.
|
String |
getName()
The resource name of the override.
|
com.google.protobuf.ByteString |
getNameBytes()
The resource name of the override.
|
long |
getOverrideValue()
The overriding quota limit value.
|
com.google.protobuf.Parser<QuotaOverride> |
getParserForType() |
int |
getSerializedSize() |
String |
getUnit()
The limit unit of the limit to which this override applies.
|
com.google.protobuf.ByteString |
getUnitBytes()
The limit unit of the limit to which this override 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 QuotaOverride.Builder |
newBuilder() |
static QuotaOverride.Builder |
newBuilder(QuotaOverride prototype) |
QuotaOverride.Builder |
newBuilderForType() |
protected QuotaOverride.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static QuotaOverride |
parseDelimitedFrom(InputStream input) |
static QuotaOverride |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaOverride |
parseFrom(byte[] data) |
static QuotaOverride |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaOverride |
parseFrom(ByteBuffer data) |
static QuotaOverride |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaOverride |
parseFrom(com.google.protobuf.ByteString data) |
static QuotaOverride |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaOverride |
parseFrom(com.google.protobuf.CodedInputStream input) |
static QuotaOverride |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaOverride |
parseFrom(InputStream input) |
static QuotaOverride |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<QuotaOverride> |
parser() |
QuotaOverride.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 OVERRIDE_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 ADMIN_OVERRIDE_ANCESTOR_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 override. This name is generated by the server when the override is created. Example names would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d` `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.
string name = 1;getName in interface QuotaOverrideOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The resource name of the override. This name is generated by the server when the override is created. Example names would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d` `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.
string name = 1;getNameBytes in interface QuotaOverrideOrBuilderpublic long getOverrideValue()
The overriding quota limit value. Can be any nonnegative integer, or -1 (unlimited quota).
int64 override_value = 2;getOverrideValue in interface QuotaOverrideOrBuilderpublic int getDimensionsCount()
QuotaOverrideOrBuilder
If this map is nonempty, then this override applies only to specific values
for dimensions defined in the limit unit.
For example, an override on a limit with the unit `1/{project}/{region}`
could contain an entry with the key `region` and the value `us-east-1`;
the override is only applied to quota consumed in that region.
This map has the following restrictions:
* Keys that are not defined in the limit's unit are not valid keys.
Any string appearing in `{brackets}` in the unit (besides `{project}`
or
`{user}`) is a defined key.
* `project` is not a valid key; the project is already specified in
the parent resource name.
* `user` is not a valid key; the API does not support quota overrides
that apply only to a specific user.
* 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.
* If any valid key other than `region` or `zone` appears in the map, then
all valid keys other than `region` or `zone` must also appear in the
map.
map<string, string> dimensions = 3;getDimensionsCount in interface QuotaOverrideOrBuilderpublic boolean containsDimensions(String key)
If this map is nonempty, then this override applies only to specific values
for dimensions defined in the limit unit.
For example, an override on a limit with the unit `1/{project}/{region}`
could contain an entry with the key `region` and the value `us-east-1`;
the override is only applied to quota consumed in that region.
This map has the following restrictions:
* Keys that are not defined in the limit's unit are not valid keys.
Any string appearing in `{brackets}` in the unit (besides `{project}`
or
`{user}`) is a defined key.
* `project` is not a valid key; the project is already specified in
the parent resource name.
* `user` is not a valid key; the API does not support quota overrides
that apply only to a specific user.
* 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.
* If any valid key other than `region` or `zone` appears in the map, then
all valid keys other than `region` or `zone` must also appear in the
map.
map<string, string> dimensions = 3;containsDimensions in interface QuotaOverrideOrBuilder@Deprecated public Map<String,String> getDimensions()
getDimensionsMap() instead.getDimensions in interface QuotaOverrideOrBuilderpublic Map<String,String> getDimensionsMap()
If this map is nonempty, then this override applies only to specific values
for dimensions defined in the limit unit.
For example, an override on a limit with the unit `1/{project}/{region}`
could contain an entry with the key `region` and the value `us-east-1`;
the override is only applied to quota consumed in that region.
This map has the following restrictions:
* Keys that are not defined in the limit's unit are not valid keys.
Any string appearing in `{brackets}` in the unit (besides `{project}`
or
`{user}`) is a defined key.
* `project` is not a valid key; the project is already specified in
the parent resource name.
* `user` is not a valid key; the API does not support quota overrides
that apply only to a specific user.
* 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.
* If any valid key other than `region` or `zone` appears in the map, then
all valid keys other than `region` or `zone` must also appear in the
map.
map<string, string> dimensions = 3;getDimensionsMap in interface QuotaOverrideOrBuilderpublic String getDimensionsOrDefault(String key, String defaultValue)
If this map is nonempty, then this override applies only to specific values
for dimensions defined in the limit unit.
For example, an override on a limit with the unit `1/{project}/{region}`
could contain an entry with the key `region` and the value `us-east-1`;
the override is only applied to quota consumed in that region.
This map has the following restrictions:
* Keys that are not defined in the limit's unit are not valid keys.
Any string appearing in `{brackets}` in the unit (besides `{project}`
or
`{user}`) is a defined key.
* `project` is not a valid key; the project is already specified in
the parent resource name.
* `user` is not a valid key; the API does not support quota overrides
that apply only to a specific user.
* 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.
* If any valid key other than `region` or `zone` appears in the map, then
all valid keys other than `region` or `zone` must also appear in the
map.
map<string, string> dimensions = 3;getDimensionsOrDefault in interface QuotaOverrideOrBuilderpublic String getDimensionsOrThrow(String key)
If this map is nonempty, then this override applies only to specific values
for dimensions defined in the limit unit.
For example, an override on a limit with the unit `1/{project}/{region}`
could contain an entry with the key `region` and the value `us-east-1`;
the override is only applied to quota consumed in that region.
This map has the following restrictions:
* Keys that are not defined in the limit's unit are not valid keys.
Any string appearing in `{brackets}` in the unit (besides `{project}`
or
`{user}`) is a defined key.
* `project` is not a valid key; the project is already specified in
the parent resource name.
* `user` is not a valid key; the API does not support quota overrides
that apply only to a specific user.
* 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.
* If any valid key other than `region` or `zone` appears in the map, then
all valid keys other than `region` or `zone` must also appear in the
map.
map<string, string> dimensions = 3;getDimensionsOrThrow in interface QuotaOverrideOrBuilderpublic String getMetric()
The name of the metric to which this override applies. An example name would be: `compute.googleapis.com/cpus`
string metric = 4;getMetric in interface QuotaOverrideOrBuilderpublic com.google.protobuf.ByteString getMetricBytes()
The name of the metric to which this override applies. An example name would be: `compute.googleapis.com/cpus`
string metric = 4;getMetricBytes in interface QuotaOverrideOrBuilderpublic String getUnit()
The limit unit of the limit to which this override 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 QuotaOverrideOrBuilderpublic com.google.protobuf.ByteString getUnitBytes()
The limit unit of the limit to which this override 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 QuotaOverrideOrBuilderpublic String getAdminOverrideAncestor()
The resource name of the ancestor that requested the override. For example: `organizations/12345` or `folders/67890`. Used by admin overrides only.
string admin_override_ancestor = 6;getAdminOverrideAncestor in interface QuotaOverrideOrBuilderpublic com.google.protobuf.ByteString getAdminOverrideAncestorBytes()
The resource name of the ancestor that requested the override. For example: `organizations/12345` or `folders/67890`. Used by admin overrides only.
string admin_override_ancestor = 6;getAdminOverrideAncestorBytes in interface QuotaOverrideOrBuilderpublic 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 QuotaOverride parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaOverride parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaOverride parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaOverride parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaOverride parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaOverride parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaOverride parseFrom(InputStream input) throws IOException
IOExceptionpublic static QuotaOverride parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static QuotaOverride parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static QuotaOverride parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static QuotaOverride parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static QuotaOverride parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic QuotaOverride.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static QuotaOverride.Builder newBuilder()
public static QuotaOverride.Builder newBuilder(QuotaOverride prototype)
public QuotaOverride.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected QuotaOverride.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static QuotaOverride getDefaultInstance()
public static com.google.protobuf.Parser<QuotaOverride> parser()
public com.google.protobuf.Parser<QuotaOverride> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public QuotaOverride getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.