google-cloud-dialogflow-v2 0.13.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dialogflow/v2/agents/client.rb +18 -0
  4. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +0 -1
  5. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +0 -2
  6. data/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb +92 -0
  7. data/lib/google/cloud/dialogflow/v2/conversation_dataset_services_pb.rb +81 -0
  8. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +849 -0
  9. data/lib/google/cloud/dialogflow/v2/conversation_datasets/credentials.rb +52 -0
  10. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +767 -0
  11. data/lib/google/cloud/dialogflow/v2/conversation_datasets/paths.rb +69 -0
  12. data/lib/google/cloud/dialogflow/v2/conversation_datasets.rb +53 -0
  13. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +0 -1
  14. data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +205 -0
  15. data/lib/google/cloud/dialogflow/v2/conversation_model_services_pb.rb +98 -0
  16. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +1257 -0
  17. data/lib/google/cloud/dialogflow/v2/conversation_models/credentials.rb +52 -0
  18. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +767 -0
  19. data/lib/google/cloud/dialogflow/v2/conversation_models/paths.rb +179 -0
  20. data/lib/google/cloud/dialogflow/v2/conversation_models.rb +50 -0
  21. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +0 -1
  22. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +31 -1
  23. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +27 -0
  24. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +250 -0
  25. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +767 -0
  26. data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +31 -9
  27. data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +1 -0
  28. data/lib/google/cloud/dialogflow/v2/document_pb.rb +38 -0
  29. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +11 -0
  30. data/lib/google/cloud/dialogflow/v2/documents/client.rb +123 -0
  31. data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +4 -1
  32. data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +0 -1
  33. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +0 -2
  34. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +22 -3
  35. data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +3 -0
  36. data/lib/google/cloud/dialogflow/v2/participants/client.rb +113 -4
  37. data/lib/google/cloud/dialogflow/v2/session_pb.rb +0 -1
  38. data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +0 -1
  39. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  40. data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +0 -1
  41. data/lib/google/cloud/dialogflow/v2.rb +4 -0
  42. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +18 -0
  43. data/proto_docs/google/cloud/dialogflow/v2/conversation_dataset.rb +211 -0
  44. data/proto_docs/google/cloud/dialogflow/v2/conversation_model.rb +522 -0
  45. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +100 -2
  46. data/proto_docs/google/cloud/dialogflow/v2/document.rb +104 -0
  47. data/proto_docs/google/cloud/dialogflow/v2/gcs.rb +11 -0
  48. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +88 -6
  49. data/proto_docs/google/cloud/dialogflow/v2/session.rb +5 -0
  50. metadata +20 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62888f52211fe153212450eeea4fb0887edae78c58f11e7faae2ddda20948def
4
- data.tar.gz: 681defd6a49675b731528529fb2e4340236a4b4e313bbd34a68923f5cc51d198
3
+ metadata.gz: 0de483099dcae1e8b57baf836487a74ddda77d10d4bae0468278511ef60ebad5
4
+ data.tar.gz: 89e8b14bb31e002b7cd25c30bfaf54856db69f67750d29e59b72950cefaa062c
5
5
  SHA512:
6
- metadata.gz: 236925d5030cf45bbb34938cd7565e5d5db0d9b6758393a58a1ea16c96a86a7d7feaa3bab6f2320ef7a38ece5acc0708f9ac01474c4b127a295252739605c9ec
7
- data.tar.gz: e07664eaf7f723c31473c70e094584438699761be72ebc4679ddb6d5ce0016c075f0b0d00dbfafdc33a1a8eeb630d89300d45a2cbb57ca9ffe83e93209102285
6
+ metadata.gz: d4981db014bdcf1e6fe09e87cfa57aa31942f09732aa36115cd0cbb44b27b6381292c07de9a26559088b79a050e407451477e66674a5c2435a8bcc7bf808b075
7
+ data.tar.gz: c58813241f28f467fc3ebc5576e1c1fb8ecb5cd4d0448488639f687e754863662ba639024777a6187818eb5e66c5b7b2da830574499d65354ed8a71e3ff9dae9
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Dialogflow::V2::GetAgentRequest.new # (request fields
37
37
  response = client.get_agent request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/dialogflow)
@@ -671,6 +671,12 @@ module Google
671
671
  # The format of this URI must be `gs://<bucket-name>/<object-name>`.
672
672
  # If left unspecified, the serialized agent is returned inline.
673
673
  #
674
+ # Dialogflow performs a write operation for the Cloud Storage object
675
+ # on the caller's behalf, so your request authentication must
676
+ # have write permissions for the object. For more information, see
677
+ # [Dialogflow access
678
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
679
+ #
674
680
  # @yield [response, operation] Access the result along with the RPC operation
675
681
  # @yieldparam response [::Gapic::Operation]
676
682
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
@@ -791,6 +797,12 @@ module Google
791
797
  # @param agent_uri [::String]
792
798
  # The URI to a Google Cloud Storage file containing the agent to import.
793
799
  # Note: The URI must start with "gs://".
800
+ #
801
+ # Dialogflow performs a read operation for the Cloud Storage object
802
+ # on the caller's behalf, so your request authentication must
803
+ # have read permissions for the object. For more information, see
804
+ # [Dialogflow access
805
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
794
806
  # @param agent_content [::String]
795
807
  # Zip compressed raw byte content for agent.
796
808
  #
@@ -913,6 +925,12 @@ module Google
913
925
  # @param agent_uri [::String]
914
926
  # The URI to a Google Cloud Storage file containing the agent to restore.
915
927
  # Note: The URI must start with "gs://".
928
+ #
929
+ # Dialogflow performs a read operation for the Cloud Storage object
930
+ # on the caller's behalf, so your request authentication must
931
+ # have read permissions for the object. For more information, see
932
+ # [Dialogflow access
933
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
916
934
  # @param agent_content [::String]
917
935
  # Zip compressed raw byte content for agent.
918
936
  #
@@ -6,7 +6,6 @@ require 'google/api/client_pb'
6
6
  require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
8
  require 'google/cloud/dialogflow/v2/participant_pb'
9
- require 'google/protobuf/empty_pb'
10
9
  require 'google/protobuf/field_mask_pb'
11
10
  require 'google/protobuf/timestamp_pb'
12
11
  require 'google/protobuf'
@@ -4,8 +4,6 @@
4
4
  require 'google/api/field_behavior_pb'
5
5
  require 'google/api/resource_pb'
6
6
  require 'google/protobuf/duration_pb'
7
- require 'google/protobuf/timestamp_pb'
8
- require 'google/api/annotations_pb'
9
7
  require 'google/protobuf'
10
8
 
11
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -0,0 +1,92 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/dialogflow/v2/conversation_dataset.proto
3
+
4
+ require 'google/api/annotations_pb'
5
+ require 'google/api/client_pb'
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/cloud/dialogflow/v2/gcs_pb'
9
+ require 'google/longrunning/operations_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+ require 'google/rpc/status_pb'
12
+ require 'google/protobuf'
13
+
14
+ Google::Protobuf::DescriptorPool.generated_pool.build do
15
+ add_file("google/cloud/dialogflow/v2/conversation_dataset.proto", :syntax => :proto3) do
16
+ add_message "google.cloud.dialogflow.v2.ConversationInfo" do
17
+ optional :language_code, :string, 1
18
+ end
19
+ add_message "google.cloud.dialogflow.v2.InputConfig" do
20
+ oneof :source do
21
+ optional :gcs_source, :message, 1, "google.cloud.dialogflow.v2.GcsSources"
22
+ end
23
+ end
24
+ add_message "google.cloud.dialogflow.v2.ConversationDataset" do
25
+ optional :name, :string, 1
26
+ optional :display_name, :string, 2
27
+ optional :description, :string, 3
28
+ optional :create_time, :message, 4, "google.protobuf.Timestamp"
29
+ optional :input_config, :message, 5, "google.cloud.dialogflow.v2.InputConfig"
30
+ optional :conversation_info, :message, 6, "google.cloud.dialogflow.v2.ConversationInfo"
31
+ optional :conversation_count, :int64, 7
32
+ end
33
+ add_message "google.cloud.dialogflow.v2.CreateConversationDatasetRequest" do
34
+ optional :parent, :string, 1
35
+ optional :conversation_dataset, :message, 2, "google.cloud.dialogflow.v2.ConversationDataset"
36
+ end
37
+ add_message "google.cloud.dialogflow.v2.GetConversationDatasetRequest" do
38
+ optional :name, :string, 1
39
+ end
40
+ add_message "google.cloud.dialogflow.v2.ListConversationDatasetsRequest" do
41
+ optional :parent, :string, 1
42
+ optional :page_size, :int32, 2
43
+ optional :page_token, :string, 3
44
+ end
45
+ add_message "google.cloud.dialogflow.v2.ListConversationDatasetsResponse" do
46
+ repeated :conversation_datasets, :message, 1, "google.cloud.dialogflow.v2.ConversationDataset"
47
+ optional :next_page_token, :string, 2
48
+ end
49
+ add_message "google.cloud.dialogflow.v2.DeleteConversationDatasetRequest" do
50
+ optional :name, :string, 1
51
+ end
52
+ add_message "google.cloud.dialogflow.v2.ImportConversationDataRequest" do
53
+ optional :name, :string, 1
54
+ optional :input_config, :message, 2, "google.cloud.dialogflow.v2.InputConfig"
55
+ end
56
+ add_message "google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata" do
57
+ optional :conversation_dataset, :string, 1
58
+ repeated :partial_failures, :message, 2, "google.rpc.Status"
59
+ optional :create_time, :message, 3, "google.protobuf.Timestamp"
60
+ end
61
+ add_message "google.cloud.dialogflow.v2.ImportConversationDataOperationResponse" do
62
+ optional :conversation_dataset, :string, 1
63
+ optional :import_count, :int32, 3
64
+ end
65
+ add_message "google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata" do
66
+ end
67
+ add_message "google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata" do
68
+ end
69
+ end
70
+ end
71
+
72
+ module Google
73
+ module Cloud
74
+ module Dialogflow
75
+ module V2
76
+ ConversationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ConversationInfo").msgclass
77
+ InputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.InputConfig").msgclass
78
+ ConversationDataset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ConversationDataset").msgclass
79
+ CreateConversationDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CreateConversationDatasetRequest").msgclass
80
+ GetConversationDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GetConversationDatasetRequest").msgclass
81
+ ListConversationDatasetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListConversationDatasetsRequest").msgclass
82
+ ListConversationDatasetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListConversationDatasetsResponse").msgclass
83
+ DeleteConversationDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.DeleteConversationDatasetRequest").msgclass
84
+ ImportConversationDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ImportConversationDataRequest").msgclass
85
+ ImportConversationDataOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata").msgclass
86
+ ImportConversationDataOperationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ImportConversationDataOperationResponse").msgclass
87
+ CreateConversationDatasetOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata").msgclass
88
+ DeleteConversationDatasetOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata").msgclass
89
+ end
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,81 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/dialogflow/v2/conversation_dataset.proto for package 'google.cloud.dialogflow.v2'
3
+ # Original file comments:
4
+ # Copyright 2022 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/dialogflow/v2/conversation_dataset_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Dialogflow
25
+ module V2
26
+ module ConversationDatasets
27
+ # Conversation datasets.
28
+ #
29
+ # Conversation datasets contain raw conversation files and their
30
+ # customizable metadata that can be used for model training.
31
+ class Service
32
+
33
+ include ::GRPC::GenericService
34
+
35
+ self.marshal_class_method = :encode
36
+ self.unmarshal_class_method = :decode
37
+ self.service_name = 'google.cloud.dialogflow.v2.ConversationDatasets'
38
+
39
+ # Creates a new conversation dataset.
40
+ #
41
+ # This method is a [long-running
42
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
43
+ # The returned `Operation` type has the following method-specific fields:
44
+ #
45
+ # - `metadata`: [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata]
46
+ # - `response`: [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset]
47
+ rpc :CreateConversationDataset, ::Google::Cloud::Dialogflow::V2::CreateConversationDatasetRequest, ::Google::Longrunning::Operation
48
+ # Retrieves the specified conversation dataset.
49
+ rpc :GetConversationDataset, ::Google::Cloud::Dialogflow::V2::GetConversationDatasetRequest, ::Google::Cloud::Dialogflow::V2::ConversationDataset
50
+ # Returns the list of all conversation datasets in the specified
51
+ # project and location.
52
+ rpc :ListConversationDatasets, ::Google::Cloud::Dialogflow::V2::ListConversationDatasetsRequest, ::Google::Cloud::Dialogflow::V2::ListConversationDatasetsResponse
53
+ # Deletes the specified conversation dataset.
54
+ #
55
+ # This method is a [long-running
56
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
57
+ # The returned `Operation` type has the following method-specific fields:
58
+ #
59
+ # - `metadata`: [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata]
60
+ # - `response`: An [Empty
61
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
62
+ rpc :DeleteConversationDataset, ::Google::Cloud::Dialogflow::V2::DeleteConversationDatasetRequest, ::Google::Longrunning::Operation
63
+ # Import data into the specified conversation dataset. Note that it
64
+ # is not allowed to import data to a conversation dataset that
65
+ # already has data in it.
66
+ #
67
+ # This method is a [long-running
68
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
69
+ # The returned `Operation` type has the following method-specific fields:
70
+ #
71
+ # - `metadata`: [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata]
72
+ # - `response`: [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse]
73
+ rpc :ImportConversationData, ::Google::Cloud::Dialogflow::V2::ImportConversationDataRequest, ::Google::Longrunning::Operation
74
+ end
75
+
76
+ Stub = Service.rpc_stub_class
77
+ end
78
+ end
79
+ end
80
+ end
81
+ end