google-cloud-dialogflow-cx-v3 0.3.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +7 -25
  4. data/README.md +1 -1
  5. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +0 -2
  6. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +0 -1
  7. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +13 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +0 -2
  9. data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +0 -1
  10. data/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb +0 -2
  11. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +1 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +0 -1
  13. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +13 -0
  14. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +0 -2
  15. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +0 -2
  16. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +0 -1
  17. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +7 -1
  18. data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +0 -1
  19. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +1 -3
  20. data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +1 -0
  21. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +13 -0
  22. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +0 -2
  23. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  24. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +12 -5
  25. data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +2 -0
  26. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +110 -0
  27. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +2 -0
  28. data/lib/google/cloud/dialogflow/cx/v3.rb +4 -2
  29. data/proto_docs/google/api/resource.rb +10 -71
  30. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +12 -0
  31. data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +1 -1
  32. data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +12 -0
  33. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +15 -0
  34. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +12 -2
  35. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +3 -2
  36. data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +28 -1
  37. data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +43 -0
  38. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +17 -0
  39. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 647a465151383c26f0ae739d549df516a5c440724d8d85d06a70dc39c59e5b1a
4
- data.tar.gz: bdd0a39f3c07d4989b5a65fabc54e29ff5cf4a0591a15ff2bd883c82257139aa
3
+ metadata.gz: 62a8a51082300c837aea56ca47db06fab878d7f92855bafbeae16f942c8ee185
4
+ data.tar.gz: 56f0814b99f365f2c841a6634fd3f35a2b82445ecc21405a0c6ce5c7917ced65
5
5
  SHA512:
6
- metadata.gz: 76fd6117cdd2bfb8b4d9a9c776667f34c9fe219e59fa0f625ba6735287338d997f1409ce86017b08e0cbaf17cf2be3b3c931b8cd97bd222c0c1c1b975bb903f9
7
- data.tar.gz: 6c88d1b99a86141f1cde52e35b33c1d9fb6a3c56349d8cb2452feaf129ca07af748c9a51bee3fd552397c68b385fb683c649952fdf382450c50bf06826e16d9c
6
+ metadata.gz: 83a0d0acc63fad59bc25e513233204ba567283bbe6cec5e8f73f2a9e5b3c9e32660a4b0dabcc188b54e18215ae07e67553f324e47c55e9cdbb98ed82f89e2924
7
+ data.tar.gz: ddff91c59f8c13fbd5a669f05c5ec772c8e08509bef6676f06eb1235dd1b5002b82dc0ab37698fb45489a106f022c8924666452c4c5526c1d6aaa56a80639476
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Dialogflow CX V3 API
2
+ --title="Dialogflow CX V3 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Dialogflow::CX::V3::ListPagesRequest.new # (request f
37
37
  response = client.list_pages request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-dialogflow-cx-v3/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/dialogflow)
@@ -2,8 +2,6 @@
2
2
  # source: google/cloud/dialogflow/cx/v3/advanced_settings.proto
3
3
 
4
4
  require 'google/api/field_behavior_pb'
5
- require 'google/protobuf/duration_pb'
6
- require 'google/api/annotations_pb'
7
5
  require 'google/protobuf'
8
6
 
9
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -7,7 +7,6 @@ require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
8
  require 'google/cloud/dialogflow/cx/v3/advanced_settings_pb'
9
9
  require 'google/cloud/dialogflow/cx/v3/flow_pb'
10
- require 'google/cloud/dialogflow/cx/v3/security_settings_pb'
11
10
  require 'google/longrunning/operations_pb'
12
11
  require 'google/protobuf/empty_pb'
13
12
  require 'google/protobuf/field_mask_pb'
@@ -141,6 +141,7 @@ module Google
141
141
 
142
142
  @operations_client = Operations.new do |config|
143
143
  config.credentials = credentials
144
+ config.quota_project = @quota_project_id
144
145
  config.endpoint = @config.endpoint
145
146
  end
146
147
 
@@ -650,6 +651,12 @@ module Google
650
651
  # export the agent to. The format of this URI must be
651
652
  # `gs://<bucket-name>/<object-name>`.
652
653
  # If left unspecified, the serialized agent is returned inline.
654
+ #
655
+ # Dialogflow performs a write operation for the Cloud Storage object
656
+ # on the caller's behalf, so your request authentication must
657
+ # have write permissions for the object. For more information, see
658
+ # [Dialogflow access
659
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
653
660
  # @param environment [::String]
654
661
  # Optional. Environment name. If not set, draft environment is assumed.
655
662
  # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
@@ -768,6 +775,12 @@ module Google
768
775
  # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
769
776
  # to restore agent from. The format of this URI must be
770
777
  # `gs://<bucket-name>/<object-name>`.
778
+ #
779
+ # Dialogflow performs a read operation for the Cloud Storage object
780
+ # on the caller's behalf, so your request authentication must
781
+ # have read permissions for the object. For more information, see
782
+ # [Dialogflow access
783
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
771
784
  # @param agent_content [::String]
772
785
  # Uncompressed raw byte content for agent.
773
786
  # @param restore_option [::Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest::RestoreOption]
@@ -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
@@ -5,7 +5,6 @@ require 'google/api/annotations_pb'
5
5
  require 'google/api/client_pb'
6
6
  require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
- require 'google/protobuf/struct_pb'
9
8
  require 'google/protobuf/timestamp_pb'
10
9
  require 'google/protobuf'
11
10
 
@@ -5,8 +5,6 @@ require 'google/api/annotations_pb'
5
5
  require 'google/api/client_pb'
6
6
  require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
- require 'google/protobuf/empty_pb'
9
- require 'google/protobuf/field_mask_pb'
10
8
  require 'google/protobuf/timestamp_pb'
11
9
  require 'google/protobuf'
12
10
 
@@ -141,6 +141,7 @@ module Google
141
141
 
142
142
  @operations_client = Operations.new do |config|
143
143
  config.credentials = credentials
144
+ config.quota_project = @quota_project_id
144
145
  config.endpoint = @config.endpoint
145
146
  end
146
147
 
@@ -5,7 +5,6 @@ require 'google/api/annotations_pb'
5
5
  require 'google/api/client_pb'
6
6
  require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
- require 'google/cloud/dialogflow/cx/v3/advanced_settings_pb'
9
8
  require 'google/cloud/dialogflow/cx/v3/page_pb'
10
9
  require 'google/cloud/dialogflow/cx/v3/validation_message_pb'
11
10
  require 'google/longrunning/operations_pb'
@@ -141,6 +141,7 @@ module Google
141
141
 
142
142
  @operations_client = Operations.new do |config|
143
143
  config.credentials = credentials
144
+ config.quota_project = @quota_project_id
144
145
  config.endpoint = @config.endpoint
145
146
  end
146
147
 
@@ -1010,6 +1011,12 @@ module Google
1010
1011
  # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
1011
1012
  # to import flow from. The format of this URI must be
1012
1013
  # `gs://<bucket-name>/<object-name>`.
1014
+ #
1015
+ # Dialogflow performs a read operation for the Cloud Storage object
1016
+ # on the caller's behalf, so your request authentication must
1017
+ # have read permissions for the object. For more information, see
1018
+ # [Dialogflow access
1019
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
1013
1020
  # @param flow_content [::String]
1014
1021
  # Uncompressed raw byte content for flow.
1015
1022
  # @param import_option [::Google::Cloud::Dialogflow::CX::V3::ImportFlowRequest::ImportOption]
@@ -1125,6 +1132,12 @@ module Google
1125
1132
  # export the flow to. The format of this URI must be
1126
1133
  # `gs://<bucket-name>/<object-name>`.
1127
1134
  # If left unspecified, the serialized flow is returned inline.
1135
+ #
1136
+ # Dialogflow performs a write operation for the Cloud Storage object
1137
+ # on the caller's behalf, so your request authentication must
1138
+ # have write permissions for the object. For more information, see
1139
+ # [Dialogflow access
1140
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
1128
1141
  # @param include_referenced_flows [::Boolean]
1129
1142
  # Optional. Whether to export flows referenced by the specified flow.
1130
1143
  #
@@ -2,10 +2,8 @@
2
2
  # source: google/cloud/dialogflow/cx/v3/fulfillment.proto
3
3
 
4
4
  require 'google/api/resource_pb'
5
- require 'google/cloud/dialogflow/cx/v3/advanced_settings_pb'
6
5
  require 'google/cloud/dialogflow/cx/v3/response_message_pb'
7
6
  require 'google/protobuf/struct_pb'
8
- require 'google/api/annotations_pb'
9
7
  require 'google/protobuf'
10
8
 
11
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -5,10 +5,8 @@ require 'google/api/annotations_pb'
5
5
  require 'google/api/client_pb'
6
6
  require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
- require 'google/longrunning/operations_pb'
9
8
  require 'google/protobuf/empty_pb'
10
9
  require 'google/protobuf/field_mask_pb'
11
- require 'google/protobuf/timestamp_pb'
12
10
  require 'google/protobuf'
13
11
 
14
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -5,7 +5,6 @@ require 'google/api/annotations_pb'
5
5
  require 'google/api/client_pb'
6
6
  require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
- require 'google/cloud/dialogflow/cx/v3/advanced_settings_pb'
9
8
  require 'google/cloud/dialogflow/cx/v3/fulfillment_pb'
10
9
  require 'google/protobuf/empty_pb'
11
10
  require 'google/protobuf/field_mask_pb'
@@ -3,7 +3,6 @@
3
3
 
4
4
  require 'google/api/field_behavior_pb'
5
5
  require 'google/protobuf/struct_pb'
6
- require 'google/api/annotations_pb'
7
6
  require 'google/protobuf'
8
7
 
9
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -18,6 +17,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
17
  optional :end_interaction, :message, 11, "google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction"
19
18
  optional :play_audio, :message, 12, "google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio"
20
19
  optional :mixed_audio, :message, 13, "google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio"
20
+ optional :telephony_transfer_call, :message, 18, "google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall"
21
21
  end
22
22
  end
23
23
  add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.Text" do
@@ -53,6 +53,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
53
53
  optional :uri, :string, 2
54
54
  end
55
55
  end
56
+ add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall" do
57
+ oneof :endpoint do
58
+ optional :phone_number, :string, 1
59
+ end
60
+ end
56
61
  end
57
62
  end
58
63
 
@@ -70,6 +75,7 @@ module Google
70
75
  ResponseMessage::PlayAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio").msgclass
71
76
  ResponseMessage::MixedAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio").msgclass
72
77
  ResponseMessage::MixedAudio::Segment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment").msgclass
78
+ ResponseMessage::TelephonyTransferCall = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall").msgclass
73
79
  end
74
80
  end
75
81
  end
@@ -5,7 +5,6 @@ require 'google/api/annotations_pb'
5
5
  require 'google/api/client_pb'
6
6
  require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
- require 'google/longrunning/operations_pb'
9
8
  require 'google/protobuf/empty_pb'
10
9
  require 'google/protobuf/field_mask_pb'
11
10
  require 'google/protobuf'
@@ -2,11 +2,10 @@
2
2
  # source: google/cloud/dialogflow/cx/v3/session.proto
3
3
 
4
4
  require 'google/api/annotations_pb'
5
+ require 'google/api/client_pb'
5
6
  require 'google/api/field_behavior_pb'
6
7
  require 'google/api/resource_pb'
7
- require 'google/cloud/dialogflow/cx/v3/advanced_settings_pb'
8
8
  require 'google/cloud/dialogflow/cx/v3/audio_config_pb'
9
- require 'google/cloud/dialogflow/cx/v3/flow_pb'
10
9
  require 'google/cloud/dialogflow/cx/v3/intent_pb'
11
10
  require 'google/cloud/dialogflow/cx/v3/page_pb'
12
11
  require 'google/cloud/dialogflow/cx/v3/response_message_pb'
@@ -15,7 +14,6 @@ require 'google/protobuf/duration_pb'
15
14
  require 'google/protobuf/struct_pb'
16
15
  require 'google/rpc/status_pb'
17
16
  require 'google/type/latlng_pb'
18
- require 'google/api/client_pb'
19
17
  require 'google/protobuf'
20
18
 
21
19
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -41,6 +41,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
41
41
  add_message "google.cloud.dialogflow.cx.v3.TestConfig" do
42
42
  repeated :tracking_parameters, :string, 1
43
43
  optional :flow, :string, 2
44
+ optional :page, :string, 3
44
45
  end
45
46
  add_message "google.cloud.dialogflow.cx.v3.ConversationTurn" do
46
47
  optional :user_input, :message, 1, "google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput"
@@ -142,6 +142,7 @@ module Google
142
142
 
143
143
  @operations_client = Operations.new do |config|
144
144
  config.credentials = credentials
145
+ config.quota_project = @quota_project_id
145
146
  config.endpoint = @config.endpoint
146
147
  end
147
148
 
@@ -952,6 +953,12 @@ module Google
952
953
  # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
953
954
  # to import test cases from. The format of this URI must be
954
955
  # `gs://<bucket-name>/<object-name>`.
956
+ #
957
+ # Dialogflow performs a read operation for the Cloud Storage object
958
+ # on the caller's behalf, so your request authentication must
959
+ # have read permissions for the object. For more information, see
960
+ # [Dialogflow access
961
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
955
962
  # @param content [::String]
956
963
  # Uncompressed raw byte content for test cases.
957
964
  #
@@ -1061,6 +1068,12 @@ module Google
1061
1068
  # export the test cases to. The format of this URI must be
1062
1069
  # `gs://<bucket-name>/<object-name>`. If unspecified, the serialized test
1063
1070
  # cases is returned inline.
1071
+ #
1072
+ # Dialogflow performs a write operation for the Cloud Storage object
1073
+ # on the caller's behalf, so your request authentication must
1074
+ # have write permissions for the object. For more information, see
1075
+ # [Dialogflow access
1076
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
1064
1077
  # @param data_format [::Google::Cloud::Dialogflow::CX::V3::ExportTestCasesRequest::DataFormat]
1065
1078
  # The data format of the exported test cases. If not specified, `BLOB` is
1066
1079
  # assumed.
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/validation_message.proto
3
3
 
4
- require 'google/protobuf/struct_pb'
5
- require 'google/api/annotations_pb'
6
4
  require 'google/protobuf'
7
5
 
8
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -22,7 +22,7 @@ module Google
22
22
  module Dialogflow
23
23
  module CX
24
24
  module V3
25
- VERSION = "0.3.1"
25
+ VERSION = "0.6.0"
26
26
  end
27
27
  end
28
28
  end
@@ -5,12 +5,7 @@ require 'google/api/annotations_pb'
5
5
  require 'google/api/client_pb'
6
6
  require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
- require 'google/cloud/dialogflow/cx/v3/entity_type_pb'
9
8
  require 'google/cloud/dialogflow/cx/v3/flow_pb'
10
- require 'google/cloud/dialogflow/cx/v3/intent_pb'
11
- require 'google/cloud/dialogflow/cx/v3/page_pb'
12
- require 'google/cloud/dialogflow/cx/v3/transition_route_group_pb'
13
- require 'google/cloud/dialogflow/cx/v3/webhook_pb'
14
9
  require 'google/longrunning/operations_pb'
15
10
  require 'google/protobuf/empty_pb'
16
11
  require 'google/protobuf/field_mask_pb'
@@ -63,6 +58,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
63
58
  optional :name, :string, 1
64
59
  optional :allow_override_agent_resources, :bool, 2
65
60
  end
61
+ add_message "google.cloud.dialogflow.cx.v3.CompareVersionsRequest" do
62
+ optional :base_version, :string, 1
63
+ optional :target_version, :string, 2
64
+ optional :language_code, :string, 3
65
+ end
66
+ add_message "google.cloud.dialogflow.cx.v3.CompareVersionsResponse" do
67
+ optional :base_version_content_json, :string, 1
68
+ optional :target_version_content_json, :string, 2
69
+ optional :compare_time, :message, 3, "google.protobuf.Timestamp"
70
+ end
66
71
  end
67
72
  end
68
73
 
@@ -81,6 +86,8 @@ module Google
81
86
  UpdateVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.UpdateVersionRequest").msgclass
82
87
  DeleteVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DeleteVersionRequest").msgclass
83
88
  LoadVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.LoadVersionRequest").msgclass
89
+ CompareVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.CompareVersionsRequest").msgclass
90
+ CompareVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.CompareVersionsResponse").msgclass
84
91
  end
85
92
  end
86
93
  end
@@ -62,6 +62,8 @@ module Google
62
62
  # - `response`: An [Empty
63
63
  # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
64
64
  rpc :LoadVersion, ::Google::Cloud::Dialogflow::CX::V3::LoadVersionRequest, ::Google::Longrunning::Operation
65
+ # Compares the specified base version with target version.
66
+ rpc :CompareVersions, ::Google::Cloud::Dialogflow::CX::V3::CompareVersionsRequest, ::Google::Cloud::Dialogflow::CX::V3::CompareVersionsResponse
65
67
  end
66
68
 
67
69
  Stub = Service.rpc_stub_class
@@ -141,6 +141,7 @@ module Google
141
141
 
142
142
  @operations_client = Operations.new do |config|
143
143
  config.credentials = credentials
144
+ config.quota_project = @quota_project_id
144
145
  config.endpoint = @config.endpoint
145
146
  end
146
147
 
@@ -736,6 +737,108 @@ module Google
736
737
  raise ::Google::Cloud::Error.from_error(e)
737
738
  end
738
739
 
740
+ ##
741
+ # Compares the specified base version with target version.
742
+ #
743
+ # @overload compare_versions(request, options = nil)
744
+ # Pass arguments to `compare_versions` via a request object, either of type
745
+ # {::Google::Cloud::Dialogflow::CX::V3::CompareVersionsRequest} or an equivalent Hash.
746
+ #
747
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::CompareVersionsRequest, ::Hash]
748
+ # A request object representing the call parameters. Required. To specify no
749
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
750
+ # @param options [::Gapic::CallOptions, ::Hash]
751
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
752
+ #
753
+ # @overload compare_versions(base_version: nil, target_version: nil, language_code: nil)
754
+ # Pass arguments to `compare_versions` via keyword arguments. Note that at
755
+ # least one keyword argument is required. To specify no parameters, or to keep all
756
+ # the default parameter values, pass an empty Hash as a request object (see above).
757
+ #
758
+ # @param base_version [::String]
759
+ # Required. Name of the base flow version to compare with the target version. Use
760
+ # version ID `0` to indicate the draft version of the specified flow.
761
+ #
762
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/
763
+ # <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
764
+ # @param target_version [::String]
765
+ # Required. Name of the target flow version to compare with the
766
+ # base version. Use version ID `0` to indicate the draft version of the
767
+ # specified flow. Format: `projects/<Project ID>/locations/<Location
768
+ # ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
769
+ # @param language_code [::String]
770
+ # The language to compare the flow versions for.
771
+ #
772
+ # If not specified, the agent's default language is used.
773
+ # [Many
774
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
775
+ # supported. Note: languages must be enabled in the agent before they can be
776
+ # used.
777
+ #
778
+ # @yield [response, operation] Access the result along with the RPC operation
779
+ # @yieldparam response [::Google::Cloud::Dialogflow::CX::V3::CompareVersionsResponse]
780
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
781
+ #
782
+ # @return [::Google::Cloud::Dialogflow::CX::V3::CompareVersionsResponse]
783
+ #
784
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
785
+ #
786
+ # @example Basic example
787
+ # require "google/cloud/dialogflow/cx/v3"
788
+ #
789
+ # # Create a client object. The client can be reused for multiple calls.
790
+ # client = Google::Cloud::Dialogflow::CX::V3::Versions::Client.new
791
+ #
792
+ # # Create a request. To set request fields, pass in keyword arguments.
793
+ # request = Google::Cloud::Dialogflow::CX::V3::CompareVersionsRequest.new
794
+ #
795
+ # # Call the compare_versions method.
796
+ # result = client.compare_versions request
797
+ #
798
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::CompareVersionsResponse.
799
+ # p result
800
+ #
801
+ def compare_versions request, options = nil
802
+ raise ::ArgumentError, "request must be provided" if request.nil?
803
+
804
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::CompareVersionsRequest
805
+
806
+ # Converts hash and nil to an options object
807
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
808
+
809
+ # Customize the options with defaults
810
+ metadata = @config.rpcs.compare_versions.metadata.to_h
811
+
812
+ # Set x-goog-api-client and x-goog-user-project headers
813
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
814
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
815
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
816
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
817
+
818
+ header_params = {}
819
+ if request.base_version
820
+ header_params["base_version"] = request.base_version
821
+ end
822
+
823
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
824
+ metadata[:"x-goog-request-params"] ||= request_params_header
825
+
826
+ options.apply_defaults timeout: @config.rpcs.compare_versions.timeout,
827
+ metadata: metadata,
828
+ retry_policy: @config.rpcs.compare_versions.retry_policy
829
+
830
+ options.apply_defaults timeout: @config.timeout,
831
+ metadata: @config.metadata,
832
+ retry_policy: @config.retry_policy
833
+
834
+ @versions_stub.call_rpc :compare_versions, request, options: options do |response, operation|
835
+ yield response, operation if block_given?
836
+ return response
837
+ end
838
+ rescue ::GRPC::BadStatus => e
839
+ raise ::Google::Cloud::Error.from_error(e)
840
+ end
841
+
739
842
  ##
740
843
  # Configuration class for the Versions API.
741
844
  #
@@ -901,6 +1004,11 @@ module Google
901
1004
  # @return [::Gapic::Config::Method]
902
1005
  #
903
1006
  attr_reader :load_version
1007
+ ##
1008
+ # RPC-specific configuration for `compare_versions`
1009
+ # @return [::Gapic::Config::Method]
1010
+ #
1011
+ attr_reader :compare_versions
904
1012
 
905
1013
  # @private
906
1014
  def initialize parent_rpcs = nil
@@ -916,6 +1024,8 @@ module Google
916
1024
  @delete_version = ::Gapic::Config::Method.new delete_version_config
917
1025
  load_version_config = parent_rpcs.load_version if parent_rpcs.respond_to? :load_version
918
1026
  @load_version = ::Gapic::Config::Method.new load_version_config
1027
+ compare_versions_config = parent_rpcs.compare_versions if parent_rpcs.respond_to? :compare_versions
1028
+ @compare_versions = ::Gapic::Config::Method.new compare_versions_config
919
1029
 
920
1030
  yield self if block_given?
921
1031
  end
@@ -29,6 +29,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
29
29
  optional :username, :string, 2
30
30
  optional :password, :string, 3
31
31
  map :request_headers, :string, :string, 4
32
+ repeated :allowed_ca_certs, :bytes, 5
32
33
  end
33
34
  add_message "google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig" do
34
35
  optional :service, :string, 1
@@ -113,6 +114,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
113
114
  end
114
115
  add_message "google.cloud.dialogflow.cx.v3.PageInfo" do
115
116
  optional :current_page, :string, 1
117
+ optional :display_name, :string, 4
116
118
  optional :form_info, :message, 3, "google.cloud.dialogflow.cx.v3.PageInfo.FormInfo"
117
119
  end
118
120
  add_message "google.cloud.dialogflow.cx.v3.PageInfo.FormInfo" do
@@ -18,7 +18,6 @@
18
18
 
19
19
  require "google/cloud/dialogflow/cx/v3/pages"
20
20
  require "google/cloud/dialogflow/cx/v3/flows"
21
- require "google/cloud/dialogflow/cx/v3/security_settings_service"
22
21
  require "google/cloud/dialogflow/cx/v3/agents"
23
22
  require "google/cloud/dialogflow/cx/v3/changelogs"
24
23
  require "google/cloud/dialogflow/cx/v3/deployments"
@@ -30,8 +29,9 @@ require "google/cloud/dialogflow/cx/v3/transition_route_groups"
30
29
  require "google/cloud/dialogflow/cx/v3/test_cases"
31
30
  require "google/cloud/dialogflow/cx/v3/environments"
32
31
  require "google/cloud/dialogflow/cx/v3/experiments"
33
- require "google/cloud/dialogflow/cx/v3/webhooks"
32
+ require "google/cloud/dialogflow/cx/v3/security_settings_service"
34
33
  require "google/cloud/dialogflow/cx/v3/versions"
34
+ require "google/cloud/dialogflow/cx/v3/webhooks"
35
35
  require "google/cloud/dialogflow/cx/v3/version"
36
36
 
37
37
  module Google
@@ -41,6 +41,8 @@ module Google
41
41
  ##
42
42
  # To load this package, including all its services, and instantiate a client:
43
43
  #
44
+ # @example
45
+ #
44
46
  # require "google/cloud/dialogflow/cx/v3"
45
47
  # client = ::Google::Cloud::Dialogflow::CX::V3::Pages::Client.new
46
48
  #
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -195,6 +195,12 @@ module Google
195
195
  # export the agent to. The format of this URI must be
196
196
  # `gs://<bucket-name>/<object-name>`.
197
197
  # If left unspecified, the serialized agent is returned inline.
198
+ #
199
+ # Dialogflow performs a write operation for the Cloud Storage object
200
+ # on the caller's behalf, so your request authentication must
201
+ # have write permissions for the object. For more information, see
202
+ # [Dialogflow access
203
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
198
204
  # @!attribute [rw] environment
199
205
  # @return [::String]
200
206
  # Optional. Environment name. If not set, draft environment is assumed.
@@ -228,6 +234,12 @@ module Google
228
234
  # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
229
235
  # to restore agent from. The format of this URI must be
230
236
  # `gs://<bucket-name>/<object-name>`.
237
+ #
238
+ # Dialogflow performs a read operation for the Cloud Storage object
239
+ # on the caller's behalf, so your request authentication must
240
+ # have read permissions for the object. For more information, see
241
+ # [Dialogflow access
242
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
231
243
  # @!attribute [rw] agent_content
232
244
  # @return [::String]
233
245
  # Uncompressed raw byte content for agent.
@@ -78,7 +78,7 @@ module Google
78
78
  # @!attribute [rw] enable_continuous_run
79
79
  # @return [::Boolean]
80
80
  # Whether to run test cases in {::Google::Cloud::Dialogflow::CX::V3::Environment::TestCasesConfig#test_cases TestCasesConfig.test_cases} periodically.
81
- # Default false. If set to ture, run once a day.
81
+ # Default false. If set to true, run once a day.
82
82
  # @!attribute [rw] enable_predeployment_run
83
83
  # @return [::Boolean]
84
84
  # Whether to run test cases in {::Google::Cloud::Dialogflow::CX::V3::Environment::TestCasesConfig#test_cases TestCasesConfig.test_cases} before
@@ -361,6 +361,12 @@ module Google
361
361
  # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
362
362
  # to import flow from. The format of this URI must be
363
363
  # `gs://<bucket-name>/<object-name>`.
364
+ #
365
+ # Dialogflow performs a read operation for the Cloud Storage object
366
+ # on the caller's behalf, so your request authentication must
367
+ # have read permissions for the object. For more information, see
368
+ # [Dialogflow access
369
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
364
370
  # @!attribute [rw] flow_content
365
371
  # @return [::String]
366
372
  # Uncompressed raw byte content for flow.
@@ -411,6 +417,12 @@ module Google
411
417
  # export the flow to. The format of this URI must be
412
418
  # `gs://<bucket-name>/<object-name>`.
413
419
  # If left unspecified, the serialized flow is returned inline.
420
+ #
421
+ # Dialogflow performs a write operation for the Cloud Storage object
422
+ # on the caller's behalf, so your request authentication must
423
+ # have write permissions for the object. For more information, see
424
+ # [Dialogflow access
425
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
414
426
  # @!attribute [rw] include_referenced_flows
415
427
  # @return [::Boolean]
416
428
  # Optional. Whether to export flows referenced by the specified flow.
@@ -76,6 +76,10 @@ module Google
76
76
  # {::Google::Cloud::Dialogflow::CX::V3::ResponseMessage#play_audio play_audio}.
77
77
  # This message is generated by Dialogflow only and not supposed to be
78
78
  # defined by the user.
79
+ # @!attribute [rw] telephony_transfer_call
80
+ # @return [::Google::Cloud::Dialogflow::CX::V3::ResponseMessage::TelephonyTransferCall]
81
+ # A signal that the client should transfer the phone call connected to
82
+ # this agent to a third-party endpoint.
79
83
  class ResponseMessage
80
84
  include ::Google::Protobuf::MessageExts
81
85
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -212,6 +216,17 @@ module Google
212
216
  extend ::Google::Protobuf::MessageExts::ClassMethods
213
217
  end
214
218
  end
219
+
220
+ # Represents the signal that telles the client to transfer the phone call
221
+ # connected to the agent to a third-party endpoint.
222
+ # @!attribute [rw] phone_number
223
+ # @return [::String]
224
+ # Transfer the call to a phone number
225
+ # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
226
+ class TelephonyTransferCall
227
+ include ::Google::Protobuf::MessageExts
228
+ extend ::Google::Protobuf::MessageExts::ClassMethods
229
+ end
215
230
  end
216
231
  end
217
232
  end
@@ -129,6 +129,11 @@ module Google
129
129
  # [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
130
130
  # template to define inspect base settings.
131
131
  #
132
+ # The `DLP Inspect Templates Reader` role is needed on the Dialogflow
133
+ # service identity service account (has the form
134
+ # `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
135
+ # for your agent's project.
136
+ #
132
137
  # If empty, we use the default DLP inspect config.
133
138
  #
134
139
  # The template name will have one of the following formats:
@@ -143,6 +148,11 @@ module Google
143
148
  # [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
144
149
  # template to define de-identification configuration for the content.
145
150
  #
151
+ # The `DLP De-identify Templates Reader` role is needed on the Dialogflow
152
+ # service identity service account (has the form
153
+ # `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
154
+ # for your agent's project.
155
+ #
146
156
  # If empty, Dialogflow replaces sensitive info with `[redacted]` text.
147
157
  #
148
158
  # The template name will have one of the following formats:
@@ -157,7 +167,7 @@ module Google
157
167
  # Retains data in interaction logging for the specified number of days.
158
168
  # This does not apply to Cloud logging, which is owned by the user - not
159
169
  # Dialogflow.
160
- # User must Set a value lower than Dialogflow's default 30d TTL. Setting a
170
+ # User must set a value lower than Dialogflow's default 365d TTL. Setting a
161
171
  # value higher than that has no effect.
162
172
  # A missing value or setting to 0 also means we use Dialogflow's default
163
173
  # TTL.
@@ -178,7 +188,7 @@ module Google
178
188
  extend ::Google::Protobuf::MessageExts::ClassMethods
179
189
 
180
190
  # Settings for exporting conversations to
181
- # [Insights](https://cloud.google.com/dialogflow/priv/docs/insights).
191
+ # [Insights](https://cloud.google.com/contact-center/insights/docs).
182
192
  # @!attribute [rw] enable_insights_export
183
193
  # @return [::Boolean]
184
194
  # If enabled, we will automatically exports
@@ -624,8 +624,9 @@ module Google
624
624
  # filled for {::Google::Cloud::Dialogflow::CX::V3::Match::MatchType `INTENT`} match type.
625
625
  # @!attribute [rw] event
626
626
  # @return [::String]
627
- # The event that matched the query. Only filled for
628
- # {::Google::Cloud::Dialogflow::CX::V3::Match::MatchType `EVENT`} match type.
627
+ # The event that matched the query. Filled for
628
+ # {::Google::Cloud::Dialogflow::CX::V3::Match::MatchType `EVENT`}, {::Google::Cloud::Dialogflow::CX::V3::Match::MatchType `NO_MATCH`} and
629
+ # {::Google::Cloud::Dialogflow::CX::V3::Match::MatchType `NO_INPUT`} match types.
629
630
  # @!attribute [rw] parameters
630
631
  # @return [::Google::Protobuf::Struct]
631
632
  # The collection of parameters extracted from the query.
@@ -91,9 +91,24 @@ module Google
91
91
  # Session parameters to be compared when calculating differences.
92
92
  # @!attribute [rw] flow
93
93
  # @return [::String]
94
- # Flow name. If not set, default start flow is assumed.
94
+ # Flow name to start the test case with.
95
95
  # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
96
96
  # ID>/flows/<Flow ID>`.
97
+ #
98
+ # Only one of `flow` and `page` should be set to indicate the starting point
99
+ # of the test case. If both are set, `page` takes precedence over `flow`. If
100
+ # neither is set, the test case will start with start page on the default
101
+ # start flow.
102
+ # @!attribute [rw] page
103
+ # @return [::String]
104
+ # The {::Google::Cloud::Dialogflow::CX::V3::Page page} to start the test case with.
105
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
106
+ # ID>/flows/<Flow ID>/pages/<Page ID>`.
107
+ #
108
+ # Only one of `flow` and `page` should be set to indicate the starting point
109
+ # of the test case. If both are set, `page` takes precedence over `flow`. If
110
+ # neither is set, the test case will start with start page on the default
111
+ # start flow.
97
112
  class TestConfig
98
113
  include ::Google::Protobuf::MessageExts
99
114
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -565,6 +580,12 @@ module Google
565
580
  # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
566
581
  # to import test cases from. The format of this URI must be
567
582
  # `gs://<bucket-name>/<object-name>`.
583
+ #
584
+ # Dialogflow performs a read operation for the Cloud Storage object
585
+ # on the caller's behalf, so your request authentication must
586
+ # have read permissions for the object. For more information, see
587
+ # [Dialogflow access
588
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
568
589
  # @!attribute [rw] content
569
590
  # @return [::String]
570
591
  # Uncompressed raw byte content for test cases.
@@ -617,6 +638,12 @@ module Google
617
638
  # export the test cases to. The format of this URI must be
618
639
  # `gs://<bucket-name>/<object-name>`. If unspecified, the serialized test
619
640
  # cases is returned inline.
641
+ #
642
+ # Dialogflow performs a write operation for the Cloud Storage object
643
+ # on the caller's behalf, so your request authentication must
644
+ # have write permissions for the object. For more information, see
645
+ # [Dialogflow access
646
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
620
647
  # @!attribute [rw] data_format
621
648
  # @return [::Google::Cloud::Dialogflow::CX::V3::ExportTestCasesRequest::DataFormat]
622
649
  # The data format of the exported test cases. If not specified, `BLOB` is
@@ -175,6 +175,49 @@ module Google
175
175
  include ::Google::Protobuf::MessageExts
176
176
  extend ::Google::Protobuf::MessageExts::ClassMethods
177
177
  end
178
+
179
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Versions::Client#compare_versions Versions.CompareVersions}.
180
+ # @!attribute [rw] base_version
181
+ # @return [::String]
182
+ # Required. Name of the base flow version to compare with the target version. Use
183
+ # version ID `0` to indicate the draft version of the specified flow.
184
+ #
185
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/
186
+ # <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
187
+ # @!attribute [rw] target_version
188
+ # @return [::String]
189
+ # Required. Name of the target flow version to compare with the
190
+ # base version. Use version ID `0` to indicate the draft version of the
191
+ # specified flow. Format: `projects/<Project ID>/locations/<Location
192
+ # ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
193
+ # @!attribute [rw] language_code
194
+ # @return [::String]
195
+ # The language to compare the flow versions for.
196
+ #
197
+ # If not specified, the agent's default language is used.
198
+ # [Many
199
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
200
+ # supported. Note: languages must be enabled in the agent before they can be
201
+ # used.
202
+ class CompareVersionsRequest
203
+ include ::Google::Protobuf::MessageExts
204
+ extend ::Google::Protobuf::MessageExts::ClassMethods
205
+ end
206
+
207
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::Versions::Client#compare_versions Versions.CompareVersions}.
208
+ # @!attribute [rw] base_version_content_json
209
+ # @return [::String]
210
+ # JSON representation of the base version content.
211
+ # @!attribute [rw] target_version_content_json
212
+ # @return [::String]
213
+ # JSON representation of the target version content.
214
+ # @!attribute [rw] compare_time
215
+ # @return [::Google::Protobuf::Timestamp]
216
+ # The timestamp when the two version compares.
217
+ class CompareVersionsResponse
218
+ include ::Google::Protobuf::MessageExts
219
+ extend ::Google::Protobuf::MessageExts::ClassMethods
220
+ end
178
221
  end
179
222
  end
180
223
  end
@@ -69,6 +69,19 @@ module Google
69
69
  # @return [::Google::Protobuf::Map{::String => ::String}]
70
70
  # The HTTP request headers to send together with webhook
71
71
  # requests.
72
+ # @!attribute [rw] allowed_ca_certs
73
+ # @return [::Array<::String>]
74
+ # Optional. Specifies a list of allowed custom CA certificates (in DER format) for
75
+ # HTTPS verification. This overrides the default SSL trust store. If this
76
+ # is empty or unspecified, Dialogflow will use Google's default trust store
77
+ # to verify certificates.
78
+ # N.B. Make sure the HTTPS server certificates are signed with "subject alt
79
+ # name". For instance a certificate can be self-signed using the following
80
+ # command,
81
+ # openssl x509 -req -days 200 -in example.com.csr \
82
+ # -signkey example.com.key \
83
+ # -out example.com.crt \
84
+ # -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
72
85
  class GenericWebService
73
86
  include ::Google::Protobuf::MessageExts
74
87
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -386,6 +399,10 @@ module Google
386
399
  # The unique identifier of the current page.
387
400
  # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
388
401
  # ID>/flows/<Flow ID>/pages/<Page ID>`.
402
+ # @!attribute [rw] display_name
403
+ # @return [::String]
404
+ # Always present for {::Google::Cloud::Dialogflow::CX::V3::WebhookRequest WebhookRequest}. Ignored for {::Google::Cloud::Dialogflow::CX::V3::WebhookResponse WebhookResponse}.
405
+ # The display name of the current page.
389
406
  # @!attribute [rw] form_info
390
407
  # @return [::Google::Cloud::Dialogflow::CX::V3::PageInfo::FormInfo]
391
408
  # Optional for both {::Google::Cloud::Dialogflow::CX::V3::WebhookRequest WebhookRequest} and {::Google::Cloud::Dialogflow::CX::V3::WebhookResponse WebhookResponse}.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow-cx-v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.6.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: 2021-11-08 00:00:00.000000000 Z
11
+ date: 2022-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -335,7 +335,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
335
335
  - !ruby/object:Gem::Version
336
336
  version: '0'
337
337
  requirements: []
338
- rubygems_version: 3.2.17
338
+ rubygems_version: 3.3.5
339
339
  signing_key:
340
340
  specification_version: 4
341
341
  summary: API Client library for the Dialogflow CX V3 API