google-cloud-talent-v4beta1 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) 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 +2 -2
  7. data/lib/google/cloud/talent/v4beta1/company_service/rest/client.rb +2 -2
  8. data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +27 -26
  9. data/lib/google/cloud/talent/v4beta1/completion/client.rb +2 -2
  10. data/lib/google/cloud/talent/v4beta1/completion/rest/client.rb +2 -2
  11. data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +25 -30
  12. data/lib/google/cloud/talent/v4beta1/event_pb.rb +25 -33
  13. data/lib/google/cloud/talent/v4beta1/event_service/client.rb +2 -2
  14. data/lib/google/cloud/talent/v4beta1/event_service/rest/client.rb +2 -2
  15. data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +25 -5
  16. data/lib/google/cloud/talent/v4beta1/filters_pb.rb +28 -59
  17. data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +24 -8
  18. data/lib/google/cloud/talent/v4beta1/job_pb.rb +26 -46
  19. data/lib/google/cloud/talent/v4beta1/job_service/client.rb +2 -2
  20. data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +2 -2
  21. data/lib/google/cloud/talent/v4beta1/job_service/rest/client.rb +2 -2
  22. data/lib/google/cloud/talent/v4beta1/job_service/rest/operations.rb +2 -2
  23. data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +31 -123
  24. data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +24 -12
  25. data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +2 -2
  26. data/lib/google/cloud/talent/v4beta1/tenant_service/rest/client.rb +2 -2
  27. data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +27 -25
  28. data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
  29. data/proto_docs/google/api/client.rb +67 -4
  30. data/proto_docs/google/protobuf/any.rb +7 -4
  31. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  32. metadata +4 -4
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -1540,9 +1540,9 @@ module Google
1540
1540
  # * (`String`) The path to a service account key file in JSON format
1541
1541
  # * (`Hash`) A service account key as a Hash
1542
1542
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1543
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1543
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1544
1544
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1545
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1545
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1546
1546
  # * (`nil`) indicating no credentials
1547
1547
  # @return [::Object]
1548
1548
  # @!attribute [rw] scope
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope