google-cloud-dialogflow-v2 0.11.0 → 0.11.4
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/README.md +1 -1
- data/lib/google/cloud/dialogflow/v2/agent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +39 -5
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +94 -49
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +35 -38
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +3 -2
- data/lib/google/cloud/dialogflow/v2/context_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +47 -42
- data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/document_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +27 -10
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +73 -51
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +45 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +102 -46
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/environment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +47 -42
- data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +35 -38
- data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +16 -1
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +65 -43
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +50 -43
- data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +15 -1
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +49 -38
- data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +2 -2
- data/proto_docs/google/cloud/dialogflow/v2/agent.rb +4 -3
- data/proto_docs/google/cloud/dialogflow/v2/intent.rb +4 -3
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +38 -33
- metadata +8 -7
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all KnowledgeBases clients
|
47
|
+
# ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -99,19 +98,15 @@ module Google
|
|
99
98
|
##
|
100
99
|
# Create a new KnowledgeBases client object.
|
101
100
|
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
# To create a new KnowledgeBases client with the default
|
105
|
-
# configuration:
|
106
|
-
#
|
107
|
-
# client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new
|
101
|
+
# @example
|
108
102
|
#
|
109
|
-
#
|
110
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new
|
111
105
|
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
106
|
+
# # Create a client using a custom configuration
|
107
|
+
# client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new do |config|
|
108
|
+
# config.timeout = 10.0
|
109
|
+
# end
|
115
110
|
#
|
116
111
|
# @yield [config] Configure the KnowledgeBases client.
|
117
112
|
# @yieldparam config [Client::Configuration]
|
@@ -131,10 +126,9 @@ module Google
|
|
131
126
|
|
132
127
|
# Create credentials
|
133
128
|
credentials = @config.credentials
|
134
|
-
# Use self-signed JWT if the
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
135
130
|
# but only if the default endpoint does not have a region prefix.
|
136
|
-
enable_self_signed_jwt = @config.
|
137
|
-
@config.endpoint == Client.configure.endpoint &&
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
138
132
|
!@config.endpoint.split(".").first.include?("-")
|
139
133
|
credentials ||= Credentials.default scope: @config.scope,
|
140
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -216,7 +210,9 @@ module Google
|
|
216
210
|
options.apply_defaults timeout: @config.rpcs.list_knowledge_bases.timeout,
|
217
211
|
metadata: metadata,
|
218
212
|
retry_policy: @config.rpcs.list_knowledge_bases.retry_policy
|
219
|
-
|
213
|
+
|
214
|
+
options.apply_defaults timeout: @config.timeout,
|
215
|
+
metadata: @config.metadata,
|
220
216
|
retry_policy: @config.retry_policy
|
221
217
|
|
222
218
|
@knowledge_bases_stub.call_rpc :list_knowledge_bases, request, options: options do |response, operation|
|
@@ -285,7 +281,9 @@ module Google
|
|
285
281
|
options.apply_defaults timeout: @config.rpcs.get_knowledge_base.timeout,
|
286
282
|
metadata: metadata,
|
287
283
|
retry_policy: @config.rpcs.get_knowledge_base.retry_policy
|
288
|
-
|
284
|
+
|
285
|
+
options.apply_defaults timeout: @config.timeout,
|
286
|
+
metadata: @config.metadata,
|
289
287
|
retry_policy: @config.retry_policy
|
290
288
|
|
291
289
|
@knowledge_bases_stub.call_rpc :get_knowledge_base, request, options: options do |response, operation|
|
@@ -354,7 +352,9 @@ module Google
|
|
354
352
|
options.apply_defaults timeout: @config.rpcs.create_knowledge_base.timeout,
|
355
353
|
metadata: metadata,
|
356
354
|
retry_policy: @config.rpcs.create_knowledge_base.retry_policy
|
357
|
-
|
355
|
+
|
356
|
+
options.apply_defaults timeout: @config.timeout,
|
357
|
+
metadata: @config.metadata,
|
358
358
|
retry_policy: @config.retry_policy
|
359
359
|
|
360
360
|
@knowledge_bases_stub.call_rpc :create_knowledge_base, request, options: options do |response, operation|
|
@@ -425,7 +425,9 @@ module Google
|
|
425
425
|
options.apply_defaults timeout: @config.rpcs.delete_knowledge_base.timeout,
|
426
426
|
metadata: metadata,
|
427
427
|
retry_policy: @config.rpcs.delete_knowledge_base.retry_policy
|
428
|
-
|
428
|
+
|
429
|
+
options.apply_defaults timeout: @config.timeout,
|
430
|
+
metadata: @config.metadata,
|
429
431
|
retry_policy: @config.retry_policy
|
430
432
|
|
431
433
|
@knowledge_bases_stub.call_rpc :delete_knowledge_base, request, options: options do |response, operation|
|
@@ -495,7 +497,9 @@ module Google
|
|
495
497
|
options.apply_defaults timeout: @config.rpcs.update_knowledge_base.timeout,
|
496
498
|
metadata: metadata,
|
497
499
|
retry_policy: @config.rpcs.update_knowledge_base.retry_policy
|
498
|
-
|
500
|
+
|
501
|
+
options.apply_defaults timeout: @config.timeout,
|
502
|
+
metadata: @config.metadata,
|
499
503
|
retry_policy: @config.retry_policy
|
500
504
|
|
501
505
|
@knowledge_bases_stub.call_rpc :update_knowledge_base, request, options: options do |response, operation|
|
@@ -519,22 +523,21 @@ module Google
|
|
519
523
|
# Configuration can be applied globally to all clients, or to a single client
|
520
524
|
# on construction.
|
521
525
|
#
|
522
|
-
#
|
523
|
-
#
|
524
|
-
#
|
525
|
-
# to 20 seconds,
|
526
|
-
#
|
527
|
-
#
|
528
|
-
#
|
529
|
-
#
|
530
|
-
#
|
531
|
-
#
|
532
|
-
#
|
533
|
-
#
|
534
|
-
#
|
535
|
-
#
|
536
|
-
#
|
537
|
-
# end
|
526
|
+
# @example
|
527
|
+
#
|
528
|
+
# # Modify the global config, setting the timeout for
|
529
|
+
# # list_knowledge_bases to 20 seconds,
|
530
|
+
# # and all remaining timeouts to 10 seconds.
|
531
|
+
# ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.configure do |config|
|
532
|
+
# config.timeout = 10.0
|
533
|
+
# config.rpcs.list_knowledge_bases.timeout = 20.0
|
534
|
+
# end
|
535
|
+
#
|
536
|
+
# # Apply the above configuration only to a new client.
|
537
|
+
# client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new do |config|
|
538
|
+
# config.timeout = 10.0
|
539
|
+
# config.rpcs.list_knowledge_bases.timeout = 20.0
|
540
|
+
# end
|
538
541
|
#
|
539
542
|
# @!attribute [rw] endpoint
|
540
543
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/participant.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -15,6 +13,8 @@ require 'google/protobuf/field_mask_pb'
|
|
15
13
|
require 'google/protobuf/struct_pb'
|
16
14
|
require 'google/protobuf/timestamp_pb'
|
17
15
|
require 'google/rpc/status_pb'
|
16
|
+
require 'google/protobuf'
|
17
|
+
|
18
18
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
19
19
|
add_file("google/cloud/dialogflow/v2/participant.proto", :syntax => :proto3) do
|
20
20
|
add_message "google.cloud.dialogflow.v2.Participant" do
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
|
28
28
|
class Service
|
29
29
|
|
30
|
-
include GRPC::GenericService
|
30
|
+
include ::GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Dialogflow::V2::Participants::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all Participants clients
|
47
|
+
# ::Google::Cloud::Dialogflow::V2::Participants::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -104,19 +103,15 @@ module Google
|
|
104
103
|
##
|
105
104
|
# Create a new Participants client object.
|
106
105
|
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
# To create a new Participants client with the default
|
110
|
-
# configuration:
|
106
|
+
# @example
|
111
107
|
#
|
112
|
-
#
|
108
|
+
# # Create a client using the default configuration
|
109
|
+
# client = ::Google::Cloud::Dialogflow::V2::Participants::Client.new
|
113
110
|
#
|
114
|
-
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
118
|
-
# config.timeout = 10.0
|
119
|
-
# end
|
111
|
+
# # Create a client using a custom configuration
|
112
|
+
# client = ::Google::Cloud::Dialogflow::V2::Participants::Client.new do |config|
|
113
|
+
# config.timeout = 10.0
|
114
|
+
# end
|
120
115
|
#
|
121
116
|
# @yield [config] Configure the Participants client.
|
122
117
|
# @yieldparam config [Client::Configuration]
|
@@ -136,10 +131,9 @@ module Google
|
|
136
131
|
|
137
132
|
# Create credentials
|
138
133
|
credentials = @config.credentials
|
139
|
-
# Use self-signed JWT if the
|
134
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
140
135
|
# but only if the default endpoint does not have a region prefix.
|
141
|
-
enable_self_signed_jwt = @config.
|
142
|
-
@config.endpoint == Client.configure.endpoint &&
|
136
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
143
137
|
!@config.endpoint.split(".").first.include?("-")
|
144
138
|
credentials ||= Credentials.default scope: @config.scope,
|
145
139
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -219,7 +213,9 @@ module Google
|
|
219
213
|
options.apply_defaults timeout: @config.rpcs.create_participant.timeout,
|
220
214
|
metadata: metadata,
|
221
215
|
retry_policy: @config.rpcs.create_participant.retry_policy
|
222
|
-
|
216
|
+
|
217
|
+
options.apply_defaults timeout: @config.timeout,
|
218
|
+
metadata: @config.metadata,
|
223
219
|
retry_policy: @config.retry_policy
|
224
220
|
|
225
221
|
@participants_stub.call_rpc :create_participant, request, options: options do |response, operation|
|
@@ -287,7 +283,9 @@ module Google
|
|
287
283
|
options.apply_defaults timeout: @config.rpcs.get_participant.timeout,
|
288
284
|
metadata: metadata,
|
289
285
|
retry_policy: @config.rpcs.get_participant.retry_policy
|
290
|
-
|
286
|
+
|
287
|
+
options.apply_defaults timeout: @config.timeout,
|
288
|
+
metadata: @config.metadata,
|
291
289
|
retry_policy: @config.retry_policy
|
292
290
|
|
293
291
|
@participants_stub.call_rpc :get_participant, request, options: options do |response, operation|
|
@@ -360,7 +358,9 @@ module Google
|
|
360
358
|
options.apply_defaults timeout: @config.rpcs.list_participants.timeout,
|
361
359
|
metadata: metadata,
|
362
360
|
retry_policy: @config.rpcs.list_participants.retry_policy
|
363
|
-
|
361
|
+
|
362
|
+
options.apply_defaults timeout: @config.timeout,
|
363
|
+
metadata: @config.metadata,
|
364
364
|
retry_policy: @config.retry_policy
|
365
365
|
|
366
366
|
@participants_stub.call_rpc :list_participants, request, options: options do |response, operation|
|
@@ -429,7 +429,9 @@ module Google
|
|
429
429
|
options.apply_defaults timeout: @config.rpcs.update_participant.timeout,
|
430
430
|
metadata: metadata,
|
431
431
|
retry_policy: @config.rpcs.update_participant.retry_policy
|
432
|
-
|
432
|
+
|
433
|
+
options.apply_defaults timeout: @config.timeout,
|
434
|
+
metadata: @config.metadata,
|
433
435
|
retry_policy: @config.retry_policy
|
434
436
|
|
435
437
|
@participants_stub.call_rpc :update_participant, request, options: options do |response, operation|
|
@@ -518,7 +520,9 @@ module Google
|
|
518
520
|
options.apply_defaults timeout: @config.rpcs.analyze_content.timeout,
|
519
521
|
metadata: metadata,
|
520
522
|
retry_policy: @config.rpcs.analyze_content.retry_policy
|
521
|
-
|
523
|
+
|
524
|
+
options.apply_defaults timeout: @config.timeout,
|
525
|
+
metadata: @config.metadata,
|
522
526
|
retry_policy: @config.retry_policy
|
523
527
|
|
524
528
|
@participants_stub.call_rpc :analyze_content, request, options: options do |response, operation|
|
@@ -597,7 +601,9 @@ module Google
|
|
597
601
|
options.apply_defaults timeout: @config.rpcs.suggest_articles.timeout,
|
598
602
|
metadata: metadata,
|
599
603
|
retry_policy: @config.rpcs.suggest_articles.retry_policy
|
600
|
-
|
604
|
+
|
605
|
+
options.apply_defaults timeout: @config.timeout,
|
606
|
+
metadata: @config.metadata,
|
601
607
|
retry_policy: @config.retry_policy
|
602
608
|
|
603
609
|
@participants_stub.call_rpc :suggest_articles, request, options: options do |response, operation|
|
@@ -676,7 +682,9 @@ module Google
|
|
676
682
|
options.apply_defaults timeout: @config.rpcs.suggest_faq_answers.timeout,
|
677
683
|
metadata: metadata,
|
678
684
|
retry_policy: @config.rpcs.suggest_faq_answers.retry_policy
|
679
|
-
|
685
|
+
|
686
|
+
options.apply_defaults timeout: @config.timeout,
|
687
|
+
metadata: @config.metadata,
|
680
688
|
retry_policy: @config.retry_policy
|
681
689
|
|
682
690
|
@participants_stub.call_rpc :suggest_faq_answers, request, options: options do |response, operation|
|
@@ -700,22 +708,21 @@ module Google
|
|
700
708
|
# Configuration can be applied globally to all clients, or to a single client
|
701
709
|
# on construction.
|
702
710
|
#
|
703
|
-
#
|
704
|
-
#
|
705
|
-
#
|
706
|
-
# to 20 seconds,
|
707
|
-
#
|
708
|
-
#
|
709
|
-
#
|
710
|
-
#
|
711
|
-
#
|
712
|
-
#
|
713
|
-
#
|
714
|
-
#
|
715
|
-
#
|
716
|
-
#
|
717
|
-
#
|
718
|
-
# end
|
711
|
+
# @example
|
712
|
+
#
|
713
|
+
# # Modify the global config, setting the timeout for
|
714
|
+
# # create_participant to 20 seconds,
|
715
|
+
# # and all remaining timeouts to 10 seconds.
|
716
|
+
# ::Google::Cloud::Dialogflow::V2::Participants::Client.configure do |config|
|
717
|
+
# config.timeout = 10.0
|
718
|
+
# config.rpcs.create_participant.timeout = 20.0
|
719
|
+
# end
|
720
|
+
#
|
721
|
+
# # Apply the above configuration only to a new client.
|
722
|
+
# client = ::Google::Cloud::Dialogflow::V2::Participants::Client.new do |config|
|
723
|
+
# config.timeout = 10.0
|
724
|
+
# config.rpcs.create_participant.timeout = 20.0
|
725
|
+
# end
|
719
726
|
#
|
720
727
|
# @!attribute [rw] endpoint
|
721
728
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/session_entity_type.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
|
|
10
8
|
require 'google/cloud/dialogflow/v2/entity_type_pb'
|
11
9
|
require 'google/protobuf/empty_pb'
|
12
10
|
require 'google/protobuf/field_mask_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
14
|
add_file("google/cloud/dialogflow/v2/session_entity_type.proto", :syntax => :proto3) do
|
15
15
|
add_message "google.cloud.dialogflow.v2.SessionEntityType" do
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType].
|
28
28
|
class Service
|
29
29
|
|
30
|
-
include GRPC::GenericService
|
30
|
+
include ::GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all SessionEntityTypes clients
|
47
|
+
# ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -99,19 +98,15 @@ module Google
|
|
99
98
|
##
|
100
99
|
# Create a new SessionEntityTypes client object.
|
101
100
|
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
# To create a new SessionEntityTypes client with the default
|
105
|
-
# configuration:
|
106
|
-
#
|
107
|
-
# client = ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new
|
101
|
+
# @example
|
108
102
|
#
|
109
|
-
#
|
110
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new
|
111
105
|
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
106
|
+
# # Create a client using a custom configuration
|
107
|
+
# client = ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new do |config|
|
108
|
+
# config.timeout = 10.0
|
109
|
+
# end
|
115
110
|
#
|
116
111
|
# @yield [config] Configure the SessionEntityTypes client.
|
117
112
|
# @yieldparam config [Client::Configuration]
|
@@ -131,10 +126,9 @@ module Google
|
|
131
126
|
|
132
127
|
# Create credentials
|
133
128
|
credentials = @config.credentials
|
134
|
-
# Use self-signed JWT if the
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
135
130
|
# but only if the default endpoint does not have a region prefix.
|
136
|
-
enable_self_signed_jwt = @config.
|
137
|
-
@config.endpoint == Client.configure.endpoint &&
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
138
132
|
!@config.endpoint.split(".").first.include?("-")
|
139
133
|
credentials ||= Credentials.default scope: @config.scope,
|
140
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -224,7 +218,9 @@ module Google
|
|
224
218
|
options.apply_defaults timeout: @config.rpcs.list_session_entity_types.timeout,
|
225
219
|
metadata: metadata,
|
226
220
|
retry_policy: @config.rpcs.list_session_entity_types.retry_policy
|
227
|
-
|
221
|
+
|
222
|
+
options.apply_defaults timeout: @config.timeout,
|
223
|
+
metadata: @config.metadata,
|
228
224
|
retry_policy: @config.retry_policy
|
229
225
|
|
230
226
|
@session_entity_types_stub.call_rpc :list_session_entity_types, request, options: options do |response, operation|
|
@@ -301,7 +297,9 @@ module Google
|
|
301
297
|
options.apply_defaults timeout: @config.rpcs.get_session_entity_type.timeout,
|
302
298
|
metadata: metadata,
|
303
299
|
retry_policy: @config.rpcs.get_session_entity_type.retry_policy
|
304
|
-
|
300
|
+
|
301
|
+
options.apply_defaults timeout: @config.timeout,
|
302
|
+
metadata: @config.metadata,
|
305
303
|
retry_policy: @config.retry_policy
|
306
304
|
|
307
305
|
@session_entity_types_stub.call_rpc :get_session_entity_type, request, options: options do |response, operation|
|
@@ -381,7 +379,9 @@ module Google
|
|
381
379
|
options.apply_defaults timeout: @config.rpcs.create_session_entity_type.timeout,
|
382
380
|
metadata: metadata,
|
383
381
|
retry_policy: @config.rpcs.create_session_entity_type.retry_policy
|
384
|
-
|
382
|
+
|
383
|
+
options.apply_defaults timeout: @config.timeout,
|
384
|
+
metadata: @config.metadata,
|
385
385
|
retry_policy: @config.retry_policy
|
386
386
|
|
387
387
|
@session_entity_types_stub.call_rpc :create_session_entity_type, request, options: options do |response, operation|
|
@@ -453,7 +453,9 @@ module Google
|
|
453
453
|
options.apply_defaults timeout: @config.rpcs.update_session_entity_type.timeout,
|
454
454
|
metadata: metadata,
|
455
455
|
retry_policy: @config.rpcs.update_session_entity_type.retry_policy
|
456
|
-
|
456
|
+
|
457
|
+
options.apply_defaults timeout: @config.timeout,
|
458
|
+
metadata: @config.metadata,
|
457
459
|
retry_policy: @config.retry_policy
|
458
460
|
|
459
461
|
@session_entity_types_stub.call_rpc :update_session_entity_type, request, options: options do |response, operation|
|
@@ -529,7 +531,9 @@ module Google
|
|
529
531
|
options.apply_defaults timeout: @config.rpcs.delete_session_entity_type.timeout,
|
530
532
|
metadata: metadata,
|
531
533
|
retry_policy: @config.rpcs.delete_session_entity_type.retry_policy
|
532
|
-
|
534
|
+
|
535
|
+
options.apply_defaults timeout: @config.timeout,
|
536
|
+
metadata: @config.metadata,
|
533
537
|
retry_policy: @config.retry_policy
|
534
538
|
|
535
539
|
@session_entity_types_stub.call_rpc :delete_session_entity_type, request, options: options do |response, operation|
|
@@ -553,22 +557,21 @@ module Google
|
|
553
557
|
# Configuration can be applied globally to all clients, or to a single client
|
554
558
|
# on construction.
|
555
559
|
#
|
556
|
-
#
|
557
|
-
#
|
558
|
-
#
|
559
|
-
# to 20 seconds,
|
560
|
-
#
|
561
|
-
#
|
562
|
-
#
|
563
|
-
#
|
564
|
-
#
|
565
|
-
#
|
566
|
-
#
|
567
|
-
#
|
568
|
-
#
|
569
|
-
#
|
570
|
-
#
|
571
|
-
# end
|
560
|
+
# @example
|
561
|
+
#
|
562
|
+
# # Modify the global config, setting the timeout for
|
563
|
+
# # list_session_entity_types to 20 seconds,
|
564
|
+
# # and all remaining timeouts to 10 seconds.
|
565
|
+
# ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.configure do |config|
|
566
|
+
# config.timeout = 10.0
|
567
|
+
# config.rpcs.list_session_entity_types.timeout = 20.0
|
568
|
+
# end
|
569
|
+
#
|
570
|
+
# # Apply the above configuration only to a new client.
|
571
|
+
# client = ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new do |config|
|
572
|
+
# config.timeout = 10.0
|
573
|
+
# config.rpcs.list_session_entity_types.timeout = 20.0
|
574
|
+
# end
|
572
575
|
#
|
573
576
|
# @!attribute [rw] endpoint
|
574
577
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/session.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -16,6 +14,8 @@ require 'google/protobuf/field_mask_pb'
|
|
16
14
|
require 'google/protobuf/struct_pb'
|
17
15
|
require 'google/rpc/status_pb'
|
18
16
|
require 'google/type/latlng_pb'
|
17
|
+
require 'google/protobuf'
|
18
|
+
|
19
19
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
20
20
|
add_file("google/cloud/dialogflow/v2/session.proto", :syntax => :proto3) do
|
21
21
|
add_message "google.cloud.dialogflow.v2.DetectIntentRequest" do
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# guide](https://cloud.google.com/dialogflow/docs/api-overview).
|
31
31
|
class Service
|
32
32
|
|
33
|
-
include GRPC::GenericService
|
33
|
+
include ::GRPC::GenericService
|
34
34
|
|
35
35
|
self.marshal_class_method = :encode
|
36
36
|
self.unmarshal_class_method = :decode
|
@@ -41,6 +41,13 @@ module Google
|
|
41
41
|
# and session entity types to be updated, which in turn might affect
|
42
42
|
# results of future queries.
|
43
43
|
#
|
44
|
+
# If you might use
|
45
|
+
# [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
|
46
|
+
# or other CCAI products now or in the future, consider using
|
47
|
+
# [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
|
48
|
+
# instead of `DetectIntent`. `AnalyzeContent` has additional
|
49
|
+
# functionality for Agent Assist and other CCAI products.
|
50
|
+
#
|
44
51
|
# Note: Always use agent versions for production traffic.
|
45
52
|
# See [Versions and
|
46
53
|
# environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
|
@@ -49,6 +56,13 @@ module Google
|
|
49
56
|
# and returns structured, actionable data as a result. This method is only
|
50
57
|
# available via the gRPC API (not REST).
|
51
58
|
#
|
59
|
+
# If you might use
|
60
|
+
# [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
|
61
|
+
# or other CCAI products now or in the future, consider using
|
62
|
+
# [StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
|
63
|
+
# instead of `StreamingDetectIntent`. `StreamingAnalyzeContent` has
|
64
|
+
# additional functionality for Agent Assist and other CCAI products.
|
65
|
+
#
|
52
66
|
# Note: Always use agent versions for production traffic.
|
53
67
|
# See [Versions and
|
54
68
|
# environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
|