google-cloud-dialogflow-v2 0.28.0 → 0.30.0
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/lib/google/cloud/dialogflow/v2/agents/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +176 -0
- data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +36 -0
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +100 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +105 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +187 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +130 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +136 -0
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +174 -0
- data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +199 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +104 -0
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +32 -0
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +130 -0
- data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +132 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +16 -0
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +84 -0
- data/proto_docs/google/cloud/dialogflow/v2/participant.rb +21 -0
- metadata +4 -4
@@ -150,7 +150,8 @@ module Google
|
|
150
150
|
credentials: credentials,
|
151
151
|
endpoint: @config.endpoint,
|
152
152
|
channel_args: @config.channel_args,
|
153
|
-
interceptors: @config.interceptors
|
153
|
+
interceptors: @config.interceptors,
|
154
|
+
channel_pool_config: @config.channel_pool
|
154
155
|
)
|
155
156
|
end
|
156
157
|
|
@@ -750,6 +751,14 @@ module Google
|
|
750
751
|
end
|
751
752
|
end
|
752
753
|
|
754
|
+
##
|
755
|
+
# Configuration for the channel pool
|
756
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
757
|
+
#
|
758
|
+
def channel_pool
|
759
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
760
|
+
end
|
761
|
+
|
753
762
|
##
|
754
763
|
# Configuration RPC class for the Versions API.
|
755
764
|
#
|
@@ -191,6 +191,26 @@ module Google
|
|
191
191
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Version>]
|
192
192
|
#
|
193
193
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
194
|
+
#
|
195
|
+
# @example Basic example
|
196
|
+
# require "google/cloud/dialogflow/v2"
|
197
|
+
#
|
198
|
+
# # Create a client object. The client can be reused for multiple calls.
|
199
|
+
# client = Google::Cloud::Dialogflow::V2::Versions::Rest::Client.new
|
200
|
+
#
|
201
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
202
|
+
# request = Google::Cloud::Dialogflow::V2::ListVersionsRequest.new
|
203
|
+
#
|
204
|
+
# # Call the list_versions method.
|
205
|
+
# result = client.list_versions request
|
206
|
+
#
|
207
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
208
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
209
|
+
# result.each do |item|
|
210
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Version.
|
211
|
+
# p item
|
212
|
+
# end
|
213
|
+
#
|
194
214
|
def list_versions request, options = nil
|
195
215
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
196
216
|
|
@@ -259,6 +279,22 @@ module Google
|
|
259
279
|
# @return [::Google::Cloud::Dialogflow::V2::Version]
|
260
280
|
#
|
261
281
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
282
|
+
#
|
283
|
+
# @example Basic example
|
284
|
+
# require "google/cloud/dialogflow/v2"
|
285
|
+
#
|
286
|
+
# # Create a client object. The client can be reused for multiple calls.
|
287
|
+
# client = Google::Cloud::Dialogflow::V2::Versions::Rest::Client.new
|
288
|
+
#
|
289
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
290
|
+
# request = Google::Cloud::Dialogflow::V2::GetVersionRequest.new
|
291
|
+
#
|
292
|
+
# # Call the get_version method.
|
293
|
+
# result = client.get_version request
|
294
|
+
#
|
295
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Version.
|
296
|
+
# p result
|
297
|
+
#
|
262
298
|
def get_version request, options = nil
|
263
299
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
264
300
|
|
@@ -329,6 +365,22 @@ module Google
|
|
329
365
|
# @return [::Google::Cloud::Dialogflow::V2::Version]
|
330
366
|
#
|
331
367
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
368
|
+
#
|
369
|
+
# @example Basic example
|
370
|
+
# require "google/cloud/dialogflow/v2"
|
371
|
+
#
|
372
|
+
# # Create a client object. The client can be reused for multiple calls.
|
373
|
+
# client = Google::Cloud::Dialogflow::V2::Versions::Rest::Client.new
|
374
|
+
#
|
375
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
376
|
+
# request = Google::Cloud::Dialogflow::V2::CreateVersionRequest.new
|
377
|
+
#
|
378
|
+
# # Call the create_version method.
|
379
|
+
# result = client.create_version request
|
380
|
+
#
|
381
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Version.
|
382
|
+
# p result
|
383
|
+
#
|
332
384
|
def create_version request, options = nil
|
333
385
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
334
386
|
|
@@ -402,6 +454,22 @@ module Google
|
|
402
454
|
# @return [::Google::Cloud::Dialogflow::V2::Version]
|
403
455
|
#
|
404
456
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
457
|
+
#
|
458
|
+
# @example Basic example
|
459
|
+
# require "google/cloud/dialogflow/v2"
|
460
|
+
#
|
461
|
+
# # Create a client object. The client can be reused for multiple calls.
|
462
|
+
# client = Google::Cloud::Dialogflow::V2::Versions::Rest::Client.new
|
463
|
+
#
|
464
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
465
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateVersionRequest.new
|
466
|
+
#
|
467
|
+
# # Call the update_version method.
|
468
|
+
# result = client.update_version request
|
469
|
+
#
|
470
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Version.
|
471
|
+
# p result
|
472
|
+
#
|
405
473
|
def update_version request, options = nil
|
406
474
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
407
475
|
|
@@ -469,6 +537,22 @@ module Google
|
|
469
537
|
# @return [::Google::Protobuf::Empty]
|
470
538
|
#
|
471
539
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
540
|
+
#
|
541
|
+
# @example Basic example
|
542
|
+
# require "google/cloud/dialogflow/v2"
|
543
|
+
#
|
544
|
+
# # Create a client object. The client can be reused for multiple calls.
|
545
|
+
# client = Google::Cloud::Dialogflow::V2::Versions::Rest::Client.new
|
546
|
+
#
|
547
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
548
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteVersionRequest.new
|
549
|
+
#
|
550
|
+
# # Call the delete_version method.
|
551
|
+
# result = client.delete_version request
|
552
|
+
#
|
553
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
554
|
+
# p result
|
555
|
+
#
|
472
556
|
def delete_version request, options = nil
|
473
557
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
474
558
|
|
@@ -436,6 +436,27 @@ module Google
|
|
436
436
|
#
|
437
437
|
# Note: this field should only be used if you are connecting to a Dialogflow
|
438
438
|
# CX agent.
|
439
|
+
# @!attribute [rw] enable_extended_streaming
|
440
|
+
# @return [::Boolean]
|
441
|
+
# Optional. Enable full bidirectional streaming. You can keep streaming the
|
442
|
+
# audio until timeout, and there's no need to half close the stream to get
|
443
|
+
# the response.
|
444
|
+
#
|
445
|
+
# Restrictions:
|
446
|
+
#
|
447
|
+
# - Timeout: 3 mins.
|
448
|
+
# - Audio Encoding: only supports
|
449
|
+
# {::Google::Cloud::Dialogflow::V2::AudioEncoding::AUDIO_ENCODING_LINEAR_16 AudioEncoding.AUDIO_ENCODING_LINEAR_16}
|
450
|
+
# and
|
451
|
+
# {::Google::Cloud::Dialogflow::V2::AudioEncoding::AUDIO_ENCODING_MULAW AudioEncoding.AUDIO_ENCODING_MULAW}
|
452
|
+
# - Lifecycle: conversation should be in `Assist Stage`, go to
|
453
|
+
# [Conversation.CreateConversation][] for more information.
|
454
|
+
#
|
455
|
+
# InvalidArgument Error will be returned if the one of restriction checks
|
456
|
+
# failed.
|
457
|
+
#
|
458
|
+
# You can find more details in
|
459
|
+
# https://cloud.google.com/agent-assist/docs/extended-streaming
|
439
460
|
# @!attribute [rw] enable_partial_automated_agent_reply
|
440
461
|
# @return [::Boolean]
|
441
462
|
# Enable partial virtual agent responses. If this flag is not enabled,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dialogflow-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|