google-cloud-talent-v4 0.8.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/talent/v4/company_service/client.rb +15 -12
  4. data/lib/google/cloud/talent/v4/company_service/rest/client.rb +682 -0
  5. data/lib/google/cloud/talent/v4/company_service/rest/service_stub.rb +345 -0
  6. data/lib/google/cloud/talent/v4/company_service/rest.rb +52 -0
  7. data/lib/google/cloud/talent/v4/company_service.rb +7 -1
  8. data/lib/google/cloud/talent/v4/completion/client.rb +4 -2
  9. data/lib/google/cloud/talent/v4/completion/rest/client.rb +380 -0
  10. data/lib/google/cloud/talent/v4/completion/rest/service_stub.rb +107 -0
  11. data/lib/google/cloud/talent/v4/completion/rest.rb +52 -0
  12. data/lib/google/cloud/talent/v4/completion.rb +7 -1
  13. data/lib/google/cloud/talent/v4/event_service/client.rb +2 -2
  14. data/lib/google/cloud/talent/v4/event_service/rest/client.rb +358 -0
  15. data/lib/google/cloud/talent/v4/event_service/rest/service_stub.rb +108 -0
  16. data/lib/google/cloud/talent/v4/event_service/rest.rb +52 -0
  17. data/lib/google/cloud/talent/v4/event_service.rb +7 -1
  18. data/lib/google/cloud/talent/v4/job_service/client.rb +240 -163
  19. data/lib/google/cloud/talent/v4/job_service/operations.rb +12 -14
  20. data/lib/google/cloud/talent/v4/job_service/rest/client.rb +1685 -0
  21. data/lib/google/cloud/talent/v4/job_service/rest/operations.rb +793 -0
  22. data/lib/google/cloud/talent/v4/job_service/rest/service_stub.rb +645 -0
  23. data/lib/google/cloud/talent/v4/job_service/rest.rb +53 -0
  24. data/lib/google/cloud/talent/v4/job_service.rb +7 -1
  25. data/lib/google/cloud/talent/v4/job_service_services_pb.rb +12 -8
  26. data/lib/google/cloud/talent/v4/rest.rb +41 -0
  27. data/lib/google/cloud/talent/v4/tenant_service/client.rb +10 -9
  28. data/lib/google/cloud/talent/v4/tenant_service/rest/client.rb +670 -0
  29. data/lib/google/cloud/talent/v4/tenant_service/rest/service_stub.rb +345 -0
  30. data/lib/google/cloud/talent/v4/tenant_service/rest.rb +52 -0
  31. data/lib/google/cloud/talent/v4/tenant_service.rb +7 -1
  32. data/lib/google/cloud/talent/v4/version.rb +1 -1
  33. data/lib/google/cloud/talent/v4.rb +7 -2
  34. data/proto_docs/google/api/client.rb +318 -0
  35. data/proto_docs/google/api/launch_stage.rb +71 -0
  36. data/proto_docs/google/cloud/talent/v4/common.rb +116 -56
  37. data/proto_docs/google/cloud/talent/v4/company.rb +10 -5
  38. data/proto_docs/google/cloud/talent/v4/company_service.rb +11 -6
  39. data/proto_docs/google/cloud/talent/v4/completion_service.rb +21 -10
  40. data/proto_docs/google/cloud/talent/v4/event.rb +17 -9
  41. data/proto_docs/google/cloud/talent/v4/event_service.rb +2 -2
  42. data/proto_docs/google/cloud/talent/v4/filters.rb +55 -37
  43. data/proto_docs/google/cloud/talent/v4/histogram.rb +6 -2
  44. data/proto_docs/google/cloud/talent/v4/job.rb +83 -55
  45. data/proto_docs/google/cloud/talent/v4/job_service.rb +200 -118
  46. data/proto_docs/google/cloud/talent/v4/tenant.rb +2 -1
  47. data/proto_docs/google/cloud/talent/v4/tenant_service.rb +6 -3
  48. data/proto_docs/google/rpc/status.rb +4 -2
  49. metadata +28 -8
@@ -0,0 +1,358 @@
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/talent/v4/event_service_pb"
21
+ require "google/cloud/talent/v4/event_service/rest/service_stub"
22
+
23
+ module Google
24
+ module Cloud
25
+ module Talent
26
+ module V4
27
+ module EventService
28
+ module Rest
29
+ ##
30
+ # REST client for the EventService service.
31
+ #
32
+ # A service handles client event report.
33
+ #
34
+ class Client
35
+ include Paths
36
+
37
+ # @private
38
+ attr_reader :event_service_stub
39
+
40
+ ##
41
+ # Configure the EventService Client class.
42
+ #
43
+ # See {::Google::Cloud::Talent::V4::EventService::Rest::Client::Configuration}
44
+ # for a description of the configuration fields.
45
+ #
46
+ # @example
47
+ #
48
+ # # Modify the configuration for all EventService clients
49
+ # ::Google::Cloud::Talent::V4::EventService::Rest::Client.configure do |config|
50
+ # config.timeout = 10.0
51
+ # end
52
+ #
53
+ # @yield [config] Configure the Client client.
54
+ # @yieldparam config [Client::Configuration]
55
+ #
56
+ # @return [Client::Configuration]
57
+ #
58
+ def self.configure
59
+ @configure ||= begin
60
+ namespace = ["Google", "Cloud", "Talent", "V4"]
61
+ parent_config = while namespace.any?
62
+ parent_name = namespace.join "::"
63
+ parent_const = const_get parent_name
64
+ break parent_const.configure if parent_const.respond_to? :configure
65
+ namespace.pop
66
+ end
67
+ default_config = Client::Configuration.new parent_config
68
+
69
+ default_config.rpcs.create_client_event.timeout = 30.0
70
+
71
+ default_config
72
+ end
73
+ yield @configure if block_given?
74
+ @configure
75
+ end
76
+
77
+ ##
78
+ # Configure the EventService Client instance.
79
+ #
80
+ # The configuration is set to the derived mode, meaning that values can be changed,
81
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
82
+ # should be made on {Client.configure}.
83
+ #
84
+ # See {::Google::Cloud::Talent::V4::EventService::Rest::Client::Configuration}
85
+ # for a description of the configuration fields.
86
+ #
87
+ # @yield [config] Configure the Client client.
88
+ # @yieldparam config [Client::Configuration]
89
+ #
90
+ # @return [Client::Configuration]
91
+ #
92
+ def configure
93
+ yield @config if block_given?
94
+ @config
95
+ end
96
+
97
+ ##
98
+ # Create a new EventService REST client object.
99
+ #
100
+ # @example
101
+ #
102
+ # # Create a client using the default configuration
103
+ # client = ::Google::Cloud::Talent::V4::EventService::Rest::Client.new
104
+ #
105
+ # # Create a client using a custom configuration
106
+ # client = ::Google::Cloud::Talent::V4::EventService::Rest::Client.new do |config|
107
+ # config.timeout = 10.0
108
+ # end
109
+ #
110
+ # @yield [config] Configure the EventService client.
111
+ # @yieldparam config [Client::Configuration]
112
+ #
113
+ def initialize
114
+ # Create the configuration object
115
+ @config = Configuration.new Client.configure
116
+
117
+ # Yield the configuration if needed
118
+ yield @config if block_given?
119
+
120
+ # Create credentials
121
+ credentials = @config.credentials
122
+ # Use self-signed JWT if the endpoint is unchanged from default,
123
+ # but only if the default endpoint does not have a region prefix.
124
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
125
+ !@config.endpoint.split(".").first.include?("-")
126
+ credentials ||= Credentials.default scope: @config.scope,
127
+ enable_self_signed_jwt: enable_self_signed_jwt
128
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
129
+ credentials = Credentials.new credentials, scope: @config.scope
130
+ end
131
+
132
+ @quota_project_id = @config.quota_project
133
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
134
+
135
+ @event_service_stub = ::Google::Cloud::Talent::V4::EventService::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
136
+ end
137
+
138
+ # Service calls
139
+
140
+ ##
141
+ # Report events issued when end user interacts with customer's application
142
+ # that uses Cloud Talent Solution. You may inspect the created events in
143
+ # [self service
144
+ # tools](https://console.cloud.google.com/talent-solution/overview).
145
+ # [Learn
146
+ # more](https://cloud.google.com/talent-solution/docs/management-tools)
147
+ # about self service tools.
148
+ #
149
+ # @overload create_client_event(request, options = nil)
150
+ # Pass arguments to `create_client_event` via a request object, either of type
151
+ # {::Google::Cloud::Talent::V4::CreateClientEventRequest} or an equivalent Hash.
152
+ #
153
+ # @param request [::Google::Cloud::Talent::V4::CreateClientEventRequest, ::Hash]
154
+ # A request object representing the call parameters. Required. To specify no
155
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
156
+ # @param options [::Gapic::CallOptions, ::Hash]
157
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
158
+ #
159
+ # @overload create_client_event(parent: nil, client_event: nil)
160
+ # Pass arguments to `create_client_event` via keyword arguments. Note that at
161
+ # least one keyword argument is required. To specify no parameters, or to keep all
162
+ # the default parameter values, pass an empty Hash as a request object (see above).
163
+ #
164
+ # @param parent [::String]
165
+ # Required. Resource name of the tenant under which the event is created.
166
+ #
167
+ # The format is "projects/\\{project_id}/tenants/\\{tenant_id}", for example,
168
+ # "projects/foo/tenants/bar".
169
+ # @param client_event [::Google::Cloud::Talent::V4::ClientEvent, ::Hash]
170
+ # Required. Events issued when end user interacts with customer's application
171
+ # that uses Cloud Talent Solution.
172
+ # @yield [result, operation] Access the result along with the TransportOperation object
173
+ # @yieldparam result [::Google::Cloud::Talent::V4::ClientEvent]
174
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
175
+ #
176
+ # @return [::Google::Cloud::Talent::V4::ClientEvent]
177
+ #
178
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
179
+ def create_client_event request, options = nil
180
+ raise ::ArgumentError, "request must be provided" if request.nil?
181
+
182
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4::CreateClientEventRequest
183
+
184
+ # Converts hash and nil to an options object
185
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
186
+
187
+ # Customize the options with defaults
188
+ call_metadata = @config.rpcs.create_client_event.metadata.to_h
189
+
190
+ # Set x-goog-api-client and x-goog-user-project headers
191
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
192
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
193
+ gapic_version: ::Google::Cloud::Talent::V4::VERSION,
194
+ transports_version_send: [:rest]
195
+
196
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
197
+
198
+ options.apply_defaults timeout: @config.rpcs.create_client_event.timeout,
199
+ metadata: call_metadata,
200
+ retry_policy: @config.rpcs.create_client_event.retry_policy
201
+
202
+ options.apply_defaults timeout: @config.timeout,
203
+ metadata: @config.metadata,
204
+ retry_policy: @config.retry_policy
205
+
206
+ @event_service_stub.create_client_event request, options do |result, operation|
207
+ yield result, operation if block_given?
208
+ return result
209
+ end
210
+ rescue ::Gapic::Rest::Error => e
211
+ raise ::Google::Cloud::Error.from_error(e)
212
+ end
213
+
214
+ ##
215
+ # Configuration class for the EventService REST API.
216
+ #
217
+ # This class represents the configuration for EventService REST,
218
+ # providing control over timeouts, retry behavior, logging, transport
219
+ # parameters, and other low-level controls. Certain parameters can also be
220
+ # applied individually to specific RPCs. See
221
+ # {::Google::Cloud::Talent::V4::EventService::Rest::Client::Configuration::Rpcs}
222
+ # for a list of RPCs that can be configured independently.
223
+ #
224
+ # Configuration can be applied globally to all clients, or to a single client
225
+ # on construction.
226
+ #
227
+ # @example
228
+ #
229
+ # # Modify the global config, setting the timeout for
230
+ # # create_client_event to 20 seconds,
231
+ # # and all remaining timeouts to 10 seconds.
232
+ # ::Google::Cloud::Talent::V4::EventService::Rest::Client.configure do |config|
233
+ # config.timeout = 10.0
234
+ # config.rpcs.create_client_event.timeout = 20.0
235
+ # end
236
+ #
237
+ # # Apply the above configuration only to a new client.
238
+ # client = ::Google::Cloud::Talent::V4::EventService::Rest::Client.new do |config|
239
+ # config.timeout = 10.0
240
+ # config.rpcs.create_client_event.timeout = 20.0
241
+ # end
242
+ #
243
+ # @!attribute [rw] endpoint
244
+ # The hostname or hostname:port of the service endpoint.
245
+ # Defaults to `"jobs.googleapis.com"`.
246
+ # @return [::String]
247
+ # @!attribute [rw] credentials
248
+ # Credentials to send with calls. You may provide any of the following types:
249
+ # * (`String`) The path to a service account key file in JSON format
250
+ # * (`Hash`) A service account key as a Hash
251
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
252
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
253
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
254
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
255
+ # * (`nil`) indicating no credentials
256
+ # @return [::Object]
257
+ # @!attribute [rw] scope
258
+ # The OAuth scopes
259
+ # @return [::Array<::String>]
260
+ # @!attribute [rw] lib_name
261
+ # The library name as recorded in instrumentation and logging
262
+ # @return [::String]
263
+ # @!attribute [rw] lib_version
264
+ # The library version as recorded in instrumentation and logging
265
+ # @return [::String]
266
+ # @!attribute [rw] timeout
267
+ # The call timeout in seconds.
268
+ # @return [::Numeric]
269
+ # @!attribute [rw] metadata
270
+ # Additional headers to be sent with the call.
271
+ # @return [::Hash{::Symbol=>::String}]
272
+ # @!attribute [rw] retry_policy
273
+ # The retry policy. The value is a hash with the following keys:
274
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
275
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
276
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
277
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
278
+ # trigger a retry.
279
+ # @return [::Hash]
280
+ # @!attribute [rw] quota_project
281
+ # A separate project against which to charge quota.
282
+ # @return [::String]
283
+ #
284
+ class Configuration
285
+ extend ::Gapic::Config
286
+
287
+ config_attr :endpoint, "jobs.googleapis.com", ::String
288
+ config_attr :credentials, nil do |value|
289
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
290
+ allowed.any? { |klass| klass === value }
291
+ end
292
+ config_attr :scope, nil, ::String, ::Array, nil
293
+ config_attr :lib_name, nil, ::String, nil
294
+ config_attr :lib_version, nil, ::String, nil
295
+ config_attr :timeout, nil, ::Numeric, nil
296
+ config_attr :metadata, nil, ::Hash, nil
297
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
298
+ config_attr :quota_project, nil, ::String, nil
299
+
300
+ # @private
301
+ def initialize parent_config = nil
302
+ @parent_config = parent_config unless parent_config.nil?
303
+
304
+ yield self if block_given?
305
+ end
306
+
307
+ ##
308
+ # Configurations for individual RPCs
309
+ # @return [Rpcs]
310
+ #
311
+ def rpcs
312
+ @rpcs ||= begin
313
+ parent_rpcs = nil
314
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
315
+ Rpcs.new parent_rpcs
316
+ end
317
+ end
318
+
319
+ ##
320
+ # Configuration RPC class for the EventService API.
321
+ #
322
+ # Includes fields providing the configuration for each RPC in this service.
323
+ # Each configuration object is of type `Gapic::Config::Method` and includes
324
+ # the following configuration fields:
325
+ #
326
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
327
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
328
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
329
+ # include the following keys:
330
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
331
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
332
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
333
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
334
+ # trigger a retry.
335
+ #
336
+ class Rpcs
337
+ ##
338
+ # RPC-specific configuration for `create_client_event`
339
+ # @return [::Gapic::Config::Method]
340
+ #
341
+ attr_reader :create_client_event
342
+
343
+ # @private
344
+ def initialize parent_rpcs = nil
345
+ create_client_event_config = parent_rpcs.create_client_event if parent_rpcs.respond_to? :create_client_event
346
+ @create_client_event = ::Gapic::Config::Method.new create_client_event_config
347
+
348
+ yield self if block_given?
349
+ end
350
+ end
351
+ end
352
+ end
353
+ end
354
+ end
355
+ end
356
+ end
357
+ end
358
+ end
@@ -0,0 +1,108 @@
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/talent/v4/event_service_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Talent
24
+ module V4
25
+ module EventService
26
+ module Rest
27
+ ##
28
+ # REST service stub for the EventService service.
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
+ #
32
+ class ServiceStub
33
+ def initialize endpoint:, credentials:
34
+ # These require statements are intentionally placed here to initialize
35
+ # the REST modules only when it's required.
36
+ require "gapic/rest"
37
+
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
39
+ numeric_enums: true,
40
+ raise_faraday_errors: false
41
+ end
42
+
43
+ ##
44
+ # Baseline implementation for the create_client_event REST call
45
+ #
46
+ # @param request_pb [::Google::Cloud::Talent::V4::CreateClientEventRequest]
47
+ # A request object representing the call parameters. Required.
48
+ # @param options [::Gapic::CallOptions]
49
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
50
+ #
51
+ # @yield [result, operation] Access the result along with the TransportOperation object
52
+ # @yieldparam result [::Google::Cloud::Talent::V4::ClientEvent]
53
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
54
+ #
55
+ # @return [::Google::Cloud::Talent::V4::ClientEvent]
56
+ # A result object deserialized from the server's reply
57
+ def create_client_event request_pb, options = nil
58
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
59
+
60
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_client_event_request request_pb
61
+ query_string_params = if query_string_params.any?
62
+ query_string_params.to_h { |p| p.split("=", 2) }
63
+ else
64
+ {}
65
+ end
66
+
67
+ response = @client_stub.make_http_request(
68
+ verb,
69
+ uri: uri,
70
+ body: body || "",
71
+ params: query_string_params,
72
+ options: options
73
+ )
74
+ operation = ::Gapic::Rest::TransportOperation.new response
75
+ result = ::Google::Cloud::Talent::V4::ClientEvent.decode_json response.body, ignore_unknown_fields: true
76
+
77
+ yield result, operation if block_given?
78
+ result
79
+ end
80
+
81
+ ##
82
+ # @private
83
+ #
84
+ # GRPC transcoding helper method for the create_client_event REST call
85
+ #
86
+ # @param request_pb [::Google::Cloud::Talent::V4::CreateClientEventRequest]
87
+ # A request object representing the call parameters. Required.
88
+ # @return [Array(String, [String, nil], Hash{String => String})]
89
+ # Uri, Body, Query string parameters
90
+ def self.transcode_create_client_event_request request_pb
91
+ transcoder = Gapic::Rest::GrpcTranscoder.new
92
+ .with_bindings(
93
+ uri_method: :post,
94
+ uri_template: "/v4/{parent}/clientEvents",
95
+ body: "client_event",
96
+ matches: [
97
+ ["parent", %r{^projects/[^/]+/tenants/[^/]+/?$}, false]
98
+ ]
99
+ )
100
+ transcoder.transcode request_pb
101
+ end
102
+ end
103
+ end
104
+ end
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,52 @@
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 "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/talent/v4/version"
24
+
25
+ require "google/cloud/talent/v4/event_service/credentials"
26
+ require "google/cloud/talent/v4/event_service/paths"
27
+ require "google/cloud/talent/v4/event_service/rest/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Talent
32
+ module V4
33
+ ##
34
+ # A service handles client event report.
35
+ #
36
+ # To load this service and instantiate a REST client:
37
+ #
38
+ # require "google/cloud/talent/v4/event_service/rest"
39
+ # client = ::Google::Cloud::Talent::V4::EventService::Rest::Client.new
40
+ #
41
+ module EventService
42
+ # Client for the REST transport
43
+ module Rest
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+
51
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
52
+ require "google/cloud/talent/v4/event_service/rest/helpers" if ::File.file? helper_path
@@ -25,6 +25,7 @@ require "google/cloud/talent/v4/version"
25
25
  require "google/cloud/talent/v4/event_service/credentials"
26
26
  require "google/cloud/talent/v4/event_service/paths"
27
27
  require "google/cloud/talent/v4/event_service/client"
28
+ require "google/cloud/talent/v4/event_service/rest"
28
29
 
29
30
  module Google
30
31
  module Cloud
@@ -33,11 +34,16 @@ module Google
33
34
  ##
34
35
  # A service handles client event report.
35
36
  #
36
- # To load this service and instantiate a client:
37
+ # @example Load this service and instantiate a gRPC client
37
38
  #
38
39
  # require "google/cloud/talent/v4/event_service"
39
40
  # client = ::Google::Cloud::Talent::V4::EventService::Client.new
40
41
  #
42
+ # @example Load this service and instantiate a REST client
43
+ #
44
+ # require "google/cloud/talent/v4/event_service/rest"
45
+ # client = ::Google::Cloud::Talent::V4::EventService::Rest::Client.new
46
+ #
41
47
  module EventService
42
48
  end
43
49
  end