Class CreateAdminOverrideRequest.Builder (2.55.0)

public static final class CreateAdminOverrideRequest.Builder extends GeneratedMessageV3.Builder<CreateAdminOverrideRequest.Builder> implements CreateAdminOverrideRequestOrBuilder

Request message for CreateAdminOverride.

Protobuf type google.api.serviceusage.v1beta1.CreateAdminOverrideRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllForceOnly(Iterable<? extends QuotaSafetyCheck> values)

public CreateAdminOverrideRequest.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 = 4;

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

The forceOnly to add.

Returns
Type Description
CreateAdminOverrideRequest.Builder

This builder for chaining.

addAllForceOnlyValue(Iterable<Integer> values)

public CreateAdminOverrideRequest.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 = 4;

Parameter
Name Description
values Iterable<Integer>

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

Returns
Type Description
CreateAdminOverrideRequest.Builder

This builder for chaining.

addForceOnly(QuotaSafetyCheck value)

public CreateAdminOverrideRequest.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 = 4;

Parameter
Name Description
value QuotaSafetyCheck

The forceOnly to add.

Returns
Type Description
CreateAdminOverrideRequest.Builder

This builder for chaining.

addForceOnlyValue(int value)

public CreateAdminOverrideRequest.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 = 4;

Parameter
Name Description
value int

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

Returns
Type Description
CreateAdminOverrideRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateAdminOverrideRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateAdminOverrideRequest.Builder
Overrides

build()

public CreateAdminOverrideRequest build()
Returns
Type Description
CreateAdminOverrideRequest

buildPartial()

public CreateAdminOverrideRequest buildPartial()
Returns
Type Description
CreateAdminOverrideRequest

clear()

public CreateAdminOverrideRequest.Builder clear()
Returns
Type Description
CreateAdminOverrideRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateAdminOverrideRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateAdminOverrideRequest.Builder
Overrides

clearForce()

public CreateAdminOverrideRequest.Builder clearForce()

Whether to force the creation 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
CreateAdminOverrideRequest.Builder

This builder for chaining.

clearForceOnly()

public CreateAdminOverrideRequest.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 = 4;

Returns
Type Description
CreateAdminOverrideRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateAdminOverrideRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateAdminOverrideRequest.Builder
Overrides

clearOverride()

public CreateAdminOverrideRequest.Builder clearOverride()

The admin override to create.

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

Returns
Type Description
CreateAdminOverrideRequest.Builder

clearParent()

public CreateAdminOverrideRequest.Builder clearParent()

The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.

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

string parent = 1;

Returns
Type Description
CreateAdminOverrideRequest.Builder

This builder for chaining.

clone()

public CreateAdminOverrideRequest.Builder clone()
Returns
Type Description
CreateAdminOverrideRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateAdminOverrideRequest getDefaultInstanceForType()
Returns
Type Description
CreateAdminOverrideRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getForce()

public boolean getForce()

Whether to force the creation 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)

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 = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
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 = 4;

Returns
Type Description
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 = 4;

Returns
Type Description
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 = 4;

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()

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 = 4;

Returns
Type Description
List<Integer>

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

getOverride()

public QuotaOverride getOverride()

The admin override to create.

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

Returns
Type Description
QuotaOverride

The override.

getOverrideBuilder()

public QuotaOverride.Builder getOverrideBuilder()

The admin override to create.

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

Returns
Type Description
QuotaOverride.Builder

getOverrideOrBuilder()

public QuotaOverrideOrBuilder getOverrideOrBuilder()

The admin override to create.

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

Returns
Type Description
QuotaOverrideOrBuilder

getParent()

public String getParent()

The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.

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

string parent = 1;

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.

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

string parent = 1;

Returns
Type Description
ByteString

The bytes for parent.

hasOverride()

public boolean hasOverride()

The admin override to create.

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

Returns
Type Description
boolean

Whether the override field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateAdminOverrideRequest other)

public CreateAdminOverrideRequest.Builder mergeFrom(CreateAdminOverrideRequest other)
Parameter
Name Description
other CreateAdminOverrideRequest
Returns
Type Description
CreateAdminOverrideRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateAdminOverrideRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAdminOverrideRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateAdminOverrideRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateAdminOverrideRequest.Builder
Overrides

mergeOverride(QuotaOverride value)

public CreateAdminOverrideRequest.Builder mergeOverride(QuotaOverride value)

The admin override to create.

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

Parameter
Name Description
value QuotaOverride
Returns
Type Description
CreateAdminOverrideRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateAdminOverrideRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateAdminOverrideRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateAdminOverrideRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateAdminOverrideRequest.Builder
Overrides

setForce(boolean value)

public CreateAdminOverrideRequest.Builder setForce(boolean value)

Whether to force the creation 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
CreateAdminOverrideRequest.Builder

This builder for chaining.

setForceOnly(int index, QuotaSafetyCheck value)

public CreateAdminOverrideRequest.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 = 4;

Parameters
Name Description
index int

The index to set the value at.

value QuotaSafetyCheck

The forceOnly to set.

Returns
Type Description
CreateAdminOverrideRequest.Builder

This builder for chaining.

setForceOnlyValue(int index, int value)

public CreateAdminOverrideRequest.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 = 4;

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
CreateAdminOverrideRequest.Builder

This builder for chaining.

setOverride(QuotaOverride value)

public CreateAdminOverrideRequest.Builder setOverride(QuotaOverride value)

The admin override to create.

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

Parameter
Name Description
value QuotaOverride
Returns
Type Description
CreateAdminOverrideRequest.Builder

setOverride(QuotaOverride.Builder builderForValue)

public CreateAdminOverrideRequest.Builder setOverride(QuotaOverride.Builder builderForValue)

The admin override to create.

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

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

setParent(String value)

public CreateAdminOverrideRequest.Builder setParent(String value)

The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.

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

string parent = 1;

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateAdminOverrideRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateAdminOverrideRequest.Builder setParentBytes(ByteString value)

The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call.

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

string parent = 1;

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateAdminOverrideRequest.Builder

This builder for chaining.

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

public CreateAdminOverrideRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateAdminOverrideRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateAdminOverrideRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateAdminOverrideRequest.Builder
Overrides