google-cloud-dialogflow-v2 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -20
  3. data/lib/google/cloud/dialogflow/v2/agents/client.rb +33 -10
  4. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +12 -15
  5. data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +33 -10
  6. data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +43 -38
  7. data/lib/google/cloud/dialogflow/v2/agents/rest/service_stub.rb +86 -56
  8. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +29 -3
  9. data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +29 -3
  10. data/lib/google/cloud/dialogflow/v2/answer_records/rest/service_stub.rb +30 -14
  11. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +29 -7
  12. data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +29 -7
  13. data/lib/google/cloud/dialogflow/v2/contexts/rest/service_stub.rb +62 -38
  14. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +32 -6
  15. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +12 -15
  16. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +32 -6
  17. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +43 -38
  18. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/service_stub.rb +54 -32
  19. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +35 -10
  20. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +12 -15
  21. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +35 -10
  22. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +43 -38
  23. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/service_stub.rb +86 -56
  24. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +6 -2
  25. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +37 -10
  26. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +12 -15
  27. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +37 -10
  28. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +43 -38
  29. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/service_stub.rb +70 -44
  30. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +30 -10
  31. data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +30 -10
  32. data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +86 -56
  33. data/lib/google/cloud/dialogflow/v2/documents/client.rb +35 -9
  34. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +12 -15
  35. data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +35 -9
  36. data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +43 -38
  37. data/lib/google/cloud/dialogflow/v2/documents/rest/service_stub.rb +78 -50
  38. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/client.rb +29 -3
  39. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/operations.rb +12 -15
  40. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/client.rb +29 -3
  41. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/operations.rb +43 -38
  42. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/service_stub.rb +30 -14
  43. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +34 -11
  44. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +12 -15
  45. data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +34 -11
  46. data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +43 -38
  47. data/lib/google/cloud/dialogflow/v2/entity_types/rest/service_stub.rb +94 -62
  48. data/lib/google/cloud/dialogflow/v2/environments/client.rb +30 -7
  49. data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +30 -7
  50. data/lib/google/cloud/dialogflow/v2/environments/rest/service_stub.rb +62 -38
  51. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +28 -3
  52. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +28 -3
  53. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/service_stub.rb +30 -14
  54. data/lib/google/cloud/dialogflow/v2/generators/client.rb +29 -6
  55. data/lib/google/cloud/dialogflow/v2/generators/rest/client.rb +29 -6
  56. data/lib/google/cloud/dialogflow/v2/generators/rest/service_stub.rb +54 -32
  57. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +1 -1
  58. data/lib/google/cloud/dialogflow/v2/intents/client.rb +31 -8
  59. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +12 -15
  60. data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +31 -8
  61. data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +43 -38
  62. data/lib/google/cloud/dialogflow/v2/intents/rest/service_stub.rb +70 -44
  63. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +29 -6
  64. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +29 -6
  65. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/service_stub.rb +54 -32
  66. data/lib/google/cloud/dialogflow/v2/participants/client.rb +29 -11
  67. data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +29 -10
  68. data/lib/google/cloud/dialogflow/v2/participants/rest/service_stub.rb +86 -56
  69. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +29 -6
  70. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +29 -6
  71. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/service_stub.rb +54 -32
  72. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +28 -3
  73. data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +28 -2
  74. data/lib/google/cloud/dialogflow/v2/sessions/rest/service_stub.rb +22 -8
  75. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  76. data/lib/google/cloud/dialogflow/v2/versions/client.rb +29 -6
  77. data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +29 -6
  78. data/lib/google/cloud/dialogflow/v2/versions/rest/service_stub.rb +54 -32
  79. data/proto_docs/google/api/client.rb +19 -0
  80. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +3 -2
  81. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +2 -2
  82. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +10 -6
  83. data/proto_docs/google/cloud/dialogflow/v2/conversation_dataset.rb +2 -2
  84. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +7 -4
  85. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +1 -1
  86. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +10 -8
  87. data/proto_docs/google/cloud/dialogflow/v2/session.rb +12 -10
  88. data/proto_docs/google/longrunning/operations.rb +19 -14
  89. metadata +5 -5
@@ -207,7 +207,7 @@ module Google
207
207
  extend ::Google::Protobuf::MessageExts::ClassMethods
208
208
  end
209
209
 
210
- # Metadata for [ConversationDatasets][CreateConversationDataset].
210
+ # Metadata for [CreateConversationDataset][].
211
211
  # @!attribute [rw] conversation_dataset
212
212
  # @return [::String]
213
213
  # The resource name of the conversation dataset that will be created. Format:
@@ -218,7 +218,7 @@ module Google
218
218
  extend ::Google::Protobuf::MessageExts::ClassMethods
219
219
  end
220
220
 
221
- # Metadata for [ConversationDatasets][DeleteConversationDataset].
221
+ # Metadata for [DeleteConversationDataset][].
222
222
  class DeleteConversationDatasetOperationMetadata
223
223
  include ::Google::Protobuf::MessageExts
224
224
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -705,7 +705,7 @@ module Google
705
705
  end
706
706
 
707
707
  # The request message for
708
- # [ConversationProfiles.SetSuggestionFeature][].
708
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#set_suggestion_feature_config ConversationProfiles.SetSuggestionFeatureConfig}.
709
709
  # @!attribute [rw] conversation_profile
710
710
  # @return [::String]
711
711
  # Required. The Conversation Profile to add or update the suggestion feature
@@ -723,7 +723,8 @@ module Google
723
723
  extend ::Google::Protobuf::MessageExts::ClassMethods
724
724
  end
725
725
 
726
- # The request message for [ConversationProfiles.ClearFeature][].
726
+ # The request message for
727
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#clear_suggestion_feature_config ConversationProfiles.ClearSuggestionFeatureConfig}.
727
728
  # @!attribute [rw] conversation_profile
728
729
  # @return [::String]
729
730
  # Required. The Conversation Profile to add or update the suggestion feature
@@ -741,7 +742,8 @@ module Google
741
742
  extend ::Google::Protobuf::MessageExts::ClassMethods
742
743
  end
743
744
 
744
- # Metadata for a [ConversationProfile.SetSuggestionFeatureConfig][]
745
+ # Metadata for a
746
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#set_suggestion_feature_config ConversationProfiles.SetSuggestionFeatureConfig}
745
747
  # operation.
746
748
  # @!attribute [rw] conversation_profile
747
749
  # @return [::String]
@@ -763,7 +765,8 @@ module Google
763
765
  extend ::Google::Protobuf::MessageExts::ClassMethods
764
766
  end
765
767
 
766
- # Metadata for a [ConversationProfile.ClearSuggestionFeatureConfig][]
768
+ # Metadata for a
769
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#clear_suggestion_feature_config ConversationProfiles.ClearSuggestionFeatureConfig}
767
770
  # operation.
768
771
  # @!attribute [rw] conversation_profile
769
772
  # @return [::String]
@@ -144,7 +144,7 @@ module Google
144
144
  extend ::Google::Protobuf::MessageExts::ClassMethods
145
145
 
146
146
  # Represents an example that the agent is trained on.
147
- # @!attribute [rw] name
147
+ # @!attribute [r] name
148
148
  # @return [::String]
149
149
  # Output only. The unique identifier of this training phrase.
150
150
  # @!attribute [rw] type
@@ -50,9 +50,9 @@ module Google
50
50
  # Dialogflow adds the obfuscated user id with the participant.
51
51
  #
52
52
  # 2. If you set this field in
53
- # [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id]
53
+ # {::Google::Cloud::Dialogflow::V2::AnalyzeContentRequest#participant AnalyzeContent}
54
54
  # or
55
- # [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id],
55
+ # {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentRequest#participant StreamingAnalyzeContent},
56
56
  # Dialogflow will update
57
57
  # {::Google::Cloud::Dialogflow::V2::Participant#obfuscated_external_user_id Participant.obfuscated_external_user_id}.
58
58
  #
@@ -310,8 +310,9 @@ module Google
310
310
  # @!attribute [rw] automated_agent_reply
311
311
  # @return [::Google::Cloud::Dialogflow::V2::AutomatedAgentReply]
312
312
  # Only set if a Dialogflow automated agent has responded.
313
- # Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
314
- # and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
313
+ # Note that in [AutomatedAgentReply.DetectIntentResponse][],
314
+ # [Sessions.DetectIntentResponse.output_audio][]
315
+ # and [Sessions.DetectIntentResponse.output_audio_config][]
315
316
  # are always empty, use
316
317
  # {::Google::Cloud::Dialogflow::V2::AnalyzeContentResponse#reply_audio reply_audio}
317
318
  # instead.
@@ -450,7 +451,8 @@ module Google
450
451
  # and
451
452
  # {::Google::Cloud::Dialogflow::V2::AudioEncoding::AUDIO_ENCODING_MULAW AudioEncoding.AUDIO_ENCODING_MULAW}
452
453
  # - Lifecycle: conversation should be in `Assist Stage`, go to
453
- # [Conversation.CreateConversation][] for more information.
454
+ # {::Google::Cloud::Dialogflow::V2::Conversations::Client#create_conversation Conversations.CreateConversation}
455
+ # for more information.
454
456
  #
455
457
  # InvalidArgument Error will be returned if the one of restriction checks
456
458
  # failed.
@@ -516,9 +518,9 @@ module Google
516
518
  # has content.
517
519
  # @!attribute [rw] automated_agent_reply
518
520
  # @return [::Google::Cloud::Dialogflow::V2::AutomatedAgentReply]
519
- # Only set if a Dialogflow automated agent has responded.
520
- # Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
521
- # and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
521
+ # Note that in [AutomatedAgentReply.DetectIntentResponse][],
522
+ # [Sessions.DetectIntentResponse.output_audio][]
523
+ # and [Sessions.DetectIntentResponse.output_audio_config][]
522
524
  # are always empty, use
523
525
  # {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentResponse#reply_audio reply_audio}
524
526
  # instead.
@@ -79,7 +79,7 @@ module Google
79
79
  extend ::Google::Protobuf::MessageExts::ClassMethods
80
80
  end
81
81
 
82
- # The message returned from the DetectIntent method.
82
+ # The message returned from the [DetectIntent][] method.
83
83
  # @!attribute [rw] response_id
84
84
  # @return [::String]
85
85
  # The unique identifier of the response. It can be used to
@@ -226,8 +226,8 @@ module Google
226
226
  # was not set.
227
227
  #
228
228
  # This field is not guaranteed to be accurate or set. In particular this
229
- # field isn't set for StreamingDetectIntent since the streaming endpoint has
230
- # separate confidence estimates per portion of the audio in
229
+ # field isn't set for [StreamingDetectIntent][] since the streaming endpoint
230
+ # has separate confidence estimates per portion of the audio in
231
231
  # StreamingRecognitionResult.
232
232
  # @!attribute [rw] action
233
233
  # @return [::String]
@@ -316,8 +316,7 @@ module Google
316
316
  end
317
317
 
318
318
  # The top-level message sent by the client to the
319
- # {::Google::Cloud::Dialogflow::V2::Sessions::Client#streaming_detect_intent Sessions.StreamingDetectIntent}
320
- # method.
319
+ # [StreamingDetectIntent][] method.
321
320
  #
322
321
  # Multiple request messages should be sent in order:
323
322
  #
@@ -493,11 +492,13 @@ module Google
493
492
  end
494
493
 
495
494
  # The top-level message returned from the
496
- # `StreamingDetectIntent` method.
495
+ # [StreamingDetectIntent][] method.
497
496
  #
498
497
  # Multiple response messages can be returned in order:
499
498
  #
500
- # 1. If the `StreamingDetectIntentRequest.input_audio` field was
499
+ # 1. If the
500
+ # {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#input_audio StreamingDetectIntentRequest.input_audio}
501
+ # field was
501
502
  # set, the `recognition_result` field is populated for one
502
503
  # or more messages.
503
504
  # See the
@@ -537,7 +538,8 @@ module Google
537
538
  # @!attribute [rw] debugging_info
538
539
  # @return [::Google::Cloud::Dialogflow::V2::CloudConversationDebuggingInfo]
539
540
  # Debugging info that would get populated when
540
- # `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
541
+ # {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#enable_debugging_info StreamingDetectIntentRequest.enable_debugging_info}
542
+ # is set to true.
541
543
  class StreamingDetectIntentResponse
542
544
  include ::Google::Protobuf::MessageExts
543
545
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -711,9 +713,9 @@ module Google
711
713
  # The result of sentiment analysis. Sentiment analysis inspects user input
712
714
  # and identifies the prevailing subjective opinion, especially to determine a
713
715
  # user's attitude as positive, negative, or neutral.
714
- # For [Participants.DetectIntent][], it needs to be configured in
716
+ # For [DetectIntent][], it needs to be configured in
715
717
  # {::Google::Cloud::Dialogflow::V2::DetectIntentRequest#query_params DetectIntentRequest.query_params}.
716
- # For [Participants.StreamingDetectIntent][], it needs to be configured in
718
+ # For [StreamingDetectIntent][], it needs to be configured in
717
719
  # {::Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest#query_params StreamingDetectIntentRequest.query_params}.
718
720
  # And for
719
721
  # {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}
@@ -42,7 +42,7 @@ module Google
42
42
  # The error result of the operation in case of failure or cancellation.
43
43
  # @!attribute [rw] response
44
44
  # @return [::Google::Protobuf::Any]
45
- # The normal response of the operation in case of success. If the original
45
+ # The normal, successful response of the operation. If the original
46
46
  # method returns no data on success, such as `Delete`, the response is
47
47
  # `google.protobuf.Empty`. If the original method is standard
48
48
  # `Get`/`Create`/`Update`, the response should be the resource. For other
@@ -55,7 +55,8 @@ module Google
55
55
  extend ::Google::Protobuf::MessageExts::ClassMethods
56
56
  end
57
57
 
58
- # The request message for Operations.GetOperation.
58
+ # The request message for
59
+ # Operations.GetOperation.
59
60
  # @!attribute [rw] name
60
61
  # @return [::String]
61
62
  # The name of the operation resource.
@@ -64,7 +65,8 @@ module Google
64
65
  extend ::Google::Protobuf::MessageExts::ClassMethods
65
66
  end
66
67
 
67
- # The request message for Operations.ListOperations.
68
+ # The request message for
69
+ # Operations.ListOperations.
68
70
  # @!attribute [rw] name
69
71
  # @return [::String]
70
72
  # The name of the operation's parent resource.
@@ -82,7 +84,8 @@ module Google
82
84
  extend ::Google::Protobuf::MessageExts::ClassMethods
83
85
  end
84
86
 
85
- # The response message for Operations.ListOperations.
87
+ # The response message for
88
+ # Operations.ListOperations.
86
89
  # @!attribute [rw] operations
87
90
  # @return [::Array<::Google::Longrunning::Operation>]
88
91
  # A list of operations that matches the specified filter in the request.
@@ -94,7 +97,8 @@ module Google
94
97
  extend ::Google::Protobuf::MessageExts::ClassMethods
95
98
  end
96
99
 
97
- # The request message for Operations.CancelOperation.
100
+ # The request message for
101
+ # Operations.CancelOperation.
98
102
  # @!attribute [rw] name
99
103
  # @return [::String]
100
104
  # The name of the operation resource to be cancelled.
@@ -103,7 +107,8 @@ module Google
103
107
  extend ::Google::Protobuf::MessageExts::ClassMethods
104
108
  end
105
109
 
106
- # The request message for Operations.DeleteOperation.
110
+ # The request message for
111
+ # Operations.DeleteOperation.
107
112
  # @!attribute [rw] name
108
113
  # @return [::String]
109
114
  # The name of the operation resource to be deleted.
@@ -112,7 +117,8 @@ module Google
112
117
  extend ::Google::Protobuf::MessageExts::ClassMethods
113
118
  end
114
119
 
115
- # The request message for Operations.WaitOperation.
120
+ # The request message for
121
+ # Operations.WaitOperation.
116
122
  # @!attribute [rw] name
117
123
  # @return [::String]
118
124
  # The name of the operation resource to wait on.
@@ -130,13 +136,12 @@ module Google
130
136
  #
131
137
  # Example:
132
138
  #
133
- # rpc LongRunningRecognize(LongRunningRecognizeRequest)
134
- # returns (google.longrunning.Operation) {
135
- # option (google.longrunning.operation_info) = {
136
- # response_type: "LongRunningRecognizeResponse"
137
- # metadata_type: "LongRunningRecognizeMetadata"
138
- # };
139
- # }
139
+ # rpc Export(ExportRequest) returns (google.longrunning.Operation) {
140
+ # option (google.longrunning.operation_info) = {
141
+ # response_type: "ExportResponse"
142
+ # metadata_type: "ExportMetadata"
143
+ # };
144
+ # }
140
145
  # @!attribute [rw] response_type
141
146
  # @return [::String]
142
147
  # Required. The message name of the primary return type for this
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: 1.4.0
4
+ version: 1.5.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: 2024-11-14 00:00:00.000000000 Z
11
+ date: 2024-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.21.1
19
+ version: 0.24.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.21.1
29
+ version: 0.24.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -337,7 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
337
337
  - !ruby/object:Gem::Version
338
338
  version: '0'
339
339
  requirements: []
340
- rubygems_version: 3.5.22
340
+ rubygems_version: 3.5.23
341
341
  signing_key:
342
342
  specification_version: 4
343
343
  summary: Builds conversational interfaces (for example, chatbots, and voice-powered