google-cloud-dialogflow-v2 0.22.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +1078 -0
  4. data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +813 -0
  5. data/lib/google/cloud/dialogflow/v2/agents/rest/service_stub.rb +652 -0
  6. data/lib/google/cloud/dialogflow/v2/agents/rest.rb +54 -0
  7. data/lib/google/cloud/dialogflow/v2/agents.rb +6 -0
  8. data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +463 -0
  9. data/lib/google/cloud/dialogflow/v2/answer_records/rest/service_stub.rb +182 -0
  10. data/lib/google/cloud/dialogflow/v2/answer_records/rest.rb +54 -0
  11. data/lib/google/cloud/dialogflow/v2/answer_records.rb +6 -0
  12. data/lib/google/cloud/dialogflow/v2/bindings_override.rb +102 -0
  13. data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +753 -0
  14. data/lib/google/cloud/dialogflow/v2/contexts/rest/service_stub.rb +536 -0
  15. data/lib/google/cloud/dialogflow/v2/contexts/rest.rb +53 -0
  16. data/lib/google/cloud/dialogflow/v2/contexts.rb +6 -0
  17. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +714 -0
  18. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +813 -0
  19. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/service_stub.rb +367 -0
  20. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest.rb +57 -0
  21. data/lib/google/cloud/dialogflow/v2/conversation_datasets.rb +6 -0
  22. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +1010 -0
  23. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +813 -0
  24. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/service_stub.rb +642 -0
  25. data/lib/google/cloud/dialogflow/v2/conversation_models/rest.rb +54 -0
  26. data/lib/google/cloud/dialogflow/v2/conversation_models.rb +6 -0
  27. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +868 -0
  28. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +813 -0
  29. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/service_stub.rb +518 -0
  30. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest.rb +55 -0
  31. data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +6 -0
  32. data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +819 -0
  33. data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +450 -0
  34. data/lib/google/cloud/dialogflow/v2/conversations/rest.rb +54 -0
  35. data/lib/google/cloud/dialogflow/v2/conversations.rb +6 -0
  36. data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +1013 -0
  37. data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +813 -0
  38. data/lib/google/cloud/dialogflow/v2/documents/rest/service_stub.rb +631 -0
  39. data/lib/google/cloud/dialogflow/v2/documents/rest.rb +55 -0
  40. data/lib/google/cloud/dialogflow/v2/documents.rb +6 -0
  41. data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +1178 -0
  42. data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +813 -0
  43. data/lib/google/cloud/dialogflow/v2/entity_types/rest/service_stub.rb +722 -0
  44. data/lib/google/cloud/dialogflow/v2/entity_types/rest.rb +54 -0
  45. data/lib/google/cloud/dialogflow/v2/entity_types.rb +6 -0
  46. data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +779 -0
  47. data/lib/google/cloud/dialogflow/v2/environments/rest/service_stub.rb +448 -0
  48. data/lib/google/cloud/dialogflow/v2/environments/rest.rb +53 -0
  49. data/lib/google/cloud/dialogflow/v2/environments.rb +6 -0
  50. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +444 -0
  51. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/service_stub.rb +182 -0
  52. data/lib/google/cloud/dialogflow/v2/fulfillments/rest.rb +53 -0
  53. data/lib/google/cloud/dialogflow/v2/fulfillments.rb +6 -0
  54. data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +914 -0
  55. data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +813 -0
  56. data/lib/google/cloud/dialogflow/v2/intents/rest/service_stub.rb +532 -0
  57. data/lib/google/cloud/dialogflow/v2/intents/rest.rb +54 -0
  58. data/lib/google/cloud/dialogflow/v2/intents.rb +6 -0
  59. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +696 -0
  60. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/service_stub.rb +419 -0
  61. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest.rb +54 -0
  62. data/lib/google/cloud/dialogflow/v2/knowledge_bases.rb +6 -0
  63. data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +955 -0
  64. data/lib/google/cloud/dialogflow/v2/participants/rest/service_stub.rb +588 -0
  65. data/lib/google/cloud/dialogflow/v2/participants/rest.rb +53 -0
  66. data/lib/google/cloud/dialogflow/v2/participants.rb +6 -0
  67. data/lib/google/cloud/dialogflow/v2/rest.rb +54 -0
  68. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +703 -0
  69. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/service_stub.rb +456 -0
  70. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest.rb +54 -0
  71. data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +6 -0
  72. data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +437 -0
  73. data/lib/google/cloud/dialogflow/v2/sessions/rest/service_stub.rb +132 -0
  74. data/lib/google/cloud/dialogflow/v2/sessions/rest.rb +56 -0
  75. data/lib/google/cloud/dialogflow/v2/sessions.rb +6 -0
  76. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  77. data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +686 -0
  78. data/lib/google/cloud/dialogflow/v2/versions/rest/service_stub.rb +382 -0
  79. data/lib/google/cloud/dialogflow/v2/versions/rest.rb +53 -0
  80. data/lib/google/cloud/dialogflow/v2/versions.rb +6 -0
  81. data/lib/google/cloud/dialogflow/v2.rb +5 -0
  82. metadata +66 -5
@@ -0,0 +1,868 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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 "google/cloud/errors"
20
+ require "google/cloud/dialogflow/v2/conversation_profile_pb"
21
+ require "google/cloud/dialogflow/v2/conversation_profiles/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+
24
+ module Google
25
+ module Cloud
26
+ module Dialogflow
27
+ module V2
28
+ module ConversationProfiles
29
+ module Rest
30
+ ##
31
+ # REST client for the ConversationProfiles service.
32
+ #
33
+ # Service for managing
34
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfile ConversationProfiles}.
35
+ #
36
+ class Client
37
+ include Paths
38
+
39
+ # @private
40
+ attr_reader :conversation_profiles_stub
41
+
42
+ ##
43
+ # Configure the ConversationProfiles Client class.
44
+ #
45
+ # See {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client::Configuration}
46
+ # for a description of the configuration fields.
47
+ #
48
+ # @example
49
+ #
50
+ # # Modify the configuration for all ConversationProfiles clients
51
+ # ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client.configure do |config|
52
+ # config.timeout = 10.0
53
+ # end
54
+ #
55
+ # @yield [config] Configure the Client client.
56
+ # @yieldparam config [Client::Configuration]
57
+ #
58
+ # @return [Client::Configuration]
59
+ #
60
+ def self.configure
61
+ @configure ||= begin
62
+ namespace = ["Google", "Cloud", "Dialogflow", "V2"]
63
+ parent_config = while namespace.any?
64
+ parent_name = namespace.join "::"
65
+ parent_const = const_get parent_name
66
+ break parent_const.configure if parent_const.respond_to? :configure
67
+ namespace.pop
68
+ end
69
+ default_config = Client::Configuration.new parent_config
70
+
71
+ default_config.timeout = 60.0
72
+ default_config.retry_policy = {
73
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
74
+ }
75
+
76
+ default_config
77
+ end
78
+ yield @configure if block_given?
79
+ @configure
80
+ end
81
+
82
+ ##
83
+ # Configure the ConversationProfiles Client instance.
84
+ #
85
+ # The configuration is set to the derived mode, meaning that values can be changed,
86
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
87
+ # should be made on {Client.configure}.
88
+ #
89
+ # See {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client::Configuration}
90
+ # for a description of the configuration fields.
91
+ #
92
+ # @yield [config] Configure the Client client.
93
+ # @yieldparam config [Client::Configuration]
94
+ #
95
+ # @return [Client::Configuration]
96
+ #
97
+ def configure
98
+ yield @config if block_given?
99
+ @config
100
+ end
101
+
102
+ ##
103
+ # Create a new ConversationProfiles REST client object.
104
+ #
105
+ # @example
106
+ #
107
+ # # Create a client using the default configuration
108
+ # client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client.new
109
+ #
110
+ # # Create a client using a custom configuration
111
+ # client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client.new do |config|
112
+ # config.timeout = 10.0
113
+ # end
114
+ #
115
+ # @yield [config] Configure the ConversationProfiles client.
116
+ # @yieldparam config [Client::Configuration]
117
+ #
118
+ def initialize
119
+ # Create the configuration object
120
+ @config = Configuration.new Client.configure
121
+
122
+ # Yield the configuration if needed
123
+ yield @config if block_given?
124
+
125
+ # Create credentials
126
+ credentials = @config.credentials
127
+ # Use self-signed JWT if the endpoint is unchanged from default,
128
+ # but only if the default endpoint does not have a region prefix.
129
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
130
+ !@config.endpoint.split(".").first.include?("-")
131
+ credentials ||= Credentials.default scope: @config.scope,
132
+ enable_self_signed_jwt: enable_self_signed_jwt
133
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
134
+ credentials = Credentials.new credentials, scope: @config.scope
135
+ end
136
+
137
+ @quota_project_id = @config.quota_project
138
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
139
+
140
+ @operations_client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Operations.new do |config|
141
+ config.credentials = credentials
142
+ config.quota_project = @quota_project_id
143
+ config.endpoint = @config.endpoint
144
+ end
145
+
146
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
147
+ config.credentials = credentials
148
+ config.quota_project = @quota_project_id
149
+ config.endpoint = @config.endpoint
150
+ config.bindings_override = @config.bindings_override
151
+ end
152
+
153
+ @conversation_profiles_stub = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
154
+ end
155
+
156
+ ##
157
+ # Get the associated client for long-running operations.
158
+ #
159
+ # @return [::Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Operations]
160
+ #
161
+ attr_reader :operations_client
162
+
163
+ ##
164
+ # Get the associated client for mix-in of the Locations.
165
+ #
166
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
167
+ #
168
+ attr_reader :location_client
169
+
170
+ # Service calls
171
+
172
+ ##
173
+ # Returns the list of all conversation profiles in the specified project.
174
+ #
175
+ # @overload list_conversation_profiles(request, options = nil)
176
+ # Pass arguments to `list_conversation_profiles` via a request object, either of type
177
+ # {::Google::Cloud::Dialogflow::V2::ListConversationProfilesRequest} or an equivalent Hash.
178
+ #
179
+ # @param request [::Google::Cloud::Dialogflow::V2::ListConversationProfilesRequest, ::Hash]
180
+ # A request object representing the call parameters. Required. To specify no
181
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
182
+ # @param options [::Gapic::CallOptions, ::Hash]
183
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
184
+ #
185
+ # @overload list_conversation_profiles(parent: nil, page_size: nil, page_token: nil)
186
+ # Pass arguments to `list_conversation_profiles` via keyword arguments. Note that at
187
+ # least one keyword argument is required. To specify no parameters, or to keep all
188
+ # the default parameter values, pass an empty Hash as a request object (see above).
189
+ #
190
+ # @param parent [::String]
191
+ # Required. The project to list all conversation profiles from.
192
+ # Format: `projects/<Project ID>/locations/<Location ID>`.
193
+ # @param page_size [::Integer]
194
+ # The maximum number of items to return in a single page. By
195
+ # default 100 and at most 1000.
196
+ # @param page_token [::String]
197
+ # The next_page_token value returned from a previous list request.
198
+ # @yield [result, operation] Access the result along with the TransportOperation object
199
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::ConversationProfile>]
200
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
201
+ #
202
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::ConversationProfile>]
203
+ #
204
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
205
+ def list_conversation_profiles request, options = nil
206
+ raise ::ArgumentError, "request must be provided" if request.nil?
207
+
208
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::ListConversationProfilesRequest
209
+
210
+ # Converts hash and nil to an options object
211
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
212
+
213
+ # Customize the options with defaults
214
+ call_metadata = @config.rpcs.list_conversation_profiles.metadata.to_h
215
+
216
+ # Set x-goog-api-client and x-goog-user-project headers
217
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
218
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
219
+ gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
220
+ transports_version_send: [:rest]
221
+
222
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
223
+
224
+ options.apply_defaults timeout: @config.rpcs.list_conversation_profiles.timeout,
225
+ metadata: call_metadata,
226
+ retry_policy: @config.rpcs.list_conversation_profiles.retry_policy
227
+
228
+ options.apply_defaults timeout: @config.timeout,
229
+ metadata: @config.metadata,
230
+ retry_policy: @config.retry_policy
231
+
232
+ @conversation_profiles_stub.list_conversation_profiles request, options do |result, operation|
233
+ result = ::Gapic::Rest::PagedEnumerable.new @conversation_profiles_stub, :list_conversation_profiles, "conversation_profiles", request, result, options
234
+ yield result, operation if block_given?
235
+ return result
236
+ end
237
+ rescue ::Gapic::Rest::Error => e
238
+ raise ::Google::Cloud::Error.from_error(e)
239
+ end
240
+
241
+ ##
242
+ # Retrieves the specified conversation profile.
243
+ #
244
+ # @overload get_conversation_profile(request, options = nil)
245
+ # Pass arguments to `get_conversation_profile` via a request object, either of type
246
+ # {::Google::Cloud::Dialogflow::V2::GetConversationProfileRequest} or an equivalent Hash.
247
+ #
248
+ # @param request [::Google::Cloud::Dialogflow::V2::GetConversationProfileRequest, ::Hash]
249
+ # A request object representing the call parameters. Required. To specify no
250
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
251
+ # @param options [::Gapic::CallOptions, ::Hash]
252
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
253
+ #
254
+ # @overload get_conversation_profile(name: nil)
255
+ # Pass arguments to `get_conversation_profile` via keyword arguments. Note that at
256
+ # least one keyword argument is required. To specify no parameters, or to keep all
257
+ # the default parameter values, pass an empty Hash as a request object (see above).
258
+ #
259
+ # @param name [::String]
260
+ # Required. The resource name of the conversation profile.
261
+ # Format: `projects/<Project ID>/locations/<Location
262
+ # ID>/conversationProfiles/<Conversation Profile ID>`.
263
+ # @yield [result, operation] Access the result along with the TransportOperation object
264
+ # @yieldparam result [::Google::Cloud::Dialogflow::V2::ConversationProfile]
265
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
266
+ #
267
+ # @return [::Google::Cloud::Dialogflow::V2::ConversationProfile]
268
+ #
269
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
270
+ def get_conversation_profile request, options = nil
271
+ raise ::ArgumentError, "request must be provided" if request.nil?
272
+
273
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::GetConversationProfileRequest
274
+
275
+ # Converts hash and nil to an options object
276
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
277
+
278
+ # Customize the options with defaults
279
+ call_metadata = @config.rpcs.get_conversation_profile.metadata.to_h
280
+
281
+ # Set x-goog-api-client and x-goog-user-project headers
282
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
283
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
284
+ gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
285
+ transports_version_send: [:rest]
286
+
287
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
288
+
289
+ options.apply_defaults timeout: @config.rpcs.get_conversation_profile.timeout,
290
+ metadata: call_metadata,
291
+ retry_policy: @config.rpcs.get_conversation_profile.retry_policy
292
+
293
+ options.apply_defaults timeout: @config.timeout,
294
+ metadata: @config.metadata,
295
+ retry_policy: @config.retry_policy
296
+
297
+ @conversation_profiles_stub.get_conversation_profile request, options do |result, operation|
298
+ yield result, operation if block_given?
299
+ return result
300
+ end
301
+ rescue ::Gapic::Rest::Error => e
302
+ raise ::Google::Cloud::Error.from_error(e)
303
+ end
304
+
305
+ ##
306
+ # Creates a conversation profile in the specified project.
307
+ #
308
+ # [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
309
+ # aren't populated in the response. You can retrieve them via
310
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client#get_conversation_profile GetConversationProfile}
311
+ # API.
312
+ #
313
+ # @overload create_conversation_profile(request, options = nil)
314
+ # Pass arguments to `create_conversation_profile` via a request object, either of type
315
+ # {::Google::Cloud::Dialogflow::V2::CreateConversationProfileRequest} or an equivalent Hash.
316
+ #
317
+ # @param request [::Google::Cloud::Dialogflow::V2::CreateConversationProfileRequest, ::Hash]
318
+ # A request object representing the call parameters. Required. To specify no
319
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
320
+ # @param options [::Gapic::CallOptions, ::Hash]
321
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
322
+ #
323
+ # @overload create_conversation_profile(parent: nil, conversation_profile: nil)
324
+ # Pass arguments to `create_conversation_profile` via keyword arguments. Note that at
325
+ # least one keyword argument is required. To specify no parameters, or to keep all
326
+ # the default parameter values, pass an empty Hash as a request object (see above).
327
+ #
328
+ # @param parent [::String]
329
+ # Required. The project to create a conversation profile for.
330
+ # Format: `projects/<Project ID>/locations/<Location ID>`.
331
+ # @param conversation_profile [::Google::Cloud::Dialogflow::V2::ConversationProfile, ::Hash]
332
+ # Required. The conversation profile to create.
333
+ # @yield [result, operation] Access the result along with the TransportOperation object
334
+ # @yieldparam result [::Google::Cloud::Dialogflow::V2::ConversationProfile]
335
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
336
+ #
337
+ # @return [::Google::Cloud::Dialogflow::V2::ConversationProfile]
338
+ #
339
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
340
+ def create_conversation_profile request, options = nil
341
+ raise ::ArgumentError, "request must be provided" if request.nil?
342
+
343
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::CreateConversationProfileRequest
344
+
345
+ # Converts hash and nil to an options object
346
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
347
+
348
+ # Customize the options with defaults
349
+ call_metadata = @config.rpcs.create_conversation_profile.metadata.to_h
350
+
351
+ # Set x-goog-api-client and x-goog-user-project headers
352
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
353
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
354
+ gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
355
+ transports_version_send: [:rest]
356
+
357
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
358
+
359
+ options.apply_defaults timeout: @config.rpcs.create_conversation_profile.timeout,
360
+ metadata: call_metadata,
361
+ retry_policy: @config.rpcs.create_conversation_profile.retry_policy
362
+
363
+ options.apply_defaults timeout: @config.timeout,
364
+ metadata: @config.metadata,
365
+ retry_policy: @config.retry_policy
366
+
367
+ @conversation_profiles_stub.create_conversation_profile request, options do |result, operation|
368
+ yield result, operation if block_given?
369
+ return result
370
+ end
371
+ rescue ::Gapic::Rest::Error => e
372
+ raise ::Google::Cloud::Error.from_error(e)
373
+ end
374
+
375
+ ##
376
+ # Updates the specified conversation profile.
377
+ #
378
+ # [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
379
+ # aren't populated in the response. You can retrieve them via
380
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client#get_conversation_profile GetConversationProfile}
381
+ # API.
382
+ #
383
+ # @overload update_conversation_profile(request, options = nil)
384
+ # Pass arguments to `update_conversation_profile` via a request object, either of type
385
+ # {::Google::Cloud::Dialogflow::V2::UpdateConversationProfileRequest} or an equivalent Hash.
386
+ #
387
+ # @param request [::Google::Cloud::Dialogflow::V2::UpdateConversationProfileRequest, ::Hash]
388
+ # A request object representing the call parameters. Required. To specify no
389
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
390
+ # @param options [::Gapic::CallOptions, ::Hash]
391
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
392
+ #
393
+ # @overload update_conversation_profile(conversation_profile: nil, update_mask: nil)
394
+ # Pass arguments to `update_conversation_profile` via keyword arguments. Note that at
395
+ # least one keyword argument is required. To specify no parameters, or to keep all
396
+ # the default parameter values, pass an empty Hash as a request object (see above).
397
+ #
398
+ # @param conversation_profile [::Google::Cloud::Dialogflow::V2::ConversationProfile, ::Hash]
399
+ # Required. The conversation profile to update.
400
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
401
+ # Required. The mask to control which fields to update.
402
+ # @yield [result, operation] Access the result along with the TransportOperation object
403
+ # @yieldparam result [::Google::Cloud::Dialogflow::V2::ConversationProfile]
404
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
405
+ #
406
+ # @return [::Google::Cloud::Dialogflow::V2::ConversationProfile]
407
+ #
408
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
409
+ def update_conversation_profile request, options = nil
410
+ raise ::ArgumentError, "request must be provided" if request.nil?
411
+
412
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::UpdateConversationProfileRequest
413
+
414
+ # Converts hash and nil to an options object
415
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
416
+
417
+ # Customize the options with defaults
418
+ call_metadata = @config.rpcs.update_conversation_profile.metadata.to_h
419
+
420
+ # Set x-goog-api-client and x-goog-user-project headers
421
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
422
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
423
+ gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
424
+ transports_version_send: [:rest]
425
+
426
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
427
+
428
+ options.apply_defaults timeout: @config.rpcs.update_conversation_profile.timeout,
429
+ metadata: call_metadata,
430
+ retry_policy: @config.rpcs.update_conversation_profile.retry_policy
431
+
432
+ options.apply_defaults timeout: @config.timeout,
433
+ metadata: @config.metadata,
434
+ retry_policy: @config.retry_policy
435
+
436
+ @conversation_profiles_stub.update_conversation_profile request, options do |result, operation|
437
+ yield result, operation if block_given?
438
+ return result
439
+ end
440
+ rescue ::Gapic::Rest::Error => e
441
+ raise ::Google::Cloud::Error.from_error(e)
442
+ end
443
+
444
+ ##
445
+ # Deletes the specified conversation profile.
446
+ #
447
+ # @overload delete_conversation_profile(request, options = nil)
448
+ # Pass arguments to `delete_conversation_profile` via a request object, either of type
449
+ # {::Google::Cloud::Dialogflow::V2::DeleteConversationProfileRequest} or an equivalent Hash.
450
+ #
451
+ # @param request [::Google::Cloud::Dialogflow::V2::DeleteConversationProfileRequest, ::Hash]
452
+ # A request object representing the call parameters. Required. To specify no
453
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
454
+ # @param options [::Gapic::CallOptions, ::Hash]
455
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
456
+ #
457
+ # @overload delete_conversation_profile(name: nil)
458
+ # Pass arguments to `delete_conversation_profile` via keyword arguments. Note that at
459
+ # least one keyword argument is required. To specify no parameters, or to keep all
460
+ # the default parameter values, pass an empty Hash as a request object (see above).
461
+ #
462
+ # @param name [::String]
463
+ # Required. The name of the conversation profile to delete.
464
+ # Format: `projects/<Project ID>/locations/<Location
465
+ # ID>/conversationProfiles/<Conversation Profile ID>`.
466
+ # @yield [result, operation] Access the result along with the TransportOperation object
467
+ # @yieldparam result [::Google::Protobuf::Empty]
468
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
469
+ #
470
+ # @return [::Google::Protobuf::Empty]
471
+ #
472
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
473
+ def delete_conversation_profile request, options = nil
474
+ raise ::ArgumentError, "request must be provided" if request.nil?
475
+
476
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::DeleteConversationProfileRequest
477
+
478
+ # Converts hash and nil to an options object
479
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
480
+
481
+ # Customize the options with defaults
482
+ call_metadata = @config.rpcs.delete_conversation_profile.metadata.to_h
483
+
484
+ # Set x-goog-api-client and x-goog-user-project headers
485
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
486
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
487
+ gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
488
+ transports_version_send: [:rest]
489
+
490
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
491
+
492
+ options.apply_defaults timeout: @config.rpcs.delete_conversation_profile.timeout,
493
+ metadata: call_metadata,
494
+ retry_policy: @config.rpcs.delete_conversation_profile.retry_policy
495
+
496
+ options.apply_defaults timeout: @config.timeout,
497
+ metadata: @config.metadata,
498
+ retry_policy: @config.retry_policy
499
+
500
+ @conversation_profiles_stub.delete_conversation_profile request, options do |result, operation|
501
+ yield result, operation if block_given?
502
+ return result
503
+ end
504
+ rescue ::Gapic::Rest::Error => e
505
+ raise ::Google::Cloud::Error.from_error(e)
506
+ end
507
+
508
+ ##
509
+ # Adds or updates a suggestion feature in a conversation profile.
510
+ # If the conversation profile contains the type of suggestion feature for
511
+ # the participant role, it will update it. Otherwise it will insert the
512
+ # suggestion feature.
513
+ #
514
+ # This method is a [long-running
515
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
516
+ # The returned `Operation` type has the following method-specific fields:
517
+ #
518
+ # - `metadata`:
519
+ # {::Google::Cloud::Dialogflow::V2::SetSuggestionFeatureConfigOperationMetadata SetSuggestionFeatureConfigOperationMetadata}
520
+ # - `response`:
521
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfile ConversationProfile}
522
+ #
523
+ # If a long running operation to add or update suggestion feature
524
+ # config for the same conversation profile, participant role and suggestion
525
+ # feature type exists, please cancel the existing long running operation
526
+ # before sending such request, otherwise the request will be rejected.
527
+ #
528
+ # @overload set_suggestion_feature_config(request, options = nil)
529
+ # Pass arguments to `set_suggestion_feature_config` via a request object, either of type
530
+ # {::Google::Cloud::Dialogflow::V2::SetSuggestionFeatureConfigRequest} or an equivalent Hash.
531
+ #
532
+ # @param request [::Google::Cloud::Dialogflow::V2::SetSuggestionFeatureConfigRequest, ::Hash]
533
+ # A request object representing the call parameters. Required. To specify no
534
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
535
+ # @param options [::Gapic::CallOptions, ::Hash]
536
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
537
+ #
538
+ # @overload set_suggestion_feature_config(conversation_profile: nil, participant_role: nil, suggestion_feature_config: nil)
539
+ # Pass arguments to `set_suggestion_feature_config` via keyword arguments. Note that at
540
+ # least one keyword argument is required. To specify no parameters, or to keep all
541
+ # the default parameter values, pass an empty Hash as a request object (see above).
542
+ #
543
+ # @param conversation_profile [::String]
544
+ # Required. The Conversation Profile to add or update the suggestion feature
545
+ # config. Format: `projects/<Project ID>/locations/<Location
546
+ # ID>/conversationProfiles/<Conversation Profile ID>`.
547
+ # @param participant_role [::Google::Cloud::Dialogflow::V2::Participant::Role]
548
+ # Required. The participant role to add or update the suggestion feature
549
+ # config. Only HUMAN_AGENT or END_USER can be used.
550
+ # @param suggestion_feature_config [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionFeatureConfig, ::Hash]
551
+ # Required. The suggestion feature config to add or update.
552
+ # @yield [result, operation] Access the result along with the TransportOperation object
553
+ # @yieldparam result [::Gapic::Operation]
554
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
555
+ #
556
+ # @return [::Gapic::Operation]
557
+ #
558
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
559
+ def set_suggestion_feature_config request, options = nil
560
+ raise ::ArgumentError, "request must be provided" if request.nil?
561
+
562
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::SetSuggestionFeatureConfigRequest
563
+
564
+ # Converts hash and nil to an options object
565
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
566
+
567
+ # Customize the options with defaults
568
+ call_metadata = @config.rpcs.set_suggestion_feature_config.metadata.to_h
569
+
570
+ # Set x-goog-api-client and x-goog-user-project headers
571
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
572
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
573
+ gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
574
+ transports_version_send: [:rest]
575
+
576
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
577
+
578
+ options.apply_defaults timeout: @config.rpcs.set_suggestion_feature_config.timeout,
579
+ metadata: call_metadata,
580
+ retry_policy: @config.rpcs.set_suggestion_feature_config.retry_policy
581
+
582
+ options.apply_defaults timeout: @config.timeout,
583
+ metadata: @config.metadata,
584
+ retry_policy: @config.retry_policy
585
+
586
+ @conversation_profiles_stub.set_suggestion_feature_config request, options do |result, operation|
587
+ result = ::Gapic::Operation.new result, @operations_client, options: options
588
+ yield result, operation if block_given?
589
+ return result
590
+ end
591
+ rescue ::Gapic::Rest::Error => e
592
+ raise ::Google::Cloud::Error.from_error(e)
593
+ end
594
+
595
+ ##
596
+ # Clears a suggestion feature from a conversation profile for the given
597
+ # participant role.
598
+ #
599
+ # This method is a [long-running
600
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
601
+ # The returned `Operation` type has the following method-specific fields:
602
+ #
603
+ # - `metadata`:
604
+ # {::Google::Cloud::Dialogflow::V2::ClearSuggestionFeatureConfigOperationMetadata ClearSuggestionFeatureConfigOperationMetadata}
605
+ # - `response`:
606
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfile ConversationProfile}
607
+ #
608
+ # @overload clear_suggestion_feature_config(request, options = nil)
609
+ # Pass arguments to `clear_suggestion_feature_config` via a request object, either of type
610
+ # {::Google::Cloud::Dialogflow::V2::ClearSuggestionFeatureConfigRequest} or an equivalent Hash.
611
+ #
612
+ # @param request [::Google::Cloud::Dialogflow::V2::ClearSuggestionFeatureConfigRequest, ::Hash]
613
+ # A request object representing the call parameters. Required. To specify no
614
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
615
+ # @param options [::Gapic::CallOptions, ::Hash]
616
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
617
+ #
618
+ # @overload clear_suggestion_feature_config(conversation_profile: nil, participant_role: nil, suggestion_feature_type: nil)
619
+ # Pass arguments to `clear_suggestion_feature_config` via keyword arguments. Note that at
620
+ # least one keyword argument is required. To specify no parameters, or to keep all
621
+ # the default parameter values, pass an empty Hash as a request object (see above).
622
+ #
623
+ # @param conversation_profile [::String]
624
+ # Required. The Conversation Profile to add or update the suggestion feature
625
+ # config. Format: `projects/<Project ID>/locations/<Location
626
+ # ID>/conversationProfiles/<Conversation Profile ID>`.
627
+ # @param participant_role [::Google::Cloud::Dialogflow::V2::Participant::Role]
628
+ # Required. The participant role to remove the suggestion feature
629
+ # config. Only HUMAN_AGENT or END_USER can be used.
630
+ # @param suggestion_feature_type [::Google::Cloud::Dialogflow::V2::SuggestionFeature::Type]
631
+ # Required. The type of the suggestion feature to remove.
632
+ # @yield [result, operation] Access the result along with the TransportOperation object
633
+ # @yieldparam result [::Gapic::Operation]
634
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
635
+ #
636
+ # @return [::Gapic::Operation]
637
+ #
638
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
639
+ def clear_suggestion_feature_config request, options = nil
640
+ raise ::ArgumentError, "request must be provided" if request.nil?
641
+
642
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::ClearSuggestionFeatureConfigRequest
643
+
644
+ # Converts hash and nil to an options object
645
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
646
+
647
+ # Customize the options with defaults
648
+ call_metadata = @config.rpcs.clear_suggestion_feature_config.metadata.to_h
649
+
650
+ # Set x-goog-api-client and x-goog-user-project headers
651
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
652
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
653
+ gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
654
+ transports_version_send: [:rest]
655
+
656
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
657
+
658
+ options.apply_defaults timeout: @config.rpcs.clear_suggestion_feature_config.timeout,
659
+ metadata: call_metadata,
660
+ retry_policy: @config.rpcs.clear_suggestion_feature_config.retry_policy
661
+
662
+ options.apply_defaults timeout: @config.timeout,
663
+ metadata: @config.metadata,
664
+ retry_policy: @config.retry_policy
665
+
666
+ @conversation_profiles_stub.clear_suggestion_feature_config request, options do |result, operation|
667
+ result = ::Gapic::Operation.new result, @operations_client, options: options
668
+ yield result, operation if block_given?
669
+ return result
670
+ end
671
+ rescue ::Gapic::Rest::Error => e
672
+ raise ::Google::Cloud::Error.from_error(e)
673
+ end
674
+
675
+ ##
676
+ # Configuration class for the ConversationProfiles REST API.
677
+ #
678
+ # This class represents the configuration for ConversationProfiles REST,
679
+ # providing control over timeouts, retry behavior, logging, transport
680
+ # parameters, and other low-level controls. Certain parameters can also be
681
+ # applied individually to specific RPCs. See
682
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client::Configuration::Rpcs}
683
+ # for a list of RPCs that can be configured independently.
684
+ #
685
+ # Configuration can be applied globally to all clients, or to a single client
686
+ # on construction.
687
+ #
688
+ # @example
689
+ #
690
+ # # Modify the global config, setting the timeout for
691
+ # # list_conversation_profiles to 20 seconds,
692
+ # # and all remaining timeouts to 10 seconds.
693
+ # ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client.configure do |config|
694
+ # config.timeout = 10.0
695
+ # config.rpcs.list_conversation_profiles.timeout = 20.0
696
+ # end
697
+ #
698
+ # # Apply the above configuration only to a new client.
699
+ # client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client.new do |config|
700
+ # config.timeout = 10.0
701
+ # config.rpcs.list_conversation_profiles.timeout = 20.0
702
+ # end
703
+ #
704
+ # @!attribute [rw] endpoint
705
+ # The hostname or hostname:port of the service endpoint.
706
+ # Defaults to `"dialogflow.googleapis.com"`.
707
+ # @return [::String]
708
+ # @!attribute [rw] credentials
709
+ # Credentials to send with calls. You may provide any of the following types:
710
+ # * (`String`) The path to a service account key file in JSON format
711
+ # * (`Hash`) A service account key as a Hash
712
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
713
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
714
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
715
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
716
+ # * (`nil`) indicating no credentials
717
+ # @return [::Object]
718
+ # @!attribute [rw] scope
719
+ # The OAuth scopes
720
+ # @return [::Array<::String>]
721
+ # @!attribute [rw] lib_name
722
+ # The library name as recorded in instrumentation and logging
723
+ # @return [::String]
724
+ # @!attribute [rw] lib_version
725
+ # The library version as recorded in instrumentation and logging
726
+ # @return [::String]
727
+ # @!attribute [rw] timeout
728
+ # The call timeout in seconds.
729
+ # @return [::Numeric]
730
+ # @!attribute [rw] metadata
731
+ # Additional headers to be sent with the call.
732
+ # @return [::Hash{::Symbol=>::String}]
733
+ # @!attribute [rw] retry_policy
734
+ # The retry policy. The value is a hash with the following keys:
735
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
736
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
737
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
738
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
739
+ # trigger a retry.
740
+ # @return [::Hash]
741
+ # @!attribute [rw] quota_project
742
+ # A separate project against which to charge quota.
743
+ # @return [::String]
744
+ #
745
+ class Configuration
746
+ extend ::Gapic::Config
747
+
748
+ config_attr :endpoint, "dialogflow.googleapis.com", ::String
749
+ config_attr :credentials, nil do |value|
750
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
751
+ allowed.any? { |klass| klass === value }
752
+ end
753
+ config_attr :scope, nil, ::String, ::Array, nil
754
+ config_attr :lib_name, nil, ::String, nil
755
+ config_attr :lib_version, nil, ::String, nil
756
+ config_attr :timeout, nil, ::Numeric, nil
757
+ config_attr :metadata, nil, ::Hash, nil
758
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
759
+ config_attr :quota_project, nil, ::String, nil
760
+
761
+ # @private
762
+ # Overrides for http bindings for the RPCs of this service
763
+ # are only used when this service is used as mixin, and only
764
+ # by the host service.
765
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
766
+ config_attr :bindings_override, {}, ::Hash, nil
767
+
768
+ # @private
769
+ def initialize parent_config = nil
770
+ @parent_config = parent_config unless parent_config.nil?
771
+
772
+ yield self if block_given?
773
+ end
774
+
775
+ ##
776
+ # Configurations for individual RPCs
777
+ # @return [Rpcs]
778
+ #
779
+ def rpcs
780
+ @rpcs ||= begin
781
+ parent_rpcs = nil
782
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
783
+ Rpcs.new parent_rpcs
784
+ end
785
+ end
786
+
787
+ ##
788
+ # Configuration RPC class for the ConversationProfiles API.
789
+ #
790
+ # Includes fields providing the configuration for each RPC in this service.
791
+ # Each configuration object is of type `Gapic::Config::Method` and includes
792
+ # the following configuration fields:
793
+ #
794
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
795
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
796
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
797
+ # include the following keys:
798
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
799
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
800
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
801
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
802
+ # trigger a retry.
803
+ #
804
+ class Rpcs
805
+ ##
806
+ # RPC-specific configuration for `list_conversation_profiles`
807
+ # @return [::Gapic::Config::Method]
808
+ #
809
+ attr_reader :list_conversation_profiles
810
+ ##
811
+ # RPC-specific configuration for `get_conversation_profile`
812
+ # @return [::Gapic::Config::Method]
813
+ #
814
+ attr_reader :get_conversation_profile
815
+ ##
816
+ # RPC-specific configuration for `create_conversation_profile`
817
+ # @return [::Gapic::Config::Method]
818
+ #
819
+ attr_reader :create_conversation_profile
820
+ ##
821
+ # RPC-specific configuration for `update_conversation_profile`
822
+ # @return [::Gapic::Config::Method]
823
+ #
824
+ attr_reader :update_conversation_profile
825
+ ##
826
+ # RPC-specific configuration for `delete_conversation_profile`
827
+ # @return [::Gapic::Config::Method]
828
+ #
829
+ attr_reader :delete_conversation_profile
830
+ ##
831
+ # RPC-specific configuration for `set_suggestion_feature_config`
832
+ # @return [::Gapic::Config::Method]
833
+ #
834
+ attr_reader :set_suggestion_feature_config
835
+ ##
836
+ # RPC-specific configuration for `clear_suggestion_feature_config`
837
+ # @return [::Gapic::Config::Method]
838
+ #
839
+ attr_reader :clear_suggestion_feature_config
840
+
841
+ # @private
842
+ def initialize parent_rpcs = nil
843
+ list_conversation_profiles_config = parent_rpcs.list_conversation_profiles if parent_rpcs.respond_to? :list_conversation_profiles
844
+ @list_conversation_profiles = ::Gapic::Config::Method.new list_conversation_profiles_config
845
+ get_conversation_profile_config = parent_rpcs.get_conversation_profile if parent_rpcs.respond_to? :get_conversation_profile
846
+ @get_conversation_profile = ::Gapic::Config::Method.new get_conversation_profile_config
847
+ create_conversation_profile_config = parent_rpcs.create_conversation_profile if parent_rpcs.respond_to? :create_conversation_profile
848
+ @create_conversation_profile = ::Gapic::Config::Method.new create_conversation_profile_config
849
+ update_conversation_profile_config = parent_rpcs.update_conversation_profile if parent_rpcs.respond_to? :update_conversation_profile
850
+ @update_conversation_profile = ::Gapic::Config::Method.new update_conversation_profile_config
851
+ delete_conversation_profile_config = parent_rpcs.delete_conversation_profile if parent_rpcs.respond_to? :delete_conversation_profile
852
+ @delete_conversation_profile = ::Gapic::Config::Method.new delete_conversation_profile_config
853
+ set_suggestion_feature_config_config = parent_rpcs.set_suggestion_feature_config if parent_rpcs.respond_to? :set_suggestion_feature_config
854
+ @set_suggestion_feature_config = ::Gapic::Config::Method.new set_suggestion_feature_config_config
855
+ clear_suggestion_feature_config_config = parent_rpcs.clear_suggestion_feature_config if parent_rpcs.respond_to? :clear_suggestion_feature_config
856
+ @clear_suggestion_feature_config = ::Gapic::Config::Method.new clear_suggestion_feature_config_config
857
+
858
+ yield self if block_given?
859
+ end
860
+ end
861
+ end
862
+ end
863
+ end
864
+ end
865
+ end
866
+ end
867
+ end
868
+ end