Class Model.FrequentlyBoughtTogetherFeaturesConfig.Builder

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

public static final class Model.FrequentlyBoughtTogetherFeaturesConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<Model.FrequentlyBoughtTogetherFeaturesConfig.Builder> implements Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder
 Additional configs for the frequently-bought-together model type.
 
Protobuf type google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig
  • 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<Model.FrequentlyBoughtTogetherFeaturesConfig.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<Model.FrequentlyBoughtTogetherFeaturesConfig.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<Model.FrequentlyBoughtTogetherFeaturesConfig.Builder>
    • getDefaultInstanceForType

      public Model.FrequentlyBoughtTogetherFeaturesConfig 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

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

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

      public Model.FrequentlyBoughtTogetherFeaturesConfig.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<Model.FrequentlyBoughtTogetherFeaturesConfig.Builder>
      Throws:
      IOException
    • getContextProductsTypeValue

      public int getContextProductsTypeValue()
       Optional. Specifies the context of the model when it is used in predict
       requests. Can only be set for the `frequently-bought-together` type. If
       it isn't specified, it defaults to
       [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
       
      .google.cloud.retail.v2alpha.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContextProductsTypeValue in interface Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder
      Returns:
      The enum numeric value on the wire for contextProductsType.
    • setContextProductsTypeValue

      public Model.FrequentlyBoughtTogetherFeaturesConfig.Builder setContextProductsTypeValue(int value)
       Optional. Specifies the context of the model when it is used in predict
       requests. Can only be set for the `frequently-bought-together` type. If
       it isn't specified, it defaults to
       [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
       
      .google.cloud.retail.v2alpha.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for contextProductsType to set.
      Returns:
      This builder for chaining.
    • getContextProductsType

      public Model.ContextProductsType getContextProductsType()
       Optional. Specifies the context of the model when it is used in predict
       requests. Can only be set for the `frequently-bought-together` type. If
       it isn't specified, it defaults to
       [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
       
      .google.cloud.retail.v2alpha.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContextProductsType in interface Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder
      Returns:
      The contextProductsType.
    • setContextProductsType

       Optional. Specifies the context of the model when it is used in predict
       requests. Can only be set for the `frequently-bought-together` type. If
       it isn't specified, it defaults to
       [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
       
      .google.cloud.retail.v2alpha.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The contextProductsType to set.
      Returns:
      This builder for chaining.
    • clearContextProductsType

      public Model.FrequentlyBoughtTogetherFeaturesConfig.Builder clearContextProductsType()
       Optional. Specifies the context of the model when it is used in predict
       requests. Can only be set for the `frequently-bought-together` type. If
       it isn't specified, it defaults to
       [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
       
      .google.cloud.retail.v2alpha.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.