google-cloud-dialogflow-v2 0.7.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -67,18 +67,12 @@ 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.rpcs.analyze_content.timeout = 220.0
77
74
  default_config.rpcs.analyze_content.retry_policy = {
78
- initial_delay: 0.1,
79
- max_delay: 60.0,
80
- multiplier: 1.3,
81
- retry_codes: [14]
75
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
82
76
  }
83
77
 
84
78
  default_config
@@ -149,7 +143,7 @@ module Google
149
143
  !@config.endpoint.split(".").first.include?("-")
150
144
  credentials ||= Credentials.default scope: @config.scope,
151
145
  enable_self_signed_jwt: enable_self_signed_jwt
152
- if credentials.is_a?(String) || credentials.is_a?(Hash)
146
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
153
147
  credentials = Credentials.new credentials, scope: @config.scope
154
148
  end
155
149
  @quota_project_id = @config.quota_project
@@ -47,6 +47,28 @@ module Google
47
47
  # @param session [String]
48
48
  # @param context [String]
49
49
  #
50
+ # @overload context_path(project:, location:, session:, context:)
51
+ # The resource will be in the following format:
52
+ #
53
+ # `projects/{project}/locations/{location}/agent/sessions/{session}/contexts/{context}`
54
+ #
55
+ # @param project [String]
56
+ # @param location [String]
57
+ # @param session [String]
58
+ # @param context [String]
59
+ #
60
+ # @overload context_path(project:, location:, environment:, user:, session:, context:)
61
+ # The resource will be in the following format:
62
+ #
63
+ # `projects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}/contexts/{context}`
64
+ #
65
+ # @param project [String]
66
+ # @param location [String]
67
+ # @param environment [String]
68
+ # @param user [String]
69
+ # @param session [String]
70
+ # @param context [String]
71
+ #
50
72
  # @return [::String]
51
73
  def context_path **args
52
74
  resources = {
@@ -63,6 +85,22 @@ module Google
63
85
  raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
64
86
 
65
87
  "projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/contexts/#{context}"
88
+ end),
89
+ "context:location:project:session" => (proc do |project:, location:, session:, context:|
90
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
91
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
92
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
93
+
94
+ "projects/#{project}/locations/#{location}/agent/sessions/#{session}/contexts/#{context}"
95
+ end),
96
+ "context:environment:location:project:session:user" => (proc do |project:, location:, environment:, user:, session:, context:|
97
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
98
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
99
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
100
+ raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
101
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
102
+
103
+ "projects/#{project}/locations/#{location}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/contexts/#{context}"
66
104
  end)
67
105
  }
68
106
 
@@ -225,6 +263,28 @@ module Google
225
263
  # @param session [String]
226
264
  # @param entity_type [String]
227
265
  #
266
+ # @overload session_entity_type_path(project:, location:, session:, entity_type:)
267
+ # The resource will be in the following format:
268
+ #
269
+ # `projects/{project}/locations/{location}/agent/sessions/{session}/entityTypes/{entity_type}`
270
+ #
271
+ # @param project [String]
272
+ # @param location [String]
273
+ # @param session [String]
274
+ # @param entity_type [String]
275
+ #
276
+ # @overload session_entity_type_path(project:, location:, environment:, user:, session:, entity_type:)
277
+ # The resource will be in the following format:
278
+ #
279
+ # `projects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}/entityTypes/{entity_type}`
280
+ #
281
+ # @param project [String]
282
+ # @param location [String]
283
+ # @param environment [String]
284
+ # @param user [String]
285
+ # @param session [String]
286
+ # @param entity_type [String]
287
+ #
228
288
  # @return [::String]
229
289
  def session_entity_type_path **args
230
290
  resources = {
@@ -241,6 +301,22 @@ module Google
241
301
  raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
242
302
 
243
303
  "projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/entityTypes/#{entity_type}"
304
+ end),
305
+ "entity_type:location:project:session" => (proc do |project:, location:, session:, entity_type:|
306
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
307
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
308
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
309
+
310
+ "projects/#{project}/locations/#{location}/agent/sessions/#{session}/entityTypes/#{entity_type}"
311
+ end),
312
+ "entity_type:environment:location:project:session:user" => (proc do |project:, location:, environment:, user:, session:, entity_type:|
313
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
314
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
315
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
316
+ raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
317
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
318
+
319
+ "projects/#{project}/locations/#{location}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/entityTypes/#{entity_type}"
244
320
  end)
245
321
  }
246
322
 
@@ -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
@@ -45,6 +45,26 @@ module Google
45
45
  # @param user [String]
46
46
  # @param session [String]
47
47
  #
48
+ # @overload session_path(project:, location:, session:)
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/agent/sessions/{session}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param session [String]
56
+ #
57
+ # @overload session_path(project:, location:, environment:, user:, session:)
58
+ # The resource will be in the following format:
59
+ #
60
+ # `projects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}`
61
+ #
62
+ # @param project [String]
63
+ # @param location [String]
64
+ # @param environment [String]
65
+ # @param user [String]
66
+ # @param session [String]
67
+ #
48
68
  # @return [::String]
49
69
  def session_path **args
50
70
  resources = {
@@ -59,6 +79,20 @@ module Google
59
79
  raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
60
80
 
61
81
  "projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}"
82
+ end),
83
+ "location:project:session" => (proc do |project:, location:, session:|
84
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
85
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
86
+
87
+ "projects/#{project}/locations/#{location}/agent/sessions/#{session}"
88
+ end),
89
+ "environment:location:project:session:user" => (proc do |project:, location:, environment:, user:, session:|
90
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
91
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
92
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
93
+ raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
94
+
95
+ "projects/#{project}/locations/#{location}/agent/environments/#{environment}/users/#{user}/sessions/#{session}"
62
96
  end)
63
97
  }
64
98
 
@@ -90,6 +124,28 @@ module Google
90
124
  # @param session [String]
91
125
  # @param entity_type [String]
92
126
  #
127
+ # @overload session_entity_type_path(project:, location:, session:, entity_type:)
128
+ # The resource will be in the following format:
129
+ #
130
+ # `projects/{project}/locations/{location}/agent/sessions/{session}/entityTypes/{entity_type}`
131
+ #
132
+ # @param project [String]
133
+ # @param location [String]
134
+ # @param session [String]
135
+ # @param entity_type [String]
136
+ #
137
+ # @overload session_entity_type_path(project:, location:, environment:, user:, session:, entity_type:)
138
+ # The resource will be in the following format:
139
+ #
140
+ # `projects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}/entityTypes/{entity_type}`
141
+ #
142
+ # @param project [String]
143
+ # @param location [String]
144
+ # @param environment [String]
145
+ # @param user [String]
146
+ # @param session [String]
147
+ # @param entity_type [String]
148
+ #
93
149
  # @return [::String]
94
150
  def session_entity_type_path **args
95
151
  resources = {
@@ -106,6 +162,22 @@ module Google
106
162
  raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
107
163
 
108
164
  "projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/entityTypes/#{entity_type}"
165
+ end),
166
+ "entity_type:location:project:session" => (proc do |project:, location:, session:, entity_type:|
167
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
168
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
169
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
170
+
171
+ "projects/#{project}/locations/#{location}/agent/sessions/#{session}/entityTypes/#{entity_type}"
172
+ end),
173
+ "entity_type:environment:location:project:session:user" => (proc do |project:, location:, environment:, user:, session:, entity_type:|
174
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
175
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
176
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
177
+ raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
178
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
179
+
180
+ "projects/#{project}/locations/#{location}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/entityTypes/#{entity_type}"
109
181
  end)
110
182
  }
111
183
 
@@ -57,6 +57,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
57
57
  optional :action, :string, 3
58
58
  optional :parameters, :message, 4, "google.protobuf.Struct"
59
59
  optional :all_required_params_present, :bool, 5
60
+ optional :cancels_slot_filling, :bool, 21
60
61
  optional :fulfillment_text, :string, 6
61
62
  repeated :fulfillment_messages, :message, 7, "google.cloud.dialogflow.v2.Intent.Message"
62
63
  optional :webhook_source, :string, 8
@@ -70,18 +70,12 @@ module Google
70
70
 
71
71
  default_config.timeout = 60.0
72
72
  default_config.retry_policy = {
73
- initial_delay: 0.1,
74
- max_delay: 60.0,
75
- multiplier: 1.3,
76
- retry_codes: [14]
73
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
77
74
  }
78
75
 
79
76
  default_config.rpcs.detect_intent.timeout = 220.0
80
77
  default_config.rpcs.detect_intent.retry_policy = {
81
- initial_delay: 0.1,
82
- max_delay: 60.0,
83
- multiplier: 1.3,
84
- retry_codes: [14]
78
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
85
79
  }
86
80
 
87
81
  default_config.rpcs.streaming_detect_intent.timeout = 220.0
@@ -154,7 +148,7 @@ module Google
154
148
  !@config.endpoint.split(".").first.include?("-")
155
149
  credentials ||= Credentials.default scope: @config.scope,
156
150
  enable_self_signed_jwt: enable_self_signed_jwt
157
- if credentials.is_a?(String) || credentials.is_a?(Hash)
151
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
158
152
  credentials = Credentials.new credentials, scope: @config.scope
159
153
  end
160
154
  @quota_project_id = @config.quota_project
@@ -47,6 +47,28 @@ module Google
47
47
  # @param session [String]
48
48
  # @param context [String]
49
49
  #
50
+ # @overload context_path(project:, location:, session:, context:)
51
+ # The resource will be in the following format:
52
+ #
53
+ # `projects/{project}/locations/{location}/agent/sessions/{session}/contexts/{context}`
54
+ #
55
+ # @param project [String]
56
+ # @param location [String]
57
+ # @param session [String]
58
+ # @param context [String]
59
+ #
60
+ # @overload context_path(project:, location:, environment:, user:, session:, context:)
61
+ # The resource will be in the following format:
62
+ #
63
+ # `projects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}/contexts/{context}`
64
+ #
65
+ # @param project [String]
66
+ # @param location [String]
67
+ # @param environment [String]
68
+ # @param user [String]
69
+ # @param session [String]
70
+ # @param context [String]
71
+ #
50
72
  # @return [::String]
51
73
  def context_path **args
52
74
  resources = {
@@ -63,6 +85,22 @@ module Google
63
85
  raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
64
86
 
65
87
  "projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/contexts/#{context}"
88
+ end),
89
+ "context:location:project:session" => (proc do |project:, location:, session:, context:|
90
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
91
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
92
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
93
+
94
+ "projects/#{project}/locations/#{location}/agent/sessions/#{session}/contexts/#{context}"
95
+ end),
96
+ "context:environment:location:project:session:user" => (proc do |project:, location:, environment:, user:, session:, context:|
97
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
98
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
99
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
100
+ raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
101
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
102
+
103
+ "projects/#{project}/locations/#{location}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/contexts/#{context}"
66
104
  end)
67
105
  }
68
106
 
@@ -92,6 +130,26 @@ module Google
92
130
  # @param user [String]
93
131
  # @param session [String]
94
132
  #
133
+ # @overload session_path(project:, location:, session:)
134
+ # The resource will be in the following format:
135
+ #
136
+ # `projects/{project}/locations/{location}/agent/sessions/{session}`
137
+ #
138
+ # @param project [String]
139
+ # @param location [String]
140
+ # @param session [String]
141
+ #
142
+ # @overload session_path(project:, location:, environment:, user:, session:)
143
+ # The resource will be in the following format:
144
+ #
145
+ # `projects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}`
146
+ #
147
+ # @param project [String]
148
+ # @param location [String]
149
+ # @param environment [String]
150
+ # @param user [String]
151
+ # @param session [String]
152
+ #
95
153
  # @return [::String]
96
154
  def session_path **args
97
155
  resources = {
@@ -106,6 +164,20 @@ module Google
106
164
  raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
107
165
 
108
166
  "projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}"
167
+ end),
168
+ "location:project:session" => (proc do |project:, location:, session:|
169
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
170
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
171
+
172
+ "projects/#{project}/locations/#{location}/agent/sessions/#{session}"
173
+ end),
174
+ "environment:location:project:session:user" => (proc do |project:, location:, environment:, user:, session:|
175
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
176
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
177
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
178
+ raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
179
+
180
+ "projects/#{project}/locations/#{location}/agent/environments/#{environment}/users/#{user}/sessions/#{session}"
109
181
  end)
110
182
  }
111
183
 
@@ -137,6 +209,28 @@ module Google
137
209
  # @param session [String]
138
210
  # @param entity_type [String]
139
211
  #
212
+ # @overload session_entity_type_path(project:, location:, session:, entity_type:)
213
+ # The resource will be in the following format:
214
+ #
215
+ # `projects/{project}/locations/{location}/agent/sessions/{session}/entityTypes/{entity_type}`
216
+ #
217
+ # @param project [String]
218
+ # @param location [String]
219
+ # @param session [String]
220
+ # @param entity_type [String]
221
+ #
222
+ # @overload session_entity_type_path(project:, location:, environment:, user:, session:, entity_type:)
223
+ # The resource will be in the following format:
224
+ #
225
+ # `projects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}/entityTypes/{entity_type}`
226
+ #
227
+ # @param project [String]
228
+ # @param location [String]
229
+ # @param environment [String]
230
+ # @param user [String]
231
+ # @param session [String]
232
+ # @param entity_type [String]
233
+ #
140
234
  # @return [::String]
141
235
  def session_entity_type_path **args
142
236
  resources = {
@@ -153,6 +247,22 @@ module Google
153
247
  raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
154
248
 
155
249
  "projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/entityTypes/#{entity_type}"
250
+ end),
251
+ "entity_type:location:project:session" => (proc do |project:, location:, session:, entity_type:|
252
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
253
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
254
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
255
+
256
+ "projects/#{project}/locations/#{location}/agent/sessions/#{session}/entityTypes/#{entity_type}"
257
+ end),
258
+ "entity_type:environment:location:project:session:user" => (proc do |project:, location:, environment:, user:, session:, entity_type:|
259
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
260
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
261
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
262
+ raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
263
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
264
+
265
+ "projects/#{project}/locations/#{location}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/entityTypes/#{entity_type}"
156
266
  end)
157
267
  }
158
268
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- VERSION = "0.7.0"
24
+ VERSION = "0.10.1"
25
25
  end
26
26
  end
27
27
  end