Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponsePersonSuggestion

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 people.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponsePersonSuggestion

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponsePersonSuggestion.



4041
4042
4043
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4041

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

Instance Attribute Details

#data_storeString

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

Returns:

  • (String)


4023
4024
4025
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4023

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



4029
4030
4031
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4029

def document
  @document
end

#person_typeString

The type of the person. Corresponds to the JSON property personType

Returns:

  • (String)


4034
4035
4036
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4034

def person_type
  @person_type
end

#suggestionString

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

Returns:

  • (String)


4039
4040
4041
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4039

def suggestion
  @suggestion
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4046
4047
4048
4049
4050
4051
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4046

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