Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb

Overview

Catalog level autocomplete config for customers to customize autocomplete feature's settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaCompletionConfig

Returns a new instance of GoogleCloudRetailV2betaCompletionConfig.



3428
3429
3430
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3428

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allowlist_input_configGoogle::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionDataInputConfig

The input config source for completion data. Corresponds to the JSON property allowlistInputConfig



3357
3358
3359
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3357

def allowlist_input_config
  @allowlist_input_config
end

#auto_learningBoolean Also known as: auto_learning?

If set to true, the auto learning function is enabled. Auto learning uses user data to generate suggestions using ML techniques. Default value is false. Only after enabling auto learning can users use cloud-retail data in CompleteQueryRequest. Corresponds to the JSON property autoLearning

Returns:

  • (Boolean)


3365
3366
3367
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3365

def auto_learning
  @auto_learning
end

#denylist_input_configGoogle::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionDataInputConfig

The input config source for completion data. Corresponds to the JSON property denylistInputConfig



3371
3372
3373
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3371

def denylist_input_config
  @denylist_input_config
end

#last_allowlist_import_operationString

Output only. Name of the LRO corresponding to the latest allowlist import. Can use GetOperation API to retrieve the latest state of the Long Running Operation. Corresponds to the JSON property lastAllowlistImportOperation

Returns:

  • (String)


3378
3379
3380
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3378

def last_allowlist_import_operation
  @last_allowlist_import_operation
end

#last_denylist_import_operationString

Output only. Name of the LRO corresponding to the latest denylist import. Can use GetOperation API to retrieve the latest state of the Long Running Operation. Corresponds to the JSON property lastDenylistImportOperation

Returns:

  • (String)


3385
3386
3387
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3385

def last_denylist_import_operation
  @last_denylist_import_operation
end

#last_suggestions_import_operationString

Output only. Name of the LRO corresponding to the latest suggestion terms list import. Can use GetOperation API method to retrieve the latest state of the Long Running Operation. Corresponds to the JSON property lastSuggestionsImportOperation

Returns:

  • (String)


3392
3393
3394
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3392

def last_suggestions_import_operation
  @last_suggestions_import_operation
end

#matching_orderString

Specifies the matching order for autocomplete suggestions, e.g., a query consisting of 'sh' with 'out-of-order' specified would suggest "women's shoes", whereas a query of 'red s' with 'exact-prefix' specified would suggest "red shoes". Currently supported values: * 'out-of-order' * 'exact-prefix' Default value: 'exact-prefix'. Corresponds to the JSON property matchingOrder

Returns:

  • (String)


3401
3402
3403
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3401

def matching_order
  @matching_order
end

#max_suggestionsFixnum

The maximum number of autocomplete suggestions returned per term. Default value is 20. If left unset or set to 0, then will fallback to default value. Value range is 1 to 20. Corresponds to the JSON property maxSuggestions

Returns:

  • (Fixnum)


3408
3409
3410
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3408

def max_suggestions
  @max_suggestions
end

#min_prefix_lengthFixnum

The minimum number of characters needed to be typed in order to get suggestions. Default value is 2. If left unset or set to 0, then will fallback to default value. Value range is 1 to 20. Corresponds to the JSON property minPrefixLength

Returns:

  • (Fixnum)


3415
3416
3417
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3415

def min_prefix_length
  @min_prefix_length
end

#nameString

Required. Immutable. Fully qualified name projects/*/locations/*/catalogs/*/ completionConfig Corresponds to the JSON property name

Returns:

  • (String)


3421
3422
3423
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3421

def name
  @name
end

#suggestions_input_configGoogle::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionDataInputConfig

The input config source for completion data. Corresponds to the JSON property suggestionsInputConfig



3426
3427
3428
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3426

def suggestions_input_config
  @suggestions_input_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3433

def update!(**args)
  @allowlist_input_config = args[:allowlist_input_config] if args.key?(:allowlist_input_config)
  @auto_learning = args[:auto_learning] if args.key?(:auto_learning)
  @denylist_input_config = args[:denylist_input_config] if args.key?(:denylist_input_config)
  @last_allowlist_import_operation = args[:last_allowlist_import_operation] if args.key?(:last_allowlist_import_operation)
  @last_denylist_import_operation = args[:last_denylist_import_operation] if args.key?(:last_denylist_import_operation)
  @last_suggestions_import_operation = args[:last_suggestions_import_operation] if args.key?(:last_suggestions_import_operation)
  @matching_order = args[:matching_order] if args.key?(:matching_order)
  @max_suggestions = args[:max_suggestions] if args.key?(:max_suggestions)
  @min_prefix_length = args[:min_prefix_length] if args.key?(:min_prefix_length)
  @name = args[:name] if args.key?(:name)
  @suggestions_input_config = args[:suggestions_input_config] if args.key?(:suggestions_input_config)
end