Package com.google.api.cloudquotas.v1
Class UpdateQuotaPreferenceRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UpdateQuotaPreferenceRequest.Builder>
com.google.api.cloudquotas.v1.UpdateQuotaPreferenceRequest.Builder
- All Implemented Interfaces:
UpdateQuotaPreferenceRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UpdateQuotaPreferenceRequest
public static final class UpdateQuotaPreferenceRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<UpdateQuotaPreferenceRequest.Builder>
implements UpdateQuotaPreferenceRequestOrBuilder
Message for updating a QuotaPreferenceProtobuf type
google.api.cloudquotas.v1.UpdateQuotaPreferenceRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllIgnoreSafetyChecks(Iterable<? extends QuotaSafetyCheck> values) The list of quota safety checks to be ignored.addAllIgnoreSafetyChecksValue(Iterable<Integer> values) The list of quota safety checks to be ignored.The list of quota safety checks to be ignored.addIgnoreSafetyChecksValue(int value) The list of quota safety checks to be ignored.build()clear()Optional.The list of quota safety checks to be ignored.Required.Optional.Optional.booleanOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetIgnoreSafetyChecks(int index) The list of quota safety checks to be ignored.intThe list of quota safety checks to be ignored.The list of quota safety checks to be ignored.intgetIgnoreSafetyChecksValue(int index) The list of quota safety checks to be ignored.The list of quota safety checks to be ignored.Required.Required.Required.com.google.protobuf.FieldMaskOptional.com.google.protobuf.FieldMask.BuilderOptional.com.google.protobuf.FieldMaskOrBuilderOptional.booleanOptional.booleanRequired.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.mergeUpdateMask(com.google.protobuf.FieldMask value) Optional.setAllowMissing(boolean value) Optional.setIgnoreSafetyChecks(int index, QuotaSafetyCheck value) The list of quota safety checks to be ignored.setIgnoreSafetyChecksValue(int index, int value) The list of quota safety checks to be ignored.Required.setQuotaPreference(QuotaPreference.Builder builderForValue) Required.setUpdateMask(com.google.protobuf.FieldMask value) Optional.setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) Optional.setValidateOnly(boolean value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UpdateQuotaPreferenceRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<UpdateQuotaPreferenceRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<UpdateQuotaPreferenceRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpdateQuotaPreferenceRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<UpdateQuotaPreferenceRequest.Builder>
-
mergeFrom
public UpdateQuotaPreferenceRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpdateQuotaPreferenceRequest.Builder>- Throws:
IOException
-
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];- Specified by:
hasUpdateMaskin interfaceUpdateQuotaPreferenceRequestOrBuilder- Returns:
- Whether the updateMask field is set.
-
getUpdateMask
public com.google.protobuf.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];- Specified by:
getUpdateMaskin interfaceUpdateQuotaPreferenceRequestOrBuilder- Returns:
- The updateMask.
-
setUpdateMask
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]; -
setUpdateMask
public UpdateQuotaPreferenceRequest.Builder setUpdateMask(com.google.protobuf.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]; -
mergeUpdateMask
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]; -
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]; -
getUpdateMaskBuilder
public com.google.protobuf.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]; -
getUpdateMaskOrBuilder
public com.google.protobuf.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];- Specified by:
getUpdateMaskOrBuilderin interfaceUpdateQuotaPreferenceRequestOrBuilder
-
hasQuotaPreference
public boolean hasQuotaPreference()Required. The resource being updated
.google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasQuotaPreferencein interfaceUpdateQuotaPreferenceRequestOrBuilder- Returns:
- Whether the quotaPreference field is set.
-
getQuotaPreference
Required. The resource being updated
.google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getQuotaPreferencein interfaceUpdateQuotaPreferenceRequestOrBuilder- Returns:
- The quotaPreference.
-
setQuotaPreference
Required. The resource being updated
.google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED]; -
setQuotaPreference
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]; -
mergeQuotaPreference
Required. The resource being updated
.google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED]; -
clearQuotaPreference
Required. The resource being updated
.google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED]; -
getQuotaPreferenceBuilder
Required. The resource being updated
.google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED]; -
getQuotaPreferenceOrBuilder
Required. The resource being updated
.google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getQuotaPreferenceOrBuilderin interfaceUpdateQuotaPreferenceRequestOrBuilder
-
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];- Specified by:
getAllowMissingin interfaceUpdateQuotaPreferenceRequestOrBuilder- Returns:
- The allowMissing.
-
setAllowMissing
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];- Parameters:
value- The allowMissing to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
getValidateOnlyin interfaceUpdateQuotaPreferenceRequestOrBuilder- Returns:
- The validateOnly.
-
setValidateOnly
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];- Parameters:
value- The validateOnly to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getIgnoreSafetyChecksList
The list of quota safety checks to be ignored.
repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;- Specified by:
getIgnoreSafetyChecksListin interfaceUpdateQuotaPreferenceRequestOrBuilder- Returns:
- A list containing the ignoreSafetyChecks.
-
getIgnoreSafetyChecksCount
public int getIgnoreSafetyChecksCount()The list of quota safety checks to be ignored.
repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;- Specified by:
getIgnoreSafetyChecksCountin interfaceUpdateQuotaPreferenceRequestOrBuilder- Returns:
- The count of ignoreSafetyChecks.
-
getIgnoreSafetyChecks
The list of quota safety checks to be ignored.
repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;- Specified by:
getIgnoreSafetyChecksin interfaceUpdateQuotaPreferenceRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The ignoreSafetyChecks at the given index.
-
setIgnoreSafetyChecks
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:
index- The index to set the value at.value- The ignoreSafetyChecks to set.- Returns:
- This builder for chaining.
-
addIgnoreSafetyChecks
The list of quota safety checks to be ignored.
repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;- Parameters:
value- The ignoreSafetyChecks to add.- Returns:
- This builder for chaining.
-
addAllIgnoreSafetyChecks
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;- Parameters:
values- The ignoreSafetyChecks to add.- Returns:
- This builder for chaining.
-
clearIgnoreSafetyChecks
The list of quota safety checks to be ignored.
repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;- Returns:
- This builder for chaining.
-
getIgnoreSafetyChecksValueList
The list of quota safety checks to be ignored.
repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;- Specified by:
getIgnoreSafetyChecksValueListin interfaceUpdateQuotaPreferenceRequestOrBuilder- Returns:
- A list containing the enum numeric values on the wire for ignoreSafetyChecks.
-
getIgnoreSafetyChecksValue
public int getIgnoreSafetyChecksValue(int index) The list of quota safety checks to be ignored.
repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;- Specified by:
getIgnoreSafetyChecksValuein interfaceUpdateQuotaPreferenceRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of ignoreSafetyChecks at the given index.
-
setIgnoreSafetyChecksValue
The list of quota safety checks to be ignored.
repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for ignoreSafetyChecks to set.- Returns:
- This builder for chaining.
-
addIgnoreSafetyChecksValue
The list of quota safety checks to be ignored.
repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;- Parameters:
value- The enum numeric value on the wire for ignoreSafetyChecks to add.- Returns:
- This builder for chaining.
-
addAllIgnoreSafetyChecksValue
The list of quota safety checks to be ignored.
repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;- Parameters:
values- The enum numeric values on the wire for ignoreSafetyChecks to add.- Returns:
- This builder for chaining.
-