lib/google/cloud/dialogflow/v2/session_services_pb.rb in google-cloud-dialogflow-v2-0.6.4 vs lib/google/cloud/dialogflow/v2/session_services_pb.rb in google-cloud-dialogflow-v2-0.7.0
- old
+ new
@@ -22,14 +22,14 @@
module Google
module Cloud
module Dialogflow
module V2
module Sessions
- # A session represents an interaction with a user. You retrieve user input
- # and pass it to the [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or
- # [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method to determine
- # user intent and respond.
+ # A service used for session interactions.
+ #
+ # For more information, see the [API interactions
+ # guide](https://cloud.google.com/dialogflow/docs/api-overview).
class Service
include GRPC::GenericService
self.marshal_class_method = :encode
@@ -38,14 +38,22 @@
# Processes a natural language query and returns structured, actionable data
# as a result. This method is not idempotent, because it may cause contexts
# and session entity types to be updated, which in turn might affect
# results of future queries.
- rpc :DetectIntent, DetectIntentRequest, DetectIntentResponse
+ #
+ # Note: Always use agent versions for production traffic.
+ # See [Versions and
+ # environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
+ rpc :DetectIntent, ::Google::Cloud::Dialogflow::V2::DetectIntentRequest, ::Google::Cloud::Dialogflow::V2::DetectIntentResponse
# Processes a natural language query in audio format in a streaming fashion
# and returns structured, actionable data as a result. This method is only
# available via the gRPC API (not REST).
- rpc :StreamingDetectIntent, stream(StreamingDetectIntentRequest), stream(StreamingDetectIntentResponse)
+ #
+ # Note: Always use agent versions for production traffic.
+ # See [Versions and
+ # environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
+ rpc :StreamingDetectIntent, stream(::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest), stream(::Google::Cloud::Dialogflow::V2::StreamingDetectIntentResponse)
end
Stub = Service.rpc_stub_class
end
end