google-cloud-talent-v4beta1 0.7.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/talent/v4beta1/batch_pb.rb +25 -2
  4. data/lib/google/cloud/talent/v4beta1/common_pb.rb +29 -230
  5. data/lib/google/cloud/talent/v4beta1/company_pb.rb +25 -19
  6. data/lib/google/cloud/talent/v4beta1/company_service/client.rb +6 -4
  7. data/lib/google/cloud/talent/v4beta1/company_service/rest/client.rb +6 -4
  8. data/lib/google/cloud/talent/v4beta1/company_service/rest/service_stub.rb +5 -5
  9. data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +27 -26
  10. data/lib/google/cloud/talent/v4beta1/completion/client.rb +6 -4
  11. data/lib/google/cloud/talent/v4beta1/completion/rest/client.rb +6 -4
  12. data/lib/google/cloud/talent/v4beta1/completion/rest/service_stub.rb +1 -1
  13. data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +25 -30
  14. data/lib/google/cloud/talent/v4beta1/event_pb.rb +25 -33
  15. data/lib/google/cloud/talent/v4beta1/event_service/client.rb +6 -4
  16. data/lib/google/cloud/talent/v4beta1/event_service/rest/client.rb +6 -4
  17. data/lib/google/cloud/talent/v4beta1/event_service/rest/service_stub.rb +1 -1
  18. data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +25 -5
  19. data/lib/google/cloud/talent/v4beta1/filters_pb.rb +28 -59
  20. data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +24 -8
  21. data/lib/google/cloud/talent/v4beta1/job_pb.rb +26 -46
  22. data/lib/google/cloud/talent/v4beta1/job_service/client.rb +6 -4
  23. data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +5 -3
  24. data/lib/google/cloud/talent/v4beta1/job_service/rest/client.rb +6 -4
  25. data/lib/google/cloud/talent/v4beta1/job_service/rest/operations.rb +9 -7
  26. data/lib/google/cloud/talent/v4beta1/job_service/rest/service_stub.rb +10 -10
  27. data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +31 -123
  28. data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +24 -12
  29. data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +6 -4
  30. data/lib/google/cloud/talent/v4beta1/tenant_service/rest/client.rb +6 -4
  31. data/lib/google/cloud/talent/v4beta1/tenant_service/rest/service_stub.rb +5 -5
  32. data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +27 -25
  33. data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
  34. data/proto_docs/google/api/client.rb +67 -4
  35. data/proto_docs/google/protobuf/any.rb +7 -4
  36. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  37. metadata +4 -4
@@ -124,7 +124,7 @@ module Google
124
124
  credentials = @config.credentials
125
125
  # Use self-signed JWT if the endpoint is unchanged from default,
126
126
  # but only if the default endpoint does not have a region prefix.
127
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
128
128
  !@config.endpoint.split(".").first.include?("-")
129
129
  credentials ||= Credentials.default scope: @config.scope,
130
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -277,9 +277,9 @@ module Google
277
277
  # * (`String`) The path to a service account key file in JSON format
278
278
  # * (`Hash`) A service account key as a Hash
279
279
  # * (`Google::Auth::Credentials`) A googleauth credentials object
280
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
280
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
281
281
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
282
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
282
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
283
283
  # * (`nil`) indicating no credentials
284
284
  # @return [::Object]
285
285
  # @!attribute [rw] scope
@@ -312,7 +312,9 @@ module Google
312
312
  class Configuration
313
313
  extend ::Gapic::Config
314
314
 
315
- config_attr :endpoint, "jobs.googleapis.com", ::String
315
+ DEFAULT_ENDPOINT = "jobs.googleapis.com"
316
+
317
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
316
318
  config_attr :credentials, nil do |value|
317
319
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
318
320
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_complete_query_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/talent/v4beta1/completion_service.proto
3
4
 
@@ -9,38 +10,32 @@ require 'google/api/field_behavior_pb'
9
10
  require 'google/api/resource_pb'
10
11
  require 'google/cloud/talent/v4beta1/common_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/cloud/talent/v4beta1/completion_service.proto", :syntax => :proto3) do
14
- add_message "google.cloud.talent.v4beta1.CompleteQueryRequest" do
15
- optional :parent, :string, 1
16
- optional :query, :string, 2
17
- repeated :language_codes, :string, 3
18
- optional :page_size, :int32, 4
19
- optional :company, :string, 5
20
- optional :scope, :enum, 6, "google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope"
21
- optional :type, :enum, 7, "google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType"
22
- end
23
- add_enum "google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope" do
24
- value :COMPLETION_SCOPE_UNSPECIFIED, 0
25
- value :TENANT, 1
26
- value :PUBLIC, 2
27
- end
28
- add_enum "google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType" do
29
- value :COMPLETION_TYPE_UNSPECIFIED, 0
30
- value :JOB_TITLE, 1
31
- value :COMPANY_NAME, 2
32
- value :COMBINED, 3
33
- end
34
- add_message "google.cloud.talent.v4beta1.CompleteQueryResponse" do
35
- repeated :completion_results, :message, 1, "google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult"
36
- optional :metadata, :message, 2, "google.cloud.talent.v4beta1.ResponseMetadata"
37
- end
38
- add_message "google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult" do
39
- optional :suggestion, :string, 1
40
- optional :type, :enum, 2, "google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType"
41
- optional :image_uri, :string, 3
13
+
14
+ descriptor_data = "\n4google/cloud/talent/v4beta1/completion_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/talent/v4beta1/common.proto\"\x93\x04\n\x14\x43ompleteQueryRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bjobs.googleapis.com/Company\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\x0elanguage_codes\x18\x03 \x03(\t\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x02\x12\x31\n\x07\x63ompany\x18\x05 \x01(\tB \xfa\x41\x1d\n\x1bjobs.googleapis.com/Company\x12P\n\x05scope\x18\x06 \x01(\x0e\x32\x41.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope\x12N\n\x04type\x18\x07 \x01(\x0e\x32@.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType\"K\n\x0f\x43ompletionScope\x12 \n\x1c\x43OMPLETION_SCOPE_UNSPECIFIED\x10\x00\x12\n\n\x06TENANT\x10\x01\x12\n\n\x06PUBLIC\x10\x02\"`\n\x0e\x43ompletionType\x12\x1f\n\x1b\x43OMPLETION_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tJOB_TITLE\x10\x01\x12\x10\n\x0c\x43OMPANY_NAME\x10\x02\x12\x0c\n\x08\x43OMBINED\x10\x03\"\xc5\x02\n\x15\x43ompleteQueryResponse\x12_\n\x12\x63ompletion_results\x18\x01 \x03(\x0b\x32\x43.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult\x12?\n\x08metadata\x18\x02 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata\x1a\x89\x01\n\x10\x43ompletionResult\x12\x12\n\nsuggestion\x18\x01 \x01(\t\x12N\n\x04type\x18\x02 \x01(\x0e\x32@.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType\x12\x11\n\timage_uri\x18\x03 \x01(\t2\xd5\x02\n\nCompletion\x12\xd8\x01\n\rCompleteQuery\x12\x31.google.cloud.talent.v4beta1.CompleteQueryRequest\x1a\x32.google.cloud.talent.v4beta1.CompleteQueryResponse\"`\x82\xd3\xe4\x93\x02Z\x12//v4beta1/{parent=projects/*/tenants/*}:completeZ\'\x12%/v4beta1/{parent=projects/*}:complete\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsBz\n\x1f\x63om.google.cloud.talent.v4beta1B\x16\x43ompletionServiceProtoP\x01Z7cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.cloud.talent.v4beta1.ResponseMetadata", "google/cloud/talent/v4beta1/common.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
42
35
  end
43
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
44
39
  end
45
40
 
46
41
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/talent/v4beta1/event.proto
3
4
 
@@ -6,41 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/talent/v4beta1/event.proto", :syntax => :proto3) do
11
- add_message "google.cloud.talent.v4beta1.ClientEvent" do
12
- optional :request_id, :string, 1
13
- optional :event_id, :string, 2
14
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
15
- optional :event_notes, :string, 9
16
- oneof :event do
17
- optional :job_event, :message, 5, "google.cloud.talent.v4beta1.JobEvent"
18
- end
19
- end
20
- add_message "google.cloud.talent.v4beta1.JobEvent" do
21
- optional :type, :enum, 1, "google.cloud.talent.v4beta1.JobEvent.JobEventType"
22
- repeated :jobs, :string, 2
23
- optional :profile, :string, 3
24
- end
25
- add_enum "google.cloud.talent.v4beta1.JobEvent.JobEventType" do
26
- value :JOB_EVENT_TYPE_UNSPECIFIED, 0
27
- value :IMPRESSION, 1
28
- value :VIEW, 2
29
- value :VIEW_REDIRECT, 3
30
- value :APPLICATION_START, 4
31
- value :APPLICATION_FINISH, 5
32
- value :APPLICATION_QUICK_SUBMISSION, 6
33
- value :APPLICATION_REDIRECT, 7
34
- value :APPLICATION_START_FROM_SEARCH, 8
35
- value :APPLICATION_REDIRECT_FROM_SEARCH, 9
36
- value :APPLICATION_COMPANY_SUBMIT, 10
37
- value :BOOKMARK, 11
38
- value :NOTIFICATION, 12
39
- value :HIRED, 13
40
- value :SENT_CV, 14
41
- value :INTERVIEW_GRANTED, 15
10
+
11
+ descriptor_data = "\n\'google/cloud/talent/v4beta1/event.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc8\x01\n\x0b\x43lientEvent\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x15\n\x08\x65vent_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12:\n\tjob_event\x18\x05 \x01(\x0b\x32%.google.cloud.talent.v4beta1.JobEventH\x00\x12\x13\n\x0b\x65vent_notes\x18\t \x01(\tB\x07\n\x05\x65vent\"\xf6\x03\n\x08JobEvent\x12\x45\n\x04type\x18\x01 \x01(\x0e\x32\x32.google.cloud.talent.v4beta1.JobEvent.JobEventTypeB\x03\xe0\x41\x02\x12\x11\n\x04jobs\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x0f\n\x07profile\x18\x03 \x01(\t\"\xfe\x02\n\x0cJobEventType\x12\x1e\n\x1aJOB_EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nIMPRESSION\x10\x01\x12\x08\n\x04VIEW\x10\x02\x12\x11\n\rVIEW_REDIRECT\x10\x03\x12\x15\n\x11\x41PPLICATION_START\x10\x04\x12\x16\n\x12\x41PPLICATION_FINISH\x10\x05\x12 \n\x1c\x41PPLICATION_QUICK_SUBMISSION\x10\x06\x12\x18\n\x14\x41PPLICATION_REDIRECT\x10\x07\x12!\n\x1d\x41PPLICATION_START_FROM_SEARCH\x10\x08\x12$\n APPLICATION_REDIRECT_FROM_SEARCH\x10\t\x12\x1e\n\x1a\x41PPLICATION_COMPANY_SUBMIT\x10\n\x12\x0c\n\x08\x42OOKMARK\x10\x0b\x12\x10\n\x0cNOTIFICATION\x10\x0c\x12\t\n\x05HIRED\x10\r\x12\x0b\n\x07SENT_CV\x10\x0e\x12\x15\n\x11INTERVIEW_GRANTED\x10\x0f\x42n\n\x1f\x63om.google.cloud.talent.v4beta1B\nEventProtoP\x01Z7cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
42
32
  end
43
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
44
36
  end
45
37
 
46
38
  module Google
@@ -125,7 +125,7 @@ module Google
125
125
  credentials = @config.credentials
126
126
  # Use self-signed JWT if the endpoint is unchanged from default,
127
127
  # but only if the default endpoint does not have a region prefix.
128
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
128
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
129
129
  !@config.endpoint.split(".").first.include?("-")
130
130
  credentials ||= Credentials.default scope: @config.scope,
131
131
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -282,9 +282,9 @@ module Google
282
282
  # * (`String`) The path to a service account key file in JSON format
283
283
  # * (`Hash`) A service account key as a Hash
284
284
  # * (`Google::Auth::Credentials`) A googleauth credentials object
285
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
285
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
286
286
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
287
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
287
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
288
288
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
289
289
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
290
290
  # * (`nil`) indicating no credentials
@@ -326,7 +326,9 @@ module Google
326
326
  class Configuration
327
327
  extend ::Gapic::Config
328
328
 
329
- config_attr :endpoint, "jobs.googleapis.com", ::String
329
+ DEFAULT_ENDPOINT = "jobs.googleapis.com"
330
+
331
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
330
332
  config_attr :credentials, nil do |value|
331
333
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
332
334
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -121,7 +121,7 @@ module Google
121
121
  credentials = @config.credentials
122
122
  # Use self-signed JWT if the endpoint is unchanged from default,
123
123
  # but only if the default endpoint does not have a region prefix.
124
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
124
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
125
125
  !@config.endpoint.split(".").first.include?("-")
126
126
  credentials ||= Credentials.default scope: @config.scope,
127
127
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -250,9 +250,9 @@ module Google
250
250
  # * (`String`) The path to a service account key file in JSON format
251
251
  # * (`Hash`) A service account key as a Hash
252
252
  # * (`Google::Auth::Credentials`) A googleauth credentials object
253
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
253
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
254
254
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
255
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
255
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
256
256
  # * (`nil`) indicating no credentials
257
257
  # @return [::Object]
258
258
  # @!attribute [rw] scope
@@ -285,7 +285,9 @@ module Google
285
285
  class Configuration
286
286
  extend ::Gapic::Config
287
287
 
288
- config_attr :endpoint, "jobs.googleapis.com", ::String
288
+ DEFAULT_ENDPOINT = "jobs.googleapis.com"
289
+
290
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
289
291
  config_attr :credentials, nil do |value|
290
292
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
291
293
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_create_client_event_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/talent/v4beta1/event_service.proto
3
4
 
@@ -9,13 +10,32 @@ require 'google/api/field_behavior_pb'
9
10
  require 'google/api/resource_pb'
10
11
  require 'google/cloud/talent/v4beta1/event_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/cloud/talent/v4beta1/event_service.proto", :syntax => :proto3) do
14
- add_message "google.cloud.talent.v4beta1.CreateClientEventRequest" do
15
- optional :parent, :string, 1
16
- optional :client_event, :message, 2, "google.cloud.talent.v4beta1.ClientEvent"
13
+
14
+ descriptor_data = "\n/google/cloud/talent/v4beta1/event_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/cloud/talent/v4beta1/event.proto\"\x94\x01\n\x18\x43reateClientEventRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bjobs.googleapis.com/Company\x12\x43\n\x0c\x63lient_event\x18\x02 \x01(\x0b\x32(.google.cloud.talent.v4beta1.ClientEventB\x03\xe0\x41\x02\x32\xfa\x02\n\x0c\x45ventService\x12\xfb\x01\n\x11\x43reateClientEvent\x12\x35.google.cloud.talent.v4beta1.CreateClientEventRequest\x1a(.google.cloud.talent.v4beta1.ClientEvent\"\x84\x01\x82\xd3\xe4\x93\x02h\"3/v4beta1/{parent=projects/*/tenants/*}/clientEvents:\x01*Z.\")/v4beta1/{parent=projects/*}/clientEvents:\x01*\xda\x41\x13parent,client_event\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsBu\n\x1f\x63om.google.cloud.talent.v4beta1B\x11\x45ventServiceProtoP\x01Z7cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.cloud.talent.v4beta1.ClientEvent", "google/cloud/talent/v4beta1/event.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
17
35
  end
18
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
19
39
  end
20
40
 
21
41
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/talent/v4beta1/filters.proto
3
4
 
@@ -9,67 +10,35 @@ require 'google/protobuf/duration_pb'
9
10
  require 'google/type/latlng_pb'
10
11
  require 'google/type/timeofday_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/cloud/talent/v4beta1/filters.proto", :syntax => :proto3) do
14
- add_message "google.cloud.talent.v4beta1.JobQuery" do
15
- optional :query, :string, 1
16
- optional :query_language_code, :string, 14
17
- repeated :companies, :string, 2
18
- repeated :location_filters, :message, 3, "google.cloud.talent.v4beta1.LocationFilter"
19
- repeated :job_categories, :enum, 4, "google.cloud.talent.v4beta1.JobCategory"
20
- optional :commute_filter, :message, 5, "google.cloud.talent.v4beta1.CommuteFilter"
21
- repeated :company_display_names, :string, 6
22
- optional :compensation_filter, :message, 7, "google.cloud.talent.v4beta1.CompensationFilter"
23
- optional :custom_attribute_filter, :string, 8
24
- optional :disable_spell_check, :bool, 9
25
- repeated :employment_types, :enum, 10, "google.cloud.talent.v4beta1.EmploymentType"
26
- repeated :language_codes, :string, 11
27
- optional :publish_time_range, :message, 12, "google.cloud.talent.v4beta1.TimestampRange"
28
- repeated :excluded_jobs, :string, 13
29
- end
30
- add_message "google.cloud.talent.v4beta1.LocationFilter" do
31
- optional :address, :string, 1
32
- optional :region_code, :string, 2
33
- optional :lat_lng, :message, 3, "google.type.LatLng"
34
- optional :distance_in_miles, :double, 4
35
- optional :telecommute_preference, :enum, 5, "google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference"
36
- optional :negated, :bool, 6
37
- end
38
- add_enum "google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference" do
39
- value :TELECOMMUTE_PREFERENCE_UNSPECIFIED, 0
40
- value :TELECOMMUTE_EXCLUDED, 1
41
- value :TELECOMMUTE_ALLOWED, 2
42
- value :TELECOMMUTE_JOBS_EXCLUDED, 3
43
- end
44
- add_message "google.cloud.talent.v4beta1.CompensationFilter" do
45
- optional :type, :enum, 1, "google.cloud.talent.v4beta1.CompensationFilter.FilterType"
46
- repeated :units, :enum, 2, "google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit"
47
- optional :range, :message, 3, "google.cloud.talent.v4beta1.CompensationInfo.CompensationRange"
48
- optional :include_jobs_with_unspecified_compensation_range, :bool, 4
49
- end
50
- add_enum "google.cloud.talent.v4beta1.CompensationFilter.FilterType" do
51
- value :FILTER_TYPE_UNSPECIFIED, 0
52
- value :UNIT_ONLY, 1
53
- value :UNIT_AND_AMOUNT, 2
54
- value :ANNUALIZED_BASE_AMOUNT, 3
55
- value :ANNUALIZED_TOTAL_AMOUNT, 4
56
- end
57
- add_message "google.cloud.talent.v4beta1.CommuteFilter" do
58
- optional :commute_method, :enum, 1, "google.cloud.talent.v4beta1.CommuteMethod"
59
- optional :start_coordinates, :message, 2, "google.type.LatLng"
60
- optional :travel_duration, :message, 3, "google.protobuf.Duration"
61
- optional :allow_imprecise_addresses, :bool, 4
62
- oneof :traffic_option do
63
- optional :road_traffic, :enum, 5, "google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic"
64
- optional :departure_time, :message, 6, "google.type.TimeOfDay"
65
- end
66
- end
67
- add_enum "google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic" do
68
- value :ROAD_TRAFFIC_UNSPECIFIED, 0
69
- value :TRAFFIC_FREE, 1
70
- value :BUSY_HOUR, 2
13
+
14
+ descriptor_data = "\n)google/cloud/talent/v4beta1/filters.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a(google/cloud/talent/v4beta1/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x18google/type/latlng.proto\x1a\x1bgoogle/type/timeofday.proto\"\x80\x05\n\x08JobQuery\x12\r\n\x05query\x18\x01 \x01(\t\x12\x1b\n\x13query_language_code\x18\x0e \x01(\t\x12\x11\n\tcompanies\x18\x02 \x03(\t\x12\x45\n\x10location_filters\x18\x03 \x03(\x0b\x32+.google.cloud.talent.v4beta1.LocationFilter\x12@\n\x0ejob_categories\x18\x04 \x03(\x0e\x32(.google.cloud.talent.v4beta1.JobCategory\x12\x42\n\x0e\x63ommute_filter\x18\x05 \x01(\x0b\x32*.google.cloud.talent.v4beta1.CommuteFilter\x12\x1d\n\x15\x63ompany_display_names\x18\x06 \x03(\t\x12L\n\x13\x63ompensation_filter\x18\x07 \x01(\x0b\x32/.google.cloud.talent.v4beta1.CompensationFilter\x12\x1f\n\x17\x63ustom_attribute_filter\x18\x08 \x01(\t\x12\x1b\n\x13\x64isable_spell_check\x18\t \x01(\x08\x12\x45\n\x10\x65mployment_types\x18\n \x03(\x0e\x32+.google.cloud.talent.v4beta1.EmploymentType\x12\x16\n\x0elanguage_codes\x18\x0b \x03(\t\x12G\n\x12publish_time_range\x18\x0c \x01(\x0b\x32+.google.cloud.talent.v4beta1.TimestampRange\x12\x15\n\rexcluded_jobs\x18\r \x03(\t\"\x83\x03\n\x0eLocationFilter\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x13\n\x0bregion_code\x18\x02 \x01(\t\x12$\n\x07lat_lng\x18\x03 \x01(\x0b\x32\x13.google.type.LatLng\x12\x19\n\x11\x64istance_in_miles\x18\x04 \x01(\x01\x12\x61\n\x16telecommute_preference\x18\x05 \x01(\x0e\x32\x41.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference\x12\x0f\n\x07negated\x18\x06 \x01(\x08\"\x95\x01\n\x15TelecommutePreference\x12&\n\"TELECOMMUTE_PREFERENCE_UNSPECIFIED\x10\x00\x12\x1c\n\x14TELECOMMUTE_EXCLUDED\x10\x01\x1a\x02\x08\x01\x12\x17\n\x13TELECOMMUTE_ALLOWED\x10\x02\x12\x1d\n\x19TELECOMMUTE_JOBS_EXCLUDED\x10\x03\"\xca\x03\n\x12\x43ompensationFilter\x12M\n\x04type\x18\x01 \x01(\x0e\x32:.google.cloud.talent.v4beta1.CompensationFilter.FilterTypeB\x03\xe0\x41\x02\x12R\n\x05units\x18\x02 \x03(\x0e\x32>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnitB\x03\xe0\x41\x02\x12N\n\x05range\x18\x03 \x01(\x0b\x32?.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange\x12\x38\n0include_jobs_with_unspecified_compensation_range\x18\x04 \x01(\x08\"\x86\x01\n\nFilterType\x12\x1b\n\x17\x46ILTER_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tUNIT_ONLY\x10\x01\x12\x13\n\x0fUNIT_AND_AMOUNT\x10\x02\x12\x1a\n\x16\x41NNUALIZED_BASE_AMOUNT\x10\x03\x12\x1b\n\x17\x41NNUALIZED_TOTAL_AMOUNT\x10\x04\"\xcb\x03\n\rCommuteFilter\x12G\n\x0e\x63ommute_method\x18\x01 \x01(\x0e\x32*.google.cloud.talent.v4beta1.CommuteMethodB\x03\xe0\x41\x02\x12\x33\n\x11start_coordinates\x18\x02 \x01(\x0b\x32\x13.google.type.LatLngB\x03\xe0\x41\x02\x12\x37\n\x0ftravel_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12!\n\x19\x61llow_imprecise_addresses\x18\x04 \x01(\x08\x12N\n\x0croad_traffic\x18\x05 \x01(\x0e\x32\x36.google.cloud.talent.v4beta1.CommuteFilter.RoadTrafficH\x00\x12\x30\n\x0e\x64\x65parture_time\x18\x06 \x01(\x0b\x32\x16.google.type.TimeOfDayH\x00\"L\n\x0bRoadTraffic\x12\x1c\n\x18ROAD_TRAFFIC_UNSPECIFIED\x10\x00\x12\x10\n\x0cTRAFFIC_FREE\x10\x01\x12\r\n\tBUSY_HOUR\x10\x02\x42\x10\n\x0etraffic_optionBp\n\x1f\x63om.google.cloud.talent.v4beta1B\x0c\x46iltersProtoP\x01Z7cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.cloud.talent.v4beta1.TimestampRange", "google/cloud/talent/v4beta1/common.proto"],
30
+ ["google.type.LatLng", "google/type/latlng.proto"],
31
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
32
+ ["google.type.TimeOfDay", "google/type/timeofday.proto"],
33
+ ]
34
+ imports.each do |type_name, expected_filename|
35
+ import_file = pool.lookup(type_name).file_descriptor
36
+ if import_file.name != expected_filename
37
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
71
38
  end
72
39
  end
40
+ warn "Each proto file must use a consistent fully-qualified name."
41
+ warn "This will become an error in the next major version."
73
42
  end
74
43
 
75
44
  module Google
@@ -1,18 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/talent/v4beta1/histogram.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/talent/v4beta1/histogram.proto", :syntax => :proto3) do
8
- add_message "google.cloud.talent.v4beta1.HistogramQuery" do
9
- optional :histogram_query, :string, 1
10
- end
11
- add_message "google.cloud.talent.v4beta1.HistogramQueryResult" do
12
- optional :histogram_query, :string, 1
13
- map :histogram, :string, :int64, 2
7
+
8
+ descriptor_data = "\n+google/cloud/talent/v4beta1/histogram.proto\x12\x1bgoogle.cloud.talent.v4beta1\")\n\x0eHistogramQuery\x12\x17\n\x0fhistogram_query\x18\x01 \x01(\t\"\xb6\x01\n\x14HistogramQueryResult\x12\x17\n\x0fhistogram_query\x18\x01 \x01(\t\x12S\n\thistogram\x18\x02 \x03(\x0b\x32@.google.cloud.talent.v4beta1.HistogramQueryResult.HistogramEntry\x1a\x30\n\x0eHistogramEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x42r\n\x1f\x63om.google.cloud.talent.v4beta1B\x0eHistogramProtoP\x01Z7cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
14
28
  end
15
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
16
32
  end
17
33
 
18
34
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/talent/v4beta1/job.proto
3
4
 
@@ -8,54 +9,33 @@ require 'google/api/resource_pb'
8
9
  require 'google/cloud/talent/v4beta1/common_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/talent/v4beta1/job.proto", :syntax => :proto3) do
13
- add_message "google.cloud.talent.v4beta1.Job" do
14
- optional :name, :string, 1
15
- optional :company, :string, 2
16
- optional :requisition_id, :string, 3
17
- optional :title, :string, 4
18
- optional :description, :string, 5
19
- repeated :addresses, :string, 6
20
- optional :application_info, :message, 7, "google.cloud.talent.v4beta1.Job.ApplicationInfo"
21
- repeated :job_benefits, :enum, 8, "google.cloud.talent.v4beta1.JobBenefit"
22
- optional :compensation_info, :message, 9, "google.cloud.talent.v4beta1.CompensationInfo"
23
- map :custom_attributes, :string, :message, 10, "google.cloud.talent.v4beta1.CustomAttribute"
24
- repeated :degree_types, :enum, 11, "google.cloud.talent.v4beta1.DegreeType"
25
- optional :department, :string, 12
26
- repeated :employment_types, :enum, 13, "google.cloud.talent.v4beta1.EmploymentType"
27
- optional :incentives, :string, 14
28
- optional :language_code, :string, 15
29
- optional :job_level, :enum, 16, "google.cloud.talent.v4beta1.JobLevel"
30
- optional :promotion_value, :int32, 17
31
- optional :qualifications, :string, 18
32
- optional :responsibilities, :string, 19
33
- optional :posting_region, :enum, 20, "google.cloud.talent.v4beta1.PostingRegion"
34
- optional :visibility, :enum, 21, "google.cloud.talent.v4beta1.Visibility"
35
- optional :job_start_time, :message, 22, "google.protobuf.Timestamp"
36
- optional :job_end_time, :message, 23, "google.protobuf.Timestamp"
37
- optional :posting_publish_time, :message, 24, "google.protobuf.Timestamp"
38
- optional :posting_expire_time, :message, 25, "google.protobuf.Timestamp"
39
- optional :posting_create_time, :message, 26, "google.protobuf.Timestamp"
40
- optional :posting_update_time, :message, 27, "google.protobuf.Timestamp"
41
- optional :company_display_name, :string, 28
42
- optional :derived_info, :message, 29, "google.cloud.talent.v4beta1.Job.DerivedInfo"
43
- optional :processing_options, :message, 30, "google.cloud.talent.v4beta1.Job.ProcessingOptions"
44
- end
45
- add_message "google.cloud.talent.v4beta1.Job.ApplicationInfo" do
46
- repeated :emails, :string, 1
47
- optional :instruction, :string, 2
48
- repeated :uris, :string, 3
49
- end
50
- add_message "google.cloud.talent.v4beta1.Job.DerivedInfo" do
51
- repeated :locations, :message, 1, "google.cloud.talent.v4beta1.Location"
52
- repeated :job_categories, :enum, 3, "google.cloud.talent.v4beta1.JobCategory"
53
- end
54
- add_message "google.cloud.talent.v4beta1.Job.ProcessingOptions" do
55
- optional :disable_street_address_resolution, :bool, 1
56
- optional :html_sanitization, :enum, 2, "google.cloud.talent.v4beta1.HtmlSanitization"
12
+
13
+ descriptor_data = "\n%google/cloud/talent/v4beta1/job.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/talent/v4beta1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe0\x0f\n\x03Job\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x07\x63ompany\x18\x02 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Company\x12\x1b\n\x0erequisition_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05title\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\taddresses\x18\x06 \x03(\t\x12J\n\x10\x61pplication_info\x18\x07 \x01(\x0b\x32\x30.google.cloud.talent.v4beta1.Job.ApplicationInfo\x12=\n\x0cjob_benefits\x18\x08 \x03(\x0e\x32\'.google.cloud.talent.v4beta1.JobBenefit\x12H\n\x11\x63ompensation_info\x18\t \x01(\x0b\x32-.google.cloud.talent.v4beta1.CompensationInfo\x12Q\n\x11\x63ustom_attributes\x18\n \x03(\x0b\x32\x36.google.cloud.talent.v4beta1.Job.CustomAttributesEntry\x12=\n\x0c\x64\x65gree_types\x18\x0b \x03(\x0e\x32\'.google.cloud.talent.v4beta1.DegreeType\x12\x12\n\ndepartment\x18\x0c \x01(\t\x12\x45\n\x10\x65mployment_types\x18\r \x03(\x0e\x32+.google.cloud.talent.v4beta1.EmploymentType\x12\x12\n\nincentives\x18\x0e \x01(\t\x12\x15\n\rlanguage_code\x18\x0f \x01(\t\x12\x38\n\tjob_level\x18\x10 \x01(\x0e\x32%.google.cloud.talent.v4beta1.JobLevel\x12\x17\n\x0fpromotion_value\x18\x11 \x01(\x05\x12\x16\n\x0equalifications\x18\x12 \x01(\t\x12\x18\n\x10responsibilities\x18\x13 \x01(\t\x12\x42\n\x0eposting_region\x18\x14 \x01(\x0e\x32*.google.cloud.talent.v4beta1.PostingRegion\x12?\n\nvisibility\x18\x15 \x01(\x0e\x32\'.google.cloud.talent.v4beta1.VisibilityB\x02\x18\x01\x12\x32\n\x0ejob_start_time\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cjob_end_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14posting_publish_time\x18\x18 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x13posting_expire_time\x18\x19 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x13posting_create_time\x18\x1a \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x13posting_update_time\x18\x1b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12!\n\x14\x63ompany_display_name\x18\x1c \x01(\tB\x03\xe0\x41\x03\x12G\n\x0c\x64\x65rived_info\x18\x1d \x01(\x0b\x32,.google.cloud.talent.v4beta1.Job.DerivedInfoB\x03\xe0\x41\x03\x12N\n\x12processing_options\x18\x1e \x01(\x0b\x32\x32.google.cloud.talent.v4beta1.Job.ProcessingOptions\x1a\x44\n\x0f\x41pplicationInfo\x12\x0e\n\x06\x65mails\x18\x01 \x03(\t\x12\x13\n\x0binstruction\x18\x02 \x01(\t\x12\x0c\n\x04uris\x18\x03 \x03(\t\x1a\x89\x01\n\x0b\x44\x65rivedInfo\x12\x38\n\tlocations\x18\x01 \x03(\x0b\x32%.google.cloud.talent.v4beta1.Location\x12@\n\x0ejob_categories\x18\x03 \x03(\x0e\x32(.google.cloud.talent.v4beta1.JobCategory\x1a\x88\x01\n\x11ProcessingOptions\x12)\n!disable_street_address_resolution\x18\x01 \x01(\x08\x12H\n\x11html_sanitization\x18\x02 \x01(\x0e\x32-.google.cloud.talent.v4beta1.HtmlSanitization\x1a\x65\n\x15\x43ustomAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.cloud.talent.v4beta1.CustomAttribute:\x02\x38\x01:k\xea\x41h\n\x17jobs.googleapis.com/Job\x12.projects/{project}/tenants/{tenant}/jobs/{job}\x12\x1dprojects/{project}/jobs/{job}Bt\n\x1f\x63om.google.cloud.talent.v4beta1B\x10JobResourceProtoP\x01Z7cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.cloud.talent.v4beta1.CompensationInfo", "google/cloud/talent/v4beta1/common.proto"],
29
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
57
35
  end
58
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
59
39
  end
60
40
 
61
41
  module Google
@@ -152,7 +152,7 @@ module Google
152
152
  credentials = @config.credentials
153
153
  # Use self-signed JWT if the endpoint is unchanged from default,
154
154
  # but only if the default endpoint does not have a region prefix.
155
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
155
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
156
156
  !@config.endpoint.split(".").first.include?("-")
157
157
  credentials ||= Credentials.default scope: @config.scope,
158
158
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1797,9 +1797,9 @@ module Google
1797
1797
  # * (`String`) The path to a service account key file in JSON format
1798
1798
  # * (`Hash`) A service account key as a Hash
1799
1799
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1800
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1800
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1801
1801
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1802
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1802
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1803
1803
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1804
1804
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1805
1805
  # * (`nil`) indicating no credentials
@@ -1841,7 +1841,9 @@ module Google
1841
1841
  class Configuration
1842
1842
  extend ::Gapic::Config
1843
1843
 
1844
- config_attr :endpoint, "jobs.googleapis.com", ::String
1844
+ DEFAULT_ENDPOINT = "jobs.googleapis.com"
1845
+
1846
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1845
1847
  config_attr :credentials, nil do |value|
1846
1848
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1847
1849
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "jobs.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "jobs.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC