google-cloud-dialogflow-v2 0.23.0 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dialogflow/v2/agents/client.rb +2 -2
  4. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +2 -2
  5. data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +2 -2
  6. data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +2 -2
  7. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +2 -2
  8. data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +2 -2
  9. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -0
  10. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +2 -2
  11. data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +2 -2
  12. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +2 -2
  13. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +2 -2
  14. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +2 -2
  15. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +2 -2
  16. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +2 -2
  17. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +2 -2
  18. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +2 -2
  19. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +2 -2
  20. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +24 -0
  21. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +1 -0
  22. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +2 -2
  23. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +2 -2
  24. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +2 -2
  25. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +2 -2
  26. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +3 -0
  27. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +109 -2
  28. data/lib/google/cloud/dialogflow/v2/conversations/paths.rb +182 -0
  29. data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +86 -2
  30. data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +68 -0
  31. data/lib/google/cloud/dialogflow/v2/documents/client.rb +2 -2
  32. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +2 -2
  33. data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +2 -2
  34. data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +2 -2
  35. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +2 -2
  36. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +2 -2
  37. data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +2 -2
  38. data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +2 -2
  39. data/lib/google/cloud/dialogflow/v2/environments/client.rb +2 -2
  40. data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +2 -2
  41. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +2 -2
  42. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +2 -2
  43. data/lib/google/cloud/dialogflow/v2/intents/client.rb +2 -2
  44. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +2 -2
  45. data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +2 -2
  46. data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +2 -2
  47. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +2 -2
  48. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +2 -2
  49. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +2 -0
  50. data/lib/google/cloud/dialogflow/v2/participants/client.rb +2 -2
  51. data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +2 -2
  52. data/lib/google/cloud/dialogflow/v2/rest.rb +1 -1
  53. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +2 -2
  54. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +2 -2
  55. data/lib/google/cloud/dialogflow/v2/session_pb.rb +22 -0
  56. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +2 -2
  57. data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +2 -2
  58. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  59. data/lib/google/cloud/dialogflow/v2/versions/client.rb +2 -2
  60. data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +2 -2
  61. data/lib/google/cloud/dialogflow/v2.rb +1 -1
  62. data/proto_docs/google/api/client.rb +67 -4
  63. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +2 -0
  64. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +9 -0
  65. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +89 -0
  66. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +10 -0
  67. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +8 -0
  68. data/proto_docs/google/cloud/dialogflow/v2/session.rb +75 -0
  69. metadata +2 -2
@@ -552,9 +552,9 @@ module Google
552
552
  # * (`String`) The path to a service account key file in JSON format
553
553
  # * (`Hash`) A service account key as a Hash
554
554
  # * (`Google::Auth::Credentials`) A googleauth credentials object
555
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
555
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
556
556
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
557
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
557
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
558
558
  # * (`nil`) indicating no credentials
559
559
  # @return [::Object]
560
560
  # @!attribute [rw] scope
@@ -91,6 +91,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
91
91
  optional :assist_query_params, :message, 8, "google.cloud.dialogflow.v2.AssistQueryParameters"
92
92
  optional :cx_parameters, :message, 13, "google.protobuf.Struct"
93
93
  optional :enable_partial_automated_agent_reply, :bool, 12
94
+ optional :enable_debugging_info, :bool, 19
94
95
  oneof :config do
95
96
  optional :audio_config, :message, 2, "google.cloud.dialogflow.v2.InputAudioConfig"
96
97
  optional :text_config, :message, 3, "google.cloud.dialogflow.v2.InputTextConfig"
@@ -110,6 +111,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
110
111
  repeated :human_agent_suggestion_results, :message, 7, "google.cloud.dialogflow.v2.SuggestionResult"
111
112
  repeated :end_user_suggestion_results, :message, 8, "google.cloud.dialogflow.v2.SuggestionResult"
112
113
  optional :dtmf_parameters, :message, 10, "google.cloud.dialogflow.v2.DtmfParameters"
114
+ optional :debugging_info, :message, 11, "google.cloud.dialogflow.v2.CloudConversationDebuggingInfo"
113
115
  end
114
116
  add_message "google.cloud.dialogflow.v2.SuggestArticlesRequest" do
115
117
  optional :parent, :string, 1
@@ -1080,9 +1080,9 @@ module Google
1080
1080
  # * (`String`) The path to a service account key file in JSON format
1081
1081
  # * (`Hash`) A service account key as a Hash
1082
1082
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1083
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1083
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1084
1084
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1085
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1085
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1086
1086
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1087
1087
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1088
1088
  # * (`nil`) indicating no credentials
@@ -790,9 +790,9 @@ module Google
790
790
  # * (`String`) The path to a service account key file in JSON format
791
791
  # * (`Hash`) A service account key as a Hash
792
792
  # * (`Google::Auth::Credentials`) A googleauth credentials object
793
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
793
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
794
794
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
795
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
795
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
796
796
  # * (`nil`) indicating no credentials
797
797
  # @return [::Object]
798
798
  # @!attribute [rw] scope
@@ -24,10 +24,10 @@ require "google/cloud/dialogflow/v2/session_entity_types/rest"
24
24
  require "google/cloud/dialogflow/v2/sessions/rest"
25
25
  require "google/cloud/dialogflow/v2/participants/rest"
26
26
  require "google/cloud/dialogflow/v2/answer_records/rest"
27
+ require "google/cloud/dialogflow/v2/conversation_profiles/rest"
27
28
  require "google/cloud/dialogflow/v2/conversations/rest"
28
29
  require "google/cloud/dialogflow/v2/conversation_datasets/rest"
29
30
  require "google/cloud/dialogflow/v2/conversation_models/rest"
30
- require "google/cloud/dialogflow/v2/conversation_profiles/rest"
31
31
  require "google/cloud/dialogflow/v2/documents/rest"
32
32
  require "google/cloud/dialogflow/v2/fulfillments/rest"
33
33
  require "google/cloud/dialogflow/v2/environments/rest"
@@ -686,9 +686,9 @@ module Google
686
686
  # * (`String`) The path to a service account key file in JSON format
687
687
  # * (`Hash`) A service account key as a Hash
688
688
  # * (`Google::Auth::Credentials`) A googleauth credentials object
689
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
689
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
690
690
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
691
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
691
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
692
692
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
693
693
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
694
694
  # * (`nil`) indicating no credentials
@@ -559,9 +559,9 @@ module Google
559
559
  # * (`String`) The path to a service account key file in JSON format
560
560
  # * (`Hash`) A service account key as a Hash
561
561
  # * (`Google::Auth::Credentials`) A googleauth credentials object
562
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
562
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
563
563
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
564
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
564
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
565
565
  # * (`nil`) indicating no credentials
566
566
  # @return [::Object]
567
567
  # @!attribute [rw] scope
@@ -77,6 +77,26 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
77
77
  optional :output_audio_config, :message, 5, "google.cloud.dialogflow.v2.OutputAudioConfig"
78
78
  optional :output_audio_config_mask, :message, 7, "google.protobuf.FieldMask"
79
79
  optional :input_audio, :bytes, 6
80
+ optional :enable_debugging_info, :bool, 8
81
+ end
82
+ add_message "google.cloud.dialogflow.v2.CloudConversationDebuggingInfo" do
83
+ optional :audio_data_chunks, :int32, 1
84
+ optional :result_end_time_offset, :message, 2, "google.protobuf.Duration"
85
+ optional :first_audio_duration, :message, 3, "google.protobuf.Duration"
86
+ optional :single_utterance, :bool, 5
87
+ repeated :speech_partial_results_end_times, :message, 6, "google.protobuf.Duration"
88
+ repeated :speech_final_results_end_times, :message, 7, "google.protobuf.Duration"
89
+ optional :partial_responses, :int32, 8
90
+ optional :speaker_id_passive_latency_ms_offset, :int32, 9
91
+ optional :bargein_event_triggered, :bool, 10
92
+ optional :speech_single_utterance, :bool, 11
93
+ repeated :dtmf_partial_results_times, :message, 12, "google.protobuf.Duration"
94
+ repeated :dtmf_final_results_times, :message, 13, "google.protobuf.Duration"
95
+ optional :single_utterance_end_time_offset, :message, 14, "google.protobuf.Duration"
96
+ optional :no_speech_timeout, :message, 15, "google.protobuf.Duration"
97
+ optional :is_input_text, :bool, 16
98
+ optional :client_half_close_time_offset, :message, 17, "google.protobuf.Duration"
99
+ optional :client_half_close_streaming_time_offset, :message, 18, "google.protobuf.Duration"
80
100
  end
81
101
  add_message "google.cloud.dialogflow.v2.StreamingDetectIntentResponse" do
82
102
  optional :response_id, :string, 1
@@ -85,6 +105,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
85
105
  optional :webhook_status, :message, 4, "google.rpc.Status"
86
106
  optional :output_audio, :bytes, 5
87
107
  optional :output_audio_config, :message, 6, "google.cloud.dialogflow.v2.OutputAudioConfig"
108
+ optional :debugging_info, :message, 8, "google.cloud.dialogflow.v2.CloudConversationDebuggingInfo"
88
109
  end
89
110
  add_message "google.cloud.dialogflow.v2.StreamingRecognitionResult" do
90
111
  optional :message_type, :enum, 1, "google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType"
@@ -132,6 +153,7 @@ module Google
132
153
  QueryInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.QueryInput").msgclass
133
154
  QueryResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.QueryResult").msgclass
134
155
  StreamingDetectIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.StreamingDetectIntentRequest").msgclass
156
+ CloudConversationDebuggingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CloudConversationDebuggingInfo").msgclass
135
157
  StreamingDetectIntentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.StreamingDetectIntentResponse").msgclass
136
158
  StreamingRecognitionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.StreamingRecognitionResult").msgclass
137
159
  StreamingRecognitionResult::MessageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType").enummodule
@@ -445,9 +445,9 @@ module Google
445
445
  # * (`String`) The path to a service account key file in JSON format
446
446
  # * (`Hash`) A service account key as a Hash
447
447
  # * (`Google::Auth::Credentials`) A googleauth credentials object
448
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
448
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
449
449
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
450
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
450
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
451
451
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
452
452
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
453
453
  # * (`nil`) indicating no credentials
@@ -321,9 +321,9 @@ module Google
321
321
  # * (`String`) The path to a service account key file in JSON format
322
322
  # * (`Hash`) A service account key as a Hash
323
323
  # * (`Google::Auth::Credentials`) A googleauth credentials object
324
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
324
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
325
325
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
326
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
326
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
327
327
  # * (`nil`) indicating no credentials
328
328
  # @return [::Object]
329
329
  # @!attribute [rw] scope
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- VERSION = "0.23.0"
24
+ VERSION = "0.24.0"
25
25
  end
26
26
  end
27
27
  end
@@ -669,9 +669,9 @@ module Google
669
669
  # * (`String`) The path to a service account key file in JSON format
670
670
  # * (`Hash`) A service account key as a Hash
671
671
  # * (`Google::Auth::Credentials`) A googleauth credentials object
672
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
672
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
673
673
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
674
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
674
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
675
675
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
676
676
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
677
677
  # * (`nil`) indicating no credentials
@@ -542,9 +542,9 @@ module Google
542
542
  # * (`String`) The path to a service account key file in JSON format
543
543
  # * (`Hash`) A service account key as a Hash
544
544
  # * (`Google::Auth::Credentials`) A googleauth credentials object
545
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
545
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
546
546
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
547
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
547
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
548
548
  # * (`nil`) indicating no credentials
549
549
  # @return [::Object]
550
550
  # @!attribute [rw] scope
@@ -24,10 +24,10 @@ require "google/cloud/dialogflow/v2/session_entity_types"
24
24
  require "google/cloud/dialogflow/v2/sessions"
25
25
  require "google/cloud/dialogflow/v2/participants"
26
26
  require "google/cloud/dialogflow/v2/answer_records"
27
+ require "google/cloud/dialogflow/v2/conversation_profiles"
27
28
  require "google/cloud/dialogflow/v2/conversations"
28
29
  require "google/cloud/dialogflow/v2/conversation_datasets"
29
30
  require "google/cloud/dialogflow/v2/conversation_models"
30
- require "google/cloud/dialogflow/v2/conversation_profiles"
31
31
  require "google/cloud/dialogflow/v2/documents"
32
32
  require "google/cloud/dialogflow/v2/fulfillments"
33
33
  require "google/cloud/dialogflow/v2/environments"
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -141,6 +141,8 @@ module Google
141
141
  # @return [::Boolean]
142
142
  # Indicates whether the answer/item was clicked by the human agent
143
143
  # or not. Default to false.
144
+ # For knowledge search, the answer record is considered to be clicked if the
145
+ # answer was copied or any URI was clicked.
144
146
  # @!attribute [rw] click_time
145
147
  # @return [::Google::Protobuf::Timestamp]
146
148
  # Time when the answer/item was clicked.
@@ -140,6 +140,12 @@ module Google
140
140
  # [Cloud Speech API
141
141
  # documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
142
142
  # for more details.
143
+ # If you specify a model, the following models typically have the best
144
+ # performance:
145
+ #
146
+ # - phone_call (best for Agent Assist and telephony)
147
+ # - latest_short (best for Dialogflow non-telephony)
148
+ # - command_and_search (best for very short utterances and commands)
143
149
  # @!attribute [rw] model_variant
144
150
  # @return [::Google::Cloud::Dialogflow::V2::SpeechModelVariant]
145
151
  # Which variant of the [Speech
@@ -164,6 +170,9 @@ module Google
164
170
  # {::Google::Cloud::Dialogflow::V2::Participants::Client#streaming_analyze_content Participants.StreamingAnalyzeContent}.
165
171
  # If `false` and recognition doesn't return any result, trigger
166
172
  # `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
173
+ # @!attribute [rw] enable_automatic_punctuation
174
+ # @return [::Boolean]
175
+ # Enable automatic punctuation option at the speech backend.
167
176
  class InputAudioConfig
168
177
  include ::Google::Protobuf::MessageExts
169
178
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -335,6 +335,95 @@ module Google
335
335
  end
336
336
  end
337
337
  end
338
+
339
+ # The request message for
340
+ # {::Google::Cloud::Dialogflow::V2::Conversations::Client#generate_stateless_summary Conversations.GenerateStatelessSummary}.
341
+ # @!attribute [rw] stateless_conversation
342
+ # @return [::Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryRequest::MinimalConversation]
343
+ # Required. The conversation to suggest a summary for.
344
+ # @!attribute [rw] conversation_profile
345
+ # @return [::Google::Cloud::Dialogflow::V2::ConversationProfile]
346
+ # Required. A ConversationProfile containing information required for Summary
347
+ # generation.
348
+ # Required fields: \\{language_code, security_settings}
349
+ # Optional fields: \\{agent_assistant_config}
350
+ # @!attribute [rw] latest_message
351
+ # @return [::String]
352
+ # The name of the latest conversation message used as context for
353
+ # generating a Summary. If empty, the latest message of the conversation will
354
+ # be used. The format is specific to the user and the names of the messages
355
+ # provided.
356
+ # @!attribute [rw] max_context_size
357
+ # @return [::Integer]
358
+ # Max number of messages prior to and including
359
+ # [latest_message] to use as context when compiling the
360
+ # suggestion. By default 500 and at most 1000.
361
+ class GenerateStatelessSummaryRequest
362
+ include ::Google::Protobuf::MessageExts
363
+ extend ::Google::Protobuf::MessageExts::ClassMethods
364
+
365
+ # The minimum amount of information required to generate a Summary without
366
+ # having a Conversation resource created.
367
+ # @!attribute [rw] messages
368
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::Message>]
369
+ # Required. The messages that the Summary will be generated from. It is
370
+ # expected that this message content is already redacted and does not
371
+ # contain any PII. Required fields: {content, language_code, participant,
372
+ # participant_role} Optional fields: \\{send_time} If send_time is not
373
+ # provided, then the messages must be provided in chronological order.
374
+ # @!attribute [rw] parent
375
+ # @return [::String]
376
+ # Required. The parent resource to charge for the Summary's generation.
377
+ # Format: `projects/<Project ID>/locations/<Location ID>`.
378
+ class MinimalConversation
379
+ include ::Google::Protobuf::MessageExts
380
+ extend ::Google::Protobuf::MessageExts::ClassMethods
381
+ end
382
+ end
383
+
384
+ # The response message for
385
+ # {::Google::Cloud::Dialogflow::V2::Conversations::Client#generate_stateless_summary Conversations.GenerateStatelessSummary}.
386
+ # @!attribute [rw] summary
387
+ # @return [::Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryResponse::Summary]
388
+ # Generated summary.
389
+ # @!attribute [rw] latest_message
390
+ # @return [::String]
391
+ # The name of the latest conversation message used as context for
392
+ # compiling suggestion. The format is specific to the user and the names of
393
+ # the messages provided.
394
+ # @!attribute [rw] context_size
395
+ # @return [::Integer]
396
+ # Number of messages prior to and including
397
+ # [last_conversation_message][] used to compile the suggestion. It may be
398
+ # smaller than the [GenerateStatelessSummaryRequest.context_size][] field in
399
+ # the request if there weren't that many messages in the conversation.
400
+ class GenerateStatelessSummaryResponse
401
+ include ::Google::Protobuf::MessageExts
402
+ extend ::Google::Protobuf::MessageExts::ClassMethods
403
+
404
+ # Generated summary for a conversation.
405
+ # @!attribute [rw] text
406
+ # @return [::String]
407
+ # The summary content that is concatenated into one string.
408
+ # @!attribute [rw] text_sections
409
+ # @return [::Google::Protobuf::Map{::String => ::String}]
410
+ # The summary content that is divided into sections. The key is the
411
+ # section's name and the value is the section's content. There is no
412
+ # specific format for the key or value.
413
+ class Summary
414
+ include ::Google::Protobuf::MessageExts
415
+ extend ::Google::Protobuf::MessageExts::ClassMethods
416
+
417
+ # @!attribute [rw] key
418
+ # @return [::String]
419
+ # @!attribute [rw] value
420
+ # @return [::String]
421
+ class TextSectionsEntry
422
+ include ::Google::Protobuf::MessageExts
423
+ extend ::Google::Protobuf::MessageExts::ClassMethods
424
+ end
425
+ end
426
+ end
338
427
  end
339
428
  end
340
429
  end
@@ -398,6 +398,16 @@ module Google
398
398
  # @return [::String]
399
399
  # Conversation model resource name. Format: `projects/<Project
400
400
  # ID>/conversationModels/<Model ID>`.
401
+ # @!attribute [rw] baseline_model_version
402
+ # @return [::String]
403
+ # Version of current baseline model. It will be ignored if
404
+ # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::ConversationModelConfig#model model}
405
+ # is set. Valid versions are:
406
+ # Article Suggestion baseline model:
407
+ # - 0.9
408
+ # - 1.0 (default)
409
+ # Summarization baseline model:
410
+ # - 1.0
401
411
  class ConversationModelConfig
402
412
  include ::Google::Protobuf::MessageExts
403
413
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -439,6 +439,10 @@ module Google
439
439
  # response stream still contains only one final response even if some
440
440
  # `Fulfillment`s in Dialogflow virtual agent have been configured to return
441
441
  # partial responses.
442
+ # @!attribute [rw] enable_debugging_info
443
+ # @return [::Boolean]
444
+ # If true, `StreamingAnalyzeContentResponse.debugging_info` will get
445
+ # populated.
442
446
  class StreamingAnalyzeContentRequest
443
447
  include ::Google::Protobuf::MessageExts
444
448
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -512,6 +516,10 @@ module Google
512
516
  # @!attribute [rw] dtmf_parameters
513
517
  # @return [::Google::Cloud::Dialogflow::V2::DtmfParameters]
514
518
  # Indicates the parameters of DTMF.
519
+ # @!attribute [rw] debugging_info
520
+ # @return [::Google::Cloud::Dialogflow::V2::CloudConversationDebuggingInfo]
521
+ # Debugging info that would get populated when
522
+ # `StreamingAnalyzeContentRequest.enable_debugging_info` is set to true.
515
523
  class StreamingAnalyzeContentResponse
516
524
  include ::Google::Protobuf::MessageExts
517
525
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -407,11 +407,82 @@ module Google
407
407
  # The input audio content to be recognized. Must be sent if
408
408
  # `query_input` was set to a streaming input audio config. The complete audio
409
409
  # over all streaming messages must not exceed 1 minute.
410
+ # @!attribute [rw] enable_debugging_info
411
+ # @return [::Boolean]
412
+ # if true, `StreamingDetectIntentResponse.debugging_info` will get populated.
410
413
  class StreamingDetectIntentRequest
411
414
  include ::Google::Protobuf::MessageExts
412
415
  extend ::Google::Protobuf::MessageExts::ClassMethods
413
416
  end
414
417
 
418
+ # Cloud conversation info for easier debugging.
419
+ # It will get populated in `StreamingDetectIntentResponse` or
420
+ # `StreamingAnalyzeContentResponse` when the flag `enable_debugging_info` is
421
+ # set to true in corresponding requests.
422
+ # @!attribute [rw] audio_data_chunks
423
+ # @return [::Integer]
424
+ # Number of input audio data chunks in streaming requests.
425
+ # @!attribute [rw] result_end_time_offset
426
+ # @return [::Google::Protobuf::Duration]
427
+ # Time offset of the end of speech utterance relative to the
428
+ # beginning of the first audio chunk.
429
+ # @!attribute [rw] first_audio_duration
430
+ # @return [::Google::Protobuf::Duration]
431
+ # Duration of first audio chunk.
432
+ # @!attribute [rw] single_utterance
433
+ # @return [::Boolean]
434
+ # Whether client used single utterance mode.
435
+ # @!attribute [rw] speech_partial_results_end_times
436
+ # @return [::Array<::Google::Protobuf::Duration>]
437
+ # Time offsets of the speech partial results relative to the beginning of
438
+ # the stream.
439
+ # @!attribute [rw] speech_final_results_end_times
440
+ # @return [::Array<::Google::Protobuf::Duration>]
441
+ # Time offsets of the speech final results (is_final=true) relative to the
442
+ # beginning of the stream.
443
+ # @!attribute [rw] partial_responses
444
+ # @return [::Integer]
445
+ # Total number of partial responses.
446
+ # @!attribute [rw] speaker_id_passive_latency_ms_offset
447
+ # @return [::Integer]
448
+ # Time offset of Speaker ID stream close time relative to the Speech stream
449
+ # close time in milliseconds. Only meaningful for conversations involving
450
+ # passive verification.
451
+ # @!attribute [rw] bargein_event_triggered
452
+ # @return [::Boolean]
453
+ # Whether a barge-in event is triggered in this request.
454
+ # @!attribute [rw] speech_single_utterance
455
+ # @return [::Boolean]
456
+ # Whether speech uses single utterance mode.
457
+ # @!attribute [rw] dtmf_partial_results_times
458
+ # @return [::Array<::Google::Protobuf::Duration>]
459
+ # Time offsets of the DTMF partial results relative to the beginning of
460
+ # the stream.
461
+ # @!attribute [rw] dtmf_final_results_times
462
+ # @return [::Array<::Google::Protobuf::Duration>]
463
+ # Time offsets of the DTMF final results relative to the beginning of
464
+ # the stream.
465
+ # @!attribute [rw] single_utterance_end_time_offset
466
+ # @return [::Google::Protobuf::Duration]
467
+ # Time offset of the end-of-single-utterance signal relative to the
468
+ # beginning of the stream.
469
+ # @!attribute [rw] no_speech_timeout
470
+ # @return [::Google::Protobuf::Duration]
471
+ # No speech timeout settings observed at runtime.
472
+ # @!attribute [rw] is_input_text
473
+ # @return [::Boolean]
474
+ # Whether the streaming terminates with an injected text query.
475
+ # @!attribute [rw] client_half_close_time_offset
476
+ # @return [::Google::Protobuf::Duration]
477
+ # Client half close time in terms of input audio duration.
478
+ # @!attribute [rw] client_half_close_streaming_time_offset
479
+ # @return [::Google::Protobuf::Duration]
480
+ # Client half close time in terms of API streaming duration.
481
+ class CloudConversationDebuggingInfo
482
+ include ::Google::Protobuf::MessageExts
483
+ extend ::Google::Protobuf::MessageExts::ClassMethods
484
+ end
485
+
415
486
  # The top-level message returned from the
416
487
  # `StreamingDetectIntent` method.
417
488
  #
@@ -454,6 +525,10 @@ module Google
454
525
  # @!attribute [rw] output_audio_config
455
526
  # @return [::Google::Cloud::Dialogflow::V2::OutputAudioConfig]
456
527
  # The config used by the speech synthesizer to generate the output audio.
528
+ # @!attribute [rw] debugging_info
529
+ # @return [::Google::Cloud::Dialogflow::V2::CloudConversationDebuggingInfo]
530
+ # Debugging info that would get populated when
531
+ # `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
457
532
  class StreamingDetectIntentResponse
458
533
  include ::Google::Protobuf::MessageExts
459
534
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common