lib/google/cloud/dialogflow/cx/v3/sessions/client.rb in google-cloud-dialogflow-cx-v3-0.12.0 vs lib/google/cloud/dialogflow/cx/v3/sessions/client.rb in google-cloud-dialogflow-cx-v3-0.13.0

- old
+ new

@@ -313,25 +313,25 @@ # require "google/cloud/dialogflow/cx/v3" # # # Create a client object. The client can be reused for multiple calls. # client = Google::Cloud::Dialogflow::CX::V3::Sessions::Client.new # - # # Create an input stream + # # Create an input stream. # input = Gapic::StreamInput.new # # # Call the streaming_detect_intent method to start streaming. # output = client.streaming_detect_intent input # - # # Send requests on the stream. For each request, pass in keyword - # # arguments to set fields. Be sure to close the stream when done. + # # Send requests on the stream. For each request object, set fields by + # # passing keyword arguments. Be sure to close the stream when done. # input << Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentRequest.new # input << Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentRequest.new # input.close # - # # Handle streamed responses. These may be interleaved with inputs. - # # Each response is of type ::Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentResponse. - # output.each do |response| - # p response + # # The returned object is a streamed enumerable yielding elements of type + # # ::Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentResponse + # output.each do |current_response| + # p current_response # end # def streaming_detect_intent request, options = nil unless request.is_a? ::Enumerable raise ::ArgumentError, "request must be an Enumerable" unless request.respond_to? :to_enum