Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseContentSuggestion

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

Overview

Suggestions as content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseContentSuggestion

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseContentSuggestion.



4003
4004
4005
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4003

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)


3985
3986
3987
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3985

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)


3990
3991
3992
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3990

def data_store
  @data_store
end

#documentGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocument

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



3996
3997
3998
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3996

def document
  @document
end

#suggestionString

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

Returns:

  • (String)


4001
4002
4003
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4001

def suggestion
  @suggestion
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4008
4009
4010
4011
4012
4013
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4008

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