public static final class AdminQuotaPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder> implements AdminQuotaPolicyOrBuilder
Quota policy created by quota administrator.Protobuf type
google.api.serviceusage.v1beta1.AdminQuotaPolicy| Modifier and Type | Method and Description |
|---|---|
AdminQuotaPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AdminQuotaPolicy |
build() |
AdminQuotaPolicy |
buildPartial() |
AdminQuotaPolicy.Builder |
clear() |
AdminQuotaPolicy.Builder |
clearContainer()
The cloud resource container at which the quota policy is created.
|
AdminQuotaPolicy.Builder |
clearDimensions() |
AdminQuotaPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AdminQuotaPolicy.Builder |
clearMetric()
The name of the metric to which this policy applies.
|
AdminQuotaPolicy.Builder |
clearName()
The resource name of the policy.
|
AdminQuotaPolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AdminQuotaPolicy.Builder |
clearPolicyValue()
The quota policy value.
|
AdminQuotaPolicy.Builder |
clearUnit()
The limit unit of the limit to which this policy applies.
|
AdminQuotaPolicy.Builder |
clone() |
boolean |
containsDimensions(String key)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
|
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.
|
AdminQuotaPolicy |
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 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.
|
Map<String,String> |
getMutableDimensions()
Deprecated.
|
String |
getName()
The resource name of the policy.
|
com.google.protobuf.ByteString |
getNameBytes()
The resource name of the policy.
|
long |
getPolicyValue()
The quota policy value.
|
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.
|
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() |
AdminQuotaPolicy.Builder |
mergeFrom(AdminQuotaPolicy other) |
AdminQuotaPolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AdminQuotaPolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
AdminQuotaPolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AdminQuotaPolicy.Builder |
putAllDimensions(Map<String,String> values)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
|
AdminQuotaPolicy.Builder |
putDimensions(String key,
String value)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
|
AdminQuotaPolicy.Builder |
removeDimensions(String key)
If this map is nonempty, then this policy applies only to specific values
for dimensions defined in the limit unit.
|
AdminQuotaPolicy.Builder |
setContainer(String value)
The cloud resource container at which the quota policy is created.
|
AdminQuotaPolicy.Builder |
setContainerBytes(com.google.protobuf.ByteString value)
The cloud resource container at which the quota policy is created.
|
AdminQuotaPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AdminQuotaPolicy.Builder |
setMetric(String value)
The name of the metric to which this policy applies.
|
AdminQuotaPolicy.Builder |
setMetricBytes(com.google.protobuf.ByteString value)
The name of the metric to which this policy applies.
|
AdminQuotaPolicy.Builder |
setName(String value)
The resource name of the policy.
|
AdminQuotaPolicy.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The resource name of the policy.
|
AdminQuotaPolicy.Builder |
setPolicyValue(long value)
The quota policy value.
|
AdminQuotaPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AdminQuotaPolicy.Builder |
setUnit(String value)
The limit unit of the limit to which this policy applies.
|
AdminQuotaPolicy.Builder |
setUnitBytes(com.google.protobuf.ByteString value)
The limit unit of the limit to which this policy applies.
|
AdminQuotaPolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>public AdminQuotaPolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>public AdminQuotaPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AdminQuotaPolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AdminQuotaPolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AdminQuotaPolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>public AdminQuotaPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>public AdminQuotaPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>public AdminQuotaPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>public AdminQuotaPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>public AdminQuotaPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>public AdminQuotaPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdminQuotaPolicy.Builder>public AdminQuotaPolicy.Builder mergeFrom(AdminQuotaPolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>public AdminQuotaPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdminQuotaPolicy.Builder>IOExceptionpublic 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 AdminQuotaPolicy.Builder setName(String value)
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;value - The name to set.public AdminQuotaPolicy.Builder clearName()
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;public AdminQuotaPolicy.Builder setNameBytes(com.google.protobuf.ByteString value)
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;value - The bytes for name to set.public long getPolicyValue()
The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota).
int64 policy_value = 2;getPolicyValue in interface AdminQuotaPolicyOrBuilderpublic AdminQuotaPolicy.Builder setPolicyValue(long value)
The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota).
int64 policy_value = 2;value - The policyValue to set.public AdminQuotaPolicy.Builder clearPolicyValue()
The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota).
int64 policy_value = 2;public 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 AdminQuotaPolicy.Builder clearDimensions()
public AdminQuotaPolicy.Builder removeDimensions(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;@Deprecated public Map<String,String> getMutableDimensions()
public AdminQuotaPolicy.Builder putDimensions(String key, String value)
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;public AdminQuotaPolicy.Builder putAllDimensions(Map<String,String> values)
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;public 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 AdminQuotaPolicy.Builder setMetric(String value)
The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus`
string metric = 4;value - The metric to set.public AdminQuotaPolicy.Builder clearMetric()
The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus`
string metric = 4;public AdminQuotaPolicy.Builder setMetricBytes(com.google.protobuf.ByteString value)
The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus`
string metric = 4;value - The bytes for metric to set.public 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 AdminQuotaPolicy.Builder setUnit(String value)
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;value - The unit to set.public AdminQuotaPolicy.Builder clearUnit()
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;public AdminQuotaPolicy.Builder setUnitBytes(com.google.protobuf.ByteString value)
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;value - The bytes for unit to set.public 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 AdminQuotaPolicy.Builder setContainer(String value)
The cloud resource container at which the quota policy is created. The
format is `{container_type}/{container_number}`
string container = 6;value - The container to set.public AdminQuotaPolicy.Builder clearContainer()
The cloud resource container at which the quota policy is created. The
format is `{container_type}/{container_number}`
string container = 6;public AdminQuotaPolicy.Builder setContainerBytes(com.google.protobuf.ByteString value)
The cloud resource container at which the quota policy is created. The
format is `{container_type}/{container_number}`
string container = 6;value - The bytes for container to set.public final AdminQuotaPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>public final AdminQuotaPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>Copyright © 2022 Google LLC. All rights reserved.