Class UpdateConsumerOverrideRequest.Builder (2.53.0)

publicstaticfinalclass UpdateConsumerOverrideRequest.BuilderextendsGeneratedMessageV3.Builder<UpdateConsumerOverrideRequest.Builder>implementsUpdateConsumerOverrideRequestOrBuilder

Request message for UpdateConsumerOverride.

Protobuf type google.api.serviceusage.v1beta1.UpdateConsumerOverrideRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllForceOnly(Iterable<? extends QuotaSafetyCheck> values)

publicUpdateConsumerOverrideRequest.BuilderaddAllForceOnly(Iterable<?extendsQuotaSafetyCheck>values)

The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.

repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 5;

Parameter
Name Description
values Iterable<? extends com.google.api.serviceusage.v1beta1.QuotaSafetyCheck>

The forceOnly to add.

Returns
Type Description
UpdateConsumerOverrideRequest.Builder

This builder for chaining.

addAllForceOnlyValue(Iterable<Integer> values)

publicUpdateConsumerOverrideRequest.BuilderaddAllForceOnlyValue(Iterable<Integer>values)

The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.

repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 5;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for forceOnly to add.

Returns
Type Description
UpdateConsumerOverrideRequest.Builder

This builder for chaining.

addForceOnly(QuotaSafetyCheck value)

publicUpdateConsumerOverrideRequest.BuilderaddForceOnly(QuotaSafetyCheckvalue)

The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.

repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 5;

Parameter
Name Description
value QuotaSafetyCheck

The forceOnly to add.

Returns
Type Description
UpdateConsumerOverrideRequest.Builder

This builder for chaining.

addForceOnlyValue(int value)

publicUpdateConsumerOverrideRequest.BuilderaddForceOnlyValue(intvalue)

The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.

repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 5;

Parameter
Name Description
value int

The enum numeric value on the wire for forceOnly to add.

Returns
Type Description
UpdateConsumerOverrideRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicUpdateConsumerOverrideRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateConsumerOverrideRequest.Builder
Overrides

build()

publicUpdateConsumerOverrideRequestbuild()
Returns
Type Description
UpdateConsumerOverrideRequest

buildPartial()

publicUpdateConsumerOverrideRequestbuildPartial()
Returns
Type Description
UpdateConsumerOverrideRequest

clear()

publicUpdateConsumerOverrideRequest.Builderclear()
Returns
Type Description
UpdateConsumerOverrideRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicUpdateConsumerOverrideRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateConsumerOverrideRequest.Builder
Overrides

clearForce()

publicUpdateConsumerOverrideRequest.BuilderclearForce()

Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.

bool force = 3;

Returns
Type Description
UpdateConsumerOverrideRequest.Builder

This builder for chaining.

clearForceOnly()

publicUpdateConsumerOverrideRequest.BuilderclearForceOnly()

The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.

repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 5;

Returns
Type Description
UpdateConsumerOverrideRequest.Builder

This builder for chaining.

clearName()

publicUpdateConsumerOverrideRequest.BuilderclearName()

The resource name of the override to update.

An example name would be: projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d

string name = 1;

Returns
Type Description
UpdateConsumerOverrideRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicUpdateConsumerOverrideRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateConsumerOverrideRequest.Builder
Overrides

clearOverride()

publicUpdateConsumerOverrideRequest.BuilderclearOverride()

The new override. Only the override_value is updated; all other fields are ignored.

.google.api.serviceusage.v1beta1.QuotaOverride override = 2;

Returns
Type Description
UpdateConsumerOverrideRequest.Builder

clearUpdateMask()

publicUpdateConsumerOverrideRequest.BuilderclearUpdateMask()

Update only the specified fields of the override. If unset, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4;

Returns
Type Description
UpdateConsumerOverrideRequest.Builder

clone()

publicUpdateConsumerOverrideRequest.Builderclone()
Returns
Type Description
UpdateConsumerOverrideRequest.Builder
Overrides

getDefaultInstanceForType()

publicUpdateConsumerOverrideRequestgetDefaultInstanceForType()
Returns
Type Description
UpdateConsumerOverrideRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getForce()

publicbooleangetForce()

Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.

bool force = 3;

Returns
Type Description
boolean

The force.

getForceOnly(int index)

publicQuotaSafetyCheckgetForceOnly(intindex)

The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.

repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
QuotaSafetyCheck

The forceOnly at the given index.

getForceOnlyCount()

publicintgetForceOnlyCount()

The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.

repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 5;

Returns
Type Description
int

The count of forceOnly.

getForceOnlyList()

publicList<QuotaSafetyCheck>getForceOnlyList()

The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.

repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 5;

Returns
Type Description
List<QuotaSafetyCheck>

A list containing the forceOnly.

getForceOnlyValue(int index)

publicintgetForceOnlyValue(intindex)

The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.

repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of forceOnly at the given index.

getForceOnlyValueList()

publicList<Integer>getForceOnlyValueList()

The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.

repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 5;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for forceOnly.

getName()

publicStringgetName()

The resource name of the override to update.

An example name would be: projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

The resource name of the override to update.

An example name would be: projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getOverride()

publicQuotaOverridegetOverride()

The new override. Only the override_value is updated; all other fields are ignored.

.google.api.serviceusage.v1beta1.QuotaOverride override = 2;

Returns
Type Description
QuotaOverride

The override.

getOverrideBuilder()

publicQuotaOverride.BuildergetOverrideBuilder()

The new override. Only the override_value is updated; all other fields are ignored.

.google.api.serviceusage.v1beta1.QuotaOverride override = 2;

Returns
Type Description
QuotaOverride.Builder

getOverrideOrBuilder()

publicQuotaOverrideOrBuildergetOverrideOrBuilder()

The new override. Only the override_value is updated; all other fields are ignored.

.google.api.serviceusage.v1beta1.QuotaOverride override = 2;

Returns
Type Description
QuotaOverrideOrBuilder

getUpdateMask()

publicFieldMaskgetUpdateMask()

Update only the specified fields of the override. If unset, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

publicFieldMask.BuildergetUpdateMaskBuilder()

Update only the specified fields of the override. If unset, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

publicFieldMaskOrBuildergetUpdateMaskOrBuilder()

Update only the specified fields of the override. If unset, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4;

Returns
Type Description
FieldMaskOrBuilder

hasOverride()

publicbooleanhasOverride()

The new override. Only the override_value is updated; all other fields are ignored.

.google.api.serviceusage.v1beta1.QuotaOverride override = 2;

Returns
Type Description
boolean

Whether the override field is set.

hasUpdateMask()

publicbooleanhasUpdateMask()

Update only the specified fields of the override. If unset, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateConsumerOverrideRequest other)

publicUpdateConsumerOverrideRequest.BuildermergeFrom(UpdateConsumerOverrideRequestother)
Parameter
Name Description
other UpdateConsumerOverrideRequest
Returns
Type Description
UpdateConsumerOverrideRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicUpdateConsumerOverrideRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateConsumerOverrideRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicUpdateConsumerOverrideRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
UpdateConsumerOverrideRequest.Builder
Overrides

mergeOverride(QuotaOverride value)

publicUpdateConsumerOverrideRequest.BuildermergeOverride(QuotaOverridevalue)

The new override. Only the override_value is updated; all other fields are ignored.

.google.api.serviceusage.v1beta1.QuotaOverride override = 2;

Parameter
Name Description
value QuotaOverride
Returns
Type Description
UpdateConsumerOverrideRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalUpdateConsumerOverrideRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateConsumerOverrideRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

publicUpdateConsumerOverrideRequest.BuildermergeUpdateMask(FieldMaskvalue)

Update only the specified fields of the override. If unset, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateConsumerOverrideRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

publicUpdateConsumerOverrideRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateConsumerOverrideRequest.Builder
Overrides

setForce(boolean value)

publicUpdateConsumerOverrideRequest.BuildersetForce(booleanvalue)

Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.

bool force = 3;

Parameter
Name Description
value boolean

The force to set.

Returns
Type Description
UpdateConsumerOverrideRequest.Builder

This builder for chaining.

setForceOnly(int index, QuotaSafetyCheck value)

publicUpdateConsumerOverrideRequest.BuildersetForceOnly(intindex,QuotaSafetyCheckvalue)

The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.

repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 5;

Parameters
Name Description
index int

The index to set the value at.

value QuotaSafetyCheck

The forceOnly to set.

Returns
Type Description
UpdateConsumerOverrideRequest.Builder

This builder for chaining.

setForceOnlyValue(int index, int value)

publicUpdateConsumerOverrideRequest.BuildersetForceOnlyValue(intindex,intvalue)

The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.

repeated .google.api.serviceusage.v1beta1.QuotaSafetyCheck force_only = 5;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for forceOnly to set.

Returns
Type Description
UpdateConsumerOverrideRequest.Builder

This builder for chaining.

setName(String value)

publicUpdateConsumerOverrideRequest.BuildersetName(Stringvalue)

The resource name of the override to update.

An example name would be: projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
UpdateConsumerOverrideRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicUpdateConsumerOverrideRequest.BuildersetNameBytes(ByteStringvalue)

The resource name of the override to update.

An example name would be: projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
UpdateConsumerOverrideRequest.Builder

This builder for chaining.

setOverride(QuotaOverride value)

publicUpdateConsumerOverrideRequest.BuildersetOverride(QuotaOverridevalue)

The new override. Only the override_value is updated; all other fields are ignored.

.google.api.serviceusage.v1beta1.QuotaOverride override = 2;

Parameter
Name Description
value QuotaOverride
Returns
Type Description
UpdateConsumerOverrideRequest.Builder

setOverride(QuotaOverride.Builder builderForValue)

publicUpdateConsumerOverrideRequest.BuildersetOverride(QuotaOverride.BuilderbuilderForValue)

The new override. Only the override_value is updated; all other fields are ignored.

.google.api.serviceusage.v1beta1.QuotaOverride override = 2;

Parameter
Name Description
builderForValue QuotaOverride.Builder
Returns
Type Description
UpdateConsumerOverrideRequest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicUpdateConsumerOverrideRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateConsumerOverrideRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalUpdateConsumerOverrideRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateConsumerOverrideRequest.Builder
Overrides

setUpdateMask(FieldMask value)

publicUpdateConsumerOverrideRequest.BuildersetUpdateMask(FieldMaskvalue)

Update only the specified fields of the override. If unset, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateConsumerOverrideRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

publicUpdateConsumerOverrideRequest.BuildersetUpdateMask(FieldMask.BuilderbuilderForValue)

Update only the specified fields of the override. If unset, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateConsumerOverrideRequest.Builder

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.