Class CreateQuotaPreferenceRequest.Builder (0.2.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.cloudquotas.v1.QuotaSafetyCheck>

The ignoreSafetyChecks to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

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

The ignoreSafetyChecks to add.

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

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

Returns
TypeDescription
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateQuotaPreferenceRequest build()
Returns
TypeDescription
CreateQuotaPreferenceRequest

buildPartial()

public CreateQuotaPreferenceRequest buildPartial()
Returns
TypeDescription
CreateQuotaPreferenceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateQuotaPreferenceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateQuotaPreferenceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CreateQuotaPreferenceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateQuotaPreferenceRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateQuotaPreferenceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
QuotaPreferenceOrBuilder

hasQuotaPreference()

public boolean hasQuotaPreference()

Required. The resource being created

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

Returns
TypeDescription
boolean

Whether the quotaPreference field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateQuotaPreferenceRequest other)

public CreateQuotaPreferenceRequest.Builder mergeFrom(CreateQuotaPreferenceRequest other)
Parameter
NameDescription
otherCreateQuotaPreferenceRequest
Returns
TypeDescription
CreateQuotaPreferenceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateQuotaPreferenceRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueQuotaPreference
Returns
TypeDescription
CreateQuotaPreferenceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateQuotaPreferenceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueQuotaSafetyCheck

The ignoreSafetyChecks to set.

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

The index to set the value at.

valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
valueQuotaPreference
Returns
TypeDescription
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
NameDescription
builderForValueQuotaPreference.Builder
Returns
TypeDescription
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
NameDescription
valueString

The quotaPreferenceId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for quotaPreferenceId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateQuotaPreferenceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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