Class ImportAdminOverridesRequest.Builder (2.11.0)

public static final class ImportAdminOverridesRequest.Builder extends GeneratedMessageV3.Builder<ImportAdminOverridesRequest.Builder> implements ImportAdminOverridesRequestOrBuilder

Request message for ImportAdminOverrides

Protobuf type google.api.serviceusage.v1beta1.ImportAdminOverridesRequest

Static Methods

getDescriptor()

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

Methods

addAllForceOnly(Iterable<? extends QuotaSafetyCheck> values)

public ImportAdminOverridesRequest.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
NameDescription
valuesIterable<? extends com.google.api.serviceusage.v1beta1.QuotaSafetyCheck>

The forceOnly to add.

Returns
TypeDescription
ImportAdminOverridesRequest.Builder

This builder for chaining.

addAllForceOnlyValue(Iterable<Integer> values)

public ImportAdminOverridesRequest.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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
ImportAdminOverridesRequest.Builder

This builder for chaining.

addForceOnly(QuotaSafetyCheck value)

public ImportAdminOverridesRequest.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
NameDescription
valueQuotaSafetyCheck

The forceOnly to add.

Returns
TypeDescription
ImportAdminOverridesRequest.Builder

This builder for chaining.

addForceOnlyValue(int value)

public ImportAdminOverridesRequest.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
NameDescription
valueint

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

Returns
TypeDescription
ImportAdminOverridesRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportAdminOverridesRequest build()
Returns
TypeDescription
ImportAdminOverridesRequest

buildPartial()

public ImportAdminOverridesRequest buildPartial()
Returns
TypeDescription
ImportAdminOverridesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearForce()

public ImportAdminOverridesRequest.Builder clearForce()

Whether to force the creation of the quota overrides. 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
ImportAdminOverridesRequest.Builder

This builder for chaining.

clearForceOnly()

public ImportAdminOverridesRequest.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
TypeDescription
ImportAdminOverridesRequest.Builder

This builder for chaining.

clearInlineSource()

public ImportAdminOverridesRequest.Builder clearInlineSource()

The import data is specified in the request message itself

.google.api.serviceusage.v1beta1.OverrideInlineSource inline_source = 2;

Returns
TypeDescription
ImportAdminOverridesRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ImportAdminOverridesRequest.Builder clearParent()

The resource name of the consumer. An example name would be: projects/123/services/compute.googleapis.com

string parent = 1;

Returns
TypeDescription
ImportAdminOverridesRequest.Builder

This builder for chaining.

clearSource()

public ImportAdminOverridesRequest.Builder clearSource()
Returns
TypeDescription
ImportAdminOverridesRequest.Builder

clone()

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

getDefaultInstanceForType()

public ImportAdminOverridesRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportAdminOverridesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getForce()

public boolean getForce()

Whether to force the creation of the quota overrides. 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 = 4;

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

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

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

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

Returns
TypeDescription
List<Integer>

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

getInlineSource()

public OverrideInlineSource getInlineSource()

The import data is specified in the request message itself

.google.api.serviceusage.v1beta1.OverrideInlineSource inline_source = 2;

Returns
TypeDescription
OverrideInlineSource

The inlineSource.

getInlineSourceBuilder()

public OverrideInlineSource.Builder getInlineSourceBuilder()

The import data is specified in the request message itself

.google.api.serviceusage.v1beta1.OverrideInlineSource inline_source = 2;

Returns
TypeDescription
OverrideInlineSource.Builder

getInlineSourceOrBuilder()

public OverrideInlineSourceOrBuilder getInlineSourceOrBuilder()

The import data is specified in the request message itself

.google.api.serviceusage.v1beta1.OverrideInlineSource inline_source = 2;

Returns
TypeDescription
OverrideInlineSourceOrBuilder

getParent()

public String getParent()

The resource name of the consumer. An example name would be: projects/123/services/compute.googleapis.com

string parent = 1;

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The resource name of the consumer. An example name would be: projects/123/services/compute.googleapis.com

string parent = 1;

Returns
TypeDescription
ByteString

The bytes for parent.

getSourceCase()

public ImportAdminOverridesRequest.SourceCase getSourceCase()
Returns
TypeDescription
ImportAdminOverridesRequest.SourceCase

hasInlineSource()

public boolean hasInlineSource()

The import data is specified in the request message itself

.google.api.serviceusage.v1beta1.OverrideInlineSource inline_source = 2;

Returns
TypeDescription
boolean

Whether the inlineSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportAdminOverridesRequest other)

public ImportAdminOverridesRequest.Builder mergeFrom(ImportAdminOverridesRequest other)
Parameter
NameDescription
otherImportAdminOverridesRequest
Returns
TypeDescription
ImportAdminOverridesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInlineSource(OverrideInlineSource value)

public ImportAdminOverridesRequest.Builder mergeInlineSource(OverrideInlineSource value)

The import data is specified in the request message itself

.google.api.serviceusage.v1beta1.OverrideInlineSource inline_source = 2;

Parameter
NameDescription
valueOverrideInlineSource
Returns
TypeDescription
ImportAdminOverridesRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setForce(boolean value)

public ImportAdminOverridesRequest.Builder setForce(boolean value)

Whether to force the creation of the quota overrides. 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
ImportAdminOverridesRequest.Builder

This builder for chaining.

setForceOnly(int index, QuotaSafetyCheck value)

public ImportAdminOverridesRequest.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
NameDescription
indexint

The index to set the value at.

valueQuotaSafetyCheck

The forceOnly to set.

Returns
TypeDescription
ImportAdminOverridesRequest.Builder

This builder for chaining.

setForceOnlyValue(int index, int value)

public ImportAdminOverridesRequest.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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
ImportAdminOverridesRequest.Builder

This builder for chaining.

setInlineSource(OverrideInlineSource value)

public ImportAdminOverridesRequest.Builder setInlineSource(OverrideInlineSource value)

The import data is specified in the request message itself

.google.api.serviceusage.v1beta1.OverrideInlineSource inline_source = 2;

Parameter
NameDescription
valueOverrideInlineSource
Returns
TypeDescription
ImportAdminOverridesRequest.Builder

setInlineSource(OverrideInlineSource.Builder builderForValue)

public ImportAdminOverridesRequest.Builder setInlineSource(OverrideInlineSource.Builder builderForValue)

The import data is specified in the request message itself

.google.api.serviceusage.v1beta1.OverrideInlineSource inline_source = 2;

Parameter
NameDescription
builderForValueOverrideInlineSource.Builder
Returns
TypeDescription
ImportAdminOverridesRequest.Builder

setParent(String value)

public ImportAdminOverridesRequest.Builder setParent(String value)

The resource name of the consumer. An example name would be: projects/123/services/compute.googleapis.com

string parent = 1;

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ImportAdminOverridesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportAdminOverridesRequest.Builder setParentBytes(ByteString value)

The resource name of the consumer. An example name would be: projects/123/services/compute.googleapis.com

string parent = 1;

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ImportAdminOverridesRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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