google-cloud-talent-v4beta1 0.4.0 → 0.4.4
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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/talent/v4beta1/application_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/application_service/client.rb +73 -69
- data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/batch_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/common_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/company_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/company_service/client.rb +73 -69
- data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/completion/client.rb +39 -45
- data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/event_service/client.rb +38 -41
- data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/filters_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/job_service/client.rb +115 -91
- data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +54 -37
- data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/profile_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +82 -74
- data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +73 -69
- data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/talent/v4beta1/job.rb +1 -1
- data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +1 -1
- data/proto_docs/google/cloud/talent/v4beta1/profile_service.rb +1 -1
- data/proto_docs/google/type/date.rb +14 -11
- data/proto_docs/google/type/money.rb +1 -1
- data/proto_docs/google/type/timeofday.rb +2 -1
- metadata +13 -7
|
@@ -41,13 +41,12 @@ module Google
|
|
|
41
41
|
# See {::Google::Cloud::Talent::V4beta1::CompanyService::Client::Configuration}
|
|
42
42
|
# for a description of the configuration fields.
|
|
43
43
|
#
|
|
44
|
-
#
|
|
44
|
+
# @example
|
|
45
45
|
#
|
|
46
|
-
#
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
# end
|
|
46
|
+
# # Modify the configuration for all CompanyService clients
|
|
47
|
+
# ::Google::Cloud::Talent::V4beta1::CompanyService::Client.configure do |config|
|
|
48
|
+
# config.timeout = 10.0
|
|
49
|
+
# end
|
|
51
50
|
#
|
|
52
51
|
# @yield [config] Configure the Client client.
|
|
53
52
|
# @yieldparam config [Client::Configuration]
|
|
@@ -69,28 +68,19 @@ module Google
|
|
|
69
68
|
|
|
70
69
|
default_config.rpcs.get_company.timeout = 30.0
|
|
71
70
|
default_config.rpcs.get_company.retry_policy = {
|
|
72
|
-
initial_delay: 0.1,
|
|
73
|
-
max_delay: 60.0,
|
|
74
|
-
multiplier: 1.3,
|
|
75
|
-
retry_codes: [4, 14]
|
|
71
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
|
76
72
|
}
|
|
77
73
|
|
|
78
74
|
default_config.rpcs.update_company.timeout = 30.0
|
|
79
75
|
|
|
80
76
|
default_config.rpcs.delete_company.timeout = 30.0
|
|
81
77
|
default_config.rpcs.delete_company.retry_policy = {
|
|
82
|
-
initial_delay: 0.1,
|
|
83
|
-
max_delay: 60.0,
|
|
84
|
-
multiplier: 1.3,
|
|
85
|
-
retry_codes: [4, 14]
|
|
78
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
|
86
79
|
}
|
|
87
80
|
|
|
88
81
|
default_config.rpcs.list_companies.timeout = 30.0
|
|
89
82
|
default_config.rpcs.list_companies.retry_policy = {
|
|
90
|
-
initial_delay: 0.1,
|
|
91
|
-
max_delay: 60.0,
|
|
92
|
-
multiplier: 1.3,
|
|
93
|
-
retry_codes: [4, 14]
|
|
83
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
|
94
84
|
}
|
|
95
85
|
|
|
96
86
|
default_config
|
|
@@ -122,19 +112,15 @@ module Google
|
|
|
122
112
|
##
|
|
123
113
|
# Create a new CompanyService client object.
|
|
124
114
|
#
|
|
125
|
-
#
|
|
126
|
-
#
|
|
127
|
-
# To create a new CompanyService client with the default
|
|
128
|
-
# configuration:
|
|
129
|
-
#
|
|
130
|
-
# client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new
|
|
115
|
+
# @example
|
|
131
116
|
#
|
|
132
|
-
#
|
|
133
|
-
#
|
|
117
|
+
# # Create a client using the default configuration
|
|
118
|
+
# client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new
|
|
134
119
|
#
|
|
135
|
-
#
|
|
136
|
-
#
|
|
137
|
-
#
|
|
120
|
+
# # Create a client using a custom configuration
|
|
121
|
+
# client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new do |config|
|
|
122
|
+
# config.timeout = 10.0
|
|
123
|
+
# end
|
|
138
124
|
#
|
|
139
125
|
# @yield [config] Configure the CompanyService client.
|
|
140
126
|
# @yieldparam config [Client::Configuration]
|
|
@@ -154,14 +140,13 @@ module Google
|
|
|
154
140
|
|
|
155
141
|
# Create credentials
|
|
156
142
|
credentials = @config.credentials
|
|
157
|
-
# Use self-signed JWT if the
|
|
143
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
158
144
|
# but only if the default endpoint does not have a region prefix.
|
|
159
|
-
enable_self_signed_jwt = @config.
|
|
160
|
-
@config.endpoint == Client.configure.endpoint &&
|
|
145
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
|
161
146
|
!@config.endpoint.split(".").first.include?("-")
|
|
162
147
|
credentials ||= Credentials.default scope: @config.scope,
|
|
163
148
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
164
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
149
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
165
150
|
credentials = Credentials.new credentials, scope: @config.scope
|
|
166
151
|
end
|
|
167
152
|
@quota_project_id = @config.quota_project
|
|
@@ -230,16 +215,20 @@ module Google
|
|
|
230
215
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
231
216
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
232
217
|
|
|
233
|
-
header_params = {
|
|
234
|
-
|
|
235
|
-
|
|
218
|
+
header_params = {}
|
|
219
|
+
if request.parent
|
|
220
|
+
header_params["parent"] = request.parent
|
|
221
|
+
end
|
|
222
|
+
|
|
236
223
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
237
224
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
238
225
|
|
|
239
226
|
options.apply_defaults timeout: @config.rpcs.create_company.timeout,
|
|
240
227
|
metadata: metadata,
|
|
241
228
|
retry_policy: @config.rpcs.create_company.retry_policy
|
|
242
|
-
|
|
229
|
+
|
|
230
|
+
options.apply_defaults timeout: @config.timeout,
|
|
231
|
+
metadata: @config.metadata,
|
|
243
232
|
retry_policy: @config.retry_policy
|
|
244
233
|
|
|
245
234
|
@company_service_stub.call_rpc :create_company, request, options: options do |response, operation|
|
|
@@ -303,16 +292,20 @@ module Google
|
|
|
303
292
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
304
293
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
305
294
|
|
|
306
|
-
header_params = {
|
|
307
|
-
|
|
308
|
-
|
|
295
|
+
header_params = {}
|
|
296
|
+
if request.name
|
|
297
|
+
header_params["name"] = request.name
|
|
298
|
+
end
|
|
299
|
+
|
|
309
300
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
310
301
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
311
302
|
|
|
312
303
|
options.apply_defaults timeout: @config.rpcs.get_company.timeout,
|
|
313
304
|
metadata: metadata,
|
|
314
305
|
retry_policy: @config.rpcs.get_company.retry_policy
|
|
315
|
-
|
|
306
|
+
|
|
307
|
+
options.apply_defaults timeout: @config.timeout,
|
|
308
|
+
metadata: @config.metadata,
|
|
316
309
|
retry_policy: @config.retry_policy
|
|
317
310
|
|
|
318
311
|
@company_service_stub.call_rpc :get_company, request, options: options do |response, operation|
|
|
@@ -377,16 +370,20 @@ module Google
|
|
|
377
370
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
378
371
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
379
372
|
|
|
380
|
-
header_params = {
|
|
381
|
-
|
|
382
|
-
|
|
373
|
+
header_params = {}
|
|
374
|
+
if request.company&.name
|
|
375
|
+
header_params["company.name"] = request.company.name
|
|
376
|
+
end
|
|
377
|
+
|
|
383
378
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
384
379
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
385
380
|
|
|
386
381
|
options.apply_defaults timeout: @config.rpcs.update_company.timeout,
|
|
387
382
|
metadata: metadata,
|
|
388
383
|
retry_policy: @config.rpcs.update_company.retry_policy
|
|
389
|
-
|
|
384
|
+
|
|
385
|
+
options.apply_defaults timeout: @config.timeout,
|
|
386
|
+
metadata: @config.metadata,
|
|
390
387
|
retry_policy: @config.retry_policy
|
|
391
388
|
|
|
392
389
|
@company_service_stub.call_rpc :update_company, request, options: options do |response, operation|
|
|
@@ -451,16 +448,20 @@ module Google
|
|
|
451
448
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
452
449
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
453
450
|
|
|
454
|
-
header_params = {
|
|
455
|
-
|
|
456
|
-
|
|
451
|
+
header_params = {}
|
|
452
|
+
if request.name
|
|
453
|
+
header_params["name"] = request.name
|
|
454
|
+
end
|
|
455
|
+
|
|
457
456
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
458
457
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
459
458
|
|
|
460
459
|
options.apply_defaults timeout: @config.rpcs.delete_company.timeout,
|
|
461
460
|
metadata: metadata,
|
|
462
461
|
retry_policy: @config.rpcs.delete_company.retry_policy
|
|
463
|
-
|
|
462
|
+
|
|
463
|
+
options.apply_defaults timeout: @config.timeout,
|
|
464
|
+
metadata: @config.metadata,
|
|
464
465
|
retry_policy: @config.retry_policy
|
|
465
466
|
|
|
466
467
|
@company_service_stub.call_rpc :delete_company, request, options: options do |response, operation|
|
|
@@ -535,16 +536,20 @@ module Google
|
|
|
535
536
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
536
537
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
537
538
|
|
|
538
|
-
header_params = {
|
|
539
|
-
|
|
540
|
-
|
|
539
|
+
header_params = {}
|
|
540
|
+
if request.parent
|
|
541
|
+
header_params["parent"] = request.parent
|
|
542
|
+
end
|
|
543
|
+
|
|
541
544
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
542
545
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
543
546
|
|
|
544
547
|
options.apply_defaults timeout: @config.rpcs.list_companies.timeout,
|
|
545
548
|
metadata: metadata,
|
|
546
549
|
retry_policy: @config.rpcs.list_companies.retry_policy
|
|
547
|
-
|
|
550
|
+
|
|
551
|
+
options.apply_defaults timeout: @config.timeout,
|
|
552
|
+
metadata: @config.metadata,
|
|
548
553
|
retry_policy: @config.retry_policy
|
|
549
554
|
|
|
550
555
|
@company_service_stub.call_rpc :list_companies, request, options: options do |response, operation|
|
|
@@ -569,22 +574,21 @@ module Google
|
|
|
569
574
|
# Configuration can be applied globally to all clients, or to a single client
|
|
570
575
|
# on construction.
|
|
571
576
|
#
|
|
572
|
-
#
|
|
573
|
-
#
|
|
574
|
-
#
|
|
575
|
-
# to 20 seconds,
|
|
576
|
-
#
|
|
577
|
-
#
|
|
578
|
-
#
|
|
579
|
-
#
|
|
580
|
-
#
|
|
581
|
-
#
|
|
582
|
-
#
|
|
583
|
-
#
|
|
584
|
-
#
|
|
585
|
-
#
|
|
586
|
-
#
|
|
587
|
-
# end
|
|
577
|
+
# @example
|
|
578
|
+
#
|
|
579
|
+
# # Modify the global config, setting the timeout for
|
|
580
|
+
# # create_company to 20 seconds,
|
|
581
|
+
# # and all remaining timeouts to 10 seconds.
|
|
582
|
+
# ::Google::Cloud::Talent::V4beta1::CompanyService::Client.configure do |config|
|
|
583
|
+
# config.timeout = 10.0
|
|
584
|
+
# config.rpcs.create_company.timeout = 20.0
|
|
585
|
+
# end
|
|
586
|
+
#
|
|
587
|
+
# # Apply the above configuration only to a new client.
|
|
588
|
+
# client = ::Google::Cloud::Talent::V4beta1::CompanyService::Client.new do |config|
|
|
589
|
+
# config.timeout = 10.0
|
|
590
|
+
# config.rpcs.create_company.timeout = 20.0
|
|
591
|
+
# end
|
|
588
592
|
#
|
|
589
593
|
# @!attribute [rw] endpoint
|
|
590
594
|
# The hostname or hostname:port of the service endpoint.
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# source: google/cloud/talent/v4beta1/company_service.proto
|
|
3
3
|
|
|
4
|
-
require 'google/protobuf'
|
|
5
|
-
|
|
6
4
|
require 'google/api/annotations_pb'
|
|
7
5
|
require 'google/api/client_pb'
|
|
8
6
|
require 'google/api/field_behavior_pb'
|
|
@@ -11,6 +9,8 @@ require 'google/cloud/talent/v4beta1/common_pb'
|
|
|
11
9
|
require 'google/cloud/talent/v4beta1/company_pb'
|
|
12
10
|
require 'google/protobuf/empty_pb'
|
|
13
11
|
require 'google/protobuf/field_mask_pb'
|
|
12
|
+
require 'google/protobuf'
|
|
13
|
+
|
|
14
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
15
15
|
add_file("google/cloud/talent/v4beta1/company_service.proto", :syntax => :proto3) do
|
|
16
16
|
add_message "google.cloud.talent.v4beta1.CreateCompanyRequest" do
|
|
@@ -27,7 +27,7 @@ module Google
|
|
|
27
27
|
# A service that handles company management, including CRUD and enumeration.
|
|
28
28
|
class Service
|
|
29
29
|
|
|
30
|
-
include GRPC::GenericService
|
|
30
|
+
include ::GRPC::GenericService
|
|
31
31
|
|
|
32
32
|
self.marshal_class_method = :encode
|
|
33
33
|
self.unmarshal_class_method = :decode
|
|
@@ -41,13 +41,12 @@ module Google
|
|
|
41
41
|
# See {::Google::Cloud::Talent::V4beta1::Completion::Client::Configuration}
|
|
42
42
|
# for a description of the configuration fields.
|
|
43
43
|
#
|
|
44
|
-
#
|
|
44
|
+
# @example
|
|
45
45
|
#
|
|
46
|
-
#
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
# end
|
|
46
|
+
# # Modify the configuration for all Completion clients
|
|
47
|
+
# ::Google::Cloud::Talent::V4beta1::Completion::Client.configure do |config|
|
|
48
|
+
# config.timeout = 10.0
|
|
49
|
+
# end
|
|
51
50
|
#
|
|
52
51
|
# @yield [config] Configure the Client client.
|
|
53
52
|
# @yieldparam config [Client::Configuration]
|
|
@@ -67,10 +66,7 @@ module Google
|
|
|
67
66
|
|
|
68
67
|
default_config.rpcs.complete_query.timeout = 30.0
|
|
69
68
|
default_config.rpcs.complete_query.retry_policy = {
|
|
70
|
-
initial_delay: 0.1,
|
|
71
|
-
max_delay: 60.0,
|
|
72
|
-
multiplier: 1.3,
|
|
73
|
-
retry_codes: [4, 14]
|
|
69
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
|
74
70
|
}
|
|
75
71
|
|
|
76
72
|
default_config
|
|
@@ -102,19 +98,15 @@ module Google
|
|
|
102
98
|
##
|
|
103
99
|
# Create a new Completion client object.
|
|
104
100
|
#
|
|
105
|
-
#
|
|
106
|
-
#
|
|
107
|
-
# To create a new Completion client with the default
|
|
108
|
-
# configuration:
|
|
109
|
-
#
|
|
110
|
-
# client = ::Google::Cloud::Talent::V4beta1::Completion::Client.new
|
|
101
|
+
# @example
|
|
111
102
|
#
|
|
112
|
-
#
|
|
113
|
-
#
|
|
103
|
+
# # Create a client using the default configuration
|
|
104
|
+
# client = ::Google::Cloud::Talent::V4beta1::Completion::Client.new
|
|
114
105
|
#
|
|
115
|
-
#
|
|
116
|
-
#
|
|
117
|
-
#
|
|
106
|
+
# # Create a client using a custom configuration
|
|
107
|
+
# client = ::Google::Cloud::Talent::V4beta1::Completion::Client.new do |config|
|
|
108
|
+
# config.timeout = 10.0
|
|
109
|
+
# end
|
|
118
110
|
#
|
|
119
111
|
# @yield [config] Configure the Completion client.
|
|
120
112
|
# @yieldparam config [Client::Configuration]
|
|
@@ -134,14 +126,13 @@ module Google
|
|
|
134
126
|
|
|
135
127
|
# Create credentials
|
|
136
128
|
credentials = @config.credentials
|
|
137
|
-
# Use self-signed JWT if the
|
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
138
130
|
# but only if the default endpoint does not have a region prefix.
|
|
139
|
-
enable_self_signed_jwt = @config.
|
|
140
|
-
@config.endpoint == Client.configure.endpoint &&
|
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
|
141
132
|
!@config.endpoint.split(".").first.include?("-")
|
|
142
133
|
credentials ||= Credentials.default scope: @config.scope,
|
|
143
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
144
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
135
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
145
136
|
credentials = Credentials.new credentials, scope: @config.scope
|
|
146
137
|
end
|
|
147
138
|
@quota_project_id = @config.quota_project
|
|
@@ -239,16 +230,20 @@ module Google
|
|
|
239
230
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
240
231
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
241
232
|
|
|
242
|
-
header_params = {
|
|
243
|
-
|
|
244
|
-
|
|
233
|
+
header_params = {}
|
|
234
|
+
if request.parent
|
|
235
|
+
header_params["parent"] = request.parent
|
|
236
|
+
end
|
|
237
|
+
|
|
245
238
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
246
239
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
247
240
|
|
|
248
241
|
options.apply_defaults timeout: @config.rpcs.complete_query.timeout,
|
|
249
242
|
metadata: metadata,
|
|
250
243
|
retry_policy: @config.rpcs.complete_query.retry_policy
|
|
251
|
-
|
|
244
|
+
|
|
245
|
+
options.apply_defaults timeout: @config.timeout,
|
|
246
|
+
metadata: @config.metadata,
|
|
252
247
|
retry_policy: @config.retry_policy
|
|
253
248
|
|
|
254
249
|
@completion_stub.call_rpc :complete_query, request, options: options do |response, operation|
|
|
@@ -272,22 +267,21 @@ module Google
|
|
|
272
267
|
# Configuration can be applied globally to all clients, or to a single client
|
|
273
268
|
# on construction.
|
|
274
269
|
#
|
|
275
|
-
#
|
|
276
|
-
#
|
|
277
|
-
#
|
|
278
|
-
# to 20 seconds,
|
|
279
|
-
#
|
|
280
|
-
#
|
|
281
|
-
#
|
|
282
|
-
#
|
|
283
|
-
#
|
|
284
|
-
#
|
|
285
|
-
#
|
|
286
|
-
#
|
|
287
|
-
#
|
|
288
|
-
#
|
|
289
|
-
#
|
|
290
|
-
# end
|
|
270
|
+
# @example
|
|
271
|
+
#
|
|
272
|
+
# # Modify the global config, setting the timeout for
|
|
273
|
+
# # complete_query to 20 seconds,
|
|
274
|
+
# # and all remaining timeouts to 10 seconds.
|
|
275
|
+
# ::Google::Cloud::Talent::V4beta1::Completion::Client.configure do |config|
|
|
276
|
+
# config.timeout = 10.0
|
|
277
|
+
# config.rpcs.complete_query.timeout = 20.0
|
|
278
|
+
# end
|
|
279
|
+
#
|
|
280
|
+
# # Apply the above configuration only to a new client.
|
|
281
|
+
# client = ::Google::Cloud::Talent::V4beta1::Completion::Client.new do |config|
|
|
282
|
+
# config.timeout = 10.0
|
|
283
|
+
# config.rpcs.complete_query.timeout = 20.0
|
|
284
|
+
# end
|
|
291
285
|
#
|
|
292
286
|
# @!attribute [rw] endpoint
|
|
293
287
|
# The hostname or hostname:port of the service endpoint.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# source: google/cloud/talent/v4beta1/completion_service.proto
|
|
3
3
|
|
|
4
|
-
require 'google/protobuf'
|
|
5
|
-
|
|
6
4
|
require 'google/api/annotations_pb'
|
|
7
5
|
require 'google/api/field_behavior_pb'
|
|
8
6
|
require 'google/api/resource_pb'
|
|
9
7
|
require 'google/cloud/talent/v4beta1/common_pb'
|
|
10
8
|
require 'google/api/client_pb'
|
|
9
|
+
require 'google/protobuf'
|
|
10
|
+
|
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
12
12
|
add_file("google/cloud/talent/v4beta1/completion_service.proto", :syntax => :proto3) do
|
|
13
13
|
add_message "google.cloud.talent.v4beta1.CompleteQueryRequest" do
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# source: google/cloud/talent/v4beta1/event.proto
|
|
3
3
|
|
|
4
|
-
require 'google/protobuf'
|
|
5
|
-
|
|
6
4
|
require 'google/api/field_behavior_pb'
|
|
7
5
|
require 'google/protobuf/timestamp_pb'
|
|
8
6
|
require 'google/api/annotations_pb'
|
|
7
|
+
require 'google/protobuf'
|
|
8
|
+
|
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
10
10
|
add_file("google/cloud/talent/v4beta1/event.proto", :syntax => :proto3) do
|
|
11
11
|
add_message "google.cloud.talent.v4beta1.ClientEvent" do
|
|
@@ -41,13 +41,12 @@ module Google
|
|
|
41
41
|
# See {::Google::Cloud::Talent::V4beta1::EventService::Client::Configuration}
|
|
42
42
|
# for a description of the configuration fields.
|
|
43
43
|
#
|
|
44
|
-
#
|
|
44
|
+
# @example
|
|
45
45
|
#
|
|
46
|
-
#
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
# end
|
|
46
|
+
# # Modify the configuration for all EventService clients
|
|
47
|
+
# ::Google::Cloud::Talent::V4beta1::EventService::Client.configure do |config|
|
|
48
|
+
# config.timeout = 10.0
|
|
49
|
+
# end
|
|
51
50
|
#
|
|
52
51
|
# @yield [config] Configure the Client client.
|
|
53
52
|
# @yieldparam config [Client::Configuration]
|
|
@@ -96,19 +95,15 @@ module Google
|
|
|
96
95
|
##
|
|
97
96
|
# Create a new EventService client object.
|
|
98
97
|
#
|
|
99
|
-
#
|
|
100
|
-
#
|
|
101
|
-
# To create a new EventService client with the default
|
|
102
|
-
# configuration:
|
|
103
|
-
#
|
|
104
|
-
# client = ::Google::Cloud::Talent::V4beta1::EventService::Client.new
|
|
98
|
+
# @example
|
|
105
99
|
#
|
|
106
|
-
#
|
|
107
|
-
#
|
|
100
|
+
# # Create a client using the default configuration
|
|
101
|
+
# client = ::Google::Cloud::Talent::V4beta1::EventService::Client.new
|
|
108
102
|
#
|
|
109
|
-
#
|
|
110
|
-
#
|
|
111
|
-
#
|
|
103
|
+
# # Create a client using a custom configuration
|
|
104
|
+
# client = ::Google::Cloud::Talent::V4beta1::EventService::Client.new do |config|
|
|
105
|
+
# config.timeout = 10.0
|
|
106
|
+
# end
|
|
112
107
|
#
|
|
113
108
|
# @yield [config] Configure the EventService client.
|
|
114
109
|
# @yieldparam config [Client::Configuration]
|
|
@@ -128,14 +123,13 @@ module Google
|
|
|
128
123
|
|
|
129
124
|
# Create credentials
|
|
130
125
|
credentials = @config.credentials
|
|
131
|
-
# Use self-signed JWT if the
|
|
126
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
132
127
|
# but only if the default endpoint does not have a region prefix.
|
|
133
|
-
enable_self_signed_jwt = @config.
|
|
134
|
-
@config.endpoint == Client.configure.endpoint &&
|
|
128
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
|
135
129
|
!@config.endpoint.split(".").first.include?("-")
|
|
136
130
|
credentials ||= Credentials.default scope: @config.scope,
|
|
137
131
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
138
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
132
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
139
133
|
credentials = Credentials.new credentials, scope: @config.scope
|
|
140
134
|
end
|
|
141
135
|
@quota_project_id = @config.quota_project
|
|
@@ -211,16 +205,20 @@ module Google
|
|
|
211
205
|
gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
|
|
212
206
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
213
207
|
|
|
214
|
-
header_params = {
|
|
215
|
-
|
|
216
|
-
|
|
208
|
+
header_params = {}
|
|
209
|
+
if request.parent
|
|
210
|
+
header_params["parent"] = request.parent
|
|
211
|
+
end
|
|
212
|
+
|
|
217
213
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
218
214
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
219
215
|
|
|
220
216
|
options.apply_defaults timeout: @config.rpcs.create_client_event.timeout,
|
|
221
217
|
metadata: metadata,
|
|
222
218
|
retry_policy: @config.rpcs.create_client_event.retry_policy
|
|
223
|
-
|
|
219
|
+
|
|
220
|
+
options.apply_defaults timeout: @config.timeout,
|
|
221
|
+
metadata: @config.metadata,
|
|
224
222
|
retry_policy: @config.retry_policy
|
|
225
223
|
|
|
226
224
|
@event_service_stub.call_rpc :create_client_event, request, options: options do |response, operation|
|
|
@@ -244,22 +242,21 @@ module Google
|
|
|
244
242
|
# Configuration can be applied globally to all clients, or to a single client
|
|
245
243
|
# on construction.
|
|
246
244
|
#
|
|
247
|
-
#
|
|
248
|
-
#
|
|
249
|
-
#
|
|
250
|
-
# to 20 seconds,
|
|
251
|
-
#
|
|
252
|
-
#
|
|
253
|
-
#
|
|
254
|
-
#
|
|
255
|
-
#
|
|
256
|
-
#
|
|
257
|
-
#
|
|
258
|
-
#
|
|
259
|
-
#
|
|
260
|
-
#
|
|
261
|
-
#
|
|
262
|
-
# end
|
|
245
|
+
# @example
|
|
246
|
+
#
|
|
247
|
+
# # Modify the global config, setting the timeout for
|
|
248
|
+
# # create_client_event to 20 seconds,
|
|
249
|
+
# # and all remaining timeouts to 10 seconds.
|
|
250
|
+
# ::Google::Cloud::Talent::V4beta1::EventService::Client.configure do |config|
|
|
251
|
+
# config.timeout = 10.0
|
|
252
|
+
# config.rpcs.create_client_event.timeout = 20.0
|
|
253
|
+
# end
|
|
254
|
+
#
|
|
255
|
+
# # Apply the above configuration only to a new client.
|
|
256
|
+
# client = ::Google::Cloud::Talent::V4beta1::EventService::Client.new do |config|
|
|
257
|
+
# config.timeout = 10.0
|
|
258
|
+
# config.rpcs.create_client_event.timeout = 20.0
|
|
259
|
+
# end
|
|
263
260
|
#
|
|
264
261
|
# @!attribute [rw] endpoint
|
|
265
262
|
# The hostname or hostname:port of the service endpoint.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# source: google/cloud/talent/v4beta1/event_service.proto
|
|
3
3
|
|
|
4
|
-
require 'google/protobuf'
|
|
5
|
-
|
|
6
4
|
require 'google/api/annotations_pb'
|
|
7
5
|
require 'google/api/client_pb'
|
|
8
6
|
require 'google/api/field_behavior_pb'
|
|
9
7
|
require 'google/api/resource_pb'
|
|
10
8
|
require 'google/cloud/talent/v4beta1/event_pb'
|
|
9
|
+
require 'google/protobuf'
|
|
10
|
+
|
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
12
12
|
add_file("google/cloud/talent/v4beta1/event_service.proto", :syntax => :proto3) do
|
|
13
13
|
add_message "google.cloud.talent.v4beta1.CreateClientEventRequest" do
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# source: google/cloud/talent/v4beta1/filters.proto
|
|
3
3
|
|
|
4
|
-
require 'google/protobuf'
|
|
5
|
-
|
|
6
4
|
require 'google/api/field_behavior_pb'
|
|
7
5
|
require 'google/cloud/talent/v4beta1/common_pb'
|
|
8
6
|
require 'google/protobuf/duration_pb'
|
|
@@ -13,6 +11,8 @@ require 'google/type/date_pb'
|
|
|
13
11
|
require 'google/type/latlng_pb'
|
|
14
12
|
require 'google/type/timeofday_pb'
|
|
15
13
|
require 'google/api/annotations_pb'
|
|
14
|
+
require 'google/protobuf'
|
|
15
|
+
|
|
16
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
17
17
|
add_file("google/cloud/talent/v4beta1/filters.proto", :syntax => :proto3) do
|
|
18
18
|
add_message "google.cloud.talent.v4beta1.JobQuery" do
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# source: google/cloud/talent/v4beta1/histogram.proto
|
|
3
3
|
|
|
4
|
+
require 'google/api/annotations_pb'
|
|
4
5
|
require 'google/protobuf'
|
|
5
6
|
|
|
6
|
-
require 'google/api/annotations_pb'
|
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
8
8
|
add_file("google/cloud/talent/v4beta1/histogram.proto", :syntax => :proto3) do
|
|
9
9
|
add_message "google.cloud.talent.v4beta1.HistogramQuery" do
|