Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ConverseConversationRequest

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

Overview

Request message for ConversationalSearchService.ConverseConversation method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1ConverseConversationRequest

Returns a new instance of GoogleCloudDiscoveryengineV1ConverseConversationRequest.



3101
3102
3103
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3101

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

Instance Attribute Details

#boost_specGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchRequestBoostSpec

Boost specification to boost certain documents. Corresponds to the JSON property boostSpec



3039
3040
3041
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3039

def boost_spec
  @boost_spec
end

#conversationGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Conversation

External conversation proto definition. Corresponds to the JSON property conversation



3044
3045
3046
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3044

def conversation
  @conversation
end

#filterString

The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. This will be used to filter search results which may affect the summary response. If this field is unrecognizable, an INVALID_ARGUMENT is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customer might have a field 'name' in their schema. In this case the filter would look like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see Filter Corresponds to the JSON property filter

Returns:

  • (String)


3060
3061
3062
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3060

def filter
  @filter
end

#queryGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1TextInput

Defines text input. Corresponds to the JSON property query



3065
3066
3067
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3065

def query
  @query
end

#safe_searchBoolean Also known as: safe_search?

Whether to turn on safe search. Corresponds to the JSON property safeSearch

Returns:

  • (Boolean)


3070
3071
3072
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3070

def safe_search
  @safe_search
end

#serving_configString

The resource name of the Serving Config to use. Format: projects/project/ locations/location/collections/collection/dataStores/data_store_id/ servingConfigs/serving_config_id`If this is not set, the default serving config will be used. Corresponds to the JSON propertyservingConfig`

Returns:

  • (String)


3079
3080
3081
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3079

def serving_config
  @serving_config
end

#summary_specGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec

A specification for configuring a summary returned in a search response. Corresponds to the JSON property summarySpec



3084
3085
3086
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3084

def summary_spec
  @summary_spec
end

#user_labelsHash<String,String>

The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See Google Cloud Document for more details. Corresponds to the JSON property userLabels

Returns:

  • (Hash<String,String>)


3099
3100
3101
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3099

def user_labels
  @user_labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3106

def update!(**args)
  @boost_spec = args[:boost_spec] if args.key?(:boost_spec)
  @conversation = args[:conversation] if args.key?(:conversation)
  @filter = args[:filter] if args.key?(:filter)
  @query = args[:query] if args.key?(:query)
  @safe_search = args[:safe_search] if args.key?(:safe_search)
  @serving_config = args[:serving_config] if args.key?(:serving_config)
  @summary_spec = args[:summary_spec] if args.key?(:summary_spec)
  @user_labels = args[:user_labels] if args.key?(:user_labels)
end