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.



18776
18777
18778
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18776

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)


18743
18744
18745
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18743

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)


18748
18749
18750
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18748

def data_store
  @data_store
end

#destination_uriString

The destination uri of the content suggestion. Corresponds to the JSON property destinationUri

Returns:

  • (String)


18753
18754
18755
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18753

def destination_uri
  @destination_uri
end

#documentGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocument

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



18759
18760
18761
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18759

def document
  @document
end

#icon_uriString

The icon uri of the content suggestion. Corresponds to the JSON property iconUri

Returns:

  • (String)


18764
18765
18766
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18764

def icon_uri
  @icon_uri
end

#scoreFloat

The score of each suggestion. The score is in the range of [0, 1]. Corresponds to the JSON property score

Returns:

  • (Float)


18769
18770
18771
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18769

def score
  @score
end

#suggestionString

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

Returns:

  • (String)


18774
18775
18776
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18774

def suggestion
  @suggestion
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18781
18782
18783
18784
18785
18786
18787
18788
18789
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18781

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