google-cloud-dialogflow-v2 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +2 -1
  3. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -1
  4. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +5 -1
  5. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +1 -1
  6. data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +19 -0
  7. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +3 -0
  8. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +121 -23
  9. data/lib/google/cloud/dialogflow/v2/conversations/paths.rb +19 -0
  10. data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +114 -23
  11. data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +60 -0
  12. data/lib/google/cloud/dialogflow/v2/encryption_spec_pb.rb +52 -0
  13. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/client.rb +567 -0
  14. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/credentials.rb +52 -0
  15. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/operations.rb +809 -0
  16. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/paths.rb +50 -0
  17. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/client.rb +535 -0
  18. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/operations.rb +922 -0
  19. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/service_stub.rb +188 -0
  20. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest.rb +54 -0
  21. data/lib/google/cloud/dialogflow/v2/encryption_spec_service.rb +56 -0
  22. data/lib/google/cloud/dialogflow/v2/encryption_spec_services_pb.rb +51 -0
  23. data/lib/google/cloud/dialogflow/v2/generator_pb.rb +71 -0
  24. data/lib/google/cloud/dialogflow/v2/generator_services_pb.rb +57 -0
  25. data/lib/google/cloud/dialogflow/v2/generators/client.rb +851 -0
  26. data/lib/google/cloud/dialogflow/v2/generators/credentials.rb +52 -0
  27. data/lib/google/cloud/dialogflow/v2/generators/paths.rb +66 -0
  28. data/lib/google/cloud/dialogflow/v2/generators/rest/client.rb +798 -0
  29. data/lib/google/cloud/dialogflow/v2/generators/rest/service_stub.rb +381 -0
  30. data/lib/google/cloud/dialogflow/v2/generators/rest.rb +57 -0
  31. data/lib/google/cloud/dialogflow/v2/generators.rb +59 -0
  32. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +9 -1
  33. data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +2 -0
  34. data/lib/google/cloud/dialogflow/v2/participants/client.rb +110 -0
  35. data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +103 -0
  36. data/lib/google/cloud/dialogflow/v2/participants/rest/service_stub.rb +68 -0
  37. data/lib/google/cloud/dialogflow/v2/rest.rb +2 -0
  38. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  39. data/lib/google/cloud/dialogflow/v2.rb +2 -0
  40. data/proto_docs/google/api/client.rb +14 -10
  41. data/proto_docs/google/api/resource.rb +7 -2
  42. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +22 -0
  43. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +24 -0
  44. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +54 -26
  45. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +27 -2
  46. data/proto_docs/google/cloud/dialogflow/v2/encryption_spec.rb +81 -0
  47. data/proto_docs/google/cloud/dialogflow/v2/generator.rb +382 -0
  48. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +133 -0
  49. metadata +24 -2
@@ -27,7 +27,7 @@ module Google
27
27
  # include phone calls and text-based chat sessions.
28
28
  # @!attribute [r] name
29
29
  # @return [::String]
30
- # Output only. The unique identifier of this conversation.
30
+ # Output only. Identifier. The unique identifier of this conversation.
31
31
  # Format: `projects/<Project ID>/locations/<Location
32
32
  # ID>/conversations/<Conversation ID>`.
33
33
  # @!attribute [r] lifecycle_state
@@ -51,8 +51,8 @@ module Google
51
51
  # Output only. The time the conversation was finished.
52
52
  # @!attribute [rw] conversation_stage
53
53
  # @return [::Google::Cloud::Dialogflow::V2::Conversation::ConversationStage]
54
- # The stage of a conversation. It indicates whether the virtual agent or a
55
- # human agent is handling the conversation.
54
+ # Optional. The stage of a conversation. It indicates whether the virtual
55
+ # agent or a human agent is handling the conversation.
56
56
  #
57
57
  # If the conversation is created with the conversation profile that has
58
58
  # Dialogflow config set, defaults to
@@ -142,18 +142,9 @@ module Google
142
142
  # Optional. The next_page_token value returned from a previous list request.
143
143
  # @!attribute [rw] filter
144
144
  # @return [::String]
145
- # A filter expression that filters conversations listed in the response. In
146
- # general, the expression must specify the field name, a comparison operator,
147
- # and the value to use for filtering:
148
- # <ul>
149
- # <li>The value must be a string, a number, or a boolean.</li>
150
- # <li>The comparison operator must be either `=`,`!=`, `>`, or `<`.</li>
151
- # <li>To filter on multiple expressions, separate the
152
- # expressions with `AND` or `OR` (omitting both implies `AND`).</li>
153
- # <li>For clarity, expressions can be enclosed in parentheses.</li>
154
- # </ul>
155
- # Only `lifecycle_state` can be filtered on in this way. For example,
156
- # the following expression only returns `COMPLETED` conversations:
145
+ # Optional. A filter expression that filters conversations listed in the
146
+ # response. Only `lifecycle_state` can be filtered on in this way. For
147
+ # example, the following expression only returns `COMPLETED` conversations:
157
148
  #
158
149
  # `lifecycle_state = "COMPLETED"`
159
150
  #
@@ -267,7 +258,7 @@ module Google
267
258
  # ID>/conversations/<Conversation ID>`.
268
259
  # @!attribute [rw] latest_message
269
260
  # @return [::String]
270
- # The name of the latest conversation message used as context for
261
+ # Optional. The name of the latest conversation message used as context for
271
262
  # compiling suggestion. If empty, the latest message of the conversation will
272
263
  # be used.
273
264
  #
@@ -275,12 +266,13 @@ module Google
275
266
  # ID>/conversations/<Conversation ID>/messages/<Message ID>`.
276
267
  # @!attribute [rw] context_size
277
268
  # @return [::Integer]
278
- # Max number of messages prior to and including
269
+ # Optional. Max number of messages prior to and including
279
270
  # [latest_message] to use as context when compiling the
280
271
  # suggestion. By default 500 and at most 1000.
281
272
  # @!attribute [rw] assist_query_params
282
273
  # @return [::Google::Cloud::Dialogflow::V2::AssistQueryParameters]
283
- # Parameters for a human assist query. Only used for POC/demo purpose.
274
+ # Optional. Parameters for a human assist query. Only used for POC/demo
275
+ # purpose.
284
276
  class SuggestConversationSummaryRequest
285
277
  include ::Google::Protobuf::MessageExts
286
278
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -353,13 +345,13 @@ module Google
353
345
  # Optional fields: \\{agent_assistant_config}
354
346
  # @!attribute [rw] latest_message
355
347
  # @return [::String]
356
- # The name of the latest conversation message used as context for
348
+ # Optional. The name of the latest conversation message used as context for
357
349
  # generating a Summary. If empty, the latest message of the conversation will
358
350
  # be used. The format is specific to the user and the names of the messages
359
351
  # provided.
360
352
  # @!attribute [rw] max_context_size
361
353
  # @return [::Integer]
362
- # Max number of messages prior to and including
354
+ # Optional. Max number of messages prior to and including
363
355
  # [latest_message] to use as context when compiling the
364
356
  # suggestion. By default 500 and at most 1000.
365
357
  class GenerateStatelessSummaryRequest
@@ -433,11 +425,47 @@ module Google
433
425
  end
434
426
  end
435
427
 
428
+ # The request message for
429
+ # {::Google::Cloud::Dialogflow::V2::Conversations::Client#generate_stateless_suggestion Conversations.GenerateStatelessSuggestion}.
430
+ # @!attribute [rw] parent
431
+ # @return [::String]
432
+ # Required. The parent resource to charge for the Suggestion's generation.
433
+ # Format: `projects/<Project ID>/locations/<Location ID>`.
434
+ # @!attribute [rw] generator
435
+ # @return [::Google::Cloud::Dialogflow::V2::Generator]
436
+ # Uncreated generator. It should be a complete generator that includes all
437
+ # information about the generator.
438
+ # @!attribute [rw] generator_name
439
+ # @return [::String]
440
+ # The resource name of the existing created generator. Format:
441
+ # `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
442
+ # @!attribute [rw] conversation_context
443
+ # @return [::Google::Cloud::Dialogflow::V2::ConversationContext]
444
+ # Optional. Context of the conversation, including transcripts.
445
+ # @!attribute [rw] trigger_events
446
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::TriggerEvent>]
447
+ # Optional. A list of trigger events. Generator will be triggered only if
448
+ # it's trigger event is included here.
449
+ class GenerateStatelessSuggestionRequest
450
+ include ::Google::Protobuf::MessageExts
451
+ extend ::Google::Protobuf::MessageExts::ClassMethods
452
+ end
453
+
454
+ # The response message for
455
+ # {::Google::Cloud::Dialogflow::V2::Conversations::Client#generate_stateless_suggestion Conversations.GenerateStatelessSuggestion}.
456
+ # @!attribute [rw] generator_suggestion
457
+ # @return [::Google::Cloud::Dialogflow::V2::GeneratorSuggestion]
458
+ # Required. Generated suggestion for a conversation.
459
+ class GenerateStatelessSuggestionResponse
460
+ include ::Google::Protobuf::MessageExts
461
+ extend ::Google::Protobuf::MessageExts::ClassMethods
462
+ end
463
+
436
464
  # The request message for
437
465
  # {::Google::Cloud::Dialogflow::V2::Conversations::Client#search_knowledge Conversations.SearchKnowledge}.
438
466
  # @!attribute [rw] parent
439
467
  # @return [::String]
440
- # The parent resource contains the conversation profile
468
+ # Required. The parent resource contains the conversation profile
441
469
  # Format: 'projects/<Project ID>' or `projects/<Project
442
470
  # ID>/locations/<Location ID>`.
443
471
  # @!attribute [rw] query
@@ -450,7 +478,7 @@ module Google
450
478
  # ID>/conversationProfiles/<Conversation Profile ID>`.
451
479
  # @!attribute [rw] session_id
452
480
  # @return [::String]
453
- # The ID of the search session.
481
+ # Required. The ID of the search session.
454
482
  # The session_id can be combined with Dialogflow V3 Agent ID retrieved from
455
483
  # conversation profile or on its own to identify a search session. The search
456
484
  # history of the same session will impact the search result. It's up to the
@@ -459,12 +487,12 @@ module Google
459
487
  # not exceed 36 characters.
460
488
  # @!attribute [rw] conversation
461
489
  # @return [::String]
462
- # The conversation (between human agent and end user) where the search
463
- # request is triggered. Format: `projects/<Project ID>/locations/<Location
464
- # ID>/conversations/<Conversation ID>`.
490
+ # Optional. The conversation (between human agent and end user) where the
491
+ # search request is triggered. Format: `projects/<Project
492
+ # ID>/locations/<Location ID>/conversations/<Conversation ID>`.
465
493
  # @!attribute [rw] latest_message
466
494
  # @return [::String]
467
- # The name of the latest conversation message when the request is
495
+ # Optional. The name of the latest conversation message when the request is
468
496
  # triggered.
469
497
  # Format: `projects/<Project ID>/locations/<Location
470
498
  # ID>/conversations/<Conversation ID>/messages/<Message ID>`.
@@ -257,10 +257,19 @@ module Google
257
257
  # can prevent those queries from being stored at answer records.
258
258
  #
259
259
  # Supported features: KNOWLEDGE_SEARCH.
260
+ # @!attribute [rw] enable_query_suggestion_when_no_answer
261
+ # @return [::Boolean]
262
+ # Optional. Enable query suggestion even if we can't find its answer.
263
+ # By default, queries are suggested only if we find its answer.
264
+ # Supported features: KNOWLEDGE_ASSIST
260
265
  # @!attribute [rw] enable_conversation_augmented_query
261
266
  # @return [::Boolean]
262
267
  # Optional. Enable including conversation context during query answer
263
268
  # generation. Supported features: KNOWLEDGE_SEARCH.
269
+ # @!attribute [rw] enable_query_suggestion_only
270
+ # @return [::Boolean]
271
+ # Optional. Enable query suggestion only.
272
+ # Supported features: KNOWLEDGE_ASSIST
264
273
  # @!attribute [rw] suggestion_trigger_settings
265
274
  # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionTriggerSettings]
266
275
  # Settings of suggestion trigger.
@@ -297,6 +306,19 @@ module Google
297
306
  # If `group_suggestion_responses` set to true. All the suggestions to the
298
307
  # same participant based on the same context will be grouped into a single
299
308
  # Pub/Sub event or StreamingAnalyzeContentResponse.
309
+ # @!attribute [rw] generators
310
+ # @return [::Array<::String>]
311
+ # Optional. List of various generator resource names used in the
312
+ # conversation profile.
313
+ # @!attribute [rw] disable_high_latency_features_sync_delivery
314
+ # @return [::Boolean]
315
+ # Optional. When disable_high_latency_features_sync_delivery is true and
316
+ # using the AnalyzeContent API, we will not deliver the responses from high
317
+ # latency features in the API response. The
318
+ # human_agent_assistant_config.notification_config must be configured and
319
+ # enable_event_based_suggestion must be set to true to receive the
320
+ # responses from high latency features in Pub/Sub. High latency feature(s):
321
+ # KNOWLEDGE_ASSIST
300
322
  class SuggestionConfig
301
323
  include ::Google::Protobuf::MessageExts
302
324
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -555,7 +577,7 @@ module Google
555
577
  # to get access.
556
578
  # @!attribute [rw] live_person_config
557
579
  # @return [::Google::Cloud::Dialogflow::V2::HumanAgentHandoffConfig::LivePersonConfig]
558
- # Uses LivePerson (https://www.liveperson.com).
580
+ # Uses [LivePerson](https://www.liveperson.com).
559
581
  # @!attribute [rw] salesforce_live_agent_config
560
582
  # @return [::Google::Cloud::Dialogflow::V2::HumanAgentHandoffConfig::SalesforceLiveAgentConfig]
561
583
  # Uses Salesforce Live Agent.
@@ -563,7 +585,7 @@ module Google
563
585
  include ::Google::Protobuf::MessageExts
564
586
  extend ::Google::Protobuf::MessageExts::ClassMethods
565
587
 
566
- # Configuration specific to LivePerson (https://www.liveperson.com).
588
+ # Configuration specific to [LivePerson](https://www.liveperson.com).
567
589
  # @!attribute [rw] account_number
568
590
  # @return [::String]
569
591
  # Required. Account number of the LivePerson account to connect. This is
@@ -672,6 +694,9 @@ module Google
672
694
 
673
695
  # Run knowledge search with text input from agent or text generated query.
674
696
  KNOWLEDGE_SEARCH = 14
697
+
698
+ # Run knowledge assist with automatic query generation.
699
+ KNOWLEDGE_ASSIST = 15
675
700
  end
676
701
  end
677
702
 
@@ -0,0 +1,81 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Dialogflow
23
+ module V2
24
+ # The request to get location-level encryption specification.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Required. The name of the encryption spec resource to get.
28
+ class GetEncryptionSpecRequest
29
+ include ::Google::Protobuf::MessageExts
30
+ extend ::Google::Protobuf::MessageExts::ClassMethods
31
+ end
32
+
33
+ # A customer-managed encryption key specification that can be applied to all
34
+ # created resources (e.g. Conversation).
35
+ # @!attribute [rw] name
36
+ # @return [::String]
37
+ # Immutable. The resource name of the encryption key specification resource.
38
+ # Format:
39
+ # projects/\\{project}/locations/\\{location}/encryptionSpec
40
+ # @!attribute [rw] kms_key
41
+ # @return [::String]
42
+ # Required. The name of customer-managed encryption key that is used to
43
+ # secure a resource and its sub-resources. If empty, the resource is secured
44
+ # by the default Google encryption key. Only the key in the same location as
45
+ # this resource is allowed to be used for encryption. Format:
46
+ # `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`
47
+ class EncryptionSpec
48
+ include ::Google::Protobuf::MessageExts
49
+ extend ::Google::Protobuf::MessageExts::ClassMethods
50
+ end
51
+
52
+ # The request to initialize a location-level encryption specification.
53
+ # @!attribute [rw] encryption_spec
54
+ # @return [::Google::Cloud::Dialogflow::V2::EncryptionSpec]
55
+ # Required. The encryption spec used for CMEK encryption. It is required that
56
+ # the kms key is in the same region as the endpoint. The same key will be
57
+ # used for all provisioned resources, if encryption is available. If the
58
+ # kms_key_name is left empty, no encryption will be enforced.
59
+ class InitializeEncryptionSpecRequest
60
+ include ::Google::Protobuf::MessageExts
61
+ extend ::Google::Protobuf::MessageExts::ClassMethods
62
+ end
63
+
64
+ # The response to initialize a location-level encryption specification.
65
+ class InitializeEncryptionSpecResponse
66
+ include ::Google::Protobuf::MessageExts
67
+ extend ::Google::Protobuf::MessageExts::ClassMethods
68
+ end
69
+
70
+ # Metadata for initializing a location-level encryption specification.
71
+ # @!attribute [r] request
72
+ # @return [::Google::Cloud::Dialogflow::V2::InitializeEncryptionSpecRequest]
73
+ # Output only. The original request for initialization.
74
+ class InitializeEncryptionSpecMetadata
75
+ include ::Google::Protobuf::MessageExts
76
+ extend ::Google::Protobuf::MessageExts::ClassMethods
77
+ end
78
+ end
79
+ end
80
+ end
81
+ end