google-cloud-dialogflow-v2 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -47,7 +47,7 @@ module Google
|
|
47
47
|
#
|
48
48
|
# @param project [String]
|
49
49
|
#
|
50
|
-
# @return [String]
|
50
|
+
# @return [::String]
|
51
51
|
def project_path project:
|
52
52
|
"projects/#{project}"
|
53
53
|
end
|
@@ -39,8 +39,8 @@ module Google
|
|
39
39
|
# geographic location, and so on.
|
40
40
|
#
|
41
41
|
# You can include contexts as input parameters of a
|
42
|
-
# {Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent DetectIntent} (or
|
43
|
-
# {Google::Cloud::Dialogflow::V2::Sessions::Client#streaming_detect_intent StreamingDetectIntent}) request,
|
42
|
+
# {::Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent DetectIntent} (or
|
43
|
+
# {::Google::Cloud::Dialogflow::V2::Sessions::Client#streaming_detect_intent StreamingDetectIntent}) request,
|
44
44
|
# or as output contexts included in the returned intent.
|
45
45
|
# Contexts expire when an intent is matched, after the number of `DetectIntent`
|
46
46
|
# requests specified by the `lifespan_count` parameter, or after 20 minutes
|
@@ -53,7 +53,7 @@ module Google
|
|
53
53
|
# To load this service and instantiate a client:
|
54
54
|
#
|
55
55
|
# require "google/cloud/dialogflow/v2/contexts"
|
56
|
-
# client = Google::Cloud::Dialogflow::V2::Contexts::Client.new
|
56
|
+
# client = ::Google::Cloud::Dialogflow::V2::Contexts::Client.new
|
57
57
|
#
|
58
58
|
module Contexts
|
59
59
|
end
|
@@ -35,8 +35,8 @@ module Google
|
|
35
35
|
# geographic location, and so on.
|
36
36
|
#
|
37
37
|
# You can include contexts as input parameters of a
|
38
|
-
# {Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent DetectIntent} (or
|
39
|
-
# {Google::Cloud::Dialogflow::V2::Sessions::Client#streaming_detect_intent StreamingDetectIntent}) request,
|
38
|
+
# {::Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent DetectIntent} (or
|
39
|
+
# {::Google::Cloud::Dialogflow::V2::Sessions::Client#streaming_detect_intent StreamingDetectIntent}) request,
|
40
40
|
# or as output contexts included in the returned intent.
|
41
41
|
# Contexts expire when an intent is matched, after the number of `DetectIntent`
|
42
42
|
# requests specified by the `lifespan_count` parameter, or after 20 minutes
|
@@ -55,15 +55,15 @@ module Google
|
|
55
55
|
##
|
56
56
|
# Configure the Contexts Client class.
|
57
57
|
#
|
58
|
-
# See {Google::Cloud::Dialogflow::V2::Contexts::Client::Configuration}
|
58
|
+
# See {::Google::Cloud::Dialogflow::V2::Contexts::Client::Configuration}
|
59
59
|
# for a description of the configuration fields.
|
60
60
|
#
|
61
61
|
# ## Example
|
62
62
|
#
|
63
63
|
# To modify the configuration for all Contexts clients:
|
64
64
|
#
|
65
|
-
# Google::Cloud::Dialogflow::V2::Contexts::Client.configure do |config|
|
66
|
-
# config.timeout =
|
65
|
+
# ::Google::Cloud::Dialogflow::V2::Contexts::Client.configure do |config|
|
66
|
+
# config.timeout = 10.0
|
67
67
|
# end
|
68
68
|
#
|
69
69
|
# @yield [config] Configure the Client client.
|
@@ -131,7 +131,7 @@ module Google
|
|
131
131
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
132
132
|
# should be made on {Client.configure}.
|
133
133
|
#
|
134
|
-
# See {Google::Cloud::Dialogflow::V2::Contexts::Client::Configuration}
|
134
|
+
# See {::Google::Cloud::Dialogflow::V2::Contexts::Client::Configuration}
|
135
135
|
# for a description of the configuration fields.
|
136
136
|
#
|
137
137
|
# @yield [config] Configure the Client client.
|
@@ -152,13 +152,13 @@ module Google
|
|
152
152
|
# To create a new Contexts client with the default
|
153
153
|
# configuration:
|
154
154
|
#
|
155
|
-
# client = Google::Cloud::Dialogflow::V2::Contexts::Client.new
|
155
|
+
# client = ::Google::Cloud::Dialogflow::V2::Contexts::Client.new
|
156
156
|
#
|
157
157
|
# To create a new Contexts client with a custom
|
158
158
|
# configuration:
|
159
159
|
#
|
160
|
-
# client = Google::Cloud::Dialogflow::V2::Contexts::Client.new do |config|
|
161
|
-
# config.timeout =
|
160
|
+
# client = ::Google::Cloud::Dialogflow::V2::Contexts::Client.new do |config|
|
161
|
+
# config.timeout = 10.0
|
162
162
|
# end
|
163
163
|
#
|
164
164
|
# @yield [config] Configure the Contexts client.
|
@@ -185,8 +185,8 @@ module Google
|
|
185
185
|
end
|
186
186
|
@quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
|
187
187
|
|
188
|
-
@contexts_stub = Gapic::ServiceStub.new(
|
189
|
-
Google::Cloud::Dialogflow::V2::Contexts::Stub,
|
188
|
+
@contexts_stub = ::Gapic::ServiceStub.new(
|
189
|
+
::Google::Cloud::Dialogflow::V2::Contexts::Stub,
|
190
190
|
credentials: credentials,
|
191
191
|
endpoint: @config.endpoint,
|
192
192
|
channel_args: @config.channel_args,
|
@@ -201,12 +201,12 @@ module Google
|
|
201
201
|
#
|
202
202
|
# @overload list_contexts(request, options = nil)
|
203
203
|
# Pass arguments to `list_contexts` via a request object, either of type
|
204
|
-
# {Google::Cloud::Dialogflow::V2::ListContextsRequest} or an equivalent Hash.
|
204
|
+
# {::Google::Cloud::Dialogflow::V2::ListContextsRequest} or an equivalent Hash.
|
205
205
|
#
|
206
|
-
# @param request [Google::Cloud::Dialogflow::V2::ListContextsRequest, Hash]
|
206
|
+
# @param request [::Google::Cloud::Dialogflow::V2::ListContextsRequest, ::Hash]
|
207
207
|
# A request object representing the call parameters. Required. To specify no
|
208
208
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
209
|
-
# @param options [Gapic::CallOptions, Hash]
|
209
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
210
210
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
211
211
|
#
|
212
212
|
# @overload list_contexts(parent: nil, page_size: nil, page_token: nil)
|
@@ -214,40 +214,40 @@ module Google
|
|
214
214
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
215
215
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
216
216
|
#
|
217
|
-
# @param parent [String]
|
217
|
+
# @param parent [::String]
|
218
218
|
# Required. The session to list all contexts from.
|
219
219
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
220
220
|
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
221
221
|
# ID>/sessions/<Session ID>`.
|
222
222
|
# If `Environment ID` is not specified, we assume default 'draft'
|
223
223
|
# environment. If `User ID` is not specified, we assume default '-' user.
|
224
|
-
# @param page_size [Integer]
|
224
|
+
# @param page_size [::Integer]
|
225
225
|
# Optional. The maximum number of items to return in a single page. By
|
226
226
|
# default 100 and at most 1000.
|
227
|
-
# @param page_token [String]
|
227
|
+
# @param page_token [::String]
|
228
228
|
# Optional. The next_page_token value returned from a previous list request.
|
229
229
|
#
|
230
230
|
# @yield [response, operation] Access the result along with the RPC operation
|
231
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
232
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
231
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Context>]
|
232
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
233
233
|
#
|
234
|
-
# @return [Gapic::PagedEnumerable
|
234
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Context>]
|
235
235
|
#
|
236
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
236
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
237
237
|
#
|
238
238
|
def list_contexts request, options = nil
|
239
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
239
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
240
240
|
|
241
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::ListContextsRequest
|
241
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::ListContextsRequest
|
242
242
|
|
243
243
|
# Converts hash and nil to an options object
|
244
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
244
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
245
245
|
|
246
246
|
# Customize the options with defaults
|
247
247
|
metadata = @config.rpcs.list_contexts.metadata.to_h
|
248
248
|
|
249
249
|
# Set x-goog-api-client and x-goog-user-project headers
|
250
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
250
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
251
251
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
252
252
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
253
253
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -265,12 +265,12 @@ module Google
|
|
265
265
|
retry_policy: @config.retry_policy
|
266
266
|
|
267
267
|
@contexts_stub.call_rpc :list_contexts, request, options: options do |response, operation|
|
268
|
-
response = Gapic::PagedEnumerable.new @contexts_stub, :list_contexts, request, response, operation, options
|
268
|
+
response = ::Gapic::PagedEnumerable.new @contexts_stub, :list_contexts, request, response, operation, options
|
269
269
|
yield response, operation if block_given?
|
270
270
|
return response
|
271
271
|
end
|
272
|
-
rescue GRPC::BadStatus => e
|
273
|
-
raise Google::Cloud::Error.from_error(e)
|
272
|
+
rescue ::GRPC::BadStatus => e
|
273
|
+
raise ::Google::Cloud::Error.from_error(e)
|
274
274
|
end
|
275
275
|
|
276
276
|
##
|
@@ -278,12 +278,12 @@ module Google
|
|
278
278
|
#
|
279
279
|
# @overload get_context(request, options = nil)
|
280
280
|
# Pass arguments to `get_context` via a request object, either of type
|
281
|
-
# {Google::Cloud::Dialogflow::V2::GetContextRequest} or an equivalent Hash.
|
281
|
+
# {::Google::Cloud::Dialogflow::V2::GetContextRequest} or an equivalent Hash.
|
282
282
|
#
|
283
|
-
# @param request [Google::Cloud::Dialogflow::V2::GetContextRequest, Hash]
|
283
|
+
# @param request [::Google::Cloud::Dialogflow::V2::GetContextRequest, ::Hash]
|
284
284
|
# A request object representing the call parameters. Required. To specify no
|
285
285
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
286
|
-
# @param options [Gapic::CallOptions, Hash]
|
286
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
287
287
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
288
288
|
#
|
289
289
|
# @overload get_context(name: nil)
|
@@ -291,7 +291,7 @@ module Google
|
|
291
291
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
292
292
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
293
293
|
#
|
294
|
-
# @param name [String]
|
294
|
+
# @param name [::String]
|
295
295
|
# Required. The name of the context. Format:
|
296
296
|
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
297
297
|
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
@@ -300,26 +300,26 @@ module Google
|
|
300
300
|
# environment. If `User ID` is not specified, we assume default '-' user.
|
301
301
|
#
|
302
302
|
# @yield [response, operation] Access the result along with the RPC operation
|
303
|
-
# @yieldparam response [Google::Cloud::Dialogflow::V2::Context]
|
304
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
303
|
+
# @yieldparam response [::Google::Cloud::Dialogflow::V2::Context]
|
304
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
305
305
|
#
|
306
|
-
# @return [Google::Cloud::Dialogflow::V2::Context]
|
306
|
+
# @return [::Google::Cloud::Dialogflow::V2::Context]
|
307
307
|
#
|
308
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
308
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
309
309
|
#
|
310
310
|
def get_context request, options = nil
|
311
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
311
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
312
312
|
|
313
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::GetContextRequest
|
313
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::GetContextRequest
|
314
314
|
|
315
315
|
# Converts hash and nil to an options object
|
316
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
316
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
317
317
|
|
318
318
|
# Customize the options with defaults
|
319
319
|
metadata = @config.rpcs.get_context.metadata.to_h
|
320
320
|
|
321
321
|
# Set x-goog-api-client and x-goog-user-project headers
|
322
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
322
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
323
323
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
324
324
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
325
325
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -340,8 +340,8 @@ module Google
|
|
340
340
|
yield response, operation if block_given?
|
341
341
|
return response
|
342
342
|
end
|
343
|
-
rescue GRPC::BadStatus => e
|
344
|
-
raise Google::Cloud::Error.from_error(e)
|
343
|
+
rescue ::GRPC::BadStatus => e
|
344
|
+
raise ::Google::Cloud::Error.from_error(e)
|
345
345
|
end
|
346
346
|
|
347
347
|
##
|
@@ -351,12 +351,12 @@ module Google
|
|
351
351
|
#
|
352
352
|
# @overload create_context(request, options = nil)
|
353
353
|
# Pass arguments to `create_context` via a request object, either of type
|
354
|
-
# {Google::Cloud::Dialogflow::V2::CreateContextRequest} or an equivalent Hash.
|
354
|
+
# {::Google::Cloud::Dialogflow::V2::CreateContextRequest} or an equivalent Hash.
|
355
355
|
#
|
356
|
-
# @param request [Google::Cloud::Dialogflow::V2::CreateContextRequest, Hash]
|
356
|
+
# @param request [::Google::Cloud::Dialogflow::V2::CreateContextRequest, ::Hash]
|
357
357
|
# A request object representing the call parameters. Required. To specify no
|
358
358
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
359
|
-
# @param options [Gapic::CallOptions, Hash]
|
359
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
360
360
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
361
361
|
#
|
362
362
|
# @overload create_context(parent: nil, context: nil)
|
@@ -364,37 +364,37 @@ module Google
|
|
364
364
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
365
365
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
366
366
|
#
|
367
|
-
# @param parent [String]
|
367
|
+
# @param parent [::String]
|
368
368
|
# Required. The session to create a context for.
|
369
369
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
370
370
|
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
371
371
|
# ID>/sessions/<Session ID>`.
|
372
372
|
# If `Environment ID` is not specified, we assume default 'draft'
|
373
373
|
# environment. If `User ID` is not specified, we assume default '-' user.
|
374
|
-
# @param context [Google::Cloud::Dialogflow::V2::Context, Hash]
|
374
|
+
# @param context [::Google::Cloud::Dialogflow::V2::Context, ::Hash]
|
375
375
|
# Required. The context to create.
|
376
376
|
#
|
377
377
|
# @yield [response, operation] Access the result along with the RPC operation
|
378
|
-
# @yieldparam response [Google::Cloud::Dialogflow::V2::Context]
|
379
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
378
|
+
# @yieldparam response [::Google::Cloud::Dialogflow::V2::Context]
|
379
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
380
380
|
#
|
381
|
-
# @return [Google::Cloud::Dialogflow::V2::Context]
|
381
|
+
# @return [::Google::Cloud::Dialogflow::V2::Context]
|
382
382
|
#
|
383
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
383
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
384
384
|
#
|
385
385
|
def create_context request, options = nil
|
386
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
386
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
387
387
|
|
388
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::CreateContextRequest
|
388
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::CreateContextRequest
|
389
389
|
|
390
390
|
# Converts hash and nil to an options object
|
391
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
391
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
392
392
|
|
393
393
|
# Customize the options with defaults
|
394
394
|
metadata = @config.rpcs.create_context.metadata.to_h
|
395
395
|
|
396
396
|
# Set x-goog-api-client and x-goog-user-project headers
|
397
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
397
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
398
398
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
399
399
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
400
400
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -415,8 +415,8 @@ module Google
|
|
415
415
|
yield response, operation if block_given?
|
416
416
|
return response
|
417
417
|
end
|
418
|
-
rescue GRPC::BadStatus => e
|
419
|
-
raise Google::Cloud::Error.from_error(e)
|
418
|
+
rescue ::GRPC::BadStatus => e
|
419
|
+
raise ::Google::Cloud::Error.from_error(e)
|
420
420
|
end
|
421
421
|
|
422
422
|
##
|
@@ -424,12 +424,12 @@ module Google
|
|
424
424
|
#
|
425
425
|
# @overload update_context(request, options = nil)
|
426
426
|
# Pass arguments to `update_context` via a request object, either of type
|
427
|
-
# {Google::Cloud::Dialogflow::V2::UpdateContextRequest} or an equivalent Hash.
|
427
|
+
# {::Google::Cloud::Dialogflow::V2::UpdateContextRequest} or an equivalent Hash.
|
428
428
|
#
|
429
|
-
# @param request [Google::Cloud::Dialogflow::V2::UpdateContextRequest, Hash]
|
429
|
+
# @param request [::Google::Cloud::Dialogflow::V2::UpdateContextRequest, ::Hash]
|
430
430
|
# A request object representing the call parameters. Required. To specify no
|
431
431
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
432
|
-
# @param options [Gapic::CallOptions, Hash]
|
432
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
433
433
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
434
434
|
#
|
435
435
|
# @overload update_context(context: nil, update_mask: nil)
|
@@ -437,32 +437,32 @@ module Google
|
|
437
437
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
438
438
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
439
439
|
#
|
440
|
-
# @param context [Google::Cloud::Dialogflow::V2::Context, Hash]
|
440
|
+
# @param context [::Google::Cloud::Dialogflow::V2::Context, ::Hash]
|
441
441
|
# Required. The context to update.
|
442
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
442
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
443
443
|
# Optional. The mask to control which fields get updated.
|
444
444
|
#
|
445
445
|
# @yield [response, operation] Access the result along with the RPC operation
|
446
|
-
# @yieldparam response [Google::Cloud::Dialogflow::V2::Context]
|
447
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
446
|
+
# @yieldparam response [::Google::Cloud::Dialogflow::V2::Context]
|
447
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
448
448
|
#
|
449
|
-
# @return [Google::Cloud::Dialogflow::V2::Context]
|
449
|
+
# @return [::Google::Cloud::Dialogflow::V2::Context]
|
450
450
|
#
|
451
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
451
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
452
452
|
#
|
453
453
|
def update_context request, options = nil
|
454
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
454
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
455
455
|
|
456
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::UpdateContextRequest
|
456
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::UpdateContextRequest
|
457
457
|
|
458
458
|
# Converts hash and nil to an options object
|
459
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
459
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
460
460
|
|
461
461
|
# Customize the options with defaults
|
462
462
|
metadata = @config.rpcs.update_context.metadata.to_h
|
463
463
|
|
464
464
|
# Set x-goog-api-client and x-goog-user-project headers
|
465
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
465
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
466
466
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
467
467
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
468
468
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -483,8 +483,8 @@ module Google
|
|
483
483
|
yield response, operation if block_given?
|
484
484
|
return response
|
485
485
|
end
|
486
|
-
rescue GRPC::BadStatus => e
|
487
|
-
raise Google::Cloud::Error.from_error(e)
|
486
|
+
rescue ::GRPC::BadStatus => e
|
487
|
+
raise ::Google::Cloud::Error.from_error(e)
|
488
488
|
end
|
489
489
|
|
490
490
|
##
|
@@ -492,12 +492,12 @@ module Google
|
|
492
492
|
#
|
493
493
|
# @overload delete_context(request, options = nil)
|
494
494
|
# Pass arguments to `delete_context` via a request object, either of type
|
495
|
-
# {Google::Cloud::Dialogflow::V2::DeleteContextRequest} or an equivalent Hash.
|
495
|
+
# {::Google::Cloud::Dialogflow::V2::DeleteContextRequest} or an equivalent Hash.
|
496
496
|
#
|
497
|
-
# @param request [Google::Cloud::Dialogflow::V2::DeleteContextRequest, Hash]
|
497
|
+
# @param request [::Google::Cloud::Dialogflow::V2::DeleteContextRequest, ::Hash]
|
498
498
|
# A request object representing the call parameters. Required. To specify no
|
499
499
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
500
|
-
# @param options [Gapic::CallOptions, Hash]
|
500
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
501
501
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
502
502
|
#
|
503
503
|
# @overload delete_context(name: nil)
|
@@ -505,7 +505,7 @@ module Google
|
|
505
505
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
506
506
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
507
507
|
#
|
508
|
-
# @param name [String]
|
508
|
+
# @param name [::String]
|
509
509
|
# Required. The name of the context to delete. Format:
|
510
510
|
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
511
511
|
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
@@ -514,26 +514,26 @@ module Google
|
|
514
514
|
# environment. If `User ID` is not specified, we assume default '-' user.
|
515
515
|
#
|
516
516
|
# @yield [response, operation] Access the result along with the RPC operation
|
517
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
518
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
517
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
518
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
519
519
|
#
|
520
|
-
# @return [Google::Protobuf::Empty]
|
520
|
+
# @return [::Google::Protobuf::Empty]
|
521
521
|
#
|
522
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
522
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
523
523
|
#
|
524
524
|
def delete_context request, options = nil
|
525
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
525
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
526
526
|
|
527
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::DeleteContextRequest
|
527
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::DeleteContextRequest
|
528
528
|
|
529
529
|
# Converts hash and nil to an options object
|
530
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
530
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
531
531
|
|
532
532
|
# Customize the options with defaults
|
533
533
|
metadata = @config.rpcs.delete_context.metadata.to_h
|
534
534
|
|
535
535
|
# Set x-goog-api-client and x-goog-user-project headers
|
536
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
536
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
537
537
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
538
538
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
539
539
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -554,8 +554,8 @@ module Google
|
|
554
554
|
yield response, operation if block_given?
|
555
555
|
return response
|
556
556
|
end
|
557
|
-
rescue GRPC::BadStatus => e
|
558
|
-
raise Google::Cloud::Error.from_error(e)
|
557
|
+
rescue ::GRPC::BadStatus => e
|
558
|
+
raise ::Google::Cloud::Error.from_error(e)
|
559
559
|
end
|
560
560
|
|
561
561
|
##
|
@@ -563,12 +563,12 @@ module Google
|
|
563
563
|
#
|
564
564
|
# @overload delete_all_contexts(request, options = nil)
|
565
565
|
# Pass arguments to `delete_all_contexts` via a request object, either of type
|
566
|
-
# {Google::Cloud::Dialogflow::V2::DeleteAllContextsRequest} or an equivalent Hash.
|
566
|
+
# {::Google::Cloud::Dialogflow::V2::DeleteAllContextsRequest} or an equivalent Hash.
|
567
567
|
#
|
568
|
-
# @param request [Google::Cloud::Dialogflow::V2::DeleteAllContextsRequest, Hash]
|
568
|
+
# @param request [::Google::Cloud::Dialogflow::V2::DeleteAllContextsRequest, ::Hash]
|
569
569
|
# A request object representing the call parameters. Required. To specify no
|
570
570
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
571
|
-
# @param options [Gapic::CallOptions, Hash]
|
571
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
572
572
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
573
573
|
#
|
574
574
|
# @overload delete_all_contexts(parent: nil)
|
@@ -576,7 +576,7 @@ module Google
|
|
576
576
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
577
577
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
578
578
|
#
|
579
|
-
# @param parent [String]
|
579
|
+
# @param parent [::String]
|
580
580
|
# Required. The name of the session to delete all contexts from. Format:
|
581
581
|
# `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
|
582
582
|
# ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
|
@@ -585,26 +585,26 @@ module Google
|
|
585
585
|
# If `User ID` is not specified, we assume default '-' user.
|
586
586
|
#
|
587
587
|
# @yield [response, operation] Access the result along with the RPC operation
|
588
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
589
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
588
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
589
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
590
590
|
#
|
591
|
-
# @return [Google::Protobuf::Empty]
|
591
|
+
# @return [::Google::Protobuf::Empty]
|
592
592
|
#
|
593
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
593
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
594
594
|
#
|
595
595
|
def delete_all_contexts request, options = nil
|
596
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
596
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
597
597
|
|
598
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::DeleteAllContextsRequest
|
598
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::DeleteAllContextsRequest
|
599
599
|
|
600
600
|
# Converts hash and nil to an options object
|
601
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
601
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
602
602
|
|
603
603
|
# Customize the options with defaults
|
604
604
|
metadata = @config.rpcs.delete_all_contexts.metadata.to_h
|
605
605
|
|
606
606
|
# Set x-goog-api-client and x-goog-user-project headers
|
607
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
607
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
608
608
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
609
609
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
610
610
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -625,8 +625,8 @@ module Google
|
|
625
625
|
yield response, operation if block_given?
|
626
626
|
return response
|
627
627
|
end
|
628
|
-
rescue GRPC::BadStatus => e
|
629
|
-
raise Google::Cloud::Error.from_error(e)
|
628
|
+
rescue ::GRPC::BadStatus => e
|
629
|
+
raise ::Google::Cloud::Error.from_error(e)
|
630
630
|
end
|
631
631
|
|
632
632
|
##
|
@@ -636,7 +636,7 @@ module Google
|
|
636
636
|
# providing control over timeouts, retry behavior, logging, transport
|
637
637
|
# parameters, and other low-level controls. Certain parameters can also be
|
638
638
|
# applied individually to specific RPCs. See
|
639
|
-
# {Google::Cloud::Dialogflow::V2::Contexts::Client::Configuration::Rpcs}
|
639
|
+
# {::Google::Cloud::Dialogflow::V2::Contexts::Client::Configuration::Rpcs}
|
640
640
|
# for a list of RPCs that can be configured independently.
|
641
641
|
#
|
642
642
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -647,22 +647,22 @@ module Google
|
|
647
647
|
# To modify the global config, setting the timeout for list_contexts
|
648
648
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
649
649
|
#
|
650
|
-
# Google::Cloud::Dialogflow::V2::Contexts::Client.configure do |config|
|
651
|
-
# config.timeout =
|
652
|
-
# config.rpcs.list_contexts.timeout =
|
650
|
+
# ::Google::Cloud::Dialogflow::V2::Contexts::Client.configure do |config|
|
651
|
+
# config.timeout = 10.0
|
652
|
+
# config.rpcs.list_contexts.timeout = 20.0
|
653
653
|
# end
|
654
654
|
#
|
655
655
|
# To apply the above configuration only to a new client:
|
656
656
|
#
|
657
|
-
# client = Google::Cloud::Dialogflow::V2::Contexts::Client.new do |config|
|
658
|
-
# config.timeout =
|
659
|
-
# config.rpcs.list_contexts.timeout =
|
657
|
+
# client = ::Google::Cloud::Dialogflow::V2::Contexts::Client.new do |config|
|
658
|
+
# config.timeout = 10.0
|
659
|
+
# config.rpcs.list_contexts.timeout = 20.0
|
660
660
|
# end
|
661
661
|
#
|
662
662
|
# @!attribute [rw] endpoint
|
663
663
|
# The hostname or hostname:port of the service endpoint.
|
664
664
|
# Defaults to `"dialogflow.googleapis.com"`.
|
665
|
-
# @return [String]
|
665
|
+
# @return [::String]
|
666
666
|
# @!attribute [rw] credentials
|
667
667
|
# Credentials to send with calls. You may provide any of the following types:
|
668
668
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -674,29 +674,29 @@ module Google
|
|
674
674
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
675
675
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
676
676
|
# * (`nil`) indicating no credentials
|
677
|
-
# @return [Object]
|
677
|
+
# @return [::Object]
|
678
678
|
# @!attribute [rw] scope
|
679
679
|
# The OAuth scopes
|
680
|
-
# @return [Array
|
680
|
+
# @return [::Array<::String>]
|
681
681
|
# @!attribute [rw] lib_name
|
682
682
|
# The library name as recorded in instrumentation and logging
|
683
|
-
# @return [String]
|
683
|
+
# @return [::String]
|
684
684
|
# @!attribute [rw] lib_version
|
685
685
|
# The library version as recorded in instrumentation and logging
|
686
|
-
# @return [String]
|
686
|
+
# @return [::String]
|
687
687
|
# @!attribute [rw] channel_args
|
688
688
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
689
689
|
# `GRPC::Core::Channel` object is provided as the credential.
|
690
|
-
# @return [Hash]
|
690
|
+
# @return [::Hash]
|
691
691
|
# @!attribute [rw] interceptors
|
692
692
|
# An array of interceptors that are run before calls are executed.
|
693
|
-
# @return [Array
|
693
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
694
694
|
# @!attribute [rw] timeout
|
695
|
-
# The call timeout in
|
696
|
-
# @return [Numeric]
|
695
|
+
# The call timeout in seconds.
|
696
|
+
# @return [::Numeric]
|
697
697
|
# @!attribute [rw] metadata
|
698
698
|
# Additional gRPC headers to be sent with the call.
|
699
|
-
# @return [Hash{Symbol
|
699
|
+
# @return [::Hash{::Symbol=>::String}]
|
700
700
|
# @!attribute [rw] retry_policy
|
701
701
|
# The retry policy. The value is a hash with the following keys:
|
702
702
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -704,10 +704,10 @@ module Google
|
|
704
704
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
705
705
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
706
706
|
# trigger a retry.
|
707
|
-
# @return [Hash]
|
707
|
+
# @return [::Hash]
|
708
708
|
#
|
709
709
|
class Configuration
|
710
|
-
extend Gapic::Config
|
710
|
+
extend ::Gapic::Config
|
711
711
|
|
712
712
|
config_attr :endpoint, "dialogflow.googleapis.com", String
|
713
713
|
config_attr :credentials, nil do |value|
|
@@ -715,14 +715,14 @@ module Google
|
|
715
715
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
716
716
|
allowed.any? { |klass| klass === value }
|
717
717
|
end
|
718
|
-
config_attr :scope, nil, String, Array, nil
|
719
|
-
config_attr :lib_name, nil, String, nil
|
720
|
-
config_attr :lib_version, nil, String, nil
|
721
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
|
722
|
-
config_attr :interceptors, nil, Array, nil
|
723
|
-
config_attr :timeout, nil, Numeric, nil
|
724
|
-
config_attr :metadata, nil, Hash, nil
|
725
|
-
config_attr :retry_policy, nil, Hash, Proc, nil
|
718
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
719
|
+
config_attr :lib_name, nil, ::String, nil
|
720
|
+
config_attr :lib_version, nil, ::String, nil
|
721
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
722
|
+
config_attr :interceptors, nil, ::Array, nil
|
723
|
+
config_attr :timeout, nil, ::Numeric, nil
|
724
|
+
config_attr :metadata, nil, ::Hash, nil
|
725
|
+
config_attr :retry_policy, nil, ::Hash, Proc, nil
|
726
726
|
|
727
727
|
# @private
|
728
728
|
def initialize parent_config = nil
|
@@ -763,49 +763,49 @@ module Google
|
|
763
763
|
class Rpcs
|
764
764
|
##
|
765
765
|
# RPC-specific configuration for `list_contexts`
|
766
|
-
# @return [Gapic::Config::Method]
|
766
|
+
# @return [::Gapic::Config::Method]
|
767
767
|
#
|
768
768
|
attr_reader :list_contexts
|
769
769
|
##
|
770
770
|
# RPC-specific configuration for `get_context`
|
771
|
-
# @return [Gapic::Config::Method]
|
771
|
+
# @return [::Gapic::Config::Method]
|
772
772
|
#
|
773
773
|
attr_reader :get_context
|
774
774
|
##
|
775
775
|
# RPC-specific configuration for `create_context`
|
776
|
-
# @return [Gapic::Config::Method]
|
776
|
+
# @return [::Gapic::Config::Method]
|
777
777
|
#
|
778
778
|
attr_reader :create_context
|
779
779
|
##
|
780
780
|
# RPC-specific configuration for `update_context`
|
781
|
-
# @return [Gapic::Config::Method]
|
781
|
+
# @return [::Gapic::Config::Method]
|
782
782
|
#
|
783
783
|
attr_reader :update_context
|
784
784
|
##
|
785
785
|
# RPC-specific configuration for `delete_context`
|
786
|
-
# @return [Gapic::Config::Method]
|
786
|
+
# @return [::Gapic::Config::Method]
|
787
787
|
#
|
788
788
|
attr_reader :delete_context
|
789
789
|
##
|
790
790
|
# RPC-specific configuration for `delete_all_contexts`
|
791
|
-
# @return [Gapic::Config::Method]
|
791
|
+
# @return [::Gapic::Config::Method]
|
792
792
|
#
|
793
793
|
attr_reader :delete_all_contexts
|
794
794
|
|
795
795
|
# @private
|
796
796
|
def initialize parent_rpcs = nil
|
797
797
|
list_contexts_config = parent_rpcs&.list_contexts if parent_rpcs&.respond_to? :list_contexts
|
798
|
-
@list_contexts = Gapic::Config::Method.new list_contexts_config
|
798
|
+
@list_contexts = ::Gapic::Config::Method.new list_contexts_config
|
799
799
|
get_context_config = parent_rpcs&.get_context if parent_rpcs&.respond_to? :get_context
|
800
|
-
@get_context = Gapic::Config::Method.new get_context_config
|
800
|
+
@get_context = ::Gapic::Config::Method.new get_context_config
|
801
801
|
create_context_config = parent_rpcs&.create_context if parent_rpcs&.respond_to? :create_context
|
802
|
-
@create_context = Gapic::Config::Method.new create_context_config
|
802
|
+
@create_context = ::Gapic::Config::Method.new create_context_config
|
803
803
|
update_context_config = parent_rpcs&.update_context if parent_rpcs&.respond_to? :update_context
|
804
|
-
@update_context = Gapic::Config::Method.new update_context_config
|
804
|
+
@update_context = ::Gapic::Config::Method.new update_context_config
|
805
805
|
delete_context_config = parent_rpcs&.delete_context if parent_rpcs&.respond_to? :delete_context
|
806
|
-
@delete_context = Gapic::Config::Method.new delete_context_config
|
806
|
+
@delete_context = ::Gapic::Config::Method.new delete_context_config
|
807
807
|
delete_all_contexts_config = parent_rpcs&.delete_all_contexts if parent_rpcs&.respond_to? :delete_all_contexts
|
808
|
-
@delete_all_contexts = Gapic::Config::Method.new delete_all_contexts_config
|
808
|
+
@delete_all_contexts = ::Gapic::Config::Method.new delete_all_contexts_config
|
809
809
|
|
810
810
|
yield self if block_given?
|
811
811
|
end
|