Class QuotaOverride.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder>
-
- com.google.api.serviceusage.v1beta1.QuotaOverride.Builder
-
- All Implemented Interfaces:
QuotaOverrideOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- QuotaOverride
public static final class QuotaOverride.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder> implements QuotaOverrideOrBuilder
A quota override
Protobuf typegoogle.api.serviceusage.v1beta1.QuotaOverride
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description QuotaOverride.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
QuotaOverride
build()
QuotaOverride
buildPartial()
QuotaOverride.Builder
clear()
QuotaOverride.Builder
clearAdminOverrideAncestor()
The resource name of the ancestor that requested the override.QuotaOverride.Builder
clearDimensions()
QuotaOverride.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
QuotaOverride.Builder
clearMetric()
The name of the metric to which this override applies.QuotaOverride.Builder
clearName()
The resource name of the override.QuotaOverride.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
QuotaOverride.Builder
clearOverrideValue()
The overriding quota limit value.QuotaOverride.Builder
clearUnit()
The limit unit of the limit to which this override applies.QuotaOverride.Builder
clone()
boolean
containsDimensions(String key)
If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit.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.QuotaOverride
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.Map<String,String>
getMutableDimensions()
Deprecated.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.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
QuotaOverride.Builder
mergeFrom(QuotaOverride other)
QuotaOverride.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
QuotaOverride.Builder
mergeFrom(com.google.protobuf.Message other)
QuotaOverride.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
QuotaOverride.Builder
putAllDimensions(Map<String,String> values)
If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit.QuotaOverride.Builder
putDimensions(String key, String value)
If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit.QuotaOverride.Builder
removeDimensions(String key)
If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit.QuotaOverride.Builder
setAdminOverrideAncestor(String value)
The resource name of the ancestor that requested the override.QuotaOverride.Builder
setAdminOverrideAncestorBytes(com.google.protobuf.ByteString value)
The resource name of the ancestor that requested the override.QuotaOverride.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
QuotaOverride.Builder
setMetric(String value)
The name of the metric to which this override applies.QuotaOverride.Builder
setMetricBytes(com.google.protobuf.ByteString value)
The name of the metric to which this override applies.QuotaOverride.Builder
setName(String value)
The resource name of the override.QuotaOverride.Builder
setNameBytes(com.google.protobuf.ByteString value)
The resource name of the override.QuotaOverride.Builder
setOverrideValue(long value)
The overriding quota limit value.QuotaOverride.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
QuotaOverride.Builder
setUnit(String value)
The limit unit of the limit to which this override applies.QuotaOverride.Builder
setUnitBytes(com.google.protobuf.ByteString value)
The limit unit of the limit to which this override applies.QuotaOverride.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder>
-
clear
public QuotaOverride.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder>
-
getDefaultInstanceForType
public QuotaOverride getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public QuotaOverride build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public QuotaOverride buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public QuotaOverride.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder>
-
setField
public QuotaOverride.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder>
-
clearField
public QuotaOverride.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder>
-
clearOneof
public QuotaOverride.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder>
-
setRepeatedField
public QuotaOverride.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder>
-
addRepeatedField
public QuotaOverride.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder>
-
mergeFrom
public QuotaOverride.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<QuotaOverride.Builder>
-
mergeFrom
public QuotaOverride.Builder mergeFrom(QuotaOverride other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder>
-
mergeFrom
public QuotaOverride.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<QuotaOverride.Builder>
- Throws:
IOException
-
getName
public 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;
- Specified by:
getName
in interfaceQuotaOverrideOrBuilder
- Returns:
- The name.
-
getNameBytes
public 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;
- Specified by:
getNameBytes
in interfaceQuotaOverrideOrBuilder
- Returns:
- The bytes for name.
-
setName
public QuotaOverride.Builder setName(String value)
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;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public QuotaOverride.Builder clearName()
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;
- Returns:
- This builder for chaining.
-
setNameBytes
public QuotaOverride.Builder setNameBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getOverrideValue
public long getOverrideValue()
The overriding quota limit value. Can be any nonnegative integer, or -1 (unlimited quota).
int64 override_value = 2;
- Specified by:
getOverrideValue
in interfaceQuotaOverrideOrBuilder
- Returns:
- The overrideValue.
-
setOverrideValue
public QuotaOverride.Builder setOverrideValue(long value)
The overriding quota limit value. Can be any nonnegative integer, or -1 (unlimited quota).
int64 override_value = 2;
- Parameters:
value
- The overrideValue to set.- Returns:
- This builder for chaining.
-
clearOverrideValue
public QuotaOverride.Builder clearOverrideValue()
The overriding quota limit value. Can be any nonnegative integer, or -1 (unlimited quota).
int64 override_value = 2;
- Returns:
- This builder for chaining.
-
getDimensionsCount
public int getDimensionsCount()
Description copied from interface: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;
- Specified by:
getDimensionsCount
in interfaceQuotaOverrideOrBuilder
-
containsDimensions
public 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;
- Specified by:
containsDimensions
in interfaceQuotaOverrideOrBuilder
-
getDimensions
@Deprecated public Map<String,String> getDimensions()
Deprecated.UsegetDimensionsMap()
instead.- Specified by:
getDimensions
in interfaceQuotaOverrideOrBuilder
-
getDimensionsMap
public 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;
- Specified by:
getDimensionsMap
in interfaceQuotaOverrideOrBuilder
-
getDimensionsOrDefault
public 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;
- Specified by:
getDimensionsOrDefault
in interfaceQuotaOverrideOrBuilder
-
getDimensionsOrThrow
public 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;
- Specified by:
getDimensionsOrThrow
in interfaceQuotaOverrideOrBuilder
-
clearDimensions
public QuotaOverride.Builder clearDimensions()
-
removeDimensions
public QuotaOverride.Builder removeDimensions(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;
-
getMutableDimensions
@Deprecated public Map<String,String> getMutableDimensions()
Deprecated.Use alternate mutation accessors instead.
-
putDimensions
public QuotaOverride.Builder putDimensions(String key, String value)
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;
-
putAllDimensions
public QuotaOverride.Builder putAllDimensions(Map<String,String> values)
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;
-
getMetric
public String getMetric()
The name of the metric to which this override applies. An example name would be: `compute.googleapis.com/cpus`
string metric = 4;
- Specified by:
getMetric
in interfaceQuotaOverrideOrBuilder
- Returns:
- The metric.
-
getMetricBytes
public 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;
- Specified by:
getMetricBytes
in interfaceQuotaOverrideOrBuilder
- Returns:
- The bytes for metric.
-
setMetric
public QuotaOverride.Builder setMetric(String value)
The name of the metric to which this override applies. An example name would be: `compute.googleapis.com/cpus`
string metric = 4;
- Parameters:
value
- The metric to set.- Returns:
- This builder for chaining.
-
clearMetric
public QuotaOverride.Builder clearMetric()
The name of the metric to which this override applies. An example name would be: `compute.googleapis.com/cpus`
string metric = 4;
- Returns:
- This builder for chaining.
-
setMetricBytes
public QuotaOverride.Builder setMetricBytes(com.google.protobuf.ByteString value)
The name of the metric to which this override applies. An example name would be: `compute.googleapis.com/cpus`
string metric = 4;
- Parameters:
value
- The bytes for metric to set.- Returns:
- This builder for chaining.
-
getUnit
public 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;
- Specified by:
getUnit
in interfaceQuotaOverrideOrBuilder
- Returns:
- The unit.
-
getUnitBytes
public 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;
- Specified by:
getUnitBytes
in interfaceQuotaOverrideOrBuilder
- Returns:
- The bytes for unit.
-
setUnit
public QuotaOverride.Builder setUnit(String value)
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;
- Parameters:
value
- The unit to set.- Returns:
- This builder for chaining.
-
clearUnit
public QuotaOverride.Builder clearUnit()
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;
- Returns:
- This builder for chaining.
-
setUnitBytes
public QuotaOverride.Builder setUnitBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for unit to set.- Returns:
- This builder for chaining.
-
getAdminOverrideAncestor
public 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;
- Specified by:
getAdminOverrideAncestor
in interfaceQuotaOverrideOrBuilder
- Returns:
- The adminOverrideAncestor.
-
getAdminOverrideAncestorBytes
public 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;
- Specified by:
getAdminOverrideAncestorBytes
in interfaceQuotaOverrideOrBuilder
- Returns:
- The bytes for adminOverrideAncestor.
-
setAdminOverrideAncestor
public QuotaOverride.Builder setAdminOverrideAncestor(String value)
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;
- Parameters:
value
- The adminOverrideAncestor to set.- Returns:
- This builder for chaining.
-
clearAdminOverrideAncestor
public QuotaOverride.Builder clearAdminOverrideAncestor()
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;
- Returns:
- This builder for chaining.
-
setAdminOverrideAncestorBytes
public QuotaOverride.Builder setAdminOverrideAncestorBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for adminOverrideAncestor to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final QuotaOverride.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder>
-
mergeUnknownFields
public final QuotaOverride.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOverride.Builder>
-
-