google-cloud-discovery_engine-v1 0.a → 0.2.0

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