google-cloud-dialogflow-v2 0.7.0 → 0.10.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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +8 -8
  3. data/README.md +1 -1
  4. data/lib/google/cloud/dialogflow/v2.rb +2 -0
  5. data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +16 -5
  6. data/lib/google/cloud/dialogflow/v2/agents/client.rb +18 -10
  7. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +4 -4
  8. data/lib/google/cloud/dialogflow/v2/agents/paths.rb +42 -3
  9. data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +1 -2
  10. data/lib/google/cloud/dialogflow/v2/answer_records.rb +1 -2
  11. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +3 -7
  12. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +2 -5
  13. data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +72 -0
  14. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +2 -5
  15. data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +44 -3
  16. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +2 -5
  17. data/lib/google/cloud/dialogflow/v2/documents/client.rb +2 -5
  18. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +4 -4
  19. data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +28 -7
  20. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +30 -12
  21. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +4 -4
  22. data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +58 -12
  23. data/lib/google/cloud/dialogflow/v2/environment_pb.rb +50 -1
  24. data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +21 -0
  25. data/lib/google/cloud/dialogflow/v2/environments/client.rb +413 -6
  26. data/lib/google/cloud/dialogflow/v2/environments/paths.rb +145 -5
  27. data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +59 -0
  28. data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +47 -0
  29. data/lib/google/cloud/dialogflow/v2/fulfillments.rb +49 -0
  30. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +457 -0
  31. data/lib/google/cloud/dialogflow/v2/fulfillments/credentials.rb +52 -0
  32. data/lib/google/cloud/dialogflow/v2/fulfillments/paths.rb +69 -0
  33. data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +20 -2
  34. data/lib/google/cloud/dialogflow/v2/intents/client.rb +31 -8
  35. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +4 -4
  36. data/lib/google/cloud/dialogflow/v2/intents/paths.rb +96 -12
  37. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +2 -5
  38. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +9 -0
  39. data/lib/google/cloud/dialogflow/v2/participants/client.rb +3 -9
  40. data/lib/google/cloud/dialogflow/v2/participants/paths.rb +76 -0
  41. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +2 -5
  42. data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +72 -0
  43. data/lib/google/cloud/dialogflow/v2/session_pb.rb +1 -0
  44. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +3 -9
  45. data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +110 -0
  46. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  47. data/lib/google/cloud/dialogflow/v2/version_pb.rb +69 -0
  48. data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +59 -0
  49. data/lib/google/cloud/dialogflow/v2/versions.rb +49 -0
  50. data/lib/google/cloud/dialogflow/v2/versions/client.rb +706 -0
  51. data/lib/google/cloud/dialogflow/v2/versions/credentials.rb +52 -0
  52. data/lib/google/cloud/dialogflow/v2/versions/paths.rb +110 -0
  53. data/proto_docs/google/api/field_behavior.rb +7 -1
  54. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +9 -16
  55. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +14 -2
  56. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +170 -5
  57. data/proto_docs/google/cloud/dialogflow/v2/fulfillment.rb +144 -0
  58. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +9 -1
  59. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +22 -0
  60. data/proto_docs/google/cloud/dialogflow/v2/session.rb +4 -0
  61. data/proto_docs/google/cloud/dialogflow/v2/version.rb +176 -0
  62. metadata +27 -7
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Dialogflow
24
+ module V2
25
+ module Fulfillments
26
+ # Credentials for the Fulfillments API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/cloud-platform",
30
+ "https://www.googleapis.com/auth/dialogflow"
31
+ ]
32
+ self.env_vars = [
33
+ "DIALOGFLOW_CREDENTIALS",
34
+ "DIALOGFLOW_KEYFILE",
35
+ "GOOGLE_CLOUD_CREDENTIALS",
36
+ "GOOGLE_CLOUD_KEYFILE",
37
+ "GCLOUD_KEYFILE",
38
+ "DIALOGFLOW_CREDENTIALS_JSON",
39
+ "DIALOGFLOW_KEYFILE_JSON",
40
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
41
+ "GOOGLE_CLOUD_KEYFILE_JSON",
42
+ "GCLOUD_KEYFILE_JSON"
43
+ ]
44
+ self.paths = [
45
+ "~/.config/google_cloud/application_default_credentials.json"
46
+ ]
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Dialogflow
23
+ module V2
24
+ module Fulfillments
25
+ # Path helper methods for the Fulfillments API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Fulfillment resource string.
29
+ #
30
+ # @overload fulfillment_path(project:)
31
+ # The resource will be in the following format:
32
+ #
33
+ # `projects/{project}/agent/fulfillment`
34
+ #
35
+ # @param project [String]
36
+ #
37
+ # @overload fulfillment_path(project:, location:)
38
+ # The resource will be in the following format:
39
+ #
40
+ # `projects/{project}/locations/{location}/agent/fulfillment`
41
+ #
42
+ # @param project [String]
43
+ # @param location [String]
44
+ #
45
+ # @return [::String]
46
+ def fulfillment_path **args
47
+ resources = {
48
+ "project" => (proc do |project:|
49
+ "projects/#{project}/agent/fulfillment"
50
+ end),
51
+ "location:project" => (proc do |project:, location:|
52
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
53
+
54
+ "projects/#{project}/locations/#{location}/agent/fulfillment"
55
+ end)
56
+ }
57
+
58
+ resource = resources[args.keys.sort.join(":")]
59
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
60
+ resource.call(**args)
61
+ end
62
+
63
+ extend self
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
@@ -38,18 +38,36 @@ module Google
38
38
  # Retrieves the specified intent.
39
39
  rpc :GetIntent, ::Google::Cloud::Dialogflow::V2::GetIntentRequest, ::Google::Cloud::Dialogflow::V2::Intent
40
40
  # Creates an intent in the specified agent.
41
+ #
42
+ # Note: You should always train an agent prior to sending it queries. See the
43
+ # [training
44
+ # documentation](https://cloud.google.com/dialogflow/es/docs/training).
41
45
  rpc :CreateIntent, ::Google::Cloud::Dialogflow::V2::CreateIntentRequest, ::Google::Cloud::Dialogflow::V2::Intent
42
46
  # Updates the specified intent.
47
+ #
48
+ # Note: You should always train an agent prior to sending it queries. See the
49
+ # [training
50
+ # documentation](https://cloud.google.com/dialogflow/es/docs/training).
43
51
  rpc :UpdateIntent, ::Google::Cloud::Dialogflow::V2::UpdateIntentRequest, ::Google::Cloud::Dialogflow::V2::Intent
44
52
  # Deletes the specified intent and its direct or indirect followup intents.
53
+ #
54
+ # Note: You should always train an agent prior to sending it queries. See the
55
+ # [training
56
+ # documentation](https://cloud.google.com/dialogflow/es/docs/training).
45
57
  rpc :DeleteIntent, ::Google::Cloud::Dialogflow::V2::DeleteIntentRequest, ::Google::Protobuf::Empty
46
58
  # Updates/Creates multiple intents in the specified agent.
47
59
  #
48
- # Operation <response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]>
60
+ #
61
+ # Note: You should always train an agent prior to sending it queries. See the
62
+ # [training
63
+ # documentation](https://cloud.google.com/dialogflow/es/docs/training).
49
64
  rpc :BatchUpdateIntents, ::Google::Cloud::Dialogflow::V2::BatchUpdateIntentsRequest, ::Google::Longrunning::Operation
50
65
  # Deletes intents in the specified agent.
51
66
  #
52
- # Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
67
+ #
68
+ # Note: You should always train an agent prior to sending it queries. See the
69
+ # [training
70
+ # documentation](https://cloud.google.com/dialogflow/es/docs/training).
53
71
  rpc :BatchDeleteIntents, ::Google::Cloud::Dialogflow::V2::BatchDeleteIntentsRequest, ::Google::Longrunning::Operation
54
72
  end
55
73
 
@@ -67,10 +67,7 @@ module Google
67
67
 
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
- initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
70
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
74
71
  }
75
72
 
76
73
  default_config
@@ -141,7 +138,7 @@ module Google
141
138
  !@config.endpoint.split(".").first.include?("-")
142
139
  credentials ||= Credentials.default scope: @config.scope,
143
140
  enable_self_signed_jwt: enable_self_signed_jwt
144
- if credentials.is_a?(String) || credentials.is_a?(Hash)
141
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
145
142
  credentials = Credentials.new credentials, scope: @config.scope
146
143
  end
147
144
  @quota_project_id = @config.quota_project
@@ -190,7 +187,15 @@ module Google
190
187
  #
191
188
  # @param parent [::String]
192
189
  # Required. The agent to list all intents from.
193
- # Format: `projects/<Project ID>/agent`.
190
+ # Format: `projects/<Project ID>/agent` or `projects/<Project
191
+ # ID>/locations/<Location ID>/agent`.
192
+ #
193
+ # Alternatively, you can specify the environment to list intents for.
194
+ # Format: `projects/<Project ID>/agent/environments/<Environment ID>`
195
+ # or `projects/<Project ID>/locations/<Location
196
+ # ID>/agent/environments/<Environment ID>`.
197
+ # Note: training phrases of the intents will not be returned for non-draft
198
+ # environment.
194
199
  # @param language_code [::String]
195
200
  # Optional. The language used to access language-specific data.
196
201
  # If not specified, the agent's default language is used.
@@ -329,6 +334,10 @@ module Google
329
334
  ##
330
335
  # Creates an intent in the specified agent.
331
336
  #
337
+ # Note: You should always train an agent prior to sending it queries. See the
338
+ # [training
339
+ # documentation](https://cloud.google.com/dialogflow/es/docs/training).
340
+ #
332
341
  # @overload create_intent(request, options = nil)
333
342
  # Pass arguments to `create_intent` via a request object, either of type
334
343
  # {::Google::Cloud::Dialogflow::V2::CreateIntentRequest} or an equivalent Hash.
@@ -406,6 +415,10 @@ module Google
406
415
  ##
407
416
  # Updates the specified intent.
408
417
  #
418
+ # Note: You should always train an agent prior to sending it queries. See the
419
+ # [training
420
+ # documentation](https://cloud.google.com/dialogflow/es/docs/training).
421
+ #
409
422
  # @overload update_intent(request, options = nil)
410
423
  # Pass arguments to `update_intent` via a request object, either of type
411
424
  # {::Google::Cloud::Dialogflow::V2::UpdateIntentRequest} or an equivalent Hash.
@@ -482,6 +495,10 @@ module Google
482
495
  ##
483
496
  # Deletes the specified intent and its direct or indirect followup intents.
484
497
  #
498
+ # Note: You should always train an agent prior to sending it queries. See the
499
+ # [training
500
+ # documentation](https://cloud.google.com/dialogflow/es/docs/training).
501
+ #
485
502
  # @overload delete_intent(request, options = nil)
486
503
  # Pass arguments to `delete_intent` via a request object, either of type
487
504
  # {::Google::Cloud::Dialogflow::V2::DeleteIntentRequest} or an equivalent Hash.
@@ -550,7 +567,10 @@ module Google
550
567
  ##
551
568
  # Updates/Creates multiple intents in the specified agent.
552
569
  #
553
- # Operation <response: {::Google::Cloud::Dialogflow::V2::BatchUpdateIntentsResponse BatchUpdateIntentsResponse}>
570
+ #
571
+ # Note: You should always train an agent prior to sending it queries. See the
572
+ # [training
573
+ # documentation](https://cloud.google.com/dialogflow/es/docs/training).
554
574
  #
555
575
  # @overload batch_update_intents(request, options = nil)
556
576
  # Pass arguments to `batch_update_intents` via a request object, either of type
@@ -636,7 +656,10 @@ module Google
636
656
  ##
637
657
  # Deletes intents in the specified agent.
638
658
  #
639
- # Operation <response: {::Google::Protobuf::Empty google.protobuf.Empty}>
659
+ #
660
+ # Note: You should always train an agent prior to sending it queries. See the
661
+ # [training
662
+ # documentation](https://cloud.google.com/dialogflow/es/docs/training).
640
663
  #
641
664
  # @overload batch_delete_intents(request, options = nil)
642
665
  # Pass arguments to `batch_delete_intents` via a request object, either of type
@@ -82,7 +82,7 @@ module Google
82
82
  # Create credentials
83
83
  credentials = @config.credentials
84
84
  credentials ||= Credentials.default scope: @config.scope
85
- if credentials.is_a?(String) || credentials.is_a?(Hash)
85
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
88
  @quota_project_id = @config.quota_project
@@ -396,9 +396,9 @@ module Google
396
396
  end
397
397
 
398
398
  ##
399
- # Waits for the specified long-running operation until it is done or reaches
400
- # at most a specified timeout, returning the latest state. If the operation
401
- # is already done, the latest state is immediately returned. If the timeout
399
+ # Waits until the specified long-running operation is done or reaches at most
400
+ # a specified timeout, returning the latest state. If the operation is
401
+ # already done, the latest state is immediately returned. If the timeout
402
402
  # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
403
403
  # timeout is used. If the server does not support this method, it returns
404
404
  # `google.rpc.Code.UNIMPLEMENTED`.
@@ -27,15 +27,37 @@ module Google
27
27
  ##
28
28
  # Create a fully-qualified Agent resource string.
29
29
  #
30
- # The resource will be in the following format:
30
+ # @overload agent_path(project:)
31
+ # The resource will be in the following format:
32
+ #
33
+ # `projects/{project}/agent`
34
+ #
35
+ # @param project [String]
31
36
  #
32
- # `projects/{project}/agent`
37
+ # @overload agent_path(project:, location:)
38
+ # The resource will be in the following format:
39
+ #
40
+ # `projects/{project}/locations/{location}/agent`
33
41
  #
34
- # @param project [String]
42
+ # @param project [String]
43
+ # @param location [String]
35
44
  #
36
45
  # @return [::String]
37
- def agent_path project:
38
- "projects/#{project}/agent"
46
+ def agent_path **args
47
+ resources = {
48
+ "project" => (proc do |project:|
49
+ "projects/#{project}/agent"
50
+ end),
51
+ "location:project" => (proc do |project:, location:|
52
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
53
+
54
+ "projects/#{project}/locations/#{location}/agent"
55
+ end)
56
+ }
57
+
58
+ resource = resources[args.keys.sort.join(":")]
59
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
60
+ resource.call(**args)
39
61
  end
40
62
 
41
63
  ##
@@ -61,6 +83,28 @@ module Google
61
83
  # @param session [String]
62
84
  # @param context [String]
63
85
  #
86
+ # @overload context_path(project:, location:, session:, context:)
87
+ # The resource will be in the following format:
88
+ #
89
+ # `projects/{project}/locations/{location}/agent/sessions/{session}/contexts/{context}`
90
+ #
91
+ # @param project [String]
92
+ # @param location [String]
93
+ # @param session [String]
94
+ # @param context [String]
95
+ #
96
+ # @overload context_path(project:, location:, environment:, user:, session:, context:)
97
+ # The resource will be in the following format:
98
+ #
99
+ # `projects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}/contexts/{context}`
100
+ #
101
+ # @param project [String]
102
+ # @param location [String]
103
+ # @param environment [String]
104
+ # @param user [String]
105
+ # @param session [String]
106
+ # @param context [String]
107
+ #
64
108
  # @return [::String]
65
109
  def context_path **args
66
110
  resources = {
@@ -77,6 +121,22 @@ module Google
77
121
  raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
78
122
 
79
123
  "projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/contexts/#{context}"
124
+ end),
125
+ "context:location:project:session" => (proc do |project:, location:, session:, context:|
126
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
127
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
128
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
129
+
130
+ "projects/#{project}/locations/#{location}/agent/sessions/#{session}/contexts/#{context}"
131
+ end),
132
+ "context:environment:location:project:session:user" => (proc do |project:, location:, environment:, user:, session:, context:|
133
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
134
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
135
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
136
+ raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
137
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
138
+
139
+ "projects/#{project}/locations/#{location}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/contexts/#{context}"
80
140
  end)
81
141
  }
82
142
 
@@ -88,18 +148,42 @@ module Google
88
148
  ##
89
149
  # Create a fully-qualified Intent resource string.
90
150
  #
91
- # The resource will be in the following format:
151
+ # @overload intent_path(project:, intent:)
152
+ # The resource will be in the following format:
153
+ #
154
+ # `projects/{project}/agent/intents/{intent}`
155
+ #
156
+ # @param project [String]
157
+ # @param intent [String]
158
+ #
159
+ # @overload intent_path(project:, location:, intent:)
160
+ # The resource will be in the following format:
92
161
  #
93
- # `projects/{project}/agent/intents/{intent}`
162
+ # `projects/{project}/locations/{location}/agent/intents/{intent}`
94
163
  #
95
- # @param project [String]
96
- # @param intent [String]
164
+ # @param project [String]
165
+ # @param location [String]
166
+ # @param intent [String]
97
167
  #
98
168
  # @return [::String]
99
- def intent_path project:, intent:
100
- raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
169
+ def intent_path **args
170
+ resources = {
171
+ "intent:project" => (proc do |project:, intent:|
172
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
101
173
 
102
- "projects/#{project}/agent/intents/#{intent}"
174
+ "projects/#{project}/agent/intents/#{intent}"
175
+ end),
176
+ "intent:location:project" => (proc do |project:, location:, intent:|
177
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
178
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
179
+
180
+ "projects/#{project}/locations/#{location}/agent/intents/#{intent}"
181
+ end)
182
+ }
183
+
184
+ resource = resources[args.keys.sort.join(":")]
185
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
186
+ resource.call(**args)
103
187
  end
104
188
 
105
189
  extend self
@@ -67,10 +67,7 @@ module Google
67
67
 
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
- initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
70
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
74
71
  }
75
72
 
76
73
  default_config
@@ -141,7 +138,7 @@ module Google
141
138
  !@config.endpoint.split(".").first.include?("-")
142
139
  credentials ||= Credentials.default scope: @config.scope,
143
140
  enable_self_signed_jwt: enable_self_signed_jwt
144
- if credentials.is_a?(String) || credentials.is_a?(Hash)
141
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
145
142
  credentials = Credentials.new credentials, scope: @config.scope
146
143
  end
147
144
  @quota_project_id = @config.quota_project
@@ -9,6 +9,7 @@ require 'google/api/field_behavior_pb'
9
9
  require 'google/api/resource_pb'
10
10
  require 'google/cloud/dialogflow/v2/audio_config_pb'
11
11
  require 'google/cloud/dialogflow/v2/session_pb'
12
+ require 'google/protobuf/any_pb'
12
13
  require 'google/protobuf/duration_pb'
13
14
  require 'google/protobuf/field_mask_pb'
14
15
  require 'google/protobuf/struct_pb'
@@ -104,6 +105,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
104
105
  end
105
106
  add_message "google.cloud.dialogflow.v2.AutomatedAgentReply" do
106
107
  optional :detect_intent_response, :message, 1, "google.cloud.dialogflow.v2.DetectIntentResponse"
108
+ optional :automated_agent_reply_type, :enum, 7, "google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType"
109
+ optional :allow_cancellation, :bool, 8
110
+ end
111
+ add_enum "google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType" do
112
+ value :AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED, 0
113
+ value :PARTIAL, 1
114
+ value :FINAL, 2
107
115
  end
108
116
  add_message "google.cloud.dialogflow.v2.ArticleAnswer" do
109
117
  optional :title, :string, 1
@@ -161,6 +169,7 @@ module Google
161
169
  SuggestFaqAnswersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestFaqAnswersResponse").msgclass
162
170
  OutputAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.OutputAudio").msgclass
163
171
  AutomatedAgentReply = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AutomatedAgentReply").msgclass
172
+ AutomatedAgentReply::AutomatedAgentReplyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType").enummodule
164
173
  ArticleAnswer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ArticleAnswer").msgclass
165
174
  FaqAnswer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.FaqAnswer").msgclass
166
175
  SuggestionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestionResult").msgclass