Class UpdateQuotaPreferenceRequest.Builder (0.8.0)

public static final class UpdateQuotaPreferenceRequest.Builder extends GeneratedMessageV3.Builder<UpdateQuotaPreferenceRequest.Builder> implements UpdateQuotaPreferenceRequestOrBuilder

Message for updating a QuotaPreference

Protobuf type google.api.cloudquotas.v1.UpdateQuotaPreferenceRequest

Static Methods

getDescriptor()

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

Methods

addAllIgnoreSafetyChecks(Iterable<? extends QuotaSafetyCheck> values)

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

The list of quota safety checks to be ignored.

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

Parameter
NameDescription
valuesIterable<? extends com.google.api.cloudquotas.v1.QuotaSafetyCheck>

The ignoreSafetyChecks to add.

Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

This builder for chaining.

addAllIgnoreSafetyChecksValue(Iterable<Integer> values)

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

The list of quota safety checks to be ignored.

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

Parameter
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

This builder for chaining.

addIgnoreSafetyChecks(QuotaSafetyCheck value)

public UpdateQuotaPreferenceRequest.Builder addIgnoreSafetyChecks(QuotaSafetyCheck value)

The list of quota safety checks to be ignored.

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

Parameter
NameDescription
valueQuotaSafetyCheck

The ignoreSafetyChecks to add.

Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

This builder for chaining.

addIgnoreSafetyChecksValue(int value)

public UpdateQuotaPreferenceRequest.Builder addIgnoreSafetyChecksValue(int value)

The list of quota safety checks to be ignored.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateQuotaPreferenceRequest build()
Returns
TypeDescription
UpdateQuotaPreferenceRequest

buildPartial()

public UpdateQuotaPreferenceRequest buildPartial()
Returns
TypeDescription
UpdateQuotaPreferenceRequest

clear()

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

clearAllowMissing()

public UpdateQuotaPreferenceRequest.Builder clearAllowMissing()

Optional. If set to true, and the quota preference is not found, a new one will be created. In this situation, update_mask is ignored.

bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIgnoreSafetyChecks()

public UpdateQuotaPreferenceRequest.Builder clearIgnoreSafetyChecks()

The list of quota safety checks to be ignored.

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

Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuotaPreference()

public UpdateQuotaPreferenceRequest.Builder clearQuotaPreference()

Required. The resource being updated

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

Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

clearUpdateMask()

public UpdateQuotaPreferenceRequest.Builder clearUpdateMask()

Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

clearValidateOnly()

public UpdateQuotaPreferenceRequest.Builder clearValidateOnly()

Optional. If set to true, validate the request, but do not actually update. Note that a request being valid does not mean that the request is guaranteed to be fulfilled.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

This builder for chaining.

clone()

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

getAllowMissing()

public boolean getAllowMissing()

Optional. If set to true, and the quota preference is not found, a new one will be created. In this situation, update_mask is ignored.

bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The allowMissing.

getDefaultInstanceForType()

public UpdateQuotaPreferenceRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateQuotaPreferenceRequest

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

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

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

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

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

Returns
TypeDescription
List<Integer>

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

getQuotaPreference()

public QuotaPreference getQuotaPreference()

Required. The resource being updated

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

Returns
TypeDescription
QuotaPreference

The quotaPreference.

getQuotaPreferenceBuilder()

public QuotaPreference.Builder getQuotaPreferenceBuilder()

Required. The resource being updated

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

Returns
TypeDescription
QuotaPreference.Builder

getQuotaPreferenceOrBuilder()

public QuotaPreferenceOrBuilder getQuotaPreferenceOrBuilder()

Required. The resource being updated

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

Returns
TypeDescription
QuotaPreferenceOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FieldMaskOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Optional. If set to true, validate the request, but do not actually update. Note that a request being valid does not mean that the request is guaranteed to be fulfilled.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The validateOnly.

hasQuotaPreference()

public boolean hasQuotaPreference()

Required. The resource being updated

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

Returns
TypeDescription
boolean

Whether the quotaPreference field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

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

public UpdateQuotaPreferenceRequest.Builder mergeFrom(UpdateQuotaPreferenceRequest other)
Parameter
NameDescription
otherUpdateQuotaPreferenceRequest
Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeQuotaPreference(QuotaPreference value)

public UpdateQuotaPreferenceRequest.Builder mergeQuotaPreference(QuotaPreference value)

Required. The resource being updated

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

Parameter
NameDescription
valueQuotaPreference
Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateQuotaPreferenceRequest.Builder mergeUpdateMask(FieldMask value)

Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

setAllowMissing(boolean value)

public UpdateQuotaPreferenceRequest.Builder setAllowMissing(boolean value)

Optional. If set to true, and the quota preference is not found, a new one will be created. In this situation, update_mask is ignored.

bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The allowMissing to set.

Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIgnoreSafetyChecks(int index, QuotaSafetyCheck value)

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

The list of quota safety checks to be ignored.

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

Parameters
NameDescription
indexint

The index to set the value at.

valueQuotaSafetyCheck

The ignoreSafetyChecks to set.

Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

This builder for chaining.

setIgnoreSafetyChecksValue(int index, int value)

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

The list of quota safety checks to be ignored.

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

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

This builder for chaining.

setQuotaPreference(QuotaPreference value)

public UpdateQuotaPreferenceRequest.Builder setQuotaPreference(QuotaPreference value)

Required. The resource being updated

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

Parameter
NameDescription
valueQuotaPreference
Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

setQuotaPreference(QuotaPreference.Builder builderForValue)

public UpdateQuotaPreferenceRequest.Builder setQuotaPreference(QuotaPreference.Builder builderForValue)

Required. The resource being updated

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

Parameter
NameDescription
builderForValueQuotaPreference.Builder
Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateQuotaPreferenceRequest.Builder setUpdateMask(FieldMask value)

Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateQuotaPreferenceRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

setValidateOnly(boolean value)

public UpdateQuotaPreferenceRequest.Builder setValidateOnly(boolean value)

Optional. If set to true, validate the request, but do not actually update. Note that a request being valid does not mean that the request is guaranteed to be fulfilled.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
UpdateQuotaPreferenceRequest.Builder

This builder for chaining.