Class UpdateCompletionConfigRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UpdateCompletionConfigRequest.Builder>
com.google.cloud.retail.v2alpha.UpdateCompletionConfigRequest.Builder
All Implemented Interfaces:
UpdateCompletionConfigRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UpdateCompletionConfigRequest

public static final class UpdateCompletionConfigRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateCompletionConfigRequest.Builder> implements UpdateCompletionConfigRequestOrBuilder
 Request for
 [CatalogService.UpdateCompletionConfig][google.cloud.retail.v2alpha.CatalogService.UpdateCompletionConfig]
 method.
 
Protobuf type google.cloud.retail.v2alpha.UpdateCompletionConfigRequest
  • 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<UpdateCompletionConfigRequest.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<UpdateCompletionConfigRequest.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<UpdateCompletionConfigRequest.Builder>
    • getDefaultInstanceForType

      public UpdateCompletionConfigRequest 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 UpdateCompletionConfigRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public UpdateCompletionConfigRequest.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<UpdateCompletionConfigRequest.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<UpdateCompletionConfigRequest.Builder>
    • mergeFrom

      public UpdateCompletionConfigRequest.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<UpdateCompletionConfigRequest.Builder>
      Throws:
      IOException
    • hasCompletionConfig

      public boolean hasCompletionConfig()
       Required. The
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
      
       If the caller does not have permission to update the
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig], then a
       PERMISSION_DENIED error is returned.
      
       If the [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to
       update does not exist, a NOT_FOUND error is returned.
       
      .google.cloud.retail.v2alpha.CompletionConfig completion_config = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasCompletionConfig in interface UpdateCompletionConfigRequestOrBuilder
      Returns:
      Whether the completionConfig field is set.
    • getCompletionConfig

      public CompletionConfig getCompletionConfig()
       Required. The
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
      
       If the caller does not have permission to update the
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig], then a
       PERMISSION_DENIED error is returned.
      
       If the [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to
       update does not exist, a NOT_FOUND error is returned.
       
      .google.cloud.retail.v2alpha.CompletionConfig completion_config = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCompletionConfig in interface UpdateCompletionConfigRequestOrBuilder
      Returns:
      The completionConfig.
    • setCompletionConfig

      public UpdateCompletionConfigRequest.Builder setCompletionConfig(CompletionConfig value)
       Required. The
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
      
       If the caller does not have permission to update the
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig], then a
       PERMISSION_DENIED error is returned.
      
       If the [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to
       update does not exist, a NOT_FOUND error is returned.
       
      .google.cloud.retail.v2alpha.CompletionConfig completion_config = 1 [(.google.api.field_behavior) = REQUIRED];
    • setCompletionConfig

      public UpdateCompletionConfigRequest.Builder setCompletionConfig(CompletionConfig.Builder builderForValue)
       Required. The
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
      
       If the caller does not have permission to update the
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig], then a
       PERMISSION_DENIED error is returned.
      
       If the [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to
       update does not exist, a NOT_FOUND error is returned.
       
      .google.cloud.retail.v2alpha.CompletionConfig completion_config = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeCompletionConfig

      public UpdateCompletionConfigRequest.Builder mergeCompletionConfig(CompletionConfig value)
       Required. The
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
      
       If the caller does not have permission to update the
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig], then a
       PERMISSION_DENIED error is returned.
      
       If the [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to
       update does not exist, a NOT_FOUND error is returned.
       
      .google.cloud.retail.v2alpha.CompletionConfig completion_config = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearCompletionConfig

      public UpdateCompletionConfigRequest.Builder clearCompletionConfig()
       Required. The
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
      
       If the caller does not have permission to update the
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig], then a
       PERMISSION_DENIED error is returned.
      
       If the [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to
       update does not exist, a NOT_FOUND error is returned.
       
      .google.cloud.retail.v2alpha.CompletionConfig completion_config = 1 [(.google.api.field_behavior) = REQUIRED];
    • getCompletionConfigBuilder

      public CompletionConfig.Builder getCompletionConfigBuilder()
       Required. The
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
      
       If the caller does not have permission to update the
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig], then a
       PERMISSION_DENIED error is returned.
      
       If the [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to
       update does not exist, a NOT_FOUND error is returned.
       
      .google.cloud.retail.v2alpha.CompletionConfig completion_config = 1 [(.google.api.field_behavior) = REQUIRED];
    • getCompletionConfigOrBuilder

      public CompletionConfigOrBuilder getCompletionConfigOrBuilder()
       Required. The
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
      
       If the caller does not have permission to update the
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig], then a
       PERMISSION_DENIED error is returned.
      
       If the [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to
       update does not exist, a NOT_FOUND error is returned.
       
      .google.cloud.retail.v2alpha.CompletionConfig completion_config = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCompletionConfigOrBuilder in interface UpdateCompletionConfigRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       Indicates which fields in the provided
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
       The following are the only supported fields:
      
       * [CompletionConfig.matching_order][google.cloud.retail.v2alpha.CompletionConfig.matching_order]
       * [CompletionConfig.max_suggestions][google.cloud.retail.v2alpha.CompletionConfig.max_suggestions]
       * [CompletionConfig.min_prefix_length][google.cloud.retail.v2alpha.CompletionConfig.min_prefix_length]
       * [CompletionConfig.auto_learning][google.cloud.retail.v2alpha.CompletionConfig.auto_learning]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      hasUpdateMask in interface UpdateCompletionConfigRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Indicates which fields in the provided
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
       The following are the only supported fields:
      
       * [CompletionConfig.matching_order][google.cloud.retail.v2alpha.CompletionConfig.matching_order]
       * [CompletionConfig.max_suggestions][google.cloud.retail.v2alpha.CompletionConfig.max_suggestions]
       * [CompletionConfig.min_prefix_length][google.cloud.retail.v2alpha.CompletionConfig.min_prefix_length]
       * [CompletionConfig.auto_learning][google.cloud.retail.v2alpha.CompletionConfig.auto_learning]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMask in interface UpdateCompletionConfigRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateCompletionConfigRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Indicates which fields in the provided
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
       The following are the only supported fields:
      
       * [CompletionConfig.matching_order][google.cloud.retail.v2alpha.CompletionConfig.matching_order]
       * [CompletionConfig.max_suggestions][google.cloud.retail.v2alpha.CompletionConfig.max_suggestions]
       * [CompletionConfig.min_prefix_length][google.cloud.retail.v2alpha.CompletionConfig.min_prefix_length]
       * [CompletionConfig.auto_learning][google.cloud.retail.v2alpha.CompletionConfig.auto_learning]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 2;
    • setUpdateMask

      public UpdateCompletionConfigRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Indicates which fields in the provided
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
       The following are the only supported fields:
      
       * [CompletionConfig.matching_order][google.cloud.retail.v2alpha.CompletionConfig.matching_order]
       * [CompletionConfig.max_suggestions][google.cloud.retail.v2alpha.CompletionConfig.max_suggestions]
       * [CompletionConfig.min_prefix_length][google.cloud.retail.v2alpha.CompletionConfig.min_prefix_length]
       * [CompletionConfig.auto_learning][google.cloud.retail.v2alpha.CompletionConfig.auto_learning]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 2;
    • mergeUpdateMask

      public UpdateCompletionConfigRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Indicates which fields in the provided
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
       The following are the only supported fields:
      
       * [CompletionConfig.matching_order][google.cloud.retail.v2alpha.CompletionConfig.matching_order]
       * [CompletionConfig.max_suggestions][google.cloud.retail.v2alpha.CompletionConfig.max_suggestions]
       * [CompletionConfig.min_prefix_length][google.cloud.retail.v2alpha.CompletionConfig.min_prefix_length]
       * [CompletionConfig.auto_learning][google.cloud.retail.v2alpha.CompletionConfig.auto_learning]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 2;
    • clearUpdateMask

      public UpdateCompletionConfigRequest.Builder clearUpdateMask()
       Indicates which fields in the provided
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
       The following are the only supported fields:
      
       * [CompletionConfig.matching_order][google.cloud.retail.v2alpha.CompletionConfig.matching_order]
       * [CompletionConfig.max_suggestions][google.cloud.retail.v2alpha.CompletionConfig.max_suggestions]
       * [CompletionConfig.min_prefix_length][google.cloud.retail.v2alpha.CompletionConfig.min_prefix_length]
       * [CompletionConfig.auto_learning][google.cloud.retail.v2alpha.CompletionConfig.auto_learning]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Indicates which fields in the provided
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
       The following are the only supported fields:
      
       * [CompletionConfig.matching_order][google.cloud.retail.v2alpha.CompletionConfig.matching_order]
       * [CompletionConfig.max_suggestions][google.cloud.retail.v2alpha.CompletionConfig.max_suggestions]
       * [CompletionConfig.min_prefix_length][google.cloud.retail.v2alpha.CompletionConfig.min_prefix_length]
       * [CompletionConfig.auto_learning][google.cloud.retail.v2alpha.CompletionConfig.auto_learning]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Indicates which fields in the provided
       [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig] to update.
       The following are the only supported fields:
      
       * [CompletionConfig.matching_order][google.cloud.retail.v2alpha.CompletionConfig.matching_order]
       * [CompletionConfig.max_suggestions][google.cloud.retail.v2alpha.CompletionConfig.max_suggestions]
       * [CompletionConfig.min_prefix_length][google.cloud.retail.v2alpha.CompletionConfig.min_prefix_length]
       * [CompletionConfig.auto_learning][google.cloud.retail.v2alpha.CompletionConfig.auto_learning]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateCompletionConfigRequestOrBuilder