lib/google/cloud/dialogflow/v2/sessions_client.rb in google-cloud-dialogflow-0.2.1 vs lib/google/cloud/dialogflow/v2/sessions_client.rb in google-cloud-dialogflow-0.2.2
- old
+ new
@@ -199,11 +199,11 @@
# and session entity types to be updated, which in turn might affect
# results of future queries.
#
# @param session [String]
# Required. The name of the session this query is sent to. Format:
- # +projects/<Project ID>/agent/sessions/<Session ID>+. It's up to the API
+ # `projects/<Project ID>/agent/sessions/<Session ID>`. It's up to the API
# caller to choose an appropriate session ID. It can be a random number or
# some type of user identifier (preferably hashed). The length of the session
# ID must not exceed 36 bytes.
# @param query_input [Google::Cloud::Dialogflow::V2::QueryInput | Hash]
# Required. The input specification. It can be set to:
@@ -220,11 +220,11 @@
# Optional. The parameters of this query.
# A hash of the same form as `Google::Cloud::Dialogflow::V2::QueryParameters`
# can also be provided.
# @param input_audio [String]
# Optional. The natural language speech audio to be processed. This field
- # should be populated iff +query_input+ is set to an input audio config.
+ # should be populated iff `query_input` is set to an input audio config.
# A single request can contain up to 1 minute of speech audio data.
# @param options [Google::Gax::CallOptions]
# Overrides the default settings for this call, e.g, timeout,
# retries, etc.
# @yield [result, operation] Access the result along with the RPC operation
@@ -236,11 +236,11 @@
# require "google/cloud/dialogflow"
#
# sessions_client = Google::Cloud::Dialogflow::Sessions.new(version: :v2)
# formatted_session = Google::Cloud::Dialogflow::V2::SessionsClient.session_path("[PROJECT]", "[SESSION]")
#
- # # TODO: Initialize +query_input+:
+ # # TODO: Initialize `query_input`:
# query_input = {}
# response = sessions_client.detect_intent(formatted_session, query_input)
def detect_intent \
session,
@@ -281,13 +281,13 @@
# @example
# require "google/cloud/dialogflow"
#
# sessions_client = Google::Cloud::Dialogflow::Sessions.new(version: :v2)
#
- # # TODO: Initialize +session+:
+ # # TODO: Initialize `session`:
# session = ''
#
- # # TODO: Initialize +query_input+:
+ # # TODO: Initialize `query_input`:
# query_input = {}
# request = { session: session, query_input: query_input }
# requests = [request]
# sessions_client.streaming_detect_intent(requests).each do |element|
# # Process element.