google-cloud-discovery_engine-v1 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +235 -4
  3. data/lib/google/cloud/discovery_engine/v1/completion_service/operations.rb +801 -0
  4. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +221 -4
  5. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +1091 -0
  6. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/service_stub.rb +136 -0
  7. data/lib/google/cloud/discovery_engine/v1/completion_service/rest.rb +1 -0
  8. data/lib/google/cloud/discovery_engine/v1/completion_service.rb +1 -0
  9. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +20 -3
  10. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +91 -0
  11. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +20 -3
  12. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb +45 -0
  13. data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +924 -0
  14. data/lib/google/cloud/discovery_engine/v1/data_store_service/credentials.rb +47 -0
  15. data/lib/google/cloud/discovery_engine/v1/data_store_service/operations.rb +801 -0
  16. data/lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb +97 -0
  17. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +863 -0
  18. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +1091 -0
  19. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/service_stub.rb +403 -0
  20. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest.rb +54 -0
  21. data/lib/google/cloud/discovery_engine/v1/data_store_service.rb +57 -0
  22. data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +14 -0
  23. data/lib/google/cloud/discovery_engine/v1/engine_service/client.rb +885 -0
  24. data/lib/google/cloud/discovery_engine/v1/engine_service/credentials.rb +47 -0
  25. data/lib/google/cloud/discovery_engine/v1/engine_service/operations.rb +801 -0
  26. data/lib/google/cloud/discovery_engine/v1/engine_service/paths.rb +73 -0
  27. data/lib/google/cloud/discovery_engine/v1/engine_service/rest/client.rb +824 -0
  28. data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +1091 -0
  29. data/lib/google/cloud/discovery_engine/v1/engine_service/rest/service_stub.rb +366 -0
  30. data/lib/google/cloud/discovery_engine/v1/engine_service/rest.rb +54 -0
  31. data/lib/google/cloud/discovery_engine/v1/engine_service.rb +57 -0
  32. data/lib/google/cloud/discovery_engine/v1/rest.rb +3 -0
  33. data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +14 -0
  34. data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +40 -4
  35. data/lib/google/cloud/discovery_engine/v1/search_service/paths.rb +19 -0
  36. data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +40 -4
  37. data/lib/google/cloud/discovery_engine/v1/search_service/rest/service_stub.rb +8 -0
  38. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/client.rb +1631 -0
  39. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/credentials.rb +47 -0
  40. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/operations.rb +801 -0
  41. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/paths.rb +127 -0
  42. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/client.rb +1521 -0
  43. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +1091 -0
  44. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/service_stub.rb +860 -0
  45. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest.rb +53 -0
  46. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service.rb +56 -0
  47. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +14 -0
  48. data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
  49. data/lib/google/cloud/discovery_engine/v1.rb +3 -0
  50. data/lib/google/cloud/discoveryengine/v1/common_pb.rb +5 -1
  51. data/lib/google/cloud/discoveryengine/v1/completion_pb.rb +45 -0
  52. data/lib/google/cloud/discoveryengine/v1/completion_service_pb.rb +4 -1
  53. data/lib/google/cloud/discoveryengine/v1/completion_service_services_pb.rb +8 -0
  54. data/lib/google/cloud/discoveryengine/v1/conversation_pb.rb +1 -1
  55. data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +1 -1
  56. data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +49 -0
  57. data/lib/google/cloud/discoveryengine/v1/data_store_service_pb.rb +62 -0
  58. data/lib/google/cloud/discoveryengine/v1/data_store_service_services_pb.rb +61 -0
  59. data/lib/google/cloud/discoveryengine/v1/document_pb.rb +1 -1
  60. data/lib/google/cloud/discoveryengine/v1/document_service_pb.rb +1 -1
  61. data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +53 -0
  62. data/lib/google/cloud/discoveryengine/v1/engine_service_pb.rb +62 -0
  63. data/lib/google/cloud/discoveryengine/v1/engine_service_services_pb.rb +55 -0
  64. data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +7 -1
  65. data/lib/google/cloud/discoveryengine/v1/purge_config_pb.rb +6 -1
  66. data/lib/google/cloud/discoveryengine/v1/schema_pb.rb +1 -1
  67. data/lib/google/cloud/discoveryengine/v1/schema_service_pb.rb +1 -1
  68. data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +8 -1
  69. data/lib/google/cloud/discoveryengine/v1/site_search_engine_pb.rb +54 -0
  70. data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_pb.rb +82 -0
  71. data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_services_pb.rb +73 -0
  72. data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +1 -1
  73. data/lib/google/cloud/discoveryengine/v1/user_event_service_pb.rb +1 -1
  74. data/proto_docs/google/cloud/discoveryengine/v1/common.rb +51 -0
  75. data/proto_docs/google/cloud/discoveryengine/v1/completion.rb +53 -0
  76. data/proto_docs/google/cloud/discoveryengine/v1/completion_service.rb +10 -4
  77. data/proto_docs/google/cloud/discoveryengine/v1/conversation.rb +2 -0
  78. data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +19 -1
  79. data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +88 -0
  80. data/proto_docs/google/cloud/discoveryengine/v1/data_store_service.rb +214 -0
  81. data/proto_docs/google/cloud/discoveryengine/v1/document.rb +1 -1
  82. data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +214 -0
  83. data/proto_docs/google/cloud/discoveryengine/v1/engine_service.rb +177 -0
  84. data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +66 -0
  85. data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +41 -0
  86. data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +149 -4
  87. data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine.rb +160 -0
  88. data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine_service.rb +525 -0
  89. data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +3 -3
  90. metadata +48 -2
@@ -0,0 +1,863 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/discoveryengine/v1/data_store_service_pb"
21
+ require "google/cloud/discovery_engine/v1/data_store_service/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+
24
+ module Google
25
+ module Cloud
26
+ module DiscoveryEngine
27
+ module V1
28
+ module DataStoreService
29
+ module Rest
30
+ ##
31
+ # REST client for the DataStoreService service.
32
+ #
33
+ # Service for managing {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}
34
+ # configuration.
35
+ #
36
+ class Client
37
+ # @private
38
+ DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
39
+
40
+ include Paths
41
+
42
+ # @private
43
+ attr_reader :data_store_service_stub
44
+
45
+ ##
46
+ # Configure the DataStoreService Client class.
47
+ #
48
+ # See {::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Client::Configuration}
49
+ # for a description of the configuration fields.
50
+ #
51
+ # @example
52
+ #
53
+ # # Modify the configuration for all DataStoreService clients
54
+ # ::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Client.configure do |config|
55
+ # config.timeout = 10.0
56
+ # end
57
+ #
58
+ # @yield [config] Configure the Client client.
59
+ # @yieldparam config [Client::Configuration]
60
+ #
61
+ # @return [Client::Configuration]
62
+ #
63
+ def self.configure
64
+ @configure ||= begin
65
+ namespace = ["Google", "Cloud", "DiscoveryEngine", "V1"]
66
+ parent_config = while namespace.any?
67
+ parent_name = namespace.join "::"
68
+ parent_const = const_get parent_name
69
+ break parent_const.configure if parent_const.respond_to? :configure
70
+ namespace.pop
71
+ end
72
+ default_config = Client::Configuration.new parent_config
73
+
74
+ default_config
75
+ end
76
+ yield @configure if block_given?
77
+ @configure
78
+ end
79
+
80
+ ##
81
+ # Configure the DataStoreService Client instance.
82
+ #
83
+ # The configuration is set to the derived mode, meaning that values can be changed,
84
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
85
+ # should be made on {Client.configure}.
86
+ #
87
+ # See {::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Client::Configuration}
88
+ # for a description of the configuration fields.
89
+ #
90
+ # @yield [config] Configure the Client client.
91
+ # @yieldparam config [Client::Configuration]
92
+ #
93
+ # @return [Client::Configuration]
94
+ #
95
+ def configure
96
+ yield @config if block_given?
97
+ @config
98
+ end
99
+
100
+ ##
101
+ # The effective universe domain
102
+ #
103
+ # @return [String]
104
+ #
105
+ def universe_domain
106
+ @data_store_service_stub.universe_domain
107
+ end
108
+
109
+ ##
110
+ # Create a new DataStoreService REST client object.
111
+ #
112
+ # @example
113
+ #
114
+ # # Create a client using the default configuration
115
+ # client = ::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Client.new
116
+ #
117
+ # # Create a client using a custom configuration
118
+ # client = ::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Client.new do |config|
119
+ # config.timeout = 10.0
120
+ # end
121
+ #
122
+ # @yield [config] Configure the DataStoreService client.
123
+ # @yieldparam config [Client::Configuration]
124
+ #
125
+ def initialize
126
+ # Create the configuration object
127
+ @config = Configuration.new Client.configure
128
+
129
+ # Yield the configuration if needed
130
+ yield @config if block_given?
131
+
132
+ # Create credentials
133
+ credentials = @config.credentials
134
+ # Use self-signed JWT if the endpoint is unchanged from default,
135
+ # but only if the default endpoint does not have a region prefix.
136
+ enable_self_signed_jwt = @config.endpoint.nil? ||
137
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
138
+ !@config.endpoint.split(".").first.include?("-"))
139
+ credentials ||= Credentials.default scope: @config.scope,
140
+ enable_self_signed_jwt: enable_self_signed_jwt
141
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
142
+ credentials = Credentials.new credentials, scope: @config.scope
143
+ end
144
+
145
+ @quota_project_id = @config.quota_project
146
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
147
+
148
+ @operations_client = ::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Operations.new do |config|
149
+ config.credentials = credentials
150
+ config.quota_project = @quota_project_id
151
+ config.endpoint = @config.endpoint
152
+ config.universe_domain = @config.universe_domain
153
+ end
154
+
155
+ @data_store_service_stub = ::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::ServiceStub.new(
156
+ endpoint: @config.endpoint,
157
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
158
+ universe_domain: @config.universe_domain,
159
+ credentials: credentials
160
+ )
161
+
162
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
163
+ config.credentials = credentials
164
+ config.quota_project = @quota_project_id
165
+ config.endpoint = @data_store_service_stub.endpoint
166
+ config.universe_domain = @data_store_service_stub.universe_domain
167
+ end
168
+ end
169
+
170
+ ##
171
+ # Get the associated client for long-running operations.
172
+ #
173
+ # @return [::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Operations]
174
+ #
175
+ attr_reader :operations_client
176
+
177
+ ##
178
+ # Get the associated client for mix-in of the Locations.
179
+ #
180
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
181
+ #
182
+ attr_reader :location_client
183
+
184
+ # Service calls
185
+
186
+ ##
187
+ # Creates a {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}.
188
+ #
189
+ # DataStore is for storing
190
+ # {::Google::Cloud::DiscoveryEngine::V1::Document Documents}. To serve these
191
+ # documents for Search, or Recommendation use case, an
192
+ # {::Google::Cloud::DiscoveryEngine::V1::Engine Engine} needs to be created
193
+ # separately.
194
+ #
195
+ # @overload create_data_store(request, options = nil)
196
+ # Pass arguments to `create_data_store` via a request object, either of type
197
+ # {::Google::Cloud::DiscoveryEngine::V1::CreateDataStoreRequest} or an equivalent Hash.
198
+ #
199
+ # @param request [::Google::Cloud::DiscoveryEngine::V1::CreateDataStoreRequest, ::Hash]
200
+ # A request object representing the call parameters. Required. To specify no
201
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
202
+ # @param options [::Gapic::CallOptions, ::Hash]
203
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
204
+ #
205
+ # @overload create_data_store(parent: nil, data_store: nil, data_store_id: nil, create_advanced_site_search: nil)
206
+ # Pass arguments to `create_data_store` via keyword arguments. Note that at
207
+ # least one keyword argument is required. To specify no parameters, or to keep all
208
+ # the default parameter values, pass an empty Hash as a request object (see above).
209
+ #
210
+ # @param parent [::String]
211
+ # Required. The parent resource name, such as
212
+ # `projects/{project}/locations/{location}/collections/{collection}`.
213
+ # @param data_store [::Google::Cloud::DiscoveryEngine::V1::DataStore, ::Hash]
214
+ # Required. The {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore} to
215
+ # create.
216
+ # @param data_store_id [::String]
217
+ # Required. The ID to use for the
218
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}, which will become
219
+ # the final component of the
220
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}'s resource name.
221
+ #
222
+ # This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
223
+ # standard with a length limit of 63 characters. Otherwise, an
224
+ # INVALID_ARGUMENT error is returned.
225
+ # @param create_advanced_site_search [::Boolean]
226
+ # A boolean flag indicating whether user want to directly create an advanced
227
+ # data store for site search.
228
+ # If the data store is not configured as site
229
+ # search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will
230
+ # be ignored.
231
+ # @yield [result, operation] Access the result along with the TransportOperation object
232
+ # @yieldparam result [::Gapic::Operation]
233
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
234
+ #
235
+ # @return [::Gapic::Operation]
236
+ #
237
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
238
+ #
239
+ # @example Basic example
240
+ # require "google/cloud/discovery_engine/v1"
241
+ #
242
+ # # Create a client object. The client can be reused for multiple calls.
243
+ # client = Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Client.new
244
+ #
245
+ # # Create a request. To set request fields, pass in keyword arguments.
246
+ # request = Google::Cloud::DiscoveryEngine::V1::CreateDataStoreRequest.new
247
+ #
248
+ # # Call the create_data_store method.
249
+ # result = client.create_data_store request
250
+ #
251
+ # # The returned object is of type Gapic::Operation. You can use it to
252
+ # # check the status of an operation, cancel it, or wait for results.
253
+ # # Here is how to wait for a response.
254
+ # result.wait_until_done! timeout: 60
255
+ # if result.response?
256
+ # p result.response
257
+ # else
258
+ # puts "No response received."
259
+ # end
260
+ #
261
+ def create_data_store request, options = nil
262
+ raise ::ArgumentError, "request must be provided" if request.nil?
263
+
264
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::CreateDataStoreRequest
265
+
266
+ # Converts hash and nil to an options object
267
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
268
+
269
+ # Customize the options with defaults
270
+ call_metadata = @config.rpcs.create_data_store.metadata.to_h
271
+
272
+ # Set x-goog-api-client and x-goog-user-project headers
273
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
275
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
276
+ transports_version_send: [:rest]
277
+
278
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
+
280
+ options.apply_defaults timeout: @config.rpcs.create_data_store.timeout,
281
+ metadata: call_metadata,
282
+ retry_policy: @config.rpcs.create_data_store.retry_policy
283
+
284
+ options.apply_defaults timeout: @config.timeout,
285
+ metadata: @config.metadata,
286
+ retry_policy: @config.retry_policy
287
+
288
+ @data_store_service_stub.create_data_store request, options do |result, operation|
289
+ result = ::Gapic::Operation.new result, @operations_client, options: options
290
+ yield result, operation if block_given?
291
+ return result
292
+ end
293
+ rescue ::Gapic::Rest::Error => e
294
+ raise ::Google::Cloud::Error.from_error(e)
295
+ end
296
+
297
+ ##
298
+ # Gets a {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}.
299
+ #
300
+ # @overload get_data_store(request, options = nil)
301
+ # Pass arguments to `get_data_store` via a request object, either of type
302
+ # {::Google::Cloud::DiscoveryEngine::V1::GetDataStoreRequest} or an equivalent Hash.
303
+ #
304
+ # @param request [::Google::Cloud::DiscoveryEngine::V1::GetDataStoreRequest, ::Hash]
305
+ # A request object representing the call parameters. Required. To specify no
306
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
307
+ # @param options [::Gapic::CallOptions, ::Hash]
308
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
309
+ #
310
+ # @overload get_data_store(name: nil)
311
+ # Pass arguments to `get_data_store` via keyword arguments. Note that at
312
+ # least one keyword argument is required. To specify no parameters, or to keep all
313
+ # the default parameter values, pass an empty Hash as a request object (see above).
314
+ #
315
+ # @param name [::String]
316
+ # Required. Full resource name of
317
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}, such as
318
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
319
+ #
320
+ # If the caller does not have permission to access the
321
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}, regardless of
322
+ # whether or not it exists, a PERMISSION_DENIED error is returned.
323
+ #
324
+ # If the requested {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}
325
+ # does not exist, a NOT_FOUND error is returned.
326
+ # @yield [result, operation] Access the result along with the TransportOperation object
327
+ # @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::DataStore]
328
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
329
+ #
330
+ # @return [::Google::Cloud::DiscoveryEngine::V1::DataStore]
331
+ #
332
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
333
+ #
334
+ # @example Basic example
335
+ # require "google/cloud/discovery_engine/v1"
336
+ #
337
+ # # Create a client object. The client can be reused for multiple calls.
338
+ # client = Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Client.new
339
+ #
340
+ # # Create a request. To set request fields, pass in keyword arguments.
341
+ # request = Google::Cloud::DiscoveryEngine::V1::GetDataStoreRequest.new
342
+ #
343
+ # # Call the get_data_store method.
344
+ # result = client.get_data_store request
345
+ #
346
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1::DataStore.
347
+ # p result
348
+ #
349
+ def get_data_store request, options = nil
350
+ raise ::ArgumentError, "request must be provided" if request.nil?
351
+
352
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::GetDataStoreRequest
353
+
354
+ # Converts hash and nil to an options object
355
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
356
+
357
+ # Customize the options with defaults
358
+ call_metadata = @config.rpcs.get_data_store.metadata.to_h
359
+
360
+ # Set x-goog-api-client and x-goog-user-project headers
361
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
362
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
363
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
364
+ transports_version_send: [:rest]
365
+
366
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
367
+
368
+ options.apply_defaults timeout: @config.rpcs.get_data_store.timeout,
369
+ metadata: call_metadata,
370
+ retry_policy: @config.rpcs.get_data_store.retry_policy
371
+
372
+ options.apply_defaults timeout: @config.timeout,
373
+ metadata: @config.metadata,
374
+ retry_policy: @config.retry_policy
375
+
376
+ @data_store_service_stub.get_data_store request, options do |result, operation|
377
+ yield result, operation if block_given?
378
+ return result
379
+ end
380
+ rescue ::Gapic::Rest::Error => e
381
+ raise ::Google::Cloud::Error.from_error(e)
382
+ end
383
+
384
+ ##
385
+ # Lists all the {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}s
386
+ # associated with the project.
387
+ #
388
+ # @overload list_data_stores(request, options = nil)
389
+ # Pass arguments to `list_data_stores` via a request object, either of type
390
+ # {::Google::Cloud::DiscoveryEngine::V1::ListDataStoresRequest} or an equivalent Hash.
391
+ #
392
+ # @param request [::Google::Cloud::DiscoveryEngine::V1::ListDataStoresRequest, ::Hash]
393
+ # A request object representing the call parameters. Required. To specify no
394
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
395
+ # @param options [::Gapic::CallOptions, ::Hash]
396
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
397
+ #
398
+ # @overload list_data_stores(parent: nil, page_size: nil, page_token: nil, filter: nil)
399
+ # Pass arguments to `list_data_stores` via keyword arguments. Note that at
400
+ # least one keyword argument is required. To specify no parameters, or to keep all
401
+ # the default parameter values, pass an empty Hash as a request object (see above).
402
+ #
403
+ # @param parent [::String]
404
+ # Required. The parent branch resource name, such as
405
+ # `projects/{project}/locations/{location}/collections/{collection_id}`.
406
+ #
407
+ # If the caller does not have permission to list
408
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}s under this
409
+ # location, regardless of whether or not this data store exists, a
410
+ # PERMISSION_DENIED error is returned.
411
+ # @param page_size [::Integer]
412
+ # Maximum number of {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}s
413
+ # to return. If unspecified, defaults to 10. The maximum allowed value is 50.
414
+ # Values above 50 will be coerced to 50.
415
+ #
416
+ # If this field is negative, an INVALID_ARGUMENT is returned.
417
+ # @param page_token [::String]
418
+ # A page token
419
+ # {::Google::Cloud::DiscoveryEngine::V1::ListDataStoresResponse#next_page_token ListDataStoresResponse.next_page_token},
420
+ # received from a previous
421
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Client#list_data_stores DataStoreService.ListDataStores}
422
+ # call. Provide this to retrieve the subsequent page.
423
+ #
424
+ # When paginating, all other parameters provided to
425
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Client#list_data_stores DataStoreService.ListDataStores}
426
+ # must match the call that provided the page token. Otherwise, an
427
+ # INVALID_ARGUMENT error is returned.
428
+ # @param filter [::String]
429
+ # Filter by solution type. For example: filter =
430
+ # 'solution_type:SOLUTION_TYPE_SEARCH'
431
+ # @yield [result, operation] Access the result along with the TransportOperation object
432
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::DataStore>]
433
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
434
+ #
435
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::DataStore>]
436
+ #
437
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
438
+ #
439
+ # @example Basic example
440
+ # require "google/cloud/discovery_engine/v1"
441
+ #
442
+ # # Create a client object. The client can be reused for multiple calls.
443
+ # client = Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Client.new
444
+ #
445
+ # # Create a request. To set request fields, pass in keyword arguments.
446
+ # request = Google::Cloud::DiscoveryEngine::V1::ListDataStoresRequest.new
447
+ #
448
+ # # Call the list_data_stores method.
449
+ # result = client.list_data_stores request
450
+ #
451
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
452
+ # # over elements, and API calls will be issued to fetch pages as needed.
453
+ # result.each do |item|
454
+ # # Each element is of type ::Google::Cloud::DiscoveryEngine::V1::DataStore.
455
+ # p item
456
+ # end
457
+ #
458
+ def list_data_stores request, options = nil
459
+ raise ::ArgumentError, "request must be provided" if request.nil?
460
+
461
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::ListDataStoresRequest
462
+
463
+ # Converts hash and nil to an options object
464
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
465
+
466
+ # Customize the options with defaults
467
+ call_metadata = @config.rpcs.list_data_stores.metadata.to_h
468
+
469
+ # Set x-goog-api-client and x-goog-user-project headers
470
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
471
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
472
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
473
+ transports_version_send: [:rest]
474
+
475
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
476
+
477
+ options.apply_defaults timeout: @config.rpcs.list_data_stores.timeout,
478
+ metadata: call_metadata,
479
+ retry_policy: @config.rpcs.list_data_stores.retry_policy
480
+
481
+ options.apply_defaults timeout: @config.timeout,
482
+ metadata: @config.metadata,
483
+ retry_policy: @config.retry_policy
484
+
485
+ @data_store_service_stub.list_data_stores request, options do |result, operation|
486
+ result = ::Gapic::Rest::PagedEnumerable.new @data_store_service_stub, :list_data_stores, "data_stores", request, result, options
487
+ yield result, operation if block_given?
488
+ return result
489
+ end
490
+ rescue ::Gapic::Rest::Error => e
491
+ raise ::Google::Cloud::Error.from_error(e)
492
+ end
493
+
494
+ ##
495
+ # Deletes a {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}.
496
+ #
497
+ # @overload delete_data_store(request, options = nil)
498
+ # Pass arguments to `delete_data_store` via a request object, either of type
499
+ # {::Google::Cloud::DiscoveryEngine::V1::DeleteDataStoreRequest} or an equivalent Hash.
500
+ #
501
+ # @param request [::Google::Cloud::DiscoveryEngine::V1::DeleteDataStoreRequest, ::Hash]
502
+ # A request object representing the call parameters. Required. To specify no
503
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
504
+ # @param options [::Gapic::CallOptions, ::Hash]
505
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
506
+ #
507
+ # @overload delete_data_store(name: nil)
508
+ # Pass arguments to `delete_data_store` via keyword arguments. Note that at
509
+ # least one keyword argument is required. To specify no parameters, or to keep all
510
+ # the default parameter values, pass an empty Hash as a request object (see above).
511
+ #
512
+ # @param name [::String]
513
+ # Required. Full resource name of
514
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}, such as
515
+ # `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
516
+ #
517
+ # If the caller does not have permission to delete the
518
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}, regardless of
519
+ # whether or not it exists, a PERMISSION_DENIED error is returned.
520
+ #
521
+ # If the {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore} to delete
522
+ # does not exist, a NOT_FOUND error is returned.
523
+ # @yield [result, operation] Access the result along with the TransportOperation object
524
+ # @yieldparam result [::Gapic::Operation]
525
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
526
+ #
527
+ # @return [::Gapic::Operation]
528
+ #
529
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
530
+ #
531
+ # @example Basic example
532
+ # require "google/cloud/discovery_engine/v1"
533
+ #
534
+ # # Create a client object. The client can be reused for multiple calls.
535
+ # client = Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Client.new
536
+ #
537
+ # # Create a request. To set request fields, pass in keyword arguments.
538
+ # request = Google::Cloud::DiscoveryEngine::V1::DeleteDataStoreRequest.new
539
+ #
540
+ # # Call the delete_data_store method.
541
+ # result = client.delete_data_store request
542
+ #
543
+ # # The returned object is of type Gapic::Operation. You can use it to
544
+ # # check the status of an operation, cancel it, or wait for results.
545
+ # # Here is how to wait for a response.
546
+ # result.wait_until_done! timeout: 60
547
+ # if result.response?
548
+ # p result.response
549
+ # else
550
+ # puts "No response received."
551
+ # end
552
+ #
553
+ def delete_data_store request, options = nil
554
+ raise ::ArgumentError, "request must be provided" if request.nil?
555
+
556
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::DeleteDataStoreRequest
557
+
558
+ # Converts hash and nil to an options object
559
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
560
+
561
+ # Customize the options with defaults
562
+ call_metadata = @config.rpcs.delete_data_store.metadata.to_h
563
+
564
+ # Set x-goog-api-client and x-goog-user-project headers
565
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
566
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
567
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
568
+ transports_version_send: [:rest]
569
+
570
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
571
+
572
+ options.apply_defaults timeout: @config.rpcs.delete_data_store.timeout,
573
+ metadata: call_metadata,
574
+ retry_policy: @config.rpcs.delete_data_store.retry_policy
575
+
576
+ options.apply_defaults timeout: @config.timeout,
577
+ metadata: @config.metadata,
578
+ retry_policy: @config.retry_policy
579
+
580
+ @data_store_service_stub.delete_data_store request, options do |result, operation|
581
+ result = ::Gapic::Operation.new result, @operations_client, options: options
582
+ yield result, operation if block_given?
583
+ return result
584
+ end
585
+ rescue ::Gapic::Rest::Error => e
586
+ raise ::Google::Cloud::Error.from_error(e)
587
+ end
588
+
589
+ ##
590
+ # Updates a {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}
591
+ #
592
+ # @overload update_data_store(request, options = nil)
593
+ # Pass arguments to `update_data_store` via a request object, either of type
594
+ # {::Google::Cloud::DiscoveryEngine::V1::UpdateDataStoreRequest} or an equivalent Hash.
595
+ #
596
+ # @param request [::Google::Cloud::DiscoveryEngine::V1::UpdateDataStoreRequest, ::Hash]
597
+ # A request object representing the call parameters. Required. To specify no
598
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
599
+ # @param options [::Gapic::CallOptions, ::Hash]
600
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
601
+ #
602
+ # @overload update_data_store(data_store: nil, update_mask: nil)
603
+ # Pass arguments to `update_data_store` via keyword arguments. Note that at
604
+ # least one keyword argument is required. To specify no parameters, or to keep all
605
+ # the default parameter values, pass an empty Hash as a request object (see above).
606
+ #
607
+ # @param data_store [::Google::Cloud::DiscoveryEngine::V1::DataStore, ::Hash]
608
+ # Required. The {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore} to
609
+ # update.
610
+ #
611
+ # If the caller does not have permission to update the
612
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}, regardless of
613
+ # whether or not it exists, a PERMISSION_DENIED error is returned.
614
+ #
615
+ # If the {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore} to update
616
+ # does not exist, a NOT_FOUND error is returned.
617
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
618
+ # Indicates which fields in the provided
619
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore} to update.
620
+ #
621
+ # If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
622
+ # is returned.
623
+ # @yield [result, operation] Access the result along with the TransportOperation object
624
+ # @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::DataStore]
625
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
626
+ #
627
+ # @return [::Google::Cloud::DiscoveryEngine::V1::DataStore]
628
+ #
629
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
630
+ #
631
+ # @example Basic example
632
+ # require "google/cloud/discovery_engine/v1"
633
+ #
634
+ # # Create a client object. The client can be reused for multiple calls.
635
+ # client = Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Client.new
636
+ #
637
+ # # Create a request. To set request fields, pass in keyword arguments.
638
+ # request = Google::Cloud::DiscoveryEngine::V1::UpdateDataStoreRequest.new
639
+ #
640
+ # # Call the update_data_store method.
641
+ # result = client.update_data_store request
642
+ #
643
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1::DataStore.
644
+ # p result
645
+ #
646
+ def update_data_store request, options = nil
647
+ raise ::ArgumentError, "request must be provided" if request.nil?
648
+
649
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::UpdateDataStoreRequest
650
+
651
+ # Converts hash and nil to an options object
652
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
653
+
654
+ # Customize the options with defaults
655
+ call_metadata = @config.rpcs.update_data_store.metadata.to_h
656
+
657
+ # Set x-goog-api-client and x-goog-user-project headers
658
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
659
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
660
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
661
+ transports_version_send: [:rest]
662
+
663
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
664
+
665
+ options.apply_defaults timeout: @config.rpcs.update_data_store.timeout,
666
+ metadata: call_metadata,
667
+ retry_policy: @config.rpcs.update_data_store.retry_policy
668
+
669
+ options.apply_defaults timeout: @config.timeout,
670
+ metadata: @config.metadata,
671
+ retry_policy: @config.retry_policy
672
+
673
+ @data_store_service_stub.update_data_store request, options do |result, operation|
674
+ yield result, operation if block_given?
675
+ return result
676
+ end
677
+ rescue ::Gapic::Rest::Error => e
678
+ raise ::Google::Cloud::Error.from_error(e)
679
+ end
680
+
681
+ ##
682
+ # Configuration class for the DataStoreService REST API.
683
+ #
684
+ # This class represents the configuration for DataStoreService REST,
685
+ # providing control over timeouts, retry behavior, logging, transport
686
+ # parameters, and other low-level controls. Certain parameters can also be
687
+ # applied individually to specific RPCs. See
688
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Client::Configuration::Rpcs}
689
+ # for a list of RPCs that can be configured independently.
690
+ #
691
+ # Configuration can be applied globally to all clients, or to a single client
692
+ # on construction.
693
+ #
694
+ # @example
695
+ #
696
+ # # Modify the global config, setting the timeout for
697
+ # # create_data_store to 20 seconds,
698
+ # # and all remaining timeouts to 10 seconds.
699
+ # ::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Client.configure do |config|
700
+ # config.timeout = 10.0
701
+ # config.rpcs.create_data_store.timeout = 20.0
702
+ # end
703
+ #
704
+ # # Apply the above configuration only to a new client.
705
+ # client = ::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Rest::Client.new do |config|
706
+ # config.timeout = 10.0
707
+ # config.rpcs.create_data_store.timeout = 20.0
708
+ # end
709
+ #
710
+ # @!attribute [rw] endpoint
711
+ # A custom service endpoint, as a hostname or hostname:port. The default is
712
+ # nil, indicating to use the default endpoint in the current universe domain.
713
+ # @return [::String,nil]
714
+ # @!attribute [rw] credentials
715
+ # Credentials to send with calls. You may provide any of the following types:
716
+ # * (`String`) The path to a service account key file in JSON format
717
+ # * (`Hash`) A service account key as a Hash
718
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
719
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
720
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
721
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
722
+ # * (`nil`) indicating no credentials
723
+ # @return [::Object]
724
+ # @!attribute [rw] scope
725
+ # The OAuth scopes
726
+ # @return [::Array<::String>]
727
+ # @!attribute [rw] lib_name
728
+ # The library name as recorded in instrumentation and logging
729
+ # @return [::String]
730
+ # @!attribute [rw] lib_version
731
+ # The library version as recorded in instrumentation and logging
732
+ # @return [::String]
733
+ # @!attribute [rw] timeout
734
+ # The call timeout in seconds.
735
+ # @return [::Numeric]
736
+ # @!attribute [rw] metadata
737
+ # Additional headers to be sent with the call.
738
+ # @return [::Hash{::Symbol=>::String}]
739
+ # @!attribute [rw] retry_policy
740
+ # The retry policy. The value is a hash with the following keys:
741
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
742
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
743
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
744
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
745
+ # trigger a retry.
746
+ # @return [::Hash]
747
+ # @!attribute [rw] quota_project
748
+ # A separate project against which to charge quota.
749
+ # @return [::String]
750
+ # @!attribute [rw] universe_domain
751
+ # The universe domain within which to make requests. This determines the
752
+ # default endpoint URL. The default value of nil uses the environment
753
+ # universe (usually the default "googleapis.com" universe).
754
+ # @return [::String,nil]
755
+ #
756
+ class Configuration
757
+ extend ::Gapic::Config
758
+
759
+ # @private
760
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
761
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
762
+
763
+ config_attr :endpoint, nil, ::String, nil
764
+ config_attr :credentials, nil do |value|
765
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
766
+ allowed.any? { |klass| klass === value }
767
+ end
768
+ config_attr :scope, nil, ::String, ::Array, nil
769
+ config_attr :lib_name, nil, ::String, nil
770
+ config_attr :lib_version, nil, ::String, nil
771
+ config_attr :timeout, nil, ::Numeric, nil
772
+ config_attr :metadata, nil, ::Hash, nil
773
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
774
+ config_attr :quota_project, nil, ::String, nil
775
+ config_attr :universe_domain, nil, ::String, nil
776
+
777
+ # @private
778
+ def initialize parent_config = nil
779
+ @parent_config = parent_config unless parent_config.nil?
780
+
781
+ yield self if block_given?
782
+ end
783
+
784
+ ##
785
+ # Configurations for individual RPCs
786
+ # @return [Rpcs]
787
+ #
788
+ def rpcs
789
+ @rpcs ||= begin
790
+ parent_rpcs = nil
791
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
792
+ Rpcs.new parent_rpcs
793
+ end
794
+ end
795
+
796
+ ##
797
+ # Configuration RPC class for the DataStoreService API.
798
+ #
799
+ # Includes fields providing the configuration for each RPC in this service.
800
+ # Each configuration object is of type `Gapic::Config::Method` and includes
801
+ # the following configuration fields:
802
+ #
803
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
804
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
805
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
806
+ # include the following keys:
807
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
808
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
809
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
810
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
811
+ # trigger a retry.
812
+ #
813
+ class Rpcs
814
+ ##
815
+ # RPC-specific configuration for `create_data_store`
816
+ # @return [::Gapic::Config::Method]
817
+ #
818
+ attr_reader :create_data_store
819
+ ##
820
+ # RPC-specific configuration for `get_data_store`
821
+ # @return [::Gapic::Config::Method]
822
+ #
823
+ attr_reader :get_data_store
824
+ ##
825
+ # RPC-specific configuration for `list_data_stores`
826
+ # @return [::Gapic::Config::Method]
827
+ #
828
+ attr_reader :list_data_stores
829
+ ##
830
+ # RPC-specific configuration for `delete_data_store`
831
+ # @return [::Gapic::Config::Method]
832
+ #
833
+ attr_reader :delete_data_store
834
+ ##
835
+ # RPC-specific configuration for `update_data_store`
836
+ # @return [::Gapic::Config::Method]
837
+ #
838
+ attr_reader :update_data_store
839
+
840
+ # @private
841
+ def initialize parent_rpcs = nil
842
+ create_data_store_config = parent_rpcs.create_data_store if parent_rpcs.respond_to? :create_data_store
843
+ @create_data_store = ::Gapic::Config::Method.new create_data_store_config
844
+ get_data_store_config = parent_rpcs.get_data_store if parent_rpcs.respond_to? :get_data_store
845
+ @get_data_store = ::Gapic::Config::Method.new get_data_store_config
846
+ list_data_stores_config = parent_rpcs.list_data_stores if parent_rpcs.respond_to? :list_data_stores
847
+ @list_data_stores = ::Gapic::Config::Method.new list_data_stores_config
848
+ delete_data_store_config = parent_rpcs.delete_data_store if parent_rpcs.respond_to? :delete_data_store
849
+ @delete_data_store = ::Gapic::Config::Method.new delete_data_store_config
850
+ update_data_store_config = parent_rpcs.update_data_store if parent_rpcs.respond_to? :update_data_store
851
+ @update_data_store = ::Gapic::Config::Method.new update_data_store_config
852
+
853
+ yield self if block_given?
854
+ end
855
+ end
856
+ end
857
+ end
858
+ end
859
+ end
860
+ end
861
+ end
862
+ end
863
+ end