Class CreateQuotaPreferenceRequest.Builder (0.16.0)

public static final class CreateQuotaPreferenceRequest.Builder extends GeneratedMessageV3.Builder<CreateQuotaPreferenceRequest.Builder> implements CreateQuotaPreferenceRequestOrBuilder

Message for creating a QuotaPreference

Protobuf type google.api.cloudquotas.v1.CreateQuotaPreferenceRequest

Static Methods

getDescriptor()

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

Methods

addAllIgnoreSafetyChecks(Iterable<? extends QuotaSafetyCheck> values)

public CreateQuotaPreferenceRequest.Builder addAllIgnoreSafetyChecks(Iterable<? extends QuotaSafetyCheck> values)

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;

Parameter
Name Description
values Iterable<? extends com.google.api.cloudquotas.v1.QuotaSafetyCheck>

The ignoreSafetyChecks to add.

Returns
Type Description
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

addAllIgnoreSafetyChecksValue(Iterable<Integer> values)

public CreateQuotaPreferenceRequest.Builder addAllIgnoreSafetyChecksValue(Iterable<Integer> values)

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;

Parameter
Name Description
values Iterable<Integer>

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

Returns
Type Description
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

addIgnoreSafetyChecks(QuotaSafetyCheck value)

public CreateQuotaPreferenceRequest.Builder addIgnoreSafetyChecks(QuotaSafetyCheck value)

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;

Parameter
Name Description
value QuotaSafetyCheck

The ignoreSafetyChecks to add.

Returns
Type Description
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

addIgnoreSafetyChecksValue(int value)

public CreateQuotaPreferenceRequest.Builder addIgnoreSafetyChecksValue(int value)

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;

Parameter
Name Description
value int

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

Returns
Type Description
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateQuotaPreferenceRequest build()
Returns
Type Description
CreateQuotaPreferenceRequest

buildPartial()

public CreateQuotaPreferenceRequest buildPartial()
Returns
Type Description
CreateQuotaPreferenceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIgnoreSafetyChecks()

public CreateQuotaPreferenceRequest.Builder clearIgnoreSafetyChecks()

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;

Returns
Type Description
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateQuotaPreferenceRequest.Builder clearParent()

Required. Value for parent.

Example: projects/123/locations/global

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

clearQuotaPreference()

public CreateQuotaPreferenceRequest.Builder clearQuotaPreference()

Required. The resource being created

.google.api.cloudquotas.v1.QuotaPreference quota_preference = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateQuotaPreferenceRequest.Builder

clearQuotaPreferenceId()

public CreateQuotaPreferenceRequest.Builder clearQuotaPreferenceId()

Optional. Id of the requesting object, must be unique under its parent. If client does not set this field, the service will generate one.

string quota_preference_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateQuotaPreferenceRequest getDefaultInstanceForType()
Returns
Type Description
CreateQuotaPreferenceRequest

getDescriptorForType()

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

getIgnoreSafetyChecks(int index)

public QuotaSafetyCheck getIgnoreSafetyChecks(int index)

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
QuotaSafetyCheck

The ignoreSafetyChecks at the given index.

getIgnoreSafetyChecksCount()

public int getIgnoreSafetyChecksCount()

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;

Returns
Type Description
int

The count of ignoreSafetyChecks.

getIgnoreSafetyChecksList()

public List<QuotaSafetyCheck> getIgnoreSafetyChecksList()

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;

Returns
Type Description
List<QuotaSafetyCheck>

A list containing the ignoreSafetyChecks.

getIgnoreSafetyChecksValue(int index)

public int getIgnoreSafetyChecksValue(int index)

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 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 ignoreSafetyChecks at the given index.

getIgnoreSafetyChecksValueList()

public List<Integer> getIgnoreSafetyChecksValueList()

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;

Returns
Type Description
List<Integer>

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

getParent()

public String getParent()

Required. Value for parent.

Example: projects/123/locations/global

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Value for parent.

Example: projects/123/locations/global

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getQuotaPreference()

public QuotaPreference getQuotaPreference()

Required. The resource being created

.google.api.cloudquotas.v1.QuotaPreference quota_preference = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QuotaPreference

The quotaPreference.

getQuotaPreferenceBuilder()

public QuotaPreference.Builder getQuotaPreferenceBuilder()

Required. The resource being created

.google.api.cloudquotas.v1.QuotaPreference quota_preference = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QuotaPreference.Builder

getQuotaPreferenceId()

public String getQuotaPreferenceId()

Optional. Id of the requesting object, must be unique under its parent. If client does not set this field, the service will generate one.

string quota_preference_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The quotaPreferenceId.

getQuotaPreferenceIdBytes()

public ByteString getQuotaPreferenceIdBytes()

Optional. Id of the requesting object, must be unique under its parent. If client does not set this field, the service will generate one.

string quota_preference_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for quotaPreferenceId.

getQuotaPreferenceOrBuilder()

public QuotaPreferenceOrBuilder getQuotaPreferenceOrBuilder()

Required. The resource being created

.google.api.cloudquotas.v1.QuotaPreference quota_preference = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QuotaPreferenceOrBuilder

hasQuotaPreference()

public boolean hasQuotaPreference()

Required. The resource being created

.google.api.cloudquotas.v1.QuotaPreference quota_preference = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the quotaPreference field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateQuotaPreferenceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeQuotaPreference(QuotaPreference value)

public CreateQuotaPreferenceRequest.Builder mergeQuotaPreference(QuotaPreference value)

Required. The resource being created

.google.api.cloudquotas.v1.QuotaPreference quota_preference = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value QuotaPreference
Returns
Type Description
CreateQuotaPreferenceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIgnoreSafetyChecks(int index, QuotaSafetyCheck value)

public CreateQuotaPreferenceRequest.Builder setIgnoreSafetyChecks(int index, QuotaSafetyCheck value)

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;

Parameters
Name Description
index int

The index to set the value at.

value QuotaSafetyCheck

The ignoreSafetyChecks to set.

Returns
Type Description
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

setIgnoreSafetyChecksValue(int index, int value)

public CreateQuotaPreferenceRequest.Builder setIgnoreSafetyChecksValue(int index, int value)

The list of quota safety checks to be ignored.

repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

setParent(String value)

public CreateQuotaPreferenceRequest.Builder setParent(String value)

Required. Value for parent.

Example: projects/123/locations/global

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateQuotaPreferenceRequest.Builder setParentBytes(ByteString value)

Required. Value for parent.

Example: projects/123/locations/global

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

setQuotaPreference(QuotaPreference value)

public CreateQuotaPreferenceRequest.Builder setQuotaPreference(QuotaPreference value)

Required. The resource being created

.google.api.cloudquotas.v1.QuotaPreference quota_preference = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value QuotaPreference
Returns
Type Description
CreateQuotaPreferenceRequest.Builder

setQuotaPreference(QuotaPreference.Builder builderForValue)

public CreateQuotaPreferenceRequest.Builder setQuotaPreference(QuotaPreference.Builder builderForValue)

Required. The resource being created

.google.api.cloudquotas.v1.QuotaPreference quota_preference = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue QuotaPreference.Builder
Returns
Type Description
CreateQuotaPreferenceRequest.Builder

setQuotaPreferenceId(String value)

public CreateQuotaPreferenceRequest.Builder setQuotaPreferenceId(String value)

Optional. Id of the requesting object, must be unique under its parent. If client does not set this field, the service will generate one.

string quota_preference_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The quotaPreferenceId to set.

Returns
Type Description
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

setQuotaPreferenceIdBytes(ByteString value)

public CreateQuotaPreferenceRequest.Builder setQuotaPreferenceIdBytes(ByteString value)

Optional. Id of the requesting object, must be unique under its parent. If client does not set this field, the service will generate one.

string quota_preference_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for quotaPreferenceId to set.

Returns
Type Description
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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