Class UpdateAdminOverrideRequest.Builder (2.34.0)

public static final class UpdateAdminOverrideRequest.Builder extends GeneratedMessageV3.Builder<UpdateAdminOverrideRequest.Builder> implements UpdateAdminOverrideRequestOrBuilder

Request message for UpdateAdminOverride.

Protobuf type google.api.serviceusage.v1beta1.UpdateAdminOverrideRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllForceOnly(Iterable<? extends QuotaSafetyCheck> values)

public UpdateAdminOverrideRequest.Builder addAllForceOnly(Iterable<? extends QuotaSafetyCheck> 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
NameDescription
valuesIterable<? extends com.google.api.serviceusage.v1beta1.QuotaSafetyCheck>

The forceOnly to add.

Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

This builder for chaining.

addAllForceOnlyValue(Iterable<Integer> values)

public UpdateAdminOverrideRequest.Builder addAllForceOnlyValue(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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

This builder for chaining.

addForceOnly(QuotaSafetyCheck value)

public UpdateAdminOverrideRequest.Builder addForceOnly(QuotaSafetyCheck value)

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
NameDescription
valueQuotaSafetyCheck

The forceOnly to add.

Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

This builder for chaining.

addForceOnlyValue(int value)

public UpdateAdminOverrideRequest.Builder addForceOnlyValue(int value)

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
NameDescription
valueint

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

Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateAdminOverrideRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder
Overrides

build()

public UpdateAdminOverrideRequest build()
Returns
TypeDescription
UpdateAdminOverrideRequest

buildPartial()

public UpdateAdminOverrideRequest buildPartial()
Returns
TypeDescription
UpdateAdminOverrideRequest

clear()

public UpdateAdminOverrideRequest.Builder clear()
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UpdateAdminOverrideRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder
Overrides

clearForce()

public UpdateAdminOverrideRequest.Builder clearForce()

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
TypeDescription
UpdateAdminOverrideRequest.Builder

This builder for chaining.

clearForceOnly()

public UpdateAdminOverrideRequest.Builder clearForceOnly()

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
TypeDescription
UpdateAdminOverrideRequest.Builder

This builder for chaining.

clearName()

public UpdateAdminOverrideRequest.Builder clearName()

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/adminOverrides/4a3f2c1d

string name = 1;

Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateAdminOverrideRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder
Overrides

clearOverride()

public UpdateAdminOverrideRequest.Builder clearOverride()

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

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

Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

clearUpdateMask()

public UpdateAdminOverrideRequest.Builder clearUpdateMask()

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

.google.protobuf.FieldMask update_mask = 4;

Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

clone()

public UpdateAdminOverrideRequest.Builder clone()
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateAdminOverrideRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateAdminOverrideRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getForce()

public boolean getForce()

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
TypeDescription
boolean

The force.

getForceOnly(int index)

public QuotaSafetyCheck getForceOnly(int index)

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
QuotaSafetyCheck

The forceOnly at the given index.

getForceOnlyCount()

public int getForceOnlyCount()

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
TypeDescription
int

The count of forceOnly.

getForceOnlyList()

public List<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
TypeDescription
List<QuotaSafetyCheck>

A list containing the forceOnly.

getForceOnlyValue(int index)

public int getForceOnlyValue(int index)

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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

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

getForceOnlyValueList()

public List<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
TypeDescription
List<Integer>

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

getName()

public String getName()

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/adminOverrides/4a3f2c1d

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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/adminOverrides/4a3f2c1d

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getOverride()

public QuotaOverride getOverride()

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

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

Returns
TypeDescription
QuotaOverride

The override.

getOverrideBuilder()

public QuotaOverride.Builder getOverrideBuilder()

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

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

Returns
TypeDescription
QuotaOverride.Builder

getOverrideOrBuilder()

public QuotaOverrideOrBuilder getOverrideOrBuilder()

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

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

Returns
TypeDescription
QuotaOverrideOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

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

.google.protobuf.FieldMask update_mask = 4;

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

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

.google.protobuf.FieldMask update_mask = 4;

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

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

.google.protobuf.FieldMask update_mask = 4;

Returns
TypeDescription
FieldMaskOrBuilder

hasOverride()

public boolean hasOverride()

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

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

Returns
TypeDescription
boolean

Whether the override field is set.

hasUpdateMask()

public boolean hasUpdateMask()

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

.google.protobuf.FieldMask update_mask = 4;

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateAdminOverrideRequest other)

public UpdateAdminOverrideRequest.Builder mergeFrom(UpdateAdminOverrideRequest other)
Parameter
NameDescription
otherUpdateAdminOverrideRequest
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateAdminOverrideRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpdateAdminOverrideRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder
Overrides

mergeOverride(QuotaOverride value)

public UpdateAdminOverrideRequest.Builder mergeOverride(QuotaOverride value)

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

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

Parameter
NameDescription
valueQuotaOverride
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateAdminOverrideRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateAdminOverrideRequest.Builder mergeUpdateMask(FieldMask value)

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

.google.protobuf.FieldMask update_mask = 4;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateAdminOverrideRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder
Overrides

setForce(boolean value)

public UpdateAdminOverrideRequest.Builder setForce(boolean value)

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
NameDescription
valueboolean

The force to set.

Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

This builder for chaining.

setForceOnly(int index, QuotaSafetyCheck value)

public UpdateAdminOverrideRequest.Builder setForceOnly(int index, QuotaSafetyCheck value)

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
NameDescription
indexint

The index to set the value at.

valueQuotaSafetyCheck

The forceOnly to set.

Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

This builder for chaining.

setForceOnlyValue(int index, int value)

public UpdateAdminOverrideRequest.Builder setForceOnlyValue(int index, int value)

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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

This builder for chaining.

setName(String value)

public UpdateAdminOverrideRequest.Builder setName(String value)

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/adminOverrides/4a3f2c1d

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpdateAdminOverrideRequest.Builder setNameBytes(ByteString value)

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/adminOverrides/4a3f2c1d

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

This builder for chaining.

setOverride(QuotaOverride value)

public UpdateAdminOverrideRequest.Builder setOverride(QuotaOverride value)

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

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

Parameter
NameDescription
valueQuotaOverride
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

setOverride(QuotaOverride.Builder builderForValue)

public UpdateAdminOverrideRequest.Builder setOverride(QuotaOverride.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueQuotaOverride.Builder
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

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

public UpdateAdminOverrideRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateAdminOverrideRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateAdminOverrideRequest.Builder setUpdateMask(FieldMask value)

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

.google.protobuf.FieldMask update_mask = 4;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateAdminOverrideRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

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

.google.protobuf.FieldMask update_mask = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateAdminOverrideRequest.Builder