google-cloud-dialogflow-cx-v3 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelog_services_pb.rb +49 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +482 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/paths.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3.rb +1 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +122 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +54 -42
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d78f8132d7a8d4464ec003172c67840678913b217c903aab30fc976789bde34
|
4
|
+
data.tar.gz: c5ffa071793c8a93b71ae82c6310376533a8c3f3c243196a1a4218605f3a000d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a0506c8fe9cf6ae6132e074d73ec95262aee843d52612417f8e613b5afafcc5f946542eeeb60d3b934887ea46c0caa096e47b3ffc8fadaa9986e431f8d57204
|
7
|
+
data.tar.gz: fc780bdeae00ce70b672e8924b5ae06b5aa866bcef043a6df31f102fcac7a1e668c5afca5961aa35f78ea0b98219e9b72982bf0ba265494c22a9129891af045a
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dialogflow/cx/v3/changelog.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/protobuf/struct_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/cloud/dialogflow/cx/v3/changelog.proto", :syntax => :proto3) do
|
14
|
+
add_message "google.cloud.dialogflow.cx.v3.ListChangelogsRequest" do
|
15
|
+
optional :parent, :string, 1
|
16
|
+
optional :filter, :string, 2
|
17
|
+
optional :page_size, :int32, 3
|
18
|
+
optional :page_token, :string, 4
|
19
|
+
end
|
20
|
+
add_message "google.cloud.dialogflow.cx.v3.ListChangelogsResponse" do
|
21
|
+
repeated :changelogs, :message, 1, "google.cloud.dialogflow.cx.v3.Changelog"
|
22
|
+
optional :next_page_token, :string, 2
|
23
|
+
end
|
24
|
+
add_message "google.cloud.dialogflow.cx.v3.GetChangelogRequest" do
|
25
|
+
optional :name, :string, 1
|
26
|
+
end
|
27
|
+
add_message "google.cloud.dialogflow.cx.v3.Changelog" do
|
28
|
+
optional :name, :string, 1
|
29
|
+
optional :user_email, :string, 2
|
30
|
+
optional :display_name, :string, 7
|
31
|
+
optional :action, :string, 11
|
32
|
+
optional :type, :string, 8
|
33
|
+
optional :resource, :string, 3
|
34
|
+
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
module Google
|
40
|
+
module Cloud
|
41
|
+
module Dialogflow
|
42
|
+
module CX
|
43
|
+
module V3
|
44
|
+
ListChangelogsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListChangelogsRequest").msgclass
|
45
|
+
ListChangelogsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListChangelogsResponse").msgclass
|
46
|
+
GetChangelogRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GetChangelogRequest").msgclass
|
47
|
+
Changelog = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Changelog").msgclass
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/dialogflow/cx/v3/changelog.proto for package 'Google.Cloud.Dialogflow.CX.V3'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2021 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/cx/v3/changelog_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Dialogflow
|
25
|
+
module CX
|
26
|
+
module V3
|
27
|
+
module Changelogs
|
28
|
+
# Service for managing [Changelogs][google.cloud.dialogflow.cx.v3.Changelog].
|
29
|
+
class Service
|
30
|
+
|
31
|
+
include ::GRPC::GenericService
|
32
|
+
|
33
|
+
self.marshal_class_method = :encode
|
34
|
+
self.unmarshal_class_method = :decode
|
35
|
+
self.service_name = 'google.cloud.dialogflow.cx.v3.Changelogs'
|
36
|
+
|
37
|
+
# Returns the list of Changelogs.
|
38
|
+
rpc :ListChangelogs, ::Google::Cloud::Dialogflow::CX::V3::ListChangelogsRequest, ::Google::Cloud::Dialogflow::CX::V3::ListChangelogsResponse
|
39
|
+
# Retrieves the specified Changelog.
|
40
|
+
rpc :GetChangelog, ::Google::Cloud::Dialogflow::CX::V3::GetChangelogRequest, ::Google::Cloud::Dialogflow::CX::V3::Changelog
|
41
|
+
end
|
42
|
+
|
43
|
+
Stub = Service.rpc_stub_class
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,482 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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
|
+
require "google/cloud/errors"
|
20
|
+
require "google/cloud/dialogflow/cx/v3/changelog_pb"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Dialogflow
|
25
|
+
module CX
|
26
|
+
module V3
|
27
|
+
module Changelogs
|
28
|
+
##
|
29
|
+
# Client for the Changelogs service.
|
30
|
+
#
|
31
|
+
# Service for managing {::Google::Cloud::Dialogflow::CX::V3::Changelog Changelogs}.
|
32
|
+
#
|
33
|
+
class Client
|
34
|
+
include Paths
|
35
|
+
|
36
|
+
# @private
|
37
|
+
attr_reader :changelogs_stub
|
38
|
+
|
39
|
+
##
|
40
|
+
# Configure the Changelogs Client class.
|
41
|
+
#
|
42
|
+
# See {::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client::Configuration}
|
43
|
+
# for a description of the configuration fields.
|
44
|
+
#
|
45
|
+
# @example
|
46
|
+
#
|
47
|
+
# # Modify the configuration for all Changelogs clients
|
48
|
+
# ::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
|
+
# end
|
51
|
+
#
|
52
|
+
# @yield [config] Configure the Client client.
|
53
|
+
# @yieldparam config [Client::Configuration]
|
54
|
+
#
|
55
|
+
# @return [Client::Configuration]
|
56
|
+
#
|
57
|
+
def self.configure
|
58
|
+
@configure ||= begin
|
59
|
+
namespace = ["Google", "Cloud", "Dialogflow", "CX", "V3"]
|
60
|
+
parent_config = while namespace.any?
|
61
|
+
parent_name = namespace.join "::"
|
62
|
+
parent_const = const_get parent_name
|
63
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
64
|
+
namespace.pop
|
65
|
+
end
|
66
|
+
default_config = Client::Configuration.new parent_config
|
67
|
+
|
68
|
+
default_config.timeout = 60.0
|
69
|
+
default_config.retry_policy = {
|
70
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
71
|
+
}
|
72
|
+
|
73
|
+
default_config
|
74
|
+
end
|
75
|
+
yield @configure if block_given?
|
76
|
+
@configure
|
77
|
+
end
|
78
|
+
|
79
|
+
##
|
80
|
+
# Configure the Changelogs Client instance.
|
81
|
+
#
|
82
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
83
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
84
|
+
# should be made on {Client.configure}.
|
85
|
+
#
|
86
|
+
# See {::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client::Configuration}
|
87
|
+
# for a description of the configuration fields.
|
88
|
+
#
|
89
|
+
# @yield [config] Configure the Client client.
|
90
|
+
# @yieldparam config [Client::Configuration]
|
91
|
+
#
|
92
|
+
# @return [Client::Configuration]
|
93
|
+
#
|
94
|
+
def configure
|
95
|
+
yield @config if block_given?
|
96
|
+
@config
|
97
|
+
end
|
98
|
+
|
99
|
+
##
|
100
|
+
# Create a new Changelogs client object.
|
101
|
+
#
|
102
|
+
# @example
|
103
|
+
#
|
104
|
+
# # Create a client using the default configuration
|
105
|
+
# client = ::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client.new
|
106
|
+
#
|
107
|
+
# # Create a client using a custom configuration
|
108
|
+
# client = ::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client.new do |config|
|
109
|
+
# config.timeout = 10.0
|
110
|
+
# end
|
111
|
+
#
|
112
|
+
# @yield [config] Configure the Changelogs client.
|
113
|
+
# @yieldparam config [Client::Configuration]
|
114
|
+
#
|
115
|
+
def initialize
|
116
|
+
# These require statements are intentionally placed here to initialize
|
117
|
+
# the gRPC module only when it's required.
|
118
|
+
# See https://github.com/googleapis/toolkit/issues/446
|
119
|
+
require "gapic/grpc"
|
120
|
+
require "google/cloud/dialogflow/cx/v3/changelog_services_pb"
|
121
|
+
|
122
|
+
# Create the configuration object
|
123
|
+
@config = Configuration.new Client.configure
|
124
|
+
|
125
|
+
# Yield the configuration if needed
|
126
|
+
yield @config if block_given?
|
127
|
+
|
128
|
+
# Create credentials
|
129
|
+
credentials = @config.credentials
|
130
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
131
|
+
# but only if the default endpoint does not have a region prefix.
|
132
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
133
|
+
!@config.endpoint.split(".").first.include?("-")
|
134
|
+
credentials ||= Credentials.default scope: @config.scope,
|
135
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
136
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
137
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
138
|
+
end
|
139
|
+
@quota_project_id = @config.quota_project
|
140
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
141
|
+
|
142
|
+
@changelogs_stub = ::Gapic::ServiceStub.new(
|
143
|
+
::Google::Cloud::Dialogflow::CX::V3::Changelogs::Stub,
|
144
|
+
credentials: credentials,
|
145
|
+
endpoint: @config.endpoint,
|
146
|
+
channel_args: @config.channel_args,
|
147
|
+
interceptors: @config.interceptors
|
148
|
+
)
|
149
|
+
end
|
150
|
+
|
151
|
+
# Service calls
|
152
|
+
|
153
|
+
##
|
154
|
+
# Returns the list of Changelogs.
|
155
|
+
#
|
156
|
+
# @overload list_changelogs(request, options = nil)
|
157
|
+
# Pass arguments to `list_changelogs` via a request object, either of type
|
158
|
+
# {::Google::Cloud::Dialogflow::CX::V3::ListChangelogsRequest} or an equivalent Hash.
|
159
|
+
#
|
160
|
+
# @param request [::Google::Cloud::Dialogflow::CX::V3::ListChangelogsRequest, ::Hash]
|
161
|
+
# A request object representing the call parameters. Required. To specify no
|
162
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
163
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
164
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
165
|
+
#
|
166
|
+
# @overload list_changelogs(parent: nil, filter: nil, page_size: nil, page_token: nil)
|
167
|
+
# Pass arguments to `list_changelogs` via keyword arguments. Note that at
|
168
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
169
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
170
|
+
#
|
171
|
+
# @param parent [::String]
|
172
|
+
# Required. The agent containing the changelogs.
|
173
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
|
174
|
+
# @param filter [::String]
|
175
|
+
# The filter string. Supports filter by user_email, resource, type and
|
176
|
+
# create_time. Some examples:
|
177
|
+
# 1. By user email:
|
178
|
+
# user_email = "someone@google.com"
|
179
|
+
# 2. By resource name:
|
180
|
+
# resource = "projects/123/locations/global/agents/456/flows/789"
|
181
|
+
# 3. By resource display name:
|
182
|
+
# display_name = "my agent"
|
183
|
+
# 4. By action:
|
184
|
+
# action = "Create"
|
185
|
+
# 5. By type:
|
186
|
+
# type = "flows"
|
187
|
+
# 6. By create time. Currently predicates on `create_time` and
|
188
|
+
# `create_time_epoch_seconds` are supported:
|
189
|
+
# create_time_epoch_seconds > 1551790877 AND create_time <=
|
190
|
+
# 2017-01-15T01:30:15.01Z
|
191
|
+
# 7. Combination of above filters:
|
192
|
+
# resource = "projects/123/locations/global/agents/456/flows/789"
|
193
|
+
# AND user_email = "someone@google.com"
|
194
|
+
# AND create_time <= 2017-01-15T01:30:15.01Z
|
195
|
+
# @param page_size [::Integer]
|
196
|
+
# The maximum number of items to return in a single page. By default 100 and
|
197
|
+
# at most 1000.
|
198
|
+
# @param page_token [::String]
|
199
|
+
# The next_page_token value returned from a previous list request.
|
200
|
+
#
|
201
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
202
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::Changelog>]
|
203
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
204
|
+
#
|
205
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::Changelog>]
|
206
|
+
#
|
207
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
208
|
+
#
|
209
|
+
def list_changelogs request, options = nil
|
210
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
211
|
+
|
212
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::ListChangelogsRequest
|
213
|
+
|
214
|
+
# Converts hash and nil to an options object
|
215
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
216
|
+
|
217
|
+
# Customize the options with defaults
|
218
|
+
metadata = @config.rpcs.list_changelogs.metadata.to_h
|
219
|
+
|
220
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
221
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
222
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
223
|
+
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
224
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
225
|
+
|
226
|
+
header_params = {
|
227
|
+
"parent" => request.parent
|
228
|
+
}
|
229
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
230
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
231
|
+
|
232
|
+
options.apply_defaults timeout: @config.rpcs.list_changelogs.timeout,
|
233
|
+
metadata: metadata,
|
234
|
+
retry_policy: @config.rpcs.list_changelogs.retry_policy
|
235
|
+
|
236
|
+
options.apply_defaults timeout: @config.timeout,
|
237
|
+
metadata: @config.metadata,
|
238
|
+
retry_policy: @config.retry_policy
|
239
|
+
|
240
|
+
@changelogs_stub.call_rpc :list_changelogs, request, options: options do |response, operation|
|
241
|
+
response = ::Gapic::PagedEnumerable.new @changelogs_stub, :list_changelogs, request, response, operation, options
|
242
|
+
yield response, operation if block_given?
|
243
|
+
return response
|
244
|
+
end
|
245
|
+
rescue ::GRPC::BadStatus => e
|
246
|
+
raise ::Google::Cloud::Error.from_error(e)
|
247
|
+
end
|
248
|
+
|
249
|
+
##
|
250
|
+
# Retrieves the specified Changelog.
|
251
|
+
#
|
252
|
+
# @overload get_changelog(request, options = nil)
|
253
|
+
# Pass arguments to `get_changelog` via a request object, either of type
|
254
|
+
# {::Google::Cloud::Dialogflow::CX::V3::GetChangelogRequest} or an equivalent Hash.
|
255
|
+
#
|
256
|
+
# @param request [::Google::Cloud::Dialogflow::CX::V3::GetChangelogRequest, ::Hash]
|
257
|
+
# A request object representing the call parameters. Required. To specify no
|
258
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
259
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
260
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
261
|
+
#
|
262
|
+
# @overload get_changelog(name: nil)
|
263
|
+
# Pass arguments to `get_changelog` via keyword arguments. Note that at
|
264
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
265
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
266
|
+
#
|
267
|
+
# @param name [::String]
|
268
|
+
# Required. The name of the changelog to get.
|
269
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
270
|
+
# ID>/changelogs/<Changelog ID>`.
|
271
|
+
#
|
272
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
273
|
+
# @yieldparam response [::Google::Cloud::Dialogflow::CX::V3::Changelog]
|
274
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
275
|
+
#
|
276
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Changelog]
|
277
|
+
#
|
278
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
279
|
+
#
|
280
|
+
def get_changelog request, options = nil
|
281
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
282
|
+
|
283
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::GetChangelogRequest
|
284
|
+
|
285
|
+
# Converts hash and nil to an options object
|
286
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
287
|
+
|
288
|
+
# Customize the options with defaults
|
289
|
+
metadata = @config.rpcs.get_changelog.metadata.to_h
|
290
|
+
|
291
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
292
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
293
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
294
|
+
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
295
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
296
|
+
|
297
|
+
header_params = {
|
298
|
+
"name" => request.name
|
299
|
+
}
|
300
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
301
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
302
|
+
|
303
|
+
options.apply_defaults timeout: @config.rpcs.get_changelog.timeout,
|
304
|
+
metadata: metadata,
|
305
|
+
retry_policy: @config.rpcs.get_changelog.retry_policy
|
306
|
+
|
307
|
+
options.apply_defaults timeout: @config.timeout,
|
308
|
+
metadata: @config.metadata,
|
309
|
+
retry_policy: @config.retry_policy
|
310
|
+
|
311
|
+
@changelogs_stub.call_rpc :get_changelog, request, options: options do |response, operation|
|
312
|
+
yield response, operation if block_given?
|
313
|
+
return response
|
314
|
+
end
|
315
|
+
rescue ::GRPC::BadStatus => e
|
316
|
+
raise ::Google::Cloud::Error.from_error(e)
|
317
|
+
end
|
318
|
+
|
319
|
+
##
|
320
|
+
# Configuration class for the Changelogs API.
|
321
|
+
#
|
322
|
+
# This class represents the configuration for Changelogs,
|
323
|
+
# providing control over timeouts, retry behavior, logging, transport
|
324
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
325
|
+
# applied individually to specific RPCs. See
|
326
|
+
# {::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client::Configuration::Rpcs}
|
327
|
+
# for a list of RPCs that can be configured independently.
|
328
|
+
#
|
329
|
+
# Configuration can be applied globally to all clients, or to a single client
|
330
|
+
# on construction.
|
331
|
+
#
|
332
|
+
# @example
|
333
|
+
#
|
334
|
+
# # Modify the global config, setting the timeout for
|
335
|
+
# # list_changelogs to 20 seconds,
|
336
|
+
# # and all remaining timeouts to 10 seconds.
|
337
|
+
# ::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client.configure do |config|
|
338
|
+
# config.timeout = 10.0
|
339
|
+
# config.rpcs.list_changelogs.timeout = 20.0
|
340
|
+
# end
|
341
|
+
#
|
342
|
+
# # Apply the above configuration only to a new client.
|
343
|
+
# client = ::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client.new do |config|
|
344
|
+
# config.timeout = 10.0
|
345
|
+
# config.rpcs.list_changelogs.timeout = 20.0
|
346
|
+
# end
|
347
|
+
#
|
348
|
+
# @!attribute [rw] endpoint
|
349
|
+
# The hostname or hostname:port of the service endpoint.
|
350
|
+
# Defaults to `"dialogflow.googleapis.com"`.
|
351
|
+
# @return [::String]
|
352
|
+
# @!attribute [rw] credentials
|
353
|
+
# Credentials to send with calls. You may provide any of the following types:
|
354
|
+
# * (`String`) The path to a service account key file in JSON format
|
355
|
+
# * (`Hash`) A service account key as a Hash
|
356
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
357
|
+
# (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
|
358
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
359
|
+
# (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
|
360
|
+
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
361
|
+
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
362
|
+
# * (`nil`) indicating no credentials
|
363
|
+
# @return [::Object]
|
364
|
+
# @!attribute [rw] scope
|
365
|
+
# The OAuth scopes
|
366
|
+
# @return [::Array<::String>]
|
367
|
+
# @!attribute [rw] lib_name
|
368
|
+
# The library name as recorded in instrumentation and logging
|
369
|
+
# @return [::String]
|
370
|
+
# @!attribute [rw] lib_version
|
371
|
+
# The library version as recorded in instrumentation and logging
|
372
|
+
# @return [::String]
|
373
|
+
# @!attribute [rw] channel_args
|
374
|
+
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
375
|
+
# `GRPC::Core::Channel` object is provided as the credential.
|
376
|
+
# @return [::Hash]
|
377
|
+
# @!attribute [rw] interceptors
|
378
|
+
# An array of interceptors that are run before calls are executed.
|
379
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
380
|
+
# @!attribute [rw] timeout
|
381
|
+
# The call timeout in seconds.
|
382
|
+
# @return [::Numeric]
|
383
|
+
# @!attribute [rw] metadata
|
384
|
+
# Additional gRPC headers to be sent with the call.
|
385
|
+
# @return [::Hash{::Symbol=>::String}]
|
386
|
+
# @!attribute [rw] retry_policy
|
387
|
+
# The retry policy. The value is a hash with the following keys:
|
388
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
389
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
390
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
391
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
392
|
+
# trigger a retry.
|
393
|
+
# @return [::Hash]
|
394
|
+
# @!attribute [rw] quota_project
|
395
|
+
# A separate project against which to charge quota.
|
396
|
+
# @return [::String]
|
397
|
+
#
|
398
|
+
class Configuration
|
399
|
+
extend ::Gapic::Config
|
400
|
+
|
401
|
+
config_attr :endpoint, "dialogflow.googleapis.com", ::String
|
402
|
+
config_attr :credentials, nil do |value|
|
403
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
404
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
405
|
+
allowed.any? { |klass| klass === value }
|
406
|
+
end
|
407
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
408
|
+
config_attr :lib_name, nil, ::String, nil
|
409
|
+
config_attr :lib_version, nil, ::String, nil
|
410
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
411
|
+
config_attr :interceptors, nil, ::Array, nil
|
412
|
+
config_attr :timeout, nil, ::Numeric, nil
|
413
|
+
config_attr :metadata, nil, ::Hash, nil
|
414
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
415
|
+
config_attr :quota_project, nil, ::String, nil
|
416
|
+
|
417
|
+
# @private
|
418
|
+
def initialize parent_config = nil
|
419
|
+
@parent_config = parent_config unless parent_config.nil?
|
420
|
+
|
421
|
+
yield self if block_given?
|
422
|
+
end
|
423
|
+
|
424
|
+
##
|
425
|
+
# Configurations for individual RPCs
|
426
|
+
# @return [Rpcs]
|
427
|
+
#
|
428
|
+
def rpcs
|
429
|
+
@rpcs ||= begin
|
430
|
+
parent_rpcs = nil
|
431
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
432
|
+
Rpcs.new parent_rpcs
|
433
|
+
end
|
434
|
+
end
|
435
|
+
|
436
|
+
##
|
437
|
+
# Configuration RPC class for the Changelogs API.
|
438
|
+
#
|
439
|
+
# Includes fields providing the configuration for each RPC in this service.
|
440
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
441
|
+
# the following configuration fields:
|
442
|
+
#
|
443
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
444
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
445
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
446
|
+
# include the following keys:
|
447
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
448
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
449
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
450
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
451
|
+
# trigger a retry.
|
452
|
+
#
|
453
|
+
class Rpcs
|
454
|
+
##
|
455
|
+
# RPC-specific configuration for `list_changelogs`
|
456
|
+
# @return [::Gapic::Config::Method]
|
457
|
+
#
|
458
|
+
attr_reader :list_changelogs
|
459
|
+
##
|
460
|
+
# RPC-specific configuration for `get_changelog`
|
461
|
+
# @return [::Gapic::Config::Method]
|
462
|
+
#
|
463
|
+
attr_reader :get_changelog
|
464
|
+
|
465
|
+
# @private
|
466
|
+
def initialize parent_rpcs = nil
|
467
|
+
list_changelogs_config = parent_rpcs.list_changelogs if parent_rpcs.respond_to? :list_changelogs
|
468
|
+
@list_changelogs = ::Gapic::Config::Method.new list_changelogs_config
|
469
|
+
get_changelog_config = parent_rpcs.get_changelog if parent_rpcs.respond_to? :get_changelog
|
470
|
+
@get_changelog = ::Gapic::Config::Method.new get_changelog_config
|
471
|
+
|
472
|
+
yield self if block_given?
|
473
|
+
end
|
474
|
+
end
|
475
|
+
end
|
476
|
+
end
|
477
|
+
end
|
478
|
+
end
|
479
|
+
end
|
480
|
+
end
|
481
|
+
end
|
482
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Dialogflow
|
24
|
+
module CX
|
25
|
+
module V3
|
26
|
+
module Changelogs
|
27
|
+
# Credentials for the Changelogs API.
|
28
|
+
class Credentials < ::Google::Auth::Credentials
|
29
|
+
self.scope = [
|
30
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
31
|
+
"https://www.googleapis.com/auth/dialogflow"
|
32
|
+
]
|
33
|
+
self.env_vars = [
|
34
|
+
"DIALOGFLOW_CREDENTIALS",
|
35
|
+
"DIALOGFLOW_KEYFILE",
|
36
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
37
|
+
"GOOGLE_CLOUD_KEYFILE",
|
38
|
+
"GCLOUD_KEYFILE",
|
39
|
+
"DIALOGFLOW_CREDENTIALS_JSON",
|
40
|
+
"DIALOGFLOW_KEYFILE_JSON",
|
41
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
42
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
43
|
+
"GCLOUD_KEYFILE_JSON"
|
44
|
+
]
|
45
|
+
self.paths = [
|
46
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
47
|
+
]
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 CX
|
24
|
+
module V3
|
25
|
+
module Changelogs
|
26
|
+
# Path helper methods for the Changelogs API.
|
27
|
+
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified Agent resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/agents/{agent}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param agent [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def agent_path project:, location:, agent:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
|
44
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}"
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# Create a fully-qualified Changelog resource string.
|
49
|
+
#
|
50
|
+
# The resource will be in the following format:
|
51
|
+
#
|
52
|
+
# `projects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}`
|
53
|
+
#
|
54
|
+
# @param project [String]
|
55
|
+
# @param location [String]
|
56
|
+
# @param agent [String]
|
57
|
+
# @param changelog [String]
|
58
|
+
#
|
59
|
+
# @return [::String]
|
60
|
+
def changelog_path project:, location:, agent:, changelog:
|
61
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
63
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
64
|
+
|
65
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/changelogs/#{changelog}"
|
66
|
+
end
|
67
|
+
|
68
|
+
extend self
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/dialogflow/cx/v3/version"
|
24
|
+
|
25
|
+
require "google/cloud/dialogflow/cx/v3/changelogs/credentials"
|
26
|
+
require "google/cloud/dialogflow/cx/v3/changelogs/paths"
|
27
|
+
require "google/cloud/dialogflow/cx/v3/changelogs/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module Dialogflow
|
32
|
+
module CX
|
33
|
+
module V3
|
34
|
+
##
|
35
|
+
# Service for managing {::Google::Cloud::Dialogflow::CX::V3::Changelog Changelogs}.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/dialogflow/cx/v3/changelogs"
|
40
|
+
# client = ::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client.new
|
41
|
+
#
|
42
|
+
module Changelogs
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
helper_path = ::File.join __dir__, "changelogs", "helpers.rb"
|
51
|
+
require "google/cloud/dialogflow/cx/v3/changelogs/helpers" if ::File.file? helper_path
|
@@ -20,6 +20,7 @@ require "google/cloud/dialogflow/cx/v3/pages"
|
|
20
20
|
require "google/cloud/dialogflow/cx/v3/flows"
|
21
21
|
require "google/cloud/dialogflow/cx/v3/security_settings_service"
|
22
22
|
require "google/cloud/dialogflow/cx/v3/agents"
|
23
|
+
require "google/cloud/dialogflow/cx/v3/changelogs"
|
23
24
|
require "google/cloud/dialogflow/cx/v3/deployments"
|
24
25
|
require "google/cloud/dialogflow/cx/v3/entity_types"
|
25
26
|
require "google/cloud/dialogflow/cx/v3/intents"
|
@@ -0,0 +1,122 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 CX
|
24
|
+
module V3
|
25
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client#list_changelogs Changelogs.ListChangelogs}.
|
26
|
+
# @!attribute [rw] parent
|
27
|
+
# @return [::String]
|
28
|
+
# Required. The agent containing the changelogs.
|
29
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
|
30
|
+
# @!attribute [rw] filter
|
31
|
+
# @return [::String]
|
32
|
+
# The filter string. Supports filter by user_email, resource, type and
|
33
|
+
# create_time. Some examples:
|
34
|
+
# 1. By user email:
|
35
|
+
# user_email = "someone@google.com"
|
36
|
+
# 2. By resource name:
|
37
|
+
# resource = "projects/123/locations/global/agents/456/flows/789"
|
38
|
+
# 3. By resource display name:
|
39
|
+
# display_name = "my agent"
|
40
|
+
# 4. By action:
|
41
|
+
# action = "Create"
|
42
|
+
# 5. By type:
|
43
|
+
# type = "flows"
|
44
|
+
# 6. By create time. Currently predicates on `create_time` and
|
45
|
+
# `create_time_epoch_seconds` are supported:
|
46
|
+
# create_time_epoch_seconds > 1551790877 AND create_time <=
|
47
|
+
# 2017-01-15T01:30:15.01Z
|
48
|
+
# 7. Combination of above filters:
|
49
|
+
# resource = "projects/123/locations/global/agents/456/flows/789"
|
50
|
+
# AND user_email = "someone@google.com"
|
51
|
+
# AND create_time <= 2017-01-15T01:30:15.01Z
|
52
|
+
# @!attribute [rw] page_size
|
53
|
+
# @return [::Integer]
|
54
|
+
# The maximum number of items to return in a single page. By default 100 and
|
55
|
+
# at most 1000.
|
56
|
+
# @!attribute [rw] page_token
|
57
|
+
# @return [::String]
|
58
|
+
# The next_page_token value returned from a previous list request.
|
59
|
+
class ListChangelogsRequest
|
60
|
+
include ::Google::Protobuf::MessageExts
|
61
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
62
|
+
end
|
63
|
+
|
64
|
+
# The response message for {::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client#list_changelogs Changelogs.ListChangelogs}.
|
65
|
+
# @!attribute [rw] changelogs
|
66
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Changelog>]
|
67
|
+
# The list of changelogs. There will be a maximum number of items returned
|
68
|
+
# based on the page_size field in the request. The changelogs will be ordered
|
69
|
+
# by timestamp.
|
70
|
+
# @!attribute [rw] next_page_token
|
71
|
+
# @return [::String]
|
72
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
73
|
+
# results in the list.
|
74
|
+
class ListChangelogsResponse
|
75
|
+
include ::Google::Protobuf::MessageExts
|
76
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
77
|
+
end
|
78
|
+
|
79
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client#get_changelog Changelogs.GetChangelog}.
|
80
|
+
# @!attribute [rw] name
|
81
|
+
# @return [::String]
|
82
|
+
# Required. The name of the changelog to get.
|
83
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
84
|
+
# ID>/changelogs/<Changelog ID>`.
|
85
|
+
class GetChangelogRequest
|
86
|
+
include ::Google::Protobuf::MessageExts
|
87
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
88
|
+
end
|
89
|
+
|
90
|
+
# Changelogs represents a change made to a given agent.
|
91
|
+
# @!attribute [rw] name
|
92
|
+
# @return [::String]
|
93
|
+
# The unique identifier of the changelog.
|
94
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
95
|
+
# ID>/changelogs/<Changelog ID>`.
|
96
|
+
# @!attribute [rw] user_email
|
97
|
+
# @return [::String]
|
98
|
+
# Email address of the authenticated user.
|
99
|
+
# @!attribute [rw] display_name
|
100
|
+
# @return [::String]
|
101
|
+
# The affected resource display name of the change.
|
102
|
+
# @!attribute [rw] action
|
103
|
+
# @return [::String]
|
104
|
+
# The action of the change.
|
105
|
+
# @!attribute [rw] type
|
106
|
+
# @return [::String]
|
107
|
+
# The affected resource type.
|
108
|
+
# @!attribute [rw] resource
|
109
|
+
# @return [::String]
|
110
|
+
# The affected resource name of the change.
|
111
|
+
# @!attribute [rw] create_time
|
112
|
+
# @return [::Google::Protobuf::Timestamp]
|
113
|
+
# The timestamp of the change.
|
114
|
+
class Changelog
|
115
|
+
include ::Google::Protobuf::MessageExts
|
116
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
@@ -112,7 +112,7 @@ module Google
|
|
112
112
|
# Multiple request messages should be sent in order:
|
113
113
|
#
|
114
114
|
# 1. The first message must contain
|
115
|
-
#
|
115
|
+
# {::Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentRequest#session session},
|
116
116
|
# {::Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentRequest#query_input query_input} plus optionally
|
117
117
|
# {::Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentRequest#query_params query_params}. If the client
|
118
118
|
# wants to receive an audio response, it should also contain
|
@@ -173,21 +173,29 @@ module Google
|
|
173
173
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
174
174
|
end
|
175
175
|
|
176
|
-
# The top-level message returned from the
|
176
|
+
# The top-level message returned from the
|
177
|
+
# {::Google::Cloud::Dialogflow::CX::V3::Sessions::Client#streaming_detect_intent StreamingDetectIntent} method.
|
177
178
|
#
|
178
|
-
# Multiple response messages can be returned in order
|
179
|
+
# Multiple response messages (N) can be returned in order.
|
179
180
|
#
|
180
|
-
#
|
181
|
-
#
|
182
|
-
# complete transcript of what the user said. The last `recognition_result`
|
183
|
-
# has `is_final` set to `true`.
|
181
|
+
# The first (N-1) responses set either the `recognition_result` or
|
182
|
+
# `detect_intent_response` field, depending on the request:
|
184
183
|
#
|
185
|
-
#
|
186
|
-
#
|
187
|
-
#
|
188
|
-
#
|
189
|
-
#
|
190
|
-
# the
|
184
|
+
# * If the `StreamingDetectIntentRequest.query_input.audio` field was
|
185
|
+
# set, and the `StreamingDetectIntentRequest.enable_partial_response`
|
186
|
+
# field was false, the `recognition_result` field is populated for each
|
187
|
+
# of the (N-1) responses.
|
188
|
+
# See the {::Google::Cloud::Dialogflow::CX::V3::StreamingRecognitionResult StreamingRecognitionResult} message for details
|
189
|
+
# about the result message sequence.
|
190
|
+
#
|
191
|
+
# * If the `StreamingDetectIntentRequest.enable_partial_response` field was
|
192
|
+
# true, the `detect_intent_response` field is populated for each
|
193
|
+
# of the (N-1) responses, where 1 <= N <= 4.
|
194
|
+
# These responses set the {::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse#response_type DetectIntentResponse.response_type} field
|
195
|
+
# to `PARTIAL`.
|
196
|
+
#
|
197
|
+
# For the final Nth response message, the `detect_intent_response` is fully
|
198
|
+
# populated, and {::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse#response_type DetectIntentResponse.response_type} is set to `FINAL`.
|
191
199
|
# @!attribute [rw] recognition_result
|
192
200
|
# @return [::Google::Cloud::Dialogflow::CX::V3::StreamingRecognitionResult]
|
193
201
|
# The result of speech recognition.
|
@@ -203,35 +211,39 @@ module Google
|
|
203
211
|
# that is currently being processed or an indication that this is the end
|
204
212
|
# of the single requested utterance.
|
205
213
|
#
|
206
|
-
#
|
207
|
-
#
|
208
|
-
#
|
209
|
-
#
|
210
|
-
#
|
211
|
-
#
|
212
|
-
#
|
213
|
-
#
|
214
|
-
#
|
215
|
-
#
|
216
|
-
#
|
217
|
-
#
|
218
|
-
#
|
219
|
-
#
|
220
|
-
#
|
221
|
-
#
|
222
|
-
#
|
223
|
-
#
|
224
|
-
#
|
225
|
-
#
|
226
|
-
#
|
227
|
-
#
|
228
|
-
#
|
229
|
-
#
|
230
|
-
#
|
231
|
-
#
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
214
|
+
# While end-user audio is being processed, Dialogflow sends a series of
|
215
|
+
# results. Each result may contain a `transcript` value. A transcript
|
216
|
+
# represents a portion of the utterance. While the recognizer is processing
|
217
|
+
# audio, transcript values may be interim values or finalized values.
|
218
|
+
# Once a transcript is finalized, the `is_final` value is set to true and
|
219
|
+
# processing continues for the next transcript.
|
220
|
+
#
|
221
|
+
# If `StreamingDetectIntentRequest.query_input.audio.config.single_utterance`
|
222
|
+
# was true, and the recognizer has completed processing audio,
|
223
|
+
# the `message_type` value is set to `END_OF_SINGLE_UTTERANCE and the
|
224
|
+
# following (last) result contains the last finalized transcript.
|
225
|
+
#
|
226
|
+
# The complete end-user utterance is determined by concatenating the
|
227
|
+
# finalized transcript values received for the series of results.
|
228
|
+
#
|
229
|
+
# In the following example, single utterance is enabled. In the case where
|
230
|
+
# single utterance is not enabled, result 7 would not occur.
|
231
|
+
#
|
232
|
+
# ```
|
233
|
+
# Num | transcript | message_type | is_final
|
234
|
+
# --- | ----------------------- | ----------------------- | --------
|
235
|
+
# 1 | "tube" | TRANSCRIPT | false
|
236
|
+
# 2 | "to be a" | TRANSCRIPT | false
|
237
|
+
# 3 | "to be" | TRANSCRIPT | false
|
238
|
+
# 4 | "to be or not to be" | TRANSCRIPT | true
|
239
|
+
# 5 | "that's" | TRANSCRIPT | false
|
240
|
+
# 6 | "that is | TRANSCRIPT | false
|
241
|
+
# 7 | unset | END_OF_SINGLE_UTTERANCE | unset
|
242
|
+
# 8 | " that is the question" | TRANSCRIPT | true
|
243
|
+
# ```
|
244
|
+
#
|
245
|
+
# Concatenating the finalized transcripts with `is_final` set to true,
|
246
|
+
# the complete utterance becomes "to be or not to be that is the question".
|
235
247
|
# @!attribute [rw] message_type
|
236
248
|
# @return [::Google::Cloud::Dialogflow::CX::V3::StreamingRecognitionResult::MessageType]
|
237
249
|
# Type of the result message.
|
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.
|
4
|
+
version: 0.3.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-10-
|
11
|
+
date: 2021-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -185,6 +185,12 @@ files:
|
|
185
185
|
- lib/google/cloud/dialogflow/cx/v3/agents/operations.rb
|
186
186
|
- lib/google/cloud/dialogflow/cx/v3/agents/paths.rb
|
187
187
|
- lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb
|
188
|
+
- lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb
|
189
|
+
- lib/google/cloud/dialogflow/cx/v3/changelog_services_pb.rb
|
190
|
+
- lib/google/cloud/dialogflow/cx/v3/changelogs.rb
|
191
|
+
- lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb
|
192
|
+
- lib/google/cloud/dialogflow/cx/v3/changelogs/credentials.rb
|
193
|
+
- lib/google/cloud/dialogflow/cx/v3/changelogs/paths.rb
|
188
194
|
- lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb
|
189
195
|
- lib/google/cloud/dialogflow/cx/v3/deployment_services_pb.rb
|
190
196
|
- lib/google/cloud/dialogflow/cx/v3/deployments.rb
|
@@ -283,6 +289,7 @@ files:
|
|
283
289
|
- proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb
|
284
290
|
- proto_docs/google/cloud/dialogflow/cx/v3/agent.rb
|
285
291
|
- proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb
|
292
|
+
- proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb
|
286
293
|
- proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb
|
287
294
|
- proto_docs/google/cloud/dialogflow/cx/v3/entity_type.rb
|
288
295
|
- proto_docs/google/cloud/dialogflow/cx/v3/environment.rb
|