google-cloud-dialogflow-v2 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/dialogflow/v2.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/agents.rb +5 -5
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +203 -203
- data/lib/google/cloud/dialogflow/v2/agents/credentials.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +100 -100
- data/lib/google/cloud/dialogflow/v2/agents/paths.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/contexts.rb +3 -3
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +139 -139
- data/lib/google/cloud/dialogflow/v2/contexts/credentials.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +14 -14
- data/lib/google/cloud/dialogflow/v2/entity_types.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +229 -229
- data/lib/google/cloud/dialogflow/v2/entity_types/credentials.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +100 -100
- data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +3 -3
- data/lib/google/cloud/dialogflow/v2/environments.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +55 -55
- data/lib/google/cloud/dialogflow/v2/environments/credentials.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/environments/paths.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/intents.rb +3 -3
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +174 -174
- data/lib/google/cloud/dialogflow/v2/intents/credentials.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +100 -100
- data/lib/google/cloud/dialogflow/v2/intents/paths.rb +11 -11
- data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +121 -121
- data/lib/google/cloud/dialogflow/v2/session_entity_types/credentials.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +14 -14
- data/lib/google/cloud/dialogflow/v2/sessions.rb +3 -3
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +77 -77
- data/lib/google/cloud/dialogflow/v2/sessions/credentials.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +22 -22
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/dialogflow/v2/agent.rb +69 -69
- data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +45 -44
- data/proto_docs/google/cloud/dialogflow/v2/context.rb +38 -38
- data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +86 -86
- data/proto_docs/google/cloud/dialogflow/v2/environment.rb +18 -18
- data/proto_docs/google/cloud/dialogflow/v2/intent.rb +250 -250
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +106 -106
- data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +35 -35
- data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +8 -8
- data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +27 -27
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/duration.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +18 -18
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/rpc/status.rb +6 -6
- data/proto_docs/google/type/latlng.rb +4 -4
- metadata +2 -2
@@ -33,7 +33,7 @@ module Google
|
|
33
33
|
#
|
34
34
|
# @param project [String]
|
35
35
|
#
|
36
|
-
# @return [String]
|
36
|
+
# @return [::String]
|
37
37
|
def agent_path project:
|
38
38
|
"projects/#{project}/agent"
|
39
39
|
end
|
@@ -48,9 +48,9 @@ module Google
|
|
48
48
|
# @param project [String]
|
49
49
|
# @param entity_type [String]
|
50
50
|
#
|
51
|
-
# @return [String]
|
51
|
+
# @return [::String]
|
52
52
|
def entity_type_path project:, entity_type:
|
53
|
-
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
53
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
54
54
|
|
55
55
|
"projects/#{project}/agent/entityTypes/#{entity_type}"
|
56
56
|
end
|
@@ -36,7 +36,7 @@ module Google
|
|
36
36
|
# To load this service and instantiate a client:
|
37
37
|
#
|
38
38
|
# require "google/cloud/dialogflow/v2/environments"
|
39
|
-
# client = Google::Cloud::Dialogflow::V2::Environments::Client.new
|
39
|
+
# client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new
|
40
40
|
#
|
41
41
|
module Environments
|
42
42
|
end
|
@@ -38,15 +38,15 @@ module Google
|
|
38
38
|
##
|
39
39
|
# Configure the Environments Client class.
|
40
40
|
#
|
41
|
-
# See {Google::Cloud::Dialogflow::V2::Environments::Client::Configuration}
|
41
|
+
# See {::Google::Cloud::Dialogflow::V2::Environments::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
44
|
# ## Example
|
45
45
|
#
|
46
46
|
# To modify the configuration for all Environments clients:
|
47
47
|
#
|
48
|
-
# Google::Cloud::Dialogflow::V2::Environments::Client.configure do |config|
|
49
|
-
# config.timeout =
|
48
|
+
# ::Google::Cloud::Dialogflow::V2::Environments::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
50
|
# end
|
51
51
|
#
|
52
52
|
# @yield [config] Configure the Client client.
|
@@ -86,7 +86,7 @@ module Google
|
|
86
86
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
87
87
|
# should be made on {Client.configure}.
|
88
88
|
#
|
89
|
-
# See {Google::Cloud::Dialogflow::V2::Environments::Client::Configuration}
|
89
|
+
# See {::Google::Cloud::Dialogflow::V2::Environments::Client::Configuration}
|
90
90
|
# for a description of the configuration fields.
|
91
91
|
#
|
92
92
|
# @yield [config] Configure the Client client.
|
@@ -107,13 +107,13 @@ module Google
|
|
107
107
|
# To create a new Environments client with the default
|
108
108
|
# configuration:
|
109
109
|
#
|
110
|
-
# client = Google::Cloud::Dialogflow::V2::Environments::Client.new
|
110
|
+
# client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new
|
111
111
|
#
|
112
112
|
# To create a new Environments client with a custom
|
113
113
|
# configuration:
|
114
114
|
#
|
115
|
-
# client = Google::Cloud::Dialogflow::V2::Environments::Client.new do |config|
|
116
|
-
# config.timeout =
|
115
|
+
# client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new do |config|
|
116
|
+
# config.timeout = 10.0
|
117
117
|
# end
|
118
118
|
#
|
119
119
|
# @yield [config] Configure the Environments client.
|
@@ -140,8 +140,8 @@ module Google
|
|
140
140
|
end
|
141
141
|
@quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
|
142
142
|
|
143
|
-
@environments_stub = Gapic::ServiceStub.new(
|
144
|
-
Google::Cloud::Dialogflow::V2::Environments::Stub,
|
143
|
+
@environments_stub = ::Gapic::ServiceStub.new(
|
144
|
+
::Google::Cloud::Dialogflow::V2::Environments::Stub,
|
145
145
|
credentials: credentials,
|
146
146
|
endpoint: @config.endpoint,
|
147
147
|
channel_args: @config.channel_args,
|
@@ -156,12 +156,12 @@ module Google
|
|
156
156
|
#
|
157
157
|
# @overload list_environments(request, options = nil)
|
158
158
|
# Pass arguments to `list_environments` via a request object, either of type
|
159
|
-
# {Google::Cloud::Dialogflow::V2::ListEnvironmentsRequest} or an equivalent Hash.
|
159
|
+
# {::Google::Cloud::Dialogflow::V2::ListEnvironmentsRequest} or an equivalent Hash.
|
160
160
|
#
|
161
|
-
# @param request [Google::Cloud::Dialogflow::V2::ListEnvironmentsRequest, Hash]
|
161
|
+
# @param request [::Google::Cloud::Dialogflow::V2::ListEnvironmentsRequest, ::Hash]
|
162
162
|
# A request object representing the call parameters. Required. To specify no
|
163
163
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
164
|
-
# @param options [Gapic::CallOptions, Hash]
|
164
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
165
165
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
166
166
|
#
|
167
167
|
# @overload list_environments(parent: nil, page_size: nil, page_token: nil)
|
@@ -169,36 +169,36 @@ module Google
|
|
169
169
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
170
170
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
171
171
|
#
|
172
|
-
# @param parent [String]
|
172
|
+
# @param parent [::String]
|
173
173
|
# Required. The agent to list all environments from.
|
174
174
|
# Format: `projects/<Project ID>/agent`.
|
175
|
-
# @param page_size [Integer]
|
175
|
+
# @param page_size [::Integer]
|
176
176
|
# Optional. The maximum number of items to return in a single page. By default 100 and
|
177
177
|
# at most 1000.
|
178
|
-
# @param page_token [String]
|
178
|
+
# @param page_token [::String]
|
179
179
|
# Optional. The next_page_token value returned from a previous list request.
|
180
180
|
#
|
181
181
|
# @yield [response, operation] Access the result along with the RPC operation
|
182
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
183
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
182
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Environment>]
|
183
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
184
184
|
#
|
185
|
-
# @return [Gapic::PagedEnumerable
|
185
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Environment>]
|
186
186
|
#
|
187
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
187
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
188
188
|
#
|
189
189
|
def list_environments request, options = nil
|
190
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
190
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
191
191
|
|
192
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::ListEnvironmentsRequest
|
192
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::ListEnvironmentsRequest
|
193
193
|
|
194
194
|
# Converts hash and nil to an options object
|
195
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
195
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
196
196
|
|
197
197
|
# Customize the options with defaults
|
198
198
|
metadata = @config.rpcs.list_environments.metadata.to_h
|
199
199
|
|
200
200
|
# Set x-goog-api-client and x-goog-user-project headers
|
201
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
201
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
202
202
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
203
203
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
204
204
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -216,12 +216,12 @@ module Google
|
|
216
216
|
retry_policy: @config.retry_policy
|
217
217
|
|
218
218
|
@environments_stub.call_rpc :list_environments, request, options: options do |response, operation|
|
219
|
-
response = Gapic::PagedEnumerable.new @environments_stub, :list_environments, request, response, operation, options
|
219
|
+
response = ::Gapic::PagedEnumerable.new @environments_stub, :list_environments, request, response, operation, options
|
220
220
|
yield response, operation if block_given?
|
221
221
|
return response
|
222
222
|
end
|
223
|
-
rescue GRPC::BadStatus => e
|
224
|
-
raise Google::Cloud::Error.from_error(e)
|
223
|
+
rescue ::GRPC::BadStatus => e
|
224
|
+
raise ::Google::Cloud::Error.from_error(e)
|
225
225
|
end
|
226
226
|
|
227
227
|
##
|
@@ -231,7 +231,7 @@ module Google
|
|
231
231
|
# providing control over timeouts, retry behavior, logging, transport
|
232
232
|
# parameters, and other low-level controls. Certain parameters can also be
|
233
233
|
# applied individually to specific RPCs. See
|
234
|
-
# {Google::Cloud::Dialogflow::V2::Environments::Client::Configuration::Rpcs}
|
234
|
+
# {::Google::Cloud::Dialogflow::V2::Environments::Client::Configuration::Rpcs}
|
235
235
|
# for a list of RPCs that can be configured independently.
|
236
236
|
#
|
237
237
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -242,22 +242,22 @@ module Google
|
|
242
242
|
# To modify the global config, setting the timeout for list_environments
|
243
243
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
244
244
|
#
|
245
|
-
# Google::Cloud::Dialogflow::V2::Environments::Client.configure do |config|
|
246
|
-
# config.timeout =
|
247
|
-
# config.rpcs.list_environments.timeout =
|
245
|
+
# ::Google::Cloud::Dialogflow::V2::Environments::Client.configure do |config|
|
246
|
+
# config.timeout = 10.0
|
247
|
+
# config.rpcs.list_environments.timeout = 20.0
|
248
248
|
# end
|
249
249
|
#
|
250
250
|
# To apply the above configuration only to a new client:
|
251
251
|
#
|
252
|
-
# client = Google::Cloud::Dialogflow::V2::Environments::Client.new do |config|
|
253
|
-
# config.timeout =
|
254
|
-
# config.rpcs.list_environments.timeout =
|
252
|
+
# client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new do |config|
|
253
|
+
# config.timeout = 10.0
|
254
|
+
# config.rpcs.list_environments.timeout = 20.0
|
255
255
|
# end
|
256
256
|
#
|
257
257
|
# @!attribute [rw] endpoint
|
258
258
|
# The hostname or hostname:port of the service endpoint.
|
259
259
|
# Defaults to `"dialogflow.googleapis.com"`.
|
260
|
-
# @return [String]
|
260
|
+
# @return [::String]
|
261
261
|
# @!attribute [rw] credentials
|
262
262
|
# Credentials to send with calls. You may provide any of the following types:
|
263
263
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -269,29 +269,29 @@ module Google
|
|
269
269
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
270
270
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
271
271
|
# * (`nil`) indicating no credentials
|
272
|
-
# @return [Object]
|
272
|
+
# @return [::Object]
|
273
273
|
# @!attribute [rw] scope
|
274
274
|
# The OAuth scopes
|
275
|
-
# @return [Array
|
275
|
+
# @return [::Array<::String>]
|
276
276
|
# @!attribute [rw] lib_name
|
277
277
|
# The library name as recorded in instrumentation and logging
|
278
|
-
# @return [String]
|
278
|
+
# @return [::String]
|
279
279
|
# @!attribute [rw] lib_version
|
280
280
|
# The library version as recorded in instrumentation and logging
|
281
|
-
# @return [String]
|
281
|
+
# @return [::String]
|
282
282
|
# @!attribute [rw] channel_args
|
283
283
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
284
284
|
# `GRPC::Core::Channel` object is provided as the credential.
|
285
|
-
# @return [Hash]
|
285
|
+
# @return [::Hash]
|
286
286
|
# @!attribute [rw] interceptors
|
287
287
|
# An array of interceptors that are run before calls are executed.
|
288
|
-
# @return [Array
|
288
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
289
289
|
# @!attribute [rw] timeout
|
290
|
-
# The call timeout in
|
291
|
-
# @return [Numeric]
|
290
|
+
# The call timeout in seconds.
|
291
|
+
# @return [::Numeric]
|
292
292
|
# @!attribute [rw] metadata
|
293
293
|
# Additional gRPC headers to be sent with the call.
|
294
|
-
# @return [Hash{Symbol
|
294
|
+
# @return [::Hash{::Symbol=>::String}]
|
295
295
|
# @!attribute [rw] retry_policy
|
296
296
|
# The retry policy. The value is a hash with the following keys:
|
297
297
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -299,10 +299,10 @@ module Google
|
|
299
299
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
300
300
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
301
301
|
# trigger a retry.
|
302
|
-
# @return [Hash]
|
302
|
+
# @return [::Hash]
|
303
303
|
#
|
304
304
|
class Configuration
|
305
|
-
extend Gapic::Config
|
305
|
+
extend ::Gapic::Config
|
306
306
|
|
307
307
|
config_attr :endpoint, "dialogflow.googleapis.com", String
|
308
308
|
config_attr :credentials, nil do |value|
|
@@ -310,14 +310,14 @@ module Google
|
|
310
310
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
311
311
|
allowed.any? { |klass| klass === value }
|
312
312
|
end
|
313
|
-
config_attr :scope, nil, String, Array, nil
|
314
|
-
config_attr :lib_name, nil, String, nil
|
315
|
-
config_attr :lib_version, nil, String, nil
|
316
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
|
317
|
-
config_attr :interceptors, nil, Array, nil
|
318
|
-
config_attr :timeout, nil, Numeric, nil
|
319
|
-
config_attr :metadata, nil, Hash, nil
|
320
|
-
config_attr :retry_policy, nil, Hash, Proc, nil
|
313
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
314
|
+
config_attr :lib_name, nil, ::String, nil
|
315
|
+
config_attr :lib_version, nil, ::String, nil
|
316
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
317
|
+
config_attr :interceptors, nil, ::Array, nil
|
318
|
+
config_attr :timeout, nil, ::Numeric, nil
|
319
|
+
config_attr :metadata, nil, ::Hash, nil
|
320
|
+
config_attr :retry_policy, nil, ::Hash, Proc, nil
|
321
321
|
|
322
322
|
# @private
|
323
323
|
def initialize parent_config = nil
|
@@ -358,14 +358,14 @@ module Google
|
|
358
358
|
class Rpcs
|
359
359
|
##
|
360
360
|
# RPC-specific configuration for `list_environments`
|
361
|
-
# @return [Gapic::Config::Method]
|
361
|
+
# @return [::Gapic::Config::Method]
|
362
362
|
#
|
363
363
|
attr_reader :list_environments
|
364
364
|
|
365
365
|
# @private
|
366
366
|
def initialize parent_rpcs = nil
|
367
367
|
list_environments_config = parent_rpcs&.list_environments if parent_rpcs&.respond_to? :list_environments
|
368
|
-
@list_environments = Gapic::Config::Method.new list_environments_config
|
368
|
+
@list_environments = ::Gapic::Config::Method.new list_environments_config
|
369
369
|
|
370
370
|
yield self if block_given?
|
371
371
|
end
|
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
module V2
|
25
25
|
module Environments
|
26
26
|
# Credentials for the Environments API.
|
27
|
-
class Credentials < Google::Auth::Credentials
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
28
|
self.scope = [
|
29
29
|
"https://www.googleapis.com/auth/cloud-platform",
|
30
30
|
"https://www.googleapis.com/auth/dialogflow"
|
@@ -34,8 +34,8 @@ module Google
|
|
34
34
|
##
|
35
35
|
# An intent represents a mapping between input from a user and an action to
|
36
36
|
# be taken by your application. When you pass user input to the
|
37
|
-
# {Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent DetectIntent} (or
|
38
|
-
# {Google::Cloud::Dialogflow::V2::Sessions::Client#streaming_detect_intent StreamingDetectIntent}) method, the
|
37
|
+
# {::Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent DetectIntent} (or
|
38
|
+
# {::Google::Cloud::Dialogflow::V2::Sessions::Client#streaming_detect_intent StreamingDetectIntent}) method, the
|
39
39
|
# Dialogflow API analyzes the input and searches
|
40
40
|
# for a matching intent. If no match is found, the Dialogflow API returns a
|
41
41
|
# fallback intent (`is_fallback` = true).
|
@@ -68,7 +68,7 @@ module Google
|
|
68
68
|
# To load this service and instantiate a client:
|
69
69
|
#
|
70
70
|
# require "google/cloud/dialogflow/v2/intents"
|
71
|
-
# client = Google::Cloud::Dialogflow::V2::Intents::Client.new
|
71
|
+
# client = ::Google::Cloud::Dialogflow::V2::Intents::Client.new
|
72
72
|
#
|
73
73
|
module Intents
|
74
74
|
end
|
@@ -29,8 +29,8 @@ module Google
|
|
29
29
|
#
|
30
30
|
# An intent represents a mapping between input from a user and an action to
|
31
31
|
# be taken by your application. When you pass user input to the
|
32
|
-
# {Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent DetectIntent} (or
|
33
|
-
# {Google::Cloud::Dialogflow::V2::Sessions::Client#streaming_detect_intent StreamingDetectIntent}) method, the
|
32
|
+
# {::Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent DetectIntent} (or
|
33
|
+
# {::Google::Cloud::Dialogflow::V2::Sessions::Client#streaming_detect_intent StreamingDetectIntent}) method, the
|
34
34
|
# Dialogflow API analyzes the input and searches
|
35
35
|
# for a matching intent. If no match is found, the Dialogflow API returns a
|
36
36
|
# fallback intent (`is_fallback` = true).
|
@@ -69,15 +69,15 @@ module Google
|
|
69
69
|
##
|
70
70
|
# Configure the Intents Client class.
|
71
71
|
#
|
72
|
-
# See {Google::Cloud::Dialogflow::V2::Intents::Client::Configuration}
|
72
|
+
# See {::Google::Cloud::Dialogflow::V2::Intents::Client::Configuration}
|
73
73
|
# for a description of the configuration fields.
|
74
74
|
#
|
75
75
|
# ## Example
|
76
76
|
#
|
77
77
|
# To modify the configuration for all Intents clients:
|
78
78
|
#
|
79
|
-
# Google::Cloud::Dialogflow::V2::Intents::Client.configure do |config|
|
80
|
-
# config.timeout =
|
79
|
+
# ::Google::Cloud::Dialogflow::V2::Intents::Client.configure do |config|
|
80
|
+
# config.timeout = 10.0
|
81
81
|
# end
|
82
82
|
#
|
83
83
|
# @yield [config] Configure the Client client.
|
@@ -147,7 +147,7 @@ module Google
|
|
147
147
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
148
148
|
# should be made on {Client.configure}.
|
149
149
|
#
|
150
|
-
# See {Google::Cloud::Dialogflow::V2::Intents::Client::Configuration}
|
150
|
+
# See {::Google::Cloud::Dialogflow::V2::Intents::Client::Configuration}
|
151
151
|
# for a description of the configuration fields.
|
152
152
|
#
|
153
153
|
# @yield [config] Configure the Client client.
|
@@ -168,13 +168,13 @@ module Google
|
|
168
168
|
# To create a new Intents client with the default
|
169
169
|
# configuration:
|
170
170
|
#
|
171
|
-
# client = Google::Cloud::Dialogflow::V2::Intents::Client.new
|
171
|
+
# client = ::Google::Cloud::Dialogflow::V2::Intents::Client.new
|
172
172
|
#
|
173
173
|
# To create a new Intents client with a custom
|
174
174
|
# configuration:
|
175
175
|
#
|
176
|
-
# client = Google::Cloud::Dialogflow::V2::Intents::Client.new do |config|
|
177
|
-
# config.timeout =
|
176
|
+
# client = ::Google::Cloud::Dialogflow::V2::Intents::Client.new do |config|
|
177
|
+
# config.timeout = 10.0
|
178
178
|
# end
|
179
179
|
#
|
180
180
|
# @yield [config] Configure the Intents client.
|
@@ -206,8 +206,8 @@ module Google
|
|
206
206
|
config.endpoint = @config.endpoint
|
207
207
|
end
|
208
208
|
|
209
|
-
@intents_stub = Gapic::ServiceStub.new(
|
210
|
-
Google::Cloud::Dialogflow::V2::Intents::Stub,
|
209
|
+
@intents_stub = ::Gapic::ServiceStub.new(
|
210
|
+
::Google::Cloud::Dialogflow::V2::Intents::Stub,
|
211
211
|
credentials: credentials,
|
212
212
|
endpoint: @config.endpoint,
|
213
213
|
channel_args: @config.channel_args,
|
@@ -218,7 +218,7 @@ module Google
|
|
218
218
|
##
|
219
219
|
# Get the associated client for long-running operations.
|
220
220
|
#
|
221
|
-
# @return [Google::Cloud::Dialogflow::V2::Intents::Operations]
|
221
|
+
# @return [::Google::Cloud::Dialogflow::V2::Intents::Operations]
|
222
222
|
#
|
223
223
|
attr_reader :operations_client
|
224
224
|
|
@@ -229,12 +229,12 @@ module Google
|
|
229
229
|
#
|
230
230
|
# @overload list_intents(request, options = nil)
|
231
231
|
# Pass arguments to `list_intents` via a request object, either of type
|
232
|
-
# {Google::Cloud::Dialogflow::V2::ListIntentsRequest} or an equivalent Hash.
|
232
|
+
# {::Google::Cloud::Dialogflow::V2::ListIntentsRequest} or an equivalent Hash.
|
233
233
|
#
|
234
|
-
# @param request [Google::Cloud::Dialogflow::V2::ListIntentsRequest, Hash]
|
234
|
+
# @param request [::Google::Cloud::Dialogflow::V2::ListIntentsRequest, ::Hash]
|
235
235
|
# A request object representing the call parameters. Required. To specify no
|
236
236
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
237
|
-
# @param options [Gapic::CallOptions, Hash]
|
237
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
238
238
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
239
239
|
#
|
240
240
|
# @overload list_intents(parent: nil, language_code: nil, intent_view: nil, page_size: nil, page_token: nil)
|
@@ -242,44 +242,44 @@ module Google
|
|
242
242
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
243
243
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
244
244
|
#
|
245
|
-
# @param parent [String]
|
245
|
+
# @param parent [::String]
|
246
246
|
# Required. The agent to list all intents from.
|
247
247
|
# Format: `projects/<Project ID>/agent`.
|
248
|
-
# @param language_code [String]
|
248
|
+
# @param language_code [::String]
|
249
249
|
# Optional. The language used to access language-specific data.
|
250
250
|
# If not specified, the agent's default language is used.
|
251
251
|
# For more information, see
|
252
252
|
# [Multilingual intent and entity
|
253
253
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
254
|
-
# @param intent_view [Google::Cloud::Dialogflow::V2::IntentView]
|
254
|
+
# @param intent_view [::Google::Cloud::Dialogflow::V2::IntentView]
|
255
255
|
# Optional. The resource view to apply to the returned intent.
|
256
|
-
# @param page_size [Integer]
|
256
|
+
# @param page_size [::Integer]
|
257
257
|
# Optional. The maximum number of items to return in a single page. By
|
258
258
|
# default 100 and at most 1000.
|
259
|
-
# @param page_token [String]
|
259
|
+
# @param page_token [::String]
|
260
260
|
# Optional. The next_page_token value returned from a previous list request.
|
261
261
|
#
|
262
262
|
# @yield [response, operation] Access the result along with the RPC operation
|
263
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
264
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
263
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Intent>]
|
264
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
265
265
|
#
|
266
|
-
# @return [Gapic::PagedEnumerable
|
266
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Intent>]
|
267
267
|
#
|
268
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
268
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
269
269
|
#
|
270
270
|
def list_intents request, options = nil
|
271
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
271
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
272
|
|
273
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::ListIntentsRequest
|
273
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::ListIntentsRequest
|
274
274
|
|
275
275
|
# Converts hash and nil to an options object
|
276
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
276
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
277
277
|
|
278
278
|
# Customize the options with defaults
|
279
279
|
metadata = @config.rpcs.list_intents.metadata.to_h
|
280
280
|
|
281
281
|
# Set x-goog-api-client and x-goog-user-project headers
|
282
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
282
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
283
283
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
284
284
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
285
285
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -297,12 +297,12 @@ module Google
|
|
297
297
|
retry_policy: @config.retry_policy
|
298
298
|
|
299
299
|
@intents_stub.call_rpc :list_intents, request, options: options do |response, operation|
|
300
|
-
response = Gapic::PagedEnumerable.new @intents_stub, :list_intents, request, response, operation, options
|
300
|
+
response = ::Gapic::PagedEnumerable.new @intents_stub, :list_intents, request, response, operation, options
|
301
301
|
yield response, operation if block_given?
|
302
302
|
return response
|
303
303
|
end
|
304
|
-
rescue GRPC::BadStatus => e
|
305
|
-
raise Google::Cloud::Error.from_error(e)
|
304
|
+
rescue ::GRPC::BadStatus => e
|
305
|
+
raise ::Google::Cloud::Error.from_error(e)
|
306
306
|
end
|
307
307
|
|
308
308
|
##
|
@@ -310,12 +310,12 @@ module Google
|
|
310
310
|
#
|
311
311
|
# @overload get_intent(request, options = nil)
|
312
312
|
# Pass arguments to `get_intent` via a request object, either of type
|
313
|
-
# {Google::Cloud::Dialogflow::V2::GetIntentRequest} or an equivalent Hash.
|
313
|
+
# {::Google::Cloud::Dialogflow::V2::GetIntentRequest} or an equivalent Hash.
|
314
314
|
#
|
315
|
-
# @param request [Google::Cloud::Dialogflow::V2::GetIntentRequest, Hash]
|
315
|
+
# @param request [::Google::Cloud::Dialogflow::V2::GetIntentRequest, ::Hash]
|
316
316
|
# A request object representing the call parameters. Required. To specify no
|
317
317
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
318
|
-
# @param options [Gapic::CallOptions, Hash]
|
318
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
319
319
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
320
320
|
#
|
321
321
|
# @overload get_intent(name: nil, language_code: nil, intent_view: nil)
|
@@ -323,39 +323,39 @@ module Google
|
|
323
323
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
324
324
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
325
325
|
#
|
326
|
-
# @param name [String]
|
326
|
+
# @param name [::String]
|
327
327
|
# Required. The name of the intent.
|
328
328
|
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
|
329
|
-
# @param language_code [String]
|
329
|
+
# @param language_code [::String]
|
330
330
|
# Optional. The language used to access language-specific data.
|
331
331
|
# If not specified, the agent's default language is used.
|
332
332
|
# For more information, see
|
333
333
|
# [Multilingual intent and entity
|
334
334
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
335
|
-
# @param intent_view [Google::Cloud::Dialogflow::V2::IntentView]
|
335
|
+
# @param intent_view [::Google::Cloud::Dialogflow::V2::IntentView]
|
336
336
|
# Optional. The resource view to apply to the returned intent.
|
337
337
|
#
|
338
338
|
# @yield [response, operation] Access the result along with the RPC operation
|
339
|
-
# @yieldparam response [Google::Cloud::Dialogflow::V2::Intent]
|
340
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
339
|
+
# @yieldparam response [::Google::Cloud::Dialogflow::V2::Intent]
|
340
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
341
341
|
#
|
342
|
-
# @return [Google::Cloud::Dialogflow::V2::Intent]
|
342
|
+
# @return [::Google::Cloud::Dialogflow::V2::Intent]
|
343
343
|
#
|
344
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
344
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
345
345
|
#
|
346
346
|
def get_intent request, options = nil
|
347
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
347
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
348
348
|
|
349
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::GetIntentRequest
|
349
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::GetIntentRequest
|
350
350
|
|
351
351
|
# Converts hash and nil to an options object
|
352
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
352
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
353
353
|
|
354
354
|
# Customize the options with defaults
|
355
355
|
metadata = @config.rpcs.get_intent.metadata.to_h
|
356
356
|
|
357
357
|
# Set x-goog-api-client and x-goog-user-project headers
|
358
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
358
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
359
359
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
360
360
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
361
361
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -376,8 +376,8 @@ module Google
|
|
376
376
|
yield response, operation if block_given?
|
377
377
|
return response
|
378
378
|
end
|
379
|
-
rescue GRPC::BadStatus => e
|
380
|
-
raise Google::Cloud::Error.from_error(e)
|
379
|
+
rescue ::GRPC::BadStatus => e
|
380
|
+
raise ::Google::Cloud::Error.from_error(e)
|
381
381
|
end
|
382
382
|
|
383
383
|
##
|
@@ -385,12 +385,12 @@ module Google
|
|
385
385
|
#
|
386
386
|
# @overload create_intent(request, options = nil)
|
387
387
|
# Pass arguments to `create_intent` via a request object, either of type
|
388
|
-
# {Google::Cloud::Dialogflow::V2::CreateIntentRequest} or an equivalent Hash.
|
388
|
+
# {::Google::Cloud::Dialogflow::V2::CreateIntentRequest} or an equivalent Hash.
|
389
389
|
#
|
390
|
-
# @param request [Google::Cloud::Dialogflow::V2::CreateIntentRequest, Hash]
|
390
|
+
# @param request [::Google::Cloud::Dialogflow::V2::CreateIntentRequest, ::Hash]
|
391
391
|
# A request object representing the call parameters. Required. To specify no
|
392
392
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
393
|
-
# @param options [Gapic::CallOptions, Hash]
|
393
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
394
394
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
395
395
|
#
|
396
396
|
# @overload create_intent(parent: nil, intent: nil, language_code: nil, intent_view: nil)
|
@@ -398,41 +398,41 @@ module Google
|
|
398
398
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
399
399
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
400
400
|
#
|
401
|
-
# @param parent [String]
|
401
|
+
# @param parent [::String]
|
402
402
|
# Required. The agent to create a intent for.
|
403
403
|
# Format: `projects/<Project ID>/agent`.
|
404
|
-
# @param intent [Google::Cloud::Dialogflow::V2::Intent, Hash]
|
404
|
+
# @param intent [::Google::Cloud::Dialogflow::V2::Intent, ::Hash]
|
405
405
|
# Required. The intent to create.
|
406
|
-
# @param language_code [String]
|
406
|
+
# @param language_code [::String]
|
407
407
|
# Optional. The language used to access language-specific data.
|
408
408
|
# If not specified, the agent's default language is used.
|
409
409
|
# For more information, see
|
410
410
|
# [Multilingual intent and entity
|
411
411
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
412
|
-
# @param intent_view [Google::Cloud::Dialogflow::V2::IntentView]
|
412
|
+
# @param intent_view [::Google::Cloud::Dialogflow::V2::IntentView]
|
413
413
|
# Optional. The resource view to apply to the returned intent.
|
414
414
|
#
|
415
415
|
# @yield [response, operation] Access the result along with the RPC operation
|
416
|
-
# @yieldparam response [Google::Cloud::Dialogflow::V2::Intent]
|
417
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
416
|
+
# @yieldparam response [::Google::Cloud::Dialogflow::V2::Intent]
|
417
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
418
418
|
#
|
419
|
-
# @return [Google::Cloud::Dialogflow::V2::Intent]
|
419
|
+
# @return [::Google::Cloud::Dialogflow::V2::Intent]
|
420
420
|
#
|
421
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
421
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
422
422
|
#
|
423
423
|
def create_intent request, options = nil
|
424
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
424
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
425
425
|
|
426
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::CreateIntentRequest
|
426
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::CreateIntentRequest
|
427
427
|
|
428
428
|
# Converts hash and nil to an options object
|
429
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
429
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
430
430
|
|
431
431
|
# Customize the options with defaults
|
432
432
|
metadata = @config.rpcs.create_intent.metadata.to_h
|
433
433
|
|
434
434
|
# Set x-goog-api-client and x-goog-user-project headers
|
435
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
435
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
436
436
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
437
437
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
438
438
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -453,8 +453,8 @@ module Google
|
|
453
453
|
yield response, operation if block_given?
|
454
454
|
return response
|
455
455
|
end
|
456
|
-
rescue GRPC::BadStatus => e
|
457
|
-
raise Google::Cloud::Error.from_error(e)
|
456
|
+
rescue ::GRPC::BadStatus => e
|
457
|
+
raise ::Google::Cloud::Error.from_error(e)
|
458
458
|
end
|
459
459
|
|
460
460
|
##
|
@@ -462,12 +462,12 @@ module Google
|
|
462
462
|
#
|
463
463
|
# @overload update_intent(request, options = nil)
|
464
464
|
# Pass arguments to `update_intent` via a request object, either of type
|
465
|
-
# {Google::Cloud::Dialogflow::V2::UpdateIntentRequest} or an equivalent Hash.
|
465
|
+
# {::Google::Cloud::Dialogflow::V2::UpdateIntentRequest} or an equivalent Hash.
|
466
466
|
#
|
467
|
-
# @param request [Google::Cloud::Dialogflow::V2::UpdateIntentRequest, Hash]
|
467
|
+
# @param request [::Google::Cloud::Dialogflow::V2::UpdateIntentRequest, ::Hash]
|
468
468
|
# A request object representing the call parameters. Required. To specify no
|
469
469
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
470
|
-
# @param options [Gapic::CallOptions, Hash]
|
470
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
471
471
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
472
472
|
#
|
473
473
|
# @overload update_intent(intent: nil, language_code: nil, update_mask: nil, intent_view: nil)
|
@@ -475,40 +475,40 @@ module Google
|
|
475
475
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
476
476
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
477
477
|
#
|
478
|
-
# @param intent [Google::Cloud::Dialogflow::V2::Intent, Hash]
|
478
|
+
# @param intent [::Google::Cloud::Dialogflow::V2::Intent, ::Hash]
|
479
479
|
# Required. The intent to update.
|
480
|
-
# @param language_code [String]
|
480
|
+
# @param language_code [::String]
|
481
481
|
# Optional. The language used to access language-specific data.
|
482
482
|
# If not specified, the agent's default language is used.
|
483
483
|
# For more information, see
|
484
484
|
# [Multilingual intent and entity
|
485
485
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
486
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
486
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
487
487
|
# Optional. The mask to control which fields get updated.
|
488
|
-
# @param intent_view [Google::Cloud::Dialogflow::V2::IntentView]
|
488
|
+
# @param intent_view [::Google::Cloud::Dialogflow::V2::IntentView]
|
489
489
|
# Optional. The resource view to apply to the returned intent.
|
490
490
|
#
|
491
491
|
# @yield [response, operation] Access the result along with the RPC operation
|
492
|
-
# @yieldparam response [Google::Cloud::Dialogflow::V2::Intent]
|
493
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
492
|
+
# @yieldparam response [::Google::Cloud::Dialogflow::V2::Intent]
|
493
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
494
494
|
#
|
495
|
-
# @return [Google::Cloud::Dialogflow::V2::Intent]
|
495
|
+
# @return [::Google::Cloud::Dialogflow::V2::Intent]
|
496
496
|
#
|
497
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
497
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
498
498
|
#
|
499
499
|
def update_intent request, options = nil
|
500
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
500
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
501
501
|
|
502
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::UpdateIntentRequest
|
502
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::UpdateIntentRequest
|
503
503
|
|
504
504
|
# Converts hash and nil to an options object
|
505
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
505
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
506
506
|
|
507
507
|
# Customize the options with defaults
|
508
508
|
metadata = @config.rpcs.update_intent.metadata.to_h
|
509
509
|
|
510
510
|
# Set x-goog-api-client and x-goog-user-project headers
|
511
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
511
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
512
512
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
513
513
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
514
514
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -529,8 +529,8 @@ module Google
|
|
529
529
|
yield response, operation if block_given?
|
530
530
|
return response
|
531
531
|
end
|
532
|
-
rescue GRPC::BadStatus => e
|
533
|
-
raise Google::Cloud::Error.from_error(e)
|
532
|
+
rescue ::GRPC::BadStatus => e
|
533
|
+
raise ::Google::Cloud::Error.from_error(e)
|
534
534
|
end
|
535
535
|
|
536
536
|
##
|
@@ -538,12 +538,12 @@ module Google
|
|
538
538
|
#
|
539
539
|
# @overload delete_intent(request, options = nil)
|
540
540
|
# Pass arguments to `delete_intent` via a request object, either of type
|
541
|
-
# {Google::Cloud::Dialogflow::V2::DeleteIntentRequest} or an equivalent Hash.
|
541
|
+
# {::Google::Cloud::Dialogflow::V2::DeleteIntentRequest} or an equivalent Hash.
|
542
542
|
#
|
543
|
-
# @param request [Google::Cloud::Dialogflow::V2::DeleteIntentRequest, Hash]
|
543
|
+
# @param request [::Google::Cloud::Dialogflow::V2::DeleteIntentRequest, ::Hash]
|
544
544
|
# A request object representing the call parameters. Required. To specify no
|
545
545
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
546
|
-
# @param options [Gapic::CallOptions, Hash]
|
546
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
547
547
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
548
548
|
#
|
549
549
|
# @overload delete_intent(name: nil)
|
@@ -551,32 +551,32 @@ module Google
|
|
551
551
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
552
552
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
553
553
|
#
|
554
|
-
# @param name [String]
|
554
|
+
# @param name [::String]
|
555
555
|
# Required. The name of the intent to delete. If this intent has direct or
|
556
556
|
# indirect followup intents, we also delete them.
|
557
557
|
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
|
558
558
|
#
|
559
559
|
# @yield [response, operation] Access the result along with the RPC operation
|
560
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
561
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
560
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
561
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
562
562
|
#
|
563
|
-
# @return [Google::Protobuf::Empty]
|
563
|
+
# @return [::Google::Protobuf::Empty]
|
564
564
|
#
|
565
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
565
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
566
566
|
#
|
567
567
|
def delete_intent request, options = nil
|
568
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
568
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
569
569
|
|
570
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::DeleteIntentRequest
|
570
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::DeleteIntentRequest
|
571
571
|
|
572
572
|
# Converts hash and nil to an options object
|
573
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
573
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
574
574
|
|
575
575
|
# Customize the options with defaults
|
576
576
|
metadata = @config.rpcs.delete_intent.metadata.to_h
|
577
577
|
|
578
578
|
# Set x-goog-api-client and x-goog-user-project headers
|
579
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
579
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
580
580
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
581
581
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
582
582
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -597,23 +597,23 @@ module Google
|
|
597
597
|
yield response, operation if block_given?
|
598
598
|
return response
|
599
599
|
end
|
600
|
-
rescue GRPC::BadStatus => e
|
601
|
-
raise Google::Cloud::Error.from_error(e)
|
600
|
+
rescue ::GRPC::BadStatus => e
|
601
|
+
raise ::Google::Cloud::Error.from_error(e)
|
602
602
|
end
|
603
603
|
|
604
604
|
##
|
605
605
|
# Updates/Creates multiple intents in the specified agent.
|
606
606
|
#
|
607
|
-
# Operation <response: {Google::Cloud::Dialogflow::V2::BatchUpdateIntentsResponse BatchUpdateIntentsResponse}>
|
607
|
+
# Operation <response: {::Google::Cloud::Dialogflow::V2::BatchUpdateIntentsResponse BatchUpdateIntentsResponse}>
|
608
608
|
#
|
609
609
|
# @overload batch_update_intents(request, options = nil)
|
610
610
|
# Pass arguments to `batch_update_intents` via a request object, either of type
|
611
|
-
# {Google::Cloud::Dialogflow::V2::BatchUpdateIntentsRequest} or an equivalent Hash.
|
611
|
+
# {::Google::Cloud::Dialogflow::V2::BatchUpdateIntentsRequest} or an equivalent Hash.
|
612
612
|
#
|
613
|
-
# @param request [Google::Cloud::Dialogflow::V2::BatchUpdateIntentsRequest, Hash]
|
613
|
+
# @param request [::Google::Cloud::Dialogflow::V2::BatchUpdateIntentsRequest, ::Hash]
|
614
614
|
# A request object representing the call parameters. Required. To specify no
|
615
615
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
616
|
-
# @param options [Gapic::CallOptions, Hash]
|
616
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
617
617
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
618
618
|
#
|
619
619
|
# @overload batch_update_intents(parent: nil, intent_batch_uri: nil, intent_batch_inline: nil, language_code: nil, update_mask: nil, intent_view: nil)
|
@@ -621,47 +621,47 @@ module Google
|
|
621
621
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
622
622
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
623
623
|
#
|
624
|
-
# @param parent [String]
|
624
|
+
# @param parent [::String]
|
625
625
|
# Required. The name of the agent to update or create intents in.
|
626
626
|
# Format: `projects/<Project ID>/agent`.
|
627
|
-
# @param intent_batch_uri [String]
|
627
|
+
# @param intent_batch_uri [::String]
|
628
628
|
# The URI to a Google Cloud Storage file containing intents to update or
|
629
629
|
# create. The file format can either be a serialized proto (of IntentBatch
|
630
630
|
# type) or JSON object. Note: The URI must start with "gs://".
|
631
|
-
# @param intent_batch_inline [Google::Cloud::Dialogflow::V2::IntentBatch, Hash]
|
631
|
+
# @param intent_batch_inline [::Google::Cloud::Dialogflow::V2::IntentBatch, ::Hash]
|
632
632
|
# The collection of intents to update or create.
|
633
|
-
# @param language_code [String]
|
633
|
+
# @param language_code [::String]
|
634
634
|
# Optional. The language used to access language-specific data.
|
635
635
|
# If not specified, the agent's default language is used.
|
636
636
|
# For more information, see
|
637
637
|
# [Multilingual intent and entity
|
638
638
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
639
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
639
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
640
640
|
# Optional. The mask to control which fields get updated.
|
641
|
-
# @param intent_view [Google::Cloud::Dialogflow::V2::IntentView]
|
641
|
+
# @param intent_view [::Google::Cloud::Dialogflow::V2::IntentView]
|
642
642
|
# Optional. The resource view to apply to the returned intent.
|
643
643
|
#
|
644
644
|
# @yield [response, operation] Access the result along with the RPC operation
|
645
|
-
# @yieldparam response [Gapic::Operation]
|
646
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
645
|
+
# @yieldparam response [::Gapic::Operation]
|
646
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
647
647
|
#
|
648
|
-
# @return [Gapic::Operation]
|
648
|
+
# @return [::Gapic::Operation]
|
649
649
|
#
|
650
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
650
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
651
651
|
#
|
652
652
|
def batch_update_intents request, options = nil
|
653
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
653
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
654
654
|
|
655
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::BatchUpdateIntentsRequest
|
655
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::BatchUpdateIntentsRequest
|
656
656
|
|
657
657
|
# Converts hash and nil to an options object
|
658
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
658
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
659
659
|
|
660
660
|
# Customize the options with defaults
|
661
661
|
metadata = @config.rpcs.batch_update_intents.metadata.to_h
|
662
662
|
|
663
663
|
# Set x-goog-api-client and x-goog-user-project headers
|
664
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
664
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
665
665
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
666
666
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
667
667
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -679,27 +679,27 @@ module Google
|
|
679
679
|
retry_policy: @config.retry_policy
|
680
680
|
|
681
681
|
@intents_stub.call_rpc :batch_update_intents, request, options: options do |response, operation|
|
682
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
682
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
683
683
|
yield response, operation if block_given?
|
684
684
|
return response
|
685
685
|
end
|
686
|
-
rescue GRPC::BadStatus => e
|
687
|
-
raise Google::Cloud::Error.from_error(e)
|
686
|
+
rescue ::GRPC::BadStatus => e
|
687
|
+
raise ::Google::Cloud::Error.from_error(e)
|
688
688
|
end
|
689
689
|
|
690
690
|
##
|
691
691
|
# Deletes intents in the specified agent.
|
692
692
|
#
|
693
|
-
# Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
|
693
|
+
# Operation <response: {::Google::Protobuf::Empty google.protobuf.Empty}>
|
694
694
|
#
|
695
695
|
# @overload batch_delete_intents(request, options = nil)
|
696
696
|
# Pass arguments to `batch_delete_intents` via a request object, either of type
|
697
|
-
# {Google::Cloud::Dialogflow::V2::BatchDeleteIntentsRequest} or an equivalent Hash.
|
697
|
+
# {::Google::Cloud::Dialogflow::V2::BatchDeleteIntentsRequest} or an equivalent Hash.
|
698
698
|
#
|
699
|
-
# @param request [Google::Cloud::Dialogflow::V2::BatchDeleteIntentsRequest, Hash]
|
699
|
+
# @param request [::Google::Cloud::Dialogflow::V2::BatchDeleteIntentsRequest, ::Hash]
|
700
700
|
# A request object representing the call parameters. Required. To specify no
|
701
701
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
702
|
-
# @param options [Gapic::CallOptions, Hash]
|
702
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
703
703
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
704
704
|
#
|
705
705
|
# @overload batch_delete_intents(parent: nil, intents: nil)
|
@@ -707,34 +707,34 @@ module Google
|
|
707
707
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
708
708
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
709
709
|
#
|
710
|
-
# @param parent [String]
|
710
|
+
# @param parent [::String]
|
711
711
|
# Required. The name of the agent to delete all entities types for. Format:
|
712
712
|
# `projects/<Project ID>/agent`.
|
713
|
-
# @param intents [Array
|
713
|
+
# @param intents [::Array<::Google::Cloud::Dialogflow::V2::Intent, ::Hash>]
|
714
714
|
# Required. The collection of intents to delete. Only intent `name` must be
|
715
715
|
# filled in.
|
716
716
|
#
|
717
717
|
# @yield [response, operation] Access the result along with the RPC operation
|
718
|
-
# @yieldparam response [Gapic::Operation]
|
719
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
718
|
+
# @yieldparam response [::Gapic::Operation]
|
719
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
720
720
|
#
|
721
|
-
# @return [Gapic::Operation]
|
721
|
+
# @return [::Gapic::Operation]
|
722
722
|
#
|
723
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
723
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
724
724
|
#
|
725
725
|
def batch_delete_intents request, options = nil
|
726
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
726
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
727
727
|
|
728
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::BatchDeleteIntentsRequest
|
728
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::BatchDeleteIntentsRequest
|
729
729
|
|
730
730
|
# Converts hash and nil to an options object
|
731
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
731
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
732
732
|
|
733
733
|
# Customize the options with defaults
|
734
734
|
metadata = @config.rpcs.batch_delete_intents.metadata.to_h
|
735
735
|
|
736
736
|
# Set x-goog-api-client and x-goog-user-project headers
|
737
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
737
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
738
738
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
739
739
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
740
740
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -752,12 +752,12 @@ module Google
|
|
752
752
|
retry_policy: @config.retry_policy
|
753
753
|
|
754
754
|
@intents_stub.call_rpc :batch_delete_intents, request, options: options do |response, operation|
|
755
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
755
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
756
756
|
yield response, operation if block_given?
|
757
757
|
return response
|
758
758
|
end
|
759
|
-
rescue GRPC::BadStatus => e
|
760
|
-
raise Google::Cloud::Error.from_error(e)
|
759
|
+
rescue ::GRPC::BadStatus => e
|
760
|
+
raise ::Google::Cloud::Error.from_error(e)
|
761
761
|
end
|
762
762
|
|
763
763
|
##
|
@@ -767,7 +767,7 @@ module Google
|
|
767
767
|
# providing control over timeouts, retry behavior, logging, transport
|
768
768
|
# parameters, and other low-level controls. Certain parameters can also be
|
769
769
|
# applied individually to specific RPCs. See
|
770
|
-
# {Google::Cloud::Dialogflow::V2::Intents::Client::Configuration::Rpcs}
|
770
|
+
# {::Google::Cloud::Dialogflow::V2::Intents::Client::Configuration::Rpcs}
|
771
771
|
# for a list of RPCs that can be configured independently.
|
772
772
|
#
|
773
773
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -778,22 +778,22 @@ module Google
|
|
778
778
|
# To modify the global config, setting the timeout for list_intents
|
779
779
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
780
780
|
#
|
781
|
-
# Google::Cloud::Dialogflow::V2::Intents::Client.configure do |config|
|
782
|
-
# config.timeout =
|
783
|
-
# config.rpcs.list_intents.timeout =
|
781
|
+
# ::Google::Cloud::Dialogflow::V2::Intents::Client.configure do |config|
|
782
|
+
# config.timeout = 10.0
|
783
|
+
# config.rpcs.list_intents.timeout = 20.0
|
784
784
|
# end
|
785
785
|
#
|
786
786
|
# To apply the above configuration only to a new client:
|
787
787
|
#
|
788
|
-
# client = Google::Cloud::Dialogflow::V2::Intents::Client.new do |config|
|
789
|
-
# config.timeout =
|
790
|
-
# config.rpcs.list_intents.timeout =
|
788
|
+
# client = ::Google::Cloud::Dialogflow::V2::Intents::Client.new do |config|
|
789
|
+
# config.timeout = 10.0
|
790
|
+
# config.rpcs.list_intents.timeout = 20.0
|
791
791
|
# end
|
792
792
|
#
|
793
793
|
# @!attribute [rw] endpoint
|
794
794
|
# The hostname or hostname:port of the service endpoint.
|
795
795
|
# Defaults to `"dialogflow.googleapis.com"`.
|
796
|
-
# @return [String]
|
796
|
+
# @return [::String]
|
797
797
|
# @!attribute [rw] credentials
|
798
798
|
# Credentials to send with calls. You may provide any of the following types:
|
799
799
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -805,29 +805,29 @@ module Google
|
|
805
805
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
806
806
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
807
807
|
# * (`nil`) indicating no credentials
|
808
|
-
# @return [Object]
|
808
|
+
# @return [::Object]
|
809
809
|
# @!attribute [rw] scope
|
810
810
|
# The OAuth scopes
|
811
|
-
# @return [Array
|
811
|
+
# @return [::Array<::String>]
|
812
812
|
# @!attribute [rw] lib_name
|
813
813
|
# The library name as recorded in instrumentation and logging
|
814
|
-
# @return [String]
|
814
|
+
# @return [::String]
|
815
815
|
# @!attribute [rw] lib_version
|
816
816
|
# The library version as recorded in instrumentation and logging
|
817
|
-
# @return [String]
|
817
|
+
# @return [::String]
|
818
818
|
# @!attribute [rw] channel_args
|
819
819
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
820
820
|
# `GRPC::Core::Channel` object is provided as the credential.
|
821
|
-
# @return [Hash]
|
821
|
+
# @return [::Hash]
|
822
822
|
# @!attribute [rw] interceptors
|
823
823
|
# An array of interceptors that are run before calls are executed.
|
824
|
-
# @return [Array
|
824
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
825
825
|
# @!attribute [rw] timeout
|
826
|
-
# The call timeout in
|
827
|
-
# @return [Numeric]
|
826
|
+
# The call timeout in seconds.
|
827
|
+
# @return [::Numeric]
|
828
828
|
# @!attribute [rw] metadata
|
829
829
|
# Additional gRPC headers to be sent with the call.
|
830
|
-
# @return [Hash{Symbol
|
830
|
+
# @return [::Hash{::Symbol=>::String}]
|
831
831
|
# @!attribute [rw] retry_policy
|
832
832
|
# The retry policy. The value is a hash with the following keys:
|
833
833
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -835,10 +835,10 @@ module Google
|
|
835
835
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
836
836
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
837
837
|
# trigger a retry.
|
838
|
-
# @return [Hash]
|
838
|
+
# @return [::Hash]
|
839
839
|
#
|
840
840
|
class Configuration
|
841
|
-
extend Gapic::Config
|
841
|
+
extend ::Gapic::Config
|
842
842
|
|
843
843
|
config_attr :endpoint, "dialogflow.googleapis.com", String
|
844
844
|
config_attr :credentials, nil do |value|
|
@@ -846,14 +846,14 @@ module Google
|
|
846
846
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
847
847
|
allowed.any? { |klass| klass === value }
|
848
848
|
end
|
849
|
-
config_attr :scope, nil, String, Array, nil
|
850
|
-
config_attr :lib_name, nil, String, nil
|
851
|
-
config_attr :lib_version, nil, String, nil
|
852
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
|
853
|
-
config_attr :interceptors, nil, Array, nil
|
854
|
-
config_attr :timeout, nil, Numeric, nil
|
855
|
-
config_attr :metadata, nil, Hash, nil
|
856
|
-
config_attr :retry_policy, nil, Hash, Proc, nil
|
849
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
850
|
+
config_attr :lib_name, nil, ::String, nil
|
851
|
+
config_attr :lib_version, nil, ::String, nil
|
852
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
853
|
+
config_attr :interceptors, nil, ::Array, nil
|
854
|
+
config_attr :timeout, nil, ::Numeric, nil
|
855
|
+
config_attr :metadata, nil, ::Hash, nil
|
856
|
+
config_attr :retry_policy, nil, ::Hash, Proc, nil
|
857
857
|
|
858
858
|
# @private
|
859
859
|
def initialize parent_config = nil
|
@@ -894,56 +894,56 @@ module Google
|
|
894
894
|
class Rpcs
|
895
895
|
##
|
896
896
|
# RPC-specific configuration for `list_intents`
|
897
|
-
# @return [Gapic::Config::Method]
|
897
|
+
# @return [::Gapic::Config::Method]
|
898
898
|
#
|
899
899
|
attr_reader :list_intents
|
900
900
|
##
|
901
901
|
# RPC-specific configuration for `get_intent`
|
902
|
-
# @return [Gapic::Config::Method]
|
902
|
+
# @return [::Gapic::Config::Method]
|
903
903
|
#
|
904
904
|
attr_reader :get_intent
|
905
905
|
##
|
906
906
|
# RPC-specific configuration for `create_intent`
|
907
|
-
# @return [Gapic::Config::Method]
|
907
|
+
# @return [::Gapic::Config::Method]
|
908
908
|
#
|
909
909
|
attr_reader :create_intent
|
910
910
|
##
|
911
911
|
# RPC-specific configuration for `update_intent`
|
912
|
-
# @return [Gapic::Config::Method]
|
912
|
+
# @return [::Gapic::Config::Method]
|
913
913
|
#
|
914
914
|
attr_reader :update_intent
|
915
915
|
##
|
916
916
|
# RPC-specific configuration for `delete_intent`
|
917
|
-
# @return [Gapic::Config::Method]
|
917
|
+
# @return [::Gapic::Config::Method]
|
918
918
|
#
|
919
919
|
attr_reader :delete_intent
|
920
920
|
##
|
921
921
|
# RPC-specific configuration for `batch_update_intents`
|
922
|
-
# @return [Gapic::Config::Method]
|
922
|
+
# @return [::Gapic::Config::Method]
|
923
923
|
#
|
924
924
|
attr_reader :batch_update_intents
|
925
925
|
##
|
926
926
|
# RPC-specific configuration for `batch_delete_intents`
|
927
|
-
# @return [Gapic::Config::Method]
|
927
|
+
# @return [::Gapic::Config::Method]
|
928
928
|
#
|
929
929
|
attr_reader :batch_delete_intents
|
930
930
|
|
931
931
|
# @private
|
932
932
|
def initialize parent_rpcs = nil
|
933
933
|
list_intents_config = parent_rpcs&.list_intents if parent_rpcs&.respond_to? :list_intents
|
934
|
-
@list_intents = Gapic::Config::Method.new list_intents_config
|
934
|
+
@list_intents = ::Gapic::Config::Method.new list_intents_config
|
935
935
|
get_intent_config = parent_rpcs&.get_intent if parent_rpcs&.respond_to? :get_intent
|
936
|
-
@get_intent = Gapic::Config::Method.new get_intent_config
|
936
|
+
@get_intent = ::Gapic::Config::Method.new get_intent_config
|
937
937
|
create_intent_config = parent_rpcs&.create_intent if parent_rpcs&.respond_to? :create_intent
|
938
|
-
@create_intent = Gapic::Config::Method.new create_intent_config
|
938
|
+
@create_intent = ::Gapic::Config::Method.new create_intent_config
|
939
939
|
update_intent_config = parent_rpcs&.update_intent if parent_rpcs&.respond_to? :update_intent
|
940
|
-
@update_intent = Gapic::Config::Method.new update_intent_config
|
940
|
+
@update_intent = ::Gapic::Config::Method.new update_intent_config
|
941
941
|
delete_intent_config = parent_rpcs&.delete_intent if parent_rpcs&.respond_to? :delete_intent
|
942
|
-
@delete_intent = Gapic::Config::Method.new delete_intent_config
|
942
|
+
@delete_intent = ::Gapic::Config::Method.new delete_intent_config
|
943
943
|
batch_update_intents_config = parent_rpcs&.batch_update_intents if parent_rpcs&.respond_to? :batch_update_intents
|
944
|
-
@batch_update_intents = Gapic::Config::Method.new batch_update_intents_config
|
944
|
+
@batch_update_intents = ::Gapic::Config::Method.new batch_update_intents_config
|
945
945
|
batch_delete_intents_config = parent_rpcs&.batch_delete_intents if parent_rpcs&.respond_to? :batch_delete_intents
|
946
|
-
@batch_delete_intents = Gapic::Config::Method.new batch_delete_intents_config
|
946
|
+
@batch_delete_intents = ::Gapic::Config::Method.new batch_delete_intents_config
|
947
947
|
|
948
948
|
yield self if block_given?
|
949
949
|
end
|