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 QuotaPreference
 
Protobuf type google.api.cloudquotas.v1.UpdateQuotaPreferenceRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UpdateQuotaPreferenceRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<UpdateQuotaPreferenceRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<UpdateQuotaPreferenceRequest.Builder>
    • getDefaultInstanceForType

      public UpdateQuotaPreferenceRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UpdateQuotaPreferenceRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public UpdateQuotaPreferenceRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UpdateQuotaPreferenceRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasUpdateMask in interface UpdateQuotaPreferenceRequestOrBuilder
      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:
      getUpdateMask in interface UpdateQuotaPreferenceRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateQuotaPreferenceRequest.Builder setUpdateMask(com.google.protobuf.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];
    • 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

      public UpdateQuotaPreferenceRequest.Builder mergeUpdateMask(com.google.protobuf.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];
    • 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];
    • 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:
      getUpdateMaskOrBuilder in interface UpdateQuotaPreferenceRequestOrBuilder
    • hasQuotaPreference

      public boolean hasQuotaPreference()
       Required. The resource being updated
       
      .google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasQuotaPreference in interface UpdateQuotaPreferenceRequestOrBuilder
      Returns:
      Whether the quotaPreference field is set.
    • getQuotaPreference

      public QuotaPreference getQuotaPreference()
       Required. The resource being updated
       
      .google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuotaPreference in interface UpdateQuotaPreferenceRequestOrBuilder
      Returns:
      The quotaPreference.
    • setQuotaPreference

      public UpdateQuotaPreferenceRequest.Builder setQuotaPreference(QuotaPreference value)
       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

      public UpdateQuotaPreferenceRequest.Builder mergeQuotaPreference(QuotaPreference value)
       Required. The resource being updated
       
      .google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearQuotaPreference

      public UpdateQuotaPreferenceRequest.Builder clearQuotaPreference()
       Required. The resource being updated
       
      .google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED];
    • getQuotaPreferenceBuilder

      public QuotaPreference.Builder getQuotaPreferenceBuilder()
       Required. The resource being updated
       
      .google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED];
    • getQuotaPreferenceOrBuilder

      public QuotaPreferenceOrBuilder getQuotaPreferenceOrBuilder()
       Required. The resource being updated
       
      .google.api.cloudquotas.v1.QuotaPreference quota_preference = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuotaPreferenceOrBuilder in interface UpdateQuotaPreferenceRequestOrBuilder
    • 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:
      getAllowMissing in interface UpdateQuotaPreferenceRequestOrBuilder
      Returns:
      The allowMissing.
    • setAllowMissing

      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];
      Parameters:
      value - The allowMissing to set.
      Returns:
      This builder for chaining.
    • 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:
      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:
      getValidateOnly in interface UpdateQuotaPreferenceRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      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];
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • getIgnoreSafetyChecksList

      public List<QuotaSafetyCheck> getIgnoreSafetyChecksList()
       The list of quota safety checks to be ignored.
       
      repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;
      Specified by:
      getIgnoreSafetyChecksList in interface UpdateQuotaPreferenceRequestOrBuilder
      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:
      getIgnoreSafetyChecksCount in interface UpdateQuotaPreferenceRequestOrBuilder
      Returns:
      The count of ignoreSafetyChecks.
    • getIgnoreSafetyChecks

      public QuotaSafetyCheck getIgnoreSafetyChecks(int index)
       The list of quota safety checks to be ignored.
       
      repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;
      Specified by:
      getIgnoreSafetyChecks in interface UpdateQuotaPreferenceRequestOrBuilder
      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

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

      public UpdateQuotaPreferenceRequest.Builder 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

      public List<Integer> getIgnoreSafetyChecksValueList()
       The list of quota safety checks to be ignored.
       
      repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 5;
      Specified by:
      getIgnoreSafetyChecksValueList in interface UpdateQuotaPreferenceRequestOrBuilder
      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:
      getIgnoreSafetyChecksValue in interface UpdateQuotaPreferenceRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of ignoreSafetyChecks at the given index.
    • setIgnoreSafetyChecksValue

      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:
      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

      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;
      Parameters:
      value - The enum numeric value on the wire for ignoreSafetyChecks to add.
      Returns:
      This builder for chaining.
    • addAllIgnoreSafetyChecksValue

      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;
      Parameters:
      values - The enum numeric values on the wire for ignoreSafetyChecks to add.
      Returns:
      This builder for chaining.