Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseContentSuggestion

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

Overview

Suggestions as content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseContentSuggestion

Returns a new instance of GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseContentSuggestion.



10546
10547
10548
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10546

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

Instance Attribute Details

#content_typeString

The type of the content suggestion. Corresponds to the JSON property contentType

Returns:

  • (String)


10528
10529
10530
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10528

def content_type
  @content_type
end

#data_storeString

The name of the dataStore that this suggestion belongs to. Corresponds to the JSON property dataStore

Returns:

  • (String)


10533
10534
10535
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10533

def data_store
  @data_store
end

#documentGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocument

Document captures all raw metadata information of items to be recommended or searched. Corresponds to the JSON property document



10539
10540
10541
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10539

def document
  @document
end

#suggestionString

The suggestion for the query. Corresponds to the JSON property suggestion

Returns:

  • (String)


10544
10545
10546
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10544

def suggestion
  @suggestion
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10551
10552
10553
10554
10555
10556
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10551

def update!(**args)
  @content_type = args[:content_type] if args.key?(:content_type)
  @data_store = args[:data_store] if args.key?(:data_store)
  @document = args[:document] if args.key?(:document)
  @suggestion = args[:suggestion] if args.key?(:suggestion)
end