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

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 647a465151383c26f0ae739d549df516a5c440724d8d85d06a70dc39c59e5b1a
4
- data.tar.gz: bdd0a39f3c07d4989b5a65fabc54e29ff5cf4a0591a15ff2bd883c82257139aa
3
+ metadata.gz: fae7b6df61618ef1bedad366afbe94b2514144c935f8e451e8ccf824a8beac7c
4
+ data.tar.gz: ef40b9845fd7c8d9d76a7bd616ce5e0739d2e18575d2cad586990aac486eeb82
5
5
  SHA512:
6
- metadata.gz: 76fd6117cdd2bfb8b4d9a9c776667f34c9fe219e59fa0f625ba6735287338d997f1409ce86017b08e0cbaf17cf2be3b3c931b8cd97bd222c0c1c1b975bb903f9
7
- data.tar.gz: 6c88d1b99a86141f1cde52e35b33c1d9fb6a3c56349d8cb2452feaf129ca07af748c9a51bee3fd552397c68b385fb683c649952fdf382450c50bf06826e16d9c
6
+ metadata.gz: c7270ca47ecb593e5711fed092a94f823076bd7c558f2afa6d74b3e1c73f632b13ac7af09fffce83301fd6d5d92a275af2e90b3a9098852395d969bd3a310036
7
+ data.tar.gz: 04253c5e798cda18abd9671ae04bae1b1b41e8545623923c79eb38ca712f7cbb8ba0c31b1ebdc278d76f504c116cb367900ae6e6a5ff739831523add351f7133
@@ -6,6 +6,7 @@ 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/cx/v3/test_case_pb'
9
+ require 'google/cloud/dialogflow/cx/v3/webhook_pb'
9
10
  require 'google/longrunning/operations_pb'
10
11
  require 'google/protobuf/empty_pb'
11
12
  require 'google/protobuf/field_mask_pb'
@@ -18,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
18
  optional :end_interaction, :message, 11, "google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction"
19
19
  optional :play_audio, :message, 12, "google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio"
20
20
  optional :mixed_audio, :message, 13, "google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio"
21
+ optional :telephony_transfer_call, :message, 18, "google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall"
21
22
  end
22
23
  end
23
24
  add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.Text" do
@@ -53,6 +54,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
53
54
  optional :uri, :string, 2
54
55
  end
55
56
  end
57
+ add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall" do
58
+ oneof :endpoint do
59
+ optional :phone_number, :string, 1
60
+ end
61
+ end
56
62
  end
57
63
  end
58
64
 
@@ -70,6 +76,7 @@ module Google
70
76
  ResponseMessage::PlayAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio").msgclass
71
77
  ResponseMessage::MixedAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio").msgclass
72
78
  ResponseMessage::MixedAudio::Segment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment").msgclass
79
+ ResponseMessage::TelephonyTransferCall = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall").msgclass
73
80
  end
74
81
  end
75
82
  end
@@ -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.4.0"
26
26
  end
27
27
  end
28
28
  end
@@ -63,6 +63,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
63
63
  optional :name, :string, 1
64
64
  optional :allow_override_agent_resources, :bool, 2
65
65
  end
66
+ add_message "google.cloud.dialogflow.cx.v3.CompareVersionsRequest" do
67
+ optional :base_version, :string, 1
68
+ optional :target_version, :string, 2
69
+ optional :language_code, :string, 3
70
+ end
71
+ add_message "google.cloud.dialogflow.cx.v3.CompareVersionsResponse" do
72
+ optional :base_version_content_json, :string, 1
73
+ optional :target_version_content_json, :string, 2
74
+ optional :compare_time, :message, 3, "google.protobuf.Timestamp"
75
+ end
66
76
  end
67
77
  end
68
78
 
@@ -81,6 +91,8 @@ module Google
81
91
  UpdateVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.UpdateVersionRequest").msgclass
82
92
  DeleteVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DeleteVersionRequest").msgclass
83
93
  LoadVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.LoadVersionRequest").msgclass
94
+ CompareVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.CompareVersionsRequest").msgclass
95
+ CompareVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.CompareVersionsResponse").msgclass
84
96
  end
85
97
  end
86
98
  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
@@ -736,6 +736,108 @@ module Google
736
736
  raise ::Google::Cloud::Error.from_error(e)
737
737
  end
738
738
 
739
+ ##
740
+ # Compares the specified base version with target version.
741
+ #
742
+ # @overload compare_versions(request, options = nil)
743
+ # Pass arguments to `compare_versions` via a request object, either of type
744
+ # {::Google::Cloud::Dialogflow::CX::V3::CompareVersionsRequest} or an equivalent Hash.
745
+ #
746
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::CompareVersionsRequest, ::Hash]
747
+ # A request object representing the call parameters. Required. To specify no
748
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
749
+ # @param options [::Gapic::CallOptions, ::Hash]
750
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
751
+ #
752
+ # @overload compare_versions(base_version: nil, target_version: nil, language_code: nil)
753
+ # Pass arguments to `compare_versions` via keyword arguments. Note that at
754
+ # least one keyword argument is required. To specify no parameters, or to keep all
755
+ # the default parameter values, pass an empty Hash as a request object (see above).
756
+ #
757
+ # @param base_version [::String]
758
+ # Required. Name of the base flow version to compare with the target version. Use
759
+ # version ID `0` to indicate the draft version of the specified flow.
760
+ #
761
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/
762
+ # <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
763
+ # @param target_version [::String]
764
+ # Required. Name of the target flow version to compare with the
765
+ # base version. Use version ID `0` to indicate the draft version of the
766
+ # specified flow. Format: `projects/<Project ID>/locations/<Location
767
+ # ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
768
+ # @param language_code [::String]
769
+ # The language to compare the flow versions for.
770
+ #
771
+ # If not specified, the agent's default language is used.
772
+ # [Many
773
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
774
+ # supported. Note: languages must be enabled in the agent before they can be
775
+ # used.
776
+ #
777
+ # @yield [response, operation] Access the result along with the RPC operation
778
+ # @yieldparam response [::Google::Cloud::Dialogflow::CX::V3::CompareVersionsResponse]
779
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
780
+ #
781
+ # @return [::Google::Cloud::Dialogflow::CX::V3::CompareVersionsResponse]
782
+ #
783
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
784
+ #
785
+ # @example Basic example
786
+ # require "google/cloud/dialogflow/cx/v3"
787
+ #
788
+ # # Create a client object. The client can be reused for multiple calls.
789
+ # client = Google::Cloud::Dialogflow::CX::V3::Versions::Client.new
790
+ #
791
+ # # Create a request. To set request fields, pass in keyword arguments.
792
+ # request = Google::Cloud::Dialogflow::CX::V3::CompareVersionsRequest.new
793
+ #
794
+ # # Call the compare_versions method.
795
+ # result = client.compare_versions request
796
+ #
797
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::CompareVersionsResponse.
798
+ # p result
799
+ #
800
+ def compare_versions request, options = nil
801
+ raise ::ArgumentError, "request must be provided" if request.nil?
802
+
803
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::CompareVersionsRequest
804
+
805
+ # Converts hash and nil to an options object
806
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
807
+
808
+ # Customize the options with defaults
809
+ metadata = @config.rpcs.compare_versions.metadata.to_h
810
+
811
+ # Set x-goog-api-client and x-goog-user-project headers
812
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
813
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
814
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
815
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
816
+
817
+ header_params = {}
818
+ if request.base_version
819
+ header_params["base_version"] = request.base_version
820
+ end
821
+
822
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
823
+ metadata[:"x-goog-request-params"] ||= request_params_header
824
+
825
+ options.apply_defaults timeout: @config.rpcs.compare_versions.timeout,
826
+ metadata: metadata,
827
+ retry_policy: @config.rpcs.compare_versions.retry_policy
828
+
829
+ options.apply_defaults timeout: @config.timeout,
830
+ metadata: @config.metadata,
831
+ retry_policy: @config.retry_policy
832
+
833
+ @versions_stub.call_rpc :compare_versions, request, options: options do |response, operation|
834
+ yield response, operation if block_given?
835
+ return response
836
+ end
837
+ rescue ::GRPC::BadStatus => e
838
+ raise ::Google::Cloud::Error.from_error(e)
839
+ end
840
+
739
841
  ##
740
842
  # Configuration class for the Versions API.
741
843
  #
@@ -901,6 +1003,11 @@ module Google
901
1003
  # @return [::Gapic::Config::Method]
902
1004
  #
903
1005
  attr_reader :load_version
1006
+ ##
1007
+ # RPC-specific configuration for `compare_versions`
1008
+ # @return [::Gapic::Config::Method]
1009
+ #
1010
+ attr_reader :compare_versions
904
1011
 
905
1012
  # @private
906
1013
  def initialize parent_rpcs = nil
@@ -916,6 +1023,8 @@ module Google
916
1023
  @delete_version = ::Gapic::Config::Method.new delete_version_config
917
1024
  load_version_config = parent_rpcs.load_version if parent_rpcs.respond_to? :load_version
918
1025
  @load_version = ::Gapic::Config::Method.new load_version_config
1026
+ compare_versions_config = parent_rpcs.compare_versions if parent_rpcs.respond_to? :compare_versions
1027
+ @compare_versions = ::Gapic::Config::Method.new compare_versions_config
919
1028
 
920
1029
  yield self if block_given?
921
1030
  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
@@ -28,9 +28,9 @@ require "google/cloud/dialogflow/cx/v3/session_entity_types"
28
28
  require "google/cloud/dialogflow/cx/v3/sessions"
29
29
  require "google/cloud/dialogflow/cx/v3/transition_route_groups"
30
30
  require "google/cloud/dialogflow/cx/v3/test_cases"
31
+ require "google/cloud/dialogflow/cx/v3/webhooks"
31
32
  require "google/cloud/dialogflow/cx/v3/environments"
32
33
  require "google/cloud/dialogflow/cx/v3/experiments"
33
- require "google/cloud/dialogflow/cx/v3/webhooks"
34
34
  require "google/cloud/dialogflow/cx/v3/versions"
35
35
  require "google/cloud/dialogflow/cx/v3/version"
36
36
 
@@ -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.
@@ -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
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.4.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: 2021-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common