Class AdminQuotaPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>
-
- com.google.api.serviceusage.v1beta1.AdminQuotaPolicy.Builder
-
- All Implemented Interfaces:
AdminQuotaPolicyOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- AdminQuotaPolicy
public static final class AdminQuotaPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder> implements AdminQuotaPolicyOrBuilder
Quota policy created by quota administrator.
Protobuf typegoogle.api.serviceusage.v1beta1.AdminQuotaPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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)
-
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<AdminQuotaPolicy.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>
-
clear
public AdminQuotaPolicy.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<AdminQuotaPolicy.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<AdminQuotaPolicy.Builder>
-
getDefaultInstanceForType
public AdminQuotaPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AdminQuotaPolicy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AdminQuotaPolicy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AdminQuotaPolicy.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<AdminQuotaPolicy.Builder>
-
setField
public AdminQuotaPolicy.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<AdminQuotaPolicy.Builder>
-
clearField
public AdminQuotaPolicy.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<AdminQuotaPolicy.Builder>
-
clearOneof
public AdminQuotaPolicy.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<AdminQuotaPolicy.Builder>
-
setRepeatedField
public AdminQuotaPolicy.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<AdminQuotaPolicy.Builder>
-
addRepeatedField
public AdminQuotaPolicy.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<AdminQuotaPolicy.Builder>
-
mergeFrom
public AdminQuotaPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AdminQuotaPolicy.Builder>
-
mergeFrom
public AdminQuotaPolicy.Builder mergeFrom(AdminQuotaPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>
-
mergeFrom
public AdminQuotaPolicy.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<AdminQuotaPolicy.Builder>
- Throws:
IOException
-
getName
public 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;
- Specified by:
getName
in interfaceAdminQuotaPolicyOrBuilder
- Returns:
- The name.
-
getNameBytes
public 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;
- Specified by:
getNameBytes
in interfaceAdminQuotaPolicyOrBuilder
- Returns:
- The bytes for name.
-
setName
public 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;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
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;
- Returns:
- This builder for chaining.
-
setNameBytes
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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getPolicyValue
public long getPolicyValue()
The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota).
int64 policy_value = 2;
- Specified by:
getPolicyValue
in interfaceAdminQuotaPolicyOrBuilder
- Returns:
- The policyValue.
-
setPolicyValue
public AdminQuotaPolicy.Builder setPolicyValue(long value)
The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota).
int64 policy_value = 2;
- Parameters:
value
- The policyValue to set.- Returns:
- This builder for chaining.
-
clearPolicyValue
public AdminQuotaPolicy.Builder clearPolicyValue()
The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota).
int64 policy_value = 2;
- Returns:
- This builder for chaining.
-
getDimensionsCount
public int getDimensionsCount()
Description copied from interface: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;
- Specified by:
getDimensionsCount
in interfaceAdminQuotaPolicyOrBuilder
-
containsDimensions
public 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;
- Specified by:
containsDimensions
in interfaceAdminQuotaPolicyOrBuilder
-
getDimensions
@Deprecated public Map<String,String> getDimensions()
Deprecated.UsegetDimensionsMap()
instead.- Specified by:
getDimensions
in interfaceAdminQuotaPolicyOrBuilder
-
getDimensionsMap
public 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;
- Specified by:
getDimensionsMap
in interfaceAdminQuotaPolicyOrBuilder
-
getDimensionsOrDefault
public 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;
- Specified by:
getDimensionsOrDefault
in interfaceAdminQuotaPolicyOrBuilder
-
getDimensionsOrThrow
public 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;
- Specified by:
getDimensionsOrThrow
in interfaceAdminQuotaPolicyOrBuilder
-
clearDimensions
public AdminQuotaPolicy.Builder clearDimensions()
-
removeDimensions
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;
-
getMutableDimensions
@Deprecated public Map<String,String> getMutableDimensions()
Deprecated.Use alternate mutation accessors instead.
-
putDimensions
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;
-
putAllDimensions
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;
-
getMetric
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;
- Specified by:
getMetric
in interfaceAdminQuotaPolicyOrBuilder
- Returns:
- The metric.
-
getMetricBytes
public 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;
- Specified by:
getMetricBytes
in interfaceAdminQuotaPolicyOrBuilder
- Returns:
- The bytes for metric.
-
setMetric
public 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;
- Parameters:
value
- The metric to set.- Returns:
- This builder for chaining.
-
clearMetric
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;
- Returns:
- This builder for chaining.
-
setMetricBytes
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;
- 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 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;
- Specified by:
getUnit
in interfaceAdminQuotaPolicyOrBuilder
- Returns:
- The unit.
-
getUnitBytes
public 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;
- Specified by:
getUnitBytes
in interfaceAdminQuotaPolicyOrBuilder
- Returns:
- The bytes for unit.
-
setUnit
public 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;
- Parameters:
value
- The unit to set.- Returns:
- This builder for chaining.
-
clearUnit
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;
- Returns:
- This builder for chaining.
-
setUnitBytes
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;
- Parameters:
value
- The bytes for unit to set.- Returns:
- This builder for chaining.
-
getContainer
public String getContainer()
The cloud resource container at which the quota policy is created. The format is `{container_type}/{container_number}`
string container = 6;
- Specified by:
getContainer
in interfaceAdminQuotaPolicyOrBuilder
- Returns:
- The container.
-
getContainerBytes
public 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;
- Specified by:
getContainerBytes
in interfaceAdminQuotaPolicyOrBuilder
- Returns:
- The bytes for container.
-
setContainer
public 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;
- Parameters:
value
- The container to set.- Returns:
- This builder for chaining.
-
clearContainer
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;
- Returns:
- This builder for chaining.
-
setContainerBytes
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;
- Parameters:
value
- The bytes for container to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AdminQuotaPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>
-
mergeUnknownFields
public final AdminQuotaPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AdminQuotaPolicy.Builder>
-
-