Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaConverseConversationRequest

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

Request message for ConversationalSearchService.ConverseConversation method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaConverseConversationRequest

Returns a new instance of GoogleCloudDiscoveryengineV1betaConverseConversationRequest.



1615
1616
1617
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1615

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

Instance Attribute Details

#conversationGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaConversation

External conversation proto definition. Corresponds to the JSON property conversation



1574
1575
1576
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1574

def conversation
  @conversation
end

#queryGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaTextInput

Defines text input. Corresponds to the JSON property query



1579
1580
1581
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1579

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)


1584
1585
1586
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1584

def safe_search
  @safe_search
end

#serving_configString

The resource name of the Serving Config to use. Format: projects/ project_number/locations/location_id/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)


1593
1594
1595
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1593

def serving_config
  @serving_config
end

#summary_specGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec

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



1598
1599
1600
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1598

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>)


1613
1614
1615
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1613

def user_labels
  @user_labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1620
1621
1622
1623
1624
1625
1626
1627
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1620

def update!(**args)
  @conversation = args[:conversation] if args.key?(:conversation)
  @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