google-cloud-dialogflow-v2 0.27.0 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/v2/agents/client.rb +10 -1
  3. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +10 -1
  4. data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +176 -0
  5. data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +75 -0
  6. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +2 -1
  7. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +10 -1
  8. data/lib/google/cloud/dialogflow/v2/answer_records/paths.rb +126 -0
  9. data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +36 -0
  10. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -1
  11. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +10 -1
  12. data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +100 -0
  13. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +10 -1
  14. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +10 -1
  15. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +105 -0
  16. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +75 -0
  17. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +10 -1
  18. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +10 -1
  19. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +187 -0
  20. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +75 -0
  21. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +8 -1
  22. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -1
  23. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +10 -1
  24. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +10 -1
  25. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +130 -0
  26. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +75 -0
  27. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +2 -0
  28. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +127 -1
  29. data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +230 -0
  30. data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +84 -0
  31. data/lib/google/cloud/dialogflow/v2/documents/client.rb +10 -1
  32. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +10 -1
  33. data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +174 -0
  34. data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +75 -0
  35. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +10 -1
  36. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +10 -1
  37. data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +199 -0
  38. data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +75 -0
  39. data/lib/google/cloud/dialogflow/v2/environments/client.rb +10 -1
  40. data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +104 -0
  41. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +10 -1
  42. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +32 -0
  43. data/lib/google/cloud/dialogflow/v2/intents/client.rb +10 -1
  44. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +10 -1
  45. data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +130 -0
  46. data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +75 -0
  47. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +10 -1
  48. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +84 -0
  49. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +4 -1
  50. data/lib/google/cloud/dialogflow/v2/participants/client.rb +13 -2
  51. data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +135 -1
  52. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +10 -1
  53. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +84 -0
  54. data/lib/google/cloud/dialogflow/v2/session_pb.rb +1 -1
  55. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +10 -1
  56. data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +16 -0
  57. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  58. data/lib/google/cloud/dialogflow/v2/versions/client.rb +10 -1
  59. data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +84 -0
  60. data/proto_docs/google/api/field_behavior.rb +14 -0
  61. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +25 -0
  62. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +4 -0
  63. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +99 -0
  64. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +26 -1
  65. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +53 -1
  66. data/proto_docs/google/cloud/dialogflow/v2/session.rb +4 -1
  67. metadata +5 -5
@@ -9,7 +9,7 @@ require 'google/api/resource_pb'
9
9
  require 'google/protobuf/duration_pb'
10
10
 
11
11
 
12
- descriptor_data = "\n-google/cloud/dialogflow/v2/audio_config.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\"9\n\rSpeechContext\x12\x14\n\x07phrases\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x62oost\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\"\x92\x01\n\x0eSpeechWordInfo\x12\x0c\n\x04word\x18\x03 \x01(\t\x12/\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\xd0\x03\n\x10InputAudioConfig\x12\x46\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32).google.cloud.dialogflow.v2.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x10\x65nable_word_info\x18\r \x01(\x08\x12\x18\n\x0cphrase_hints\x18\x04 \x03(\tB\x02\x18\x01\x12\x42\n\x0fspeech_contexts\x18\x0b \x03(\x0b\x32).google.cloud.dialogflow.v2.SpeechContext\x12\r\n\x05model\x18\x07 \x01(\t\x12\x45\n\rmodel_variant\x18\n \x01(\x0e\x32..google.cloud.dialogflow.v2.SpeechModelVariant\x12\x18\n\x10single_utterance\x18\x08 \x01(\x08\x12*\n\"disable_no_speech_recognized_event\x18\x0e \x01(\x08\x12$\n\x1c\x65nable_automatic_punctuation\x18\x11 \x01(\x08\"p\n\x14VoiceSelectionParams\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x45\n\x0bssml_gender\x18\x02 \x01(\x0e\x32+.google.cloud.dialogflow.v2.SsmlVoiceGenderB\x03\xe0\x41\x01\"\xcc\x01\n\x16SynthesizeSpeechConfig\x12\x1a\n\rspeaking_rate\x18\x01 \x01(\x01\x42\x03\xe0\x41\x01\x12\x12\n\x05pitch\x18\x02 \x01(\x01\x42\x03\xe0\x41\x01\x12\x1b\n\x0evolume_gain_db\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01\x12\x1f\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x44\n\x05voice\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.VoiceSelectionParamsB\x03\xe0\x41\x01\"\xd2\x01\n\x11OutputAudioConfig\x12L\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32/.google.cloud.dialogflow.v2.OutputAudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12T\n\x18synthesize_speech_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.SynthesizeSpeechConfig\"U\n\x13TelephonyDtmfEvents\x12>\n\x0b\x64tmf_events\x18\x01 \x03(\x0e\x32).google.cloud.dialogflow.v2.TelephonyDtmf\"q\n\x12SpeechToTextConfig\x12L\n\x14speech_model_variant\x18\x01 \x01(\x0e\x32..google.cloud.dialogflow.v2.SpeechModelVariant\x12\r\n\x05model\x18\x02 \x01(\t*\x94\x02\n\rTelephonyDtmf\x12\x1e\n\x1aTELEPHONY_DTMF_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44TMF_ONE\x10\x01\x12\x0c\n\x08\x44TMF_TWO\x10\x02\x12\x0e\n\nDTMF_THREE\x10\x03\x12\r\n\tDTMF_FOUR\x10\x04\x12\r\n\tDTMF_FIVE\x10\x05\x12\x0c\n\x08\x44TMF_SIX\x10\x06\x12\x0e\n\nDTMF_SEVEN\x10\x07\x12\x0e\n\nDTMF_EIGHT\x10\x08\x12\r\n\tDTMF_NINE\x10\t\x12\r\n\tDTMF_ZERO\x10\n\x12\n\n\x06\x44TMF_A\x10\x0b\x12\n\n\x06\x44TMF_B\x10\x0c\x12\n\n\x06\x44TMF_C\x10\r\x12\n\n\x06\x44TMF_D\x10\x0e\x12\r\n\tDTMF_STAR\x10\x0f\x12\x0e\n\nDTMF_POUND\x10\x10*\xfb\x01\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41UDIO_ENCODING_LINEAR_16\x10\x01\x12\x17\n\x13\x41UDIO_ENCODING_FLAC\x10\x02\x12\x18\n\x14\x41UDIO_ENCODING_MULAW\x10\x03\x12\x16\n\x12\x41UDIO_ENCODING_AMR\x10\x04\x12\x19\n\x15\x41UDIO_ENCODING_AMR_WB\x10\x05\x12\x1b\n\x17\x41UDIO_ENCODING_OGG_OPUS\x10\x06\x12)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE\x10\x07*v\n\x12SpeechModelVariant\x12$\n SPEECH_MODEL_VARIANT_UNSPECIFIED\x10\x00\x12\x16\n\x12USE_BEST_AVAILABLE\x10\x01\x12\x10\n\x0cUSE_STANDARD\x10\x02\x12\x10\n\x0cUSE_ENHANCED\x10\x03*\x8d\x01\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x1a\n\x16SSML_VOICE_GENDER_MALE\x10\x01\x12\x1c\n\x18SSML_VOICE_GENDER_FEMALE\x10\x02\x12\x1d\n\x19SSML_VOICE_GENDER_NEUTRAL\x10\x03*\xec\x01\n\x13OutputAudioEncoding\x12%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\x10\x00\x12#\n\x1fOUTPUT_AUDIO_ENCODING_LINEAR_16\x10\x01\x12\x1d\n\x19OUTPUT_AUDIO_ENCODING_MP3\x10\x02\x12%\n!OUTPUT_AUDIO_ENCODING_MP3_64_KBPS\x10\x04\x12\"\n\x1eOUTPUT_AUDIO_ENCODING_OGG_OPUS\x10\x03\x12\x1f\n\x1bOUTPUT_AUDIO_ENCODING_MULAW\x10\x05\x42\xd6\x02\n\x1e\x63om.google.cloud.dialogflow.v2B\x10\x41udioConfigProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2\xea\x41U\n\x1b\x61utoml.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}\xea\x41\x62\n\x1fspeech.googleapis.com/PhraseSet\x12?projects/{project}/locations/{location}/phraseSets/{phrase_set}b\x06proto3"
12
+ descriptor_data = "\n-google/cloud/dialogflow/v2/audio_config.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\"9\n\rSpeechContext\x12\x14\n\x07phrases\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x62oost\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\"\x92\x01\n\x0eSpeechWordInfo\x12\x0c\n\x04word\x18\x03 \x01(\t\x12/\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\xd0\x03\n\x10InputAudioConfig\x12\x46\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32).google.cloud.dialogflow.v2.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x10\x65nable_word_info\x18\r \x01(\x08\x12\x18\n\x0cphrase_hints\x18\x04 \x03(\tB\x02\x18\x01\x12\x42\n\x0fspeech_contexts\x18\x0b \x03(\x0b\x32).google.cloud.dialogflow.v2.SpeechContext\x12\r\n\x05model\x18\x07 \x01(\t\x12\x45\n\rmodel_variant\x18\n \x01(\x0e\x32..google.cloud.dialogflow.v2.SpeechModelVariant\x12\x18\n\x10single_utterance\x18\x08 \x01(\x08\x12*\n\"disable_no_speech_recognized_event\x18\x0e \x01(\x08\x12$\n\x1c\x65nable_automatic_punctuation\x18\x11 \x01(\x08\"p\n\x14VoiceSelectionParams\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x45\n\x0bssml_gender\x18\x02 \x01(\x0e\x32+.google.cloud.dialogflow.v2.SsmlVoiceGenderB\x03\xe0\x41\x01\"\xcc\x01\n\x16SynthesizeSpeechConfig\x12\x1a\n\rspeaking_rate\x18\x01 \x01(\x01\x42\x03\xe0\x41\x01\x12\x12\n\x05pitch\x18\x02 \x01(\x01\x42\x03\xe0\x41\x01\x12\x1b\n\x0evolume_gain_db\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01\x12\x1f\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x44\n\x05voice\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.VoiceSelectionParamsB\x03\xe0\x41\x01\"\xd2\x01\n\x11OutputAudioConfig\x12L\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32/.google.cloud.dialogflow.v2.OutputAudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12T\n\x18synthesize_speech_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.SynthesizeSpeechConfig\"U\n\x13TelephonyDtmfEvents\x12>\n\x0b\x64tmf_events\x18\x01 \x03(\x0e\x32).google.cloud.dialogflow.v2.TelephonyDtmf\"\x98\x01\n\x12SpeechToTextConfig\x12L\n\x14speech_model_variant\x18\x01 \x01(\x0e\x32..google.cloud.dialogflow.v2.SpeechModelVariant\x12\r\n\x05model\x18\x02 \x01(\t\x12%\n\x1duse_timeout_based_endpointing\x18\x0b \x01(\x08*\x94\x02\n\rTelephonyDtmf\x12\x1e\n\x1aTELEPHONY_DTMF_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44TMF_ONE\x10\x01\x12\x0c\n\x08\x44TMF_TWO\x10\x02\x12\x0e\n\nDTMF_THREE\x10\x03\x12\r\n\tDTMF_FOUR\x10\x04\x12\r\n\tDTMF_FIVE\x10\x05\x12\x0c\n\x08\x44TMF_SIX\x10\x06\x12\x0e\n\nDTMF_SEVEN\x10\x07\x12\x0e\n\nDTMF_EIGHT\x10\x08\x12\r\n\tDTMF_NINE\x10\t\x12\r\n\tDTMF_ZERO\x10\n\x12\n\n\x06\x44TMF_A\x10\x0b\x12\n\n\x06\x44TMF_B\x10\x0c\x12\n\n\x06\x44TMF_C\x10\r\x12\n\n\x06\x44TMF_D\x10\x0e\x12\r\n\tDTMF_STAR\x10\x0f\x12\x0e\n\nDTMF_POUND\x10\x10*\xfb\x01\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41UDIO_ENCODING_LINEAR_16\x10\x01\x12\x17\n\x13\x41UDIO_ENCODING_FLAC\x10\x02\x12\x18\n\x14\x41UDIO_ENCODING_MULAW\x10\x03\x12\x16\n\x12\x41UDIO_ENCODING_AMR\x10\x04\x12\x19\n\x15\x41UDIO_ENCODING_AMR_WB\x10\x05\x12\x1b\n\x17\x41UDIO_ENCODING_OGG_OPUS\x10\x06\x12)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE\x10\x07*v\n\x12SpeechModelVariant\x12$\n SPEECH_MODEL_VARIANT_UNSPECIFIED\x10\x00\x12\x16\n\x12USE_BEST_AVAILABLE\x10\x01\x12\x10\n\x0cUSE_STANDARD\x10\x02\x12\x10\n\x0cUSE_ENHANCED\x10\x03*\x8d\x01\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x1a\n\x16SSML_VOICE_GENDER_MALE\x10\x01\x12\x1c\n\x18SSML_VOICE_GENDER_FEMALE\x10\x02\x12\x1d\n\x19SSML_VOICE_GENDER_NEUTRAL\x10\x03*\xec\x01\n\x13OutputAudioEncoding\x12%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\x10\x00\x12#\n\x1fOUTPUT_AUDIO_ENCODING_LINEAR_16\x10\x01\x12\x1d\n\x19OUTPUT_AUDIO_ENCODING_MP3\x10\x02\x12%\n!OUTPUT_AUDIO_ENCODING_MP3_64_KBPS\x10\x04\x12\"\n\x1eOUTPUT_AUDIO_ENCODING_OGG_OPUS\x10\x03\x12\x1f\n\x1bOUTPUT_AUDIO_ENCODING_MULAW\x10\x05\x42\xd6\x02\n\x1e\x63om.google.cloud.dialogflow.v2B\x10\x41udioConfigProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2\xea\x41U\n\x1b\x61utoml.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}\xea\x41\x62\n\x1fspeech.googleapis.com/PhraseSet\x12?projects/{project}/locations/{location}/phraseSets/{phrase_set}b\x06proto3"
13
13
 
14
14
  pool = Google::Protobuf::DescriptorPool.generated_pool
15
15
 
@@ -150,7 +150,8 @@ module Google
150
150
  credentials: credentials,
151
151
  endpoint: @config.endpoint,
152
152
  channel_args: @config.channel_args,
153
- interceptors: @config.interceptors
153
+ interceptors: @config.interceptors,
154
+ channel_pool_config: @config.channel_pool
154
155
  )
155
156
  end
156
157
 
@@ -833,6 +834,14 @@ module Google
833
834
  end
834
835
  end
835
836
 
837
+ ##
838
+ # Configuration for the channel pool
839
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
840
+ #
841
+ def channel_pool
842
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
843
+ end
844
+
836
845
  ##
837
846
  # Configuration RPC class for the Contexts API.
838
847
  #
@@ -192,6 +192,26 @@ module Google
192
192
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Context>]
193
193
  #
194
194
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
195
+ #
196
+ # @example Basic example
197
+ # require "google/cloud/dialogflow/v2"
198
+ #
199
+ # # Create a client object. The client can be reused for multiple calls.
200
+ # client = Google::Cloud::Dialogflow::V2::Contexts::Rest::Client.new
201
+ #
202
+ # # Create a request. To set request fields, pass in keyword arguments.
203
+ # request = Google::Cloud::Dialogflow::V2::ListContextsRequest.new
204
+ #
205
+ # # Call the list_contexts method.
206
+ # result = client.list_contexts request
207
+ #
208
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
209
+ # # over elements, and API calls will be issued to fetch pages as needed.
210
+ # result.each do |item|
211
+ # # Each element is of type ::Google::Cloud::Dialogflow::V2::Context.
212
+ # p item
213
+ # end
214
+ #
195
215
  def list_contexts request, options = nil
196
216
  raise ::ArgumentError, "request must be provided" if request.nil?
197
217
 
@@ -260,6 +280,22 @@ module Google
260
280
  # @return [::Google::Cloud::Dialogflow::V2::Context]
261
281
  #
262
282
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
283
+ #
284
+ # @example Basic example
285
+ # require "google/cloud/dialogflow/v2"
286
+ #
287
+ # # Create a client object. The client can be reused for multiple calls.
288
+ # client = Google::Cloud::Dialogflow::V2::Contexts::Rest::Client.new
289
+ #
290
+ # # Create a request. To set request fields, pass in keyword arguments.
291
+ # request = Google::Cloud::Dialogflow::V2::GetContextRequest.new
292
+ #
293
+ # # Call the get_context method.
294
+ # result = client.get_context request
295
+ #
296
+ # # The returned object is of type Google::Cloud::Dialogflow::V2::Context.
297
+ # p result
298
+ #
263
299
  def get_context request, options = nil
264
300
  raise ::ArgumentError, "request must be provided" if request.nil?
265
301
 
@@ -331,6 +367,22 @@ module Google
331
367
  # @return [::Google::Cloud::Dialogflow::V2::Context]
332
368
  #
333
369
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
370
+ #
371
+ # @example Basic example
372
+ # require "google/cloud/dialogflow/v2"
373
+ #
374
+ # # Create a client object. The client can be reused for multiple calls.
375
+ # client = Google::Cloud::Dialogflow::V2::Contexts::Rest::Client.new
376
+ #
377
+ # # Create a request. To set request fields, pass in keyword arguments.
378
+ # request = Google::Cloud::Dialogflow::V2::CreateContextRequest.new
379
+ #
380
+ # # Call the create_context method.
381
+ # result = client.create_context request
382
+ #
383
+ # # The returned object is of type Google::Cloud::Dialogflow::V2::Context.
384
+ # p result
385
+ #
334
386
  def create_context request, options = nil
335
387
  raise ::ArgumentError, "request must be provided" if request.nil?
336
388
 
@@ -395,6 +447,22 @@ module Google
395
447
  # @return [::Google::Cloud::Dialogflow::V2::Context]
396
448
  #
397
449
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
450
+ #
451
+ # @example Basic example
452
+ # require "google/cloud/dialogflow/v2"
453
+ #
454
+ # # Create a client object. The client can be reused for multiple calls.
455
+ # client = Google::Cloud::Dialogflow::V2::Contexts::Rest::Client.new
456
+ #
457
+ # # Create a request. To set request fields, pass in keyword arguments.
458
+ # request = Google::Cloud::Dialogflow::V2::UpdateContextRequest.new
459
+ #
460
+ # # Call the update_context method.
461
+ # result = client.update_context request
462
+ #
463
+ # # The returned object is of type Google::Cloud::Dialogflow::V2::Context.
464
+ # p result
465
+ #
398
466
  def update_context request, options = nil
399
467
  raise ::ArgumentError, "request must be provided" if request.nil?
400
468
 
@@ -462,6 +530,22 @@ module Google
462
530
  # @return [::Google::Protobuf::Empty]
463
531
  #
464
532
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
533
+ #
534
+ # @example Basic example
535
+ # require "google/cloud/dialogflow/v2"
536
+ #
537
+ # # Create a client object. The client can be reused for multiple calls.
538
+ # client = Google::Cloud::Dialogflow::V2::Contexts::Rest::Client.new
539
+ #
540
+ # # Create a request. To set request fields, pass in keyword arguments.
541
+ # request = Google::Cloud::Dialogflow::V2::DeleteContextRequest.new
542
+ #
543
+ # # Call the delete_context method.
544
+ # result = client.delete_context request
545
+ #
546
+ # # The returned object is of type Google::Protobuf::Empty.
547
+ # p result
548
+ #
465
549
  def delete_context request, options = nil
466
550
  raise ::ArgumentError, "request must be provided" if request.nil?
467
551
 
@@ -529,6 +613,22 @@ module Google
529
613
  # @return [::Google::Protobuf::Empty]
530
614
  #
531
615
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
616
+ #
617
+ # @example Basic example
618
+ # require "google/cloud/dialogflow/v2"
619
+ #
620
+ # # Create a client object. The client can be reused for multiple calls.
621
+ # client = Google::Cloud::Dialogflow::V2::Contexts::Rest::Client.new
622
+ #
623
+ # # Create a request. To set request fields, pass in keyword arguments.
624
+ # request = Google::Cloud::Dialogflow::V2::DeleteAllContextsRequest.new
625
+ #
626
+ # # Call the delete_all_contexts method.
627
+ # result = client.delete_all_contexts request
628
+ #
629
+ # # The returned object is of type Google::Protobuf::Empty.
630
+ # p result
631
+ #
532
632
  def delete_all_contexts request, options = nil
533
633
  raise ::ArgumentError, "request must be provided" if request.nil?
534
634
 
@@ -159,7 +159,8 @@ module Google
159
159
  credentials: credentials,
160
160
  endpoint: @config.endpoint,
161
161
  channel_args: @config.channel_args,
162
- interceptors: @config.interceptors
162
+ interceptors: @config.interceptors,
163
+ channel_pool_config: @config.channel_pool
163
164
  )
164
165
  end
165
166
 
@@ -799,6 +800,14 @@ module Google
799
800
  end
800
801
  end
801
802
 
803
+ ##
804
+ # Configuration for the channel pool
805
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
806
+ #
807
+ def channel_pool
808
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
809
+ end
810
+
802
811
  ##
803
812
  # Configuration RPC class for the ConversationDatasets API.
804
813
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -210,6 +210,29 @@ module Google
210
210
  # @return [::Gapic::Operation]
211
211
  #
212
212
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
213
+ #
214
+ # @example Basic example
215
+ # require "google/cloud/dialogflow/v2"
216
+ #
217
+ # # Create a client object. The client can be reused for multiple calls.
218
+ # client = Google::Cloud::Dialogflow::V2::ConversationDatasets::Rest::Client.new
219
+ #
220
+ # # Create a request. To set request fields, pass in keyword arguments.
221
+ # request = Google::Cloud::Dialogflow::V2::CreateConversationDatasetRequest.new
222
+ #
223
+ # # Call the create_conversation_dataset method.
224
+ # result = client.create_conversation_dataset request
225
+ #
226
+ # # The returned object is of type Gapic::Operation. You can use it to
227
+ # # check the status of an operation, cancel it, or wait for results.
228
+ # # Here is how to wait for a response.
229
+ # result.wait_until_done! timeout: 60
230
+ # if result.response?
231
+ # p result.response
232
+ # else
233
+ # puts "No response received."
234
+ # end
235
+ #
213
236
  def create_conversation_dataset request, options = nil
214
237
  raise ::ArgumentError, "request must be provided" if request.nil?
215
238
 
@@ -275,6 +298,22 @@ module Google
275
298
  # @return [::Google::Cloud::Dialogflow::V2::ConversationDataset]
276
299
  #
277
300
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
301
+ #
302
+ # @example Basic example
303
+ # require "google/cloud/dialogflow/v2"
304
+ #
305
+ # # Create a client object. The client can be reused for multiple calls.
306
+ # client = Google::Cloud::Dialogflow::V2::ConversationDatasets::Rest::Client.new
307
+ #
308
+ # # Create a request. To set request fields, pass in keyword arguments.
309
+ # request = Google::Cloud::Dialogflow::V2::GetConversationDatasetRequest.new
310
+ #
311
+ # # Call the get_conversation_dataset method.
312
+ # result = client.get_conversation_dataset request
313
+ #
314
+ # # The returned object is of type Google::Cloud::Dialogflow::V2::ConversationDataset.
315
+ # p result
316
+ #
278
317
  def get_conversation_dataset request, options = nil
279
318
  raise ::ArgumentError, "request must be provided" if request.nil?
280
319
 
@@ -344,6 +383,26 @@ module Google
344
383
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::ConversationDataset>]
345
384
  #
346
385
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
386
+ #
387
+ # @example Basic example
388
+ # require "google/cloud/dialogflow/v2"
389
+ #
390
+ # # Create a client object. The client can be reused for multiple calls.
391
+ # client = Google::Cloud::Dialogflow::V2::ConversationDatasets::Rest::Client.new
392
+ #
393
+ # # Create a request. To set request fields, pass in keyword arguments.
394
+ # request = Google::Cloud::Dialogflow::V2::ListConversationDatasetsRequest.new
395
+ #
396
+ # # Call the list_conversation_datasets method.
397
+ # result = client.list_conversation_datasets request
398
+ #
399
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
400
+ # # over elements, and API calls will be issued to fetch pages as needed.
401
+ # result.each do |item|
402
+ # # Each element is of type ::Google::Cloud::Dialogflow::V2::ConversationDataset.
403
+ # p item
404
+ # end
405
+ #
347
406
  def list_conversation_datasets request, options = nil
348
407
  raise ::ArgumentError, "request must be provided" if request.nil?
349
408
 
@@ -418,6 +477,29 @@ module Google
418
477
  # @return [::Gapic::Operation]
419
478
  #
420
479
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
480
+ #
481
+ # @example Basic example
482
+ # require "google/cloud/dialogflow/v2"
483
+ #
484
+ # # Create a client object. The client can be reused for multiple calls.
485
+ # client = Google::Cloud::Dialogflow::V2::ConversationDatasets::Rest::Client.new
486
+ #
487
+ # # Create a request. To set request fields, pass in keyword arguments.
488
+ # request = Google::Cloud::Dialogflow::V2::DeleteConversationDatasetRequest.new
489
+ #
490
+ # # Call the delete_conversation_dataset method.
491
+ # result = client.delete_conversation_dataset request
492
+ #
493
+ # # The returned object is of type Gapic::Operation. You can use it to
494
+ # # check the status of an operation, cancel it, or wait for results.
495
+ # # Here is how to wait for a response.
496
+ # result.wait_until_done! timeout: 60
497
+ # if result.response?
498
+ # p result.response
499
+ # else
500
+ # puts "No response received."
501
+ # end
502
+ #
421
503
  def delete_conversation_dataset request, options = nil
422
504
  raise ::ArgumentError, "request must be provided" if request.nil?
423
505
 
@@ -496,6 +578,29 @@ module Google
496
578
  # @return [::Gapic::Operation]
497
579
  #
498
580
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
581
+ #
582
+ # @example Basic example
583
+ # require "google/cloud/dialogflow/v2"
584
+ #
585
+ # # Create a client object. The client can be reused for multiple calls.
586
+ # client = Google::Cloud::Dialogflow::V2::ConversationDatasets::Rest::Client.new
587
+ #
588
+ # # Create a request. To set request fields, pass in keyword arguments.
589
+ # request = Google::Cloud::Dialogflow::V2::ImportConversationDataRequest.new
590
+ #
591
+ # # Call the import_conversation_data method.
592
+ # result = client.import_conversation_data request
593
+ #
594
+ # # The returned object is of type Gapic::Operation. You can use it to
595
+ # # check the status of an operation, cancel it, or wait for results.
596
+ # # Here is how to wait for a response.
597
+ # result.wait_until_done! timeout: 60
598
+ # if result.response?
599
+ # p result.response
600
+ # else
601
+ # puts "No response received."
602
+ # end
603
+ #
499
604
  def import_conversation_data request, options = nil
500
605
  raise ::ArgumentError, "request must be provided" if request.nil?
501
606
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -156,7 +156,8 @@ module Google
156
156
  credentials: credentials,
157
157
  endpoint: @config.endpoint,
158
158
  channel_args: @config.channel_args,
159
- interceptors: @config.interceptors
159
+ interceptors: @config.interceptors,
160
+ channel_pool_config: @config.channel_pool
160
161
  )
161
162
  end
162
163
 
@@ -1177,6 +1178,14 @@ module Google
1177
1178
  end
1178
1179
  end
1179
1180
 
1181
+ ##
1182
+ # Configuration for the channel pool
1183
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1184
+ #
1185
+ def channel_pool
1186
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1187
+ end
1188
+
1180
1189
  ##
1181
1190
  # Configuration RPC class for the ConversationModels API.
1182
1191
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #