google-cloud-discovery_engine-v1beta 0.7.2 → 0.8.0

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