google-cloud-talent-v4 0.9.1 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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/v4/filters.proto
3
4
 
@@ -9,66 +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/v4/filters.proto", :syntax => :proto3) do
14
- add_message "google.cloud.talent.v4.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.v4.LocationFilter"
19
- repeated :job_categories, :enum, 4, "google.cloud.talent.v4.JobCategory"
20
- optional :commute_filter, :message, 5, "google.cloud.talent.v4.CommuteFilter"
21
- repeated :company_display_names, :string, 6
22
- optional :compensation_filter, :message, 7, "google.cloud.talent.v4.CompensationFilter"
23
- optional :custom_attribute_filter, :string, 8
24
- optional :disable_spell_check, :bool, 9
25
- repeated :employment_types, :enum, 10, "google.cloud.talent.v4.EmploymentType"
26
- repeated :language_codes, :string, 11
27
- optional :publish_time_range, :message, 12, "google.cloud.talent.v4.TimestampRange"
28
- repeated :excluded_jobs, :string, 13
29
- end
30
- add_message "google.cloud.talent.v4.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.v4.LocationFilter.TelecommutePreference"
36
- end
37
- add_enum "google.cloud.talent.v4.LocationFilter.TelecommutePreference" do
38
- value :TELECOMMUTE_PREFERENCE_UNSPECIFIED, 0
39
- value :TELECOMMUTE_EXCLUDED, 1
40
- value :TELECOMMUTE_ALLOWED, 2
41
- value :TELECOMMUTE_JOBS_EXCLUDED, 3
42
- end
43
- add_message "google.cloud.talent.v4.CompensationFilter" do
44
- optional :type, :enum, 1, "google.cloud.talent.v4.CompensationFilter.FilterType"
45
- repeated :units, :enum, 2, "google.cloud.talent.v4.CompensationInfo.CompensationUnit"
46
- optional :range, :message, 3, "google.cloud.talent.v4.CompensationInfo.CompensationRange"
47
- optional :include_jobs_with_unspecified_compensation_range, :bool, 4
48
- end
49
- add_enum "google.cloud.talent.v4.CompensationFilter.FilterType" do
50
- value :FILTER_TYPE_UNSPECIFIED, 0
51
- value :UNIT_ONLY, 1
52
- value :UNIT_AND_AMOUNT, 2
53
- value :ANNUALIZED_BASE_AMOUNT, 3
54
- value :ANNUALIZED_TOTAL_AMOUNT, 4
55
- end
56
- add_message "google.cloud.talent.v4.CommuteFilter" do
57
- optional :commute_method, :enum, 1, "google.cloud.talent.v4.CommuteMethod"
58
- optional :start_coordinates, :message, 2, "google.type.LatLng"
59
- optional :travel_duration, :message, 3, "google.protobuf.Duration"
60
- optional :allow_imprecise_addresses, :bool, 4
61
- oneof :traffic_option do
62
- optional :road_traffic, :enum, 5, "google.cloud.talent.v4.CommuteFilter.RoadTraffic"
63
- optional :departure_time, :message, 6, "google.type.TimeOfDay"
64
- end
65
- end
66
- add_enum "google.cloud.talent.v4.CommuteFilter.RoadTraffic" do
67
- value :ROAD_TRAFFIC_UNSPECIFIED, 0
68
- value :TRAFFIC_FREE, 1
69
- value :BUSY_HOUR, 2
13
+
14
+ descriptor_data = "\n$google/cloud/talent/v4/filters.proto\x12\x16google.cloud.talent.v4\x1a\x1fgoogle/api/field_behavior.proto\x1a#google/cloud/talent/v4/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x18google/type/latlng.proto\x1a\x1bgoogle/type/timeofday.proto\"\xe2\x04\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@\n\x10location_filters\x18\x03 \x03(\x0b\x32&.google.cloud.talent.v4.LocationFilter\x12;\n\x0ejob_categories\x18\x04 \x03(\x0e\x32#.google.cloud.talent.v4.JobCategory\x12=\n\x0e\x63ommute_filter\x18\x05 \x01(\x0b\x32%.google.cloud.talent.v4.CommuteFilter\x12\x1d\n\x15\x63ompany_display_names\x18\x06 \x03(\t\x12G\n\x13\x63ompensation_filter\x18\x07 \x01(\x0b\x32*.google.cloud.talent.v4.CompensationFilter\x12\x1f\n\x17\x63ustom_attribute_filter\x18\x08 \x01(\t\x12\x1b\n\x13\x64isable_spell_check\x18\t \x01(\x08\x12@\n\x10\x65mployment_types\x18\n \x03(\x0e\x32&.google.cloud.talent.v4.EmploymentType\x12\x16\n\x0elanguage_codes\x18\x0b \x03(\t\x12\x42\n\x12publish_time_range\x18\x0c \x01(\x0b\x32&.google.cloud.talent.v4.TimestampRange\x12\x15\n\rexcluded_jobs\x18\r \x03(\t\"\xed\x02\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\\\n\x16telecommute_preference\x18\x05 \x01(\x0e\x32<.google.cloud.talent.v4.LocationFilter.TelecommutePreference\"\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\"\xbb\x03\n\x12\x43ompensationFilter\x12H\n\x04type\x18\x01 \x01(\x0e\x32\x35.google.cloud.talent.v4.CompensationFilter.FilterTypeB\x03\xe0\x41\x02\x12M\n\x05units\x18\x02 \x03(\x0e\x32\x39.google.cloud.talent.v4.CompensationInfo.CompensationUnitB\x03\xe0\x41\x02\x12I\n\x05range\x18\x03 \x01(\x0b\x32:.google.cloud.talent.v4.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\"\xc1\x03\n\rCommuteFilter\x12\x42\n\x0e\x63ommute_method\x18\x01 \x01(\x0e\x32%.google.cloud.talent.v4.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\x12I\n\x0croad_traffic\x18\x05 \x01(\x0e\x32\x31.google.cloud.talent.v4.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_optionBf\n\x1a\x63om.google.cloud.talent.v4B\x0c\x46iltersProtoP\x01Z2cloud.google.com/go/talent/apiv4/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.v4.TimestampRange", "google/cloud/talent/v4/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}"
70
38
  end
71
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."
72
42
  end
73
43
 
74
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/v4/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/v4/histogram.proto", :syntax => :proto3) do
8
- add_message "google.cloud.talent.v4.HistogramQuery" do
9
- optional :histogram_query, :string, 1
10
- end
11
- add_message "google.cloud.talent.v4.HistogramQueryResult" do
12
- optional :histogram_query, :string, 1
13
- map :histogram, :string, :int64, 2
7
+
8
+ descriptor_data = "\n&google/cloud/talent/v4/histogram.proto\x12\x16google.cloud.talent.v4\")\n\x0eHistogramQuery\x12\x17\n\x0fhistogram_query\x18\x01 \x01(\t\"\xb1\x01\n\x14HistogramQueryResult\x12\x17\n\x0fhistogram_query\x18\x01 \x01(\t\x12N\n\thistogram\x18\x02 \x03(\x0b\x32;.google.cloud.talent.v4.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\x42h\n\x1a\x63om.google.cloud.talent.v4B\x0eHistogramProtoP\x01Z2cloud.google.com/go/talent/apiv4/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/v4/job.proto
3
4
 
@@ -8,54 +9,33 @@ require 'google/api/resource_pb'
8
9
  require 'google/cloud/talent/v4/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/v4/job.proto", :syntax => :proto3) do
13
- add_message "google.cloud.talent.v4.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.v4.Job.ApplicationInfo"
21
- repeated :job_benefits, :enum, 8, "google.cloud.talent.v4.JobBenefit"
22
- optional :compensation_info, :message, 9, "google.cloud.talent.v4.CompensationInfo"
23
- map :custom_attributes, :string, :message, 10, "google.cloud.talent.v4.CustomAttribute"
24
- repeated :degree_types, :enum, 11, "google.cloud.talent.v4.DegreeType"
25
- optional :department, :string, 12
26
- repeated :employment_types, :enum, 13, "google.cloud.talent.v4.EmploymentType"
27
- optional :incentives, :string, 14
28
- optional :language_code, :string, 15
29
- optional :job_level, :enum, 16, "google.cloud.talent.v4.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.v4.PostingRegion"
34
- optional :visibility, :enum, 21, "google.cloud.talent.v4.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.v4.Job.DerivedInfo"
43
- optional :processing_options, :message, 30, "google.cloud.talent.v4.Job.ProcessingOptions"
44
- end
45
- add_message "google.cloud.talent.v4.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.v4.Job.DerivedInfo" do
51
- repeated :locations, :message, 1, "google.cloud.talent.v4.Location"
52
- repeated :job_categories, :enum, 3, "google.cloud.talent.v4.JobCategory"
53
- end
54
- add_message "google.cloud.talent.v4.Job.ProcessingOptions" do
55
- optional :disable_street_address_resolution, :bool, 1
56
- optional :html_sanitization, :enum, 2, "google.cloud.talent.v4.HtmlSanitization"
12
+
13
+ descriptor_data = "\n google/cloud/talent/v4/job.proto\x12\x16google.cloud.talent.v4\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/talent/v4/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf5\x0e\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\x12\x45\n\x10\x61pplication_info\x18\x07 \x01(\x0b\x32+.google.cloud.talent.v4.Job.ApplicationInfo\x12\x38\n\x0cjob_benefits\x18\x08 \x03(\x0e\x32\".google.cloud.talent.v4.JobBenefit\x12\x43\n\x11\x63ompensation_info\x18\t \x01(\x0b\x32(.google.cloud.talent.v4.CompensationInfo\x12L\n\x11\x63ustom_attributes\x18\n \x03(\x0b\x32\x31.google.cloud.talent.v4.Job.CustomAttributesEntry\x12\x38\n\x0c\x64\x65gree_types\x18\x0b \x03(\x0e\x32\".google.cloud.talent.v4.DegreeType\x12\x12\n\ndepartment\x18\x0c \x01(\t\x12@\n\x10\x65mployment_types\x18\r \x03(\x0e\x32&.google.cloud.talent.v4.EmploymentType\x12\x12\n\nincentives\x18\x0e \x01(\t\x12\x15\n\rlanguage_code\x18\x0f \x01(\t\x12\x33\n\tjob_level\x18\x10 \x01(\x0e\x32 .google.cloud.talent.v4.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=\n\x0eposting_region\x18\x14 \x01(\x0e\x32%.google.cloud.talent.v4.PostingRegion\x12:\n\nvisibility\x18\x15 \x01(\x0e\x32\".google.cloud.talent.v4.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\x12\x42\n\x0c\x64\x65rived_info\x18\x1d \x01(\x0b\x32\'.google.cloud.talent.v4.Job.DerivedInfoB\x03\xe0\x41\x03\x12I\n\x12processing_options\x18\x1e \x01(\x0b\x32-.google.cloud.talent.v4.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\x7f\n\x0b\x44\x65rivedInfo\x12\x33\n\tlocations\x18\x01 \x03(\x0b\x32 .google.cloud.talent.v4.Location\x12;\n\x0ejob_categories\x18\x03 \x03(\x0e\x32#.google.cloud.talent.v4.JobCategory\x1a\x83\x01\n\x11ProcessingOptions\x12)\n!disable_street_address_resolution\x18\x01 \x01(\x08\x12\x43\n\x11html_sanitization\x18\x02 \x01(\x0e\x32(.google.cloud.talent.v4.HtmlSanitization\x1a`\n\x15\x43ustomAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.cloud.talent.v4.CustomAttribute:\x02\x38\x01:L\xea\x41I\n\x17jobs.googleapis.com/Job\x12.projects/{project}/tenants/{tenant}/jobs/{job}Bb\n\x1a\x63om.google.cloud.talent.v4B\x08JobProtoP\x01Z2cloud.google.com/go/talent/apiv4/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.v4.CompensationInfo", "google/cloud/talent/v4/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
@@ -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/v4/job_service.proto
3
4
 
@@ -17,138 +18,38 @@ require 'google/protobuf/empty_pb'
17
18
  require 'google/protobuf/field_mask_pb'
18
19
  require 'google/rpc/status_pb'
19
20
 
20
- Google::Protobuf::DescriptorPool.generated_pool.build do
21
- add_file("google/cloud/talent/v4/job_service.proto", :syntax => :proto3) do
22
- add_message "google.cloud.talent.v4.CreateJobRequest" do
23
- optional :parent, :string, 1
24
- optional :job, :message, 2, "google.cloud.talent.v4.Job"
25
- end
26
- add_message "google.cloud.talent.v4.GetJobRequest" do
27
- optional :name, :string, 1
28
- end
29
- add_message "google.cloud.talent.v4.UpdateJobRequest" do
30
- optional :job, :message, 1, "google.cloud.talent.v4.Job"
31
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
32
- end
33
- add_message "google.cloud.talent.v4.DeleteJobRequest" do
34
- optional :name, :string, 1
35
- end
36
- add_message "google.cloud.talent.v4.ListJobsRequest" do
37
- optional :parent, :string, 1
38
- optional :filter, :string, 2
39
- optional :page_token, :string, 3
40
- optional :page_size, :int32, 4
41
- optional :job_view, :enum, 5, "google.cloud.talent.v4.JobView"
42
- end
43
- add_message "google.cloud.talent.v4.ListJobsResponse" do
44
- repeated :jobs, :message, 1, "google.cloud.talent.v4.Job"
45
- optional :next_page_token, :string, 2
46
- optional :metadata, :message, 3, "google.cloud.talent.v4.ResponseMetadata"
47
- end
48
- add_message "google.cloud.talent.v4.SearchJobsRequest" do
49
- optional :parent, :string, 1
50
- optional :search_mode, :enum, 2, "google.cloud.talent.v4.SearchJobsRequest.SearchMode"
51
- optional :request_metadata, :message, 3, "google.cloud.talent.v4.RequestMetadata"
52
- optional :job_query, :message, 4, "google.cloud.talent.v4.JobQuery"
53
- optional :enable_broadening, :bool, 5
54
- repeated :histogram_queries, :message, 7, "google.cloud.talent.v4.HistogramQuery"
55
- optional :job_view, :enum, 8, "google.cloud.talent.v4.JobView"
56
- optional :offset, :int32, 9
57
- optional :max_page_size, :int32, 10
58
- optional :page_token, :string, 11
59
- optional :order_by, :string, 12
60
- optional :diversification_level, :enum, 13, "google.cloud.talent.v4.SearchJobsRequest.DiversificationLevel"
61
- optional :custom_ranking_info, :message, 14, "google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo"
62
- optional :disable_keyword_match, :bool, 16
63
- optional :keyword_match_mode, :enum, 18, "google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode"
64
- end
65
- add_message "google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo" do
66
- optional :importance_level, :enum, 1, "google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.ImportanceLevel"
67
- optional :ranking_expression, :string, 2
68
- end
69
- add_enum "google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.ImportanceLevel" do
70
- value :IMPORTANCE_LEVEL_UNSPECIFIED, 0
71
- value :NONE, 1
72
- value :LOW, 2
73
- value :MILD, 3
74
- value :MEDIUM, 4
75
- value :HIGH, 5
76
- value :EXTREME, 6
77
- end
78
- add_enum "google.cloud.talent.v4.SearchJobsRequest.SearchMode" do
79
- value :SEARCH_MODE_UNSPECIFIED, 0
80
- value :JOB_SEARCH, 1
81
- value :FEATURED_JOB_SEARCH, 2
82
- end
83
- add_enum "google.cloud.talent.v4.SearchJobsRequest.DiversificationLevel" do
84
- value :DIVERSIFICATION_LEVEL_UNSPECIFIED, 0
85
- value :DISABLED, 1
86
- value :SIMPLE, 2
87
- value :ONE_PER_COMPANY, 3
88
- value :TWO_PER_COMPANY, 4
89
- value :DIVERSIFY_BY_LOOSER_SIMILARITY, 5
90
- end
91
- add_enum "google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode" do
92
- value :KEYWORD_MATCH_MODE_UNSPECIFIED, 0
93
- value :KEYWORD_MATCH_DISABLED, 1
94
- value :KEYWORD_MATCH_ALL, 2
95
- value :KEYWORD_MATCH_TITLE_ONLY, 3
96
- end
97
- add_message "google.cloud.talent.v4.SearchJobsResponse" do
98
- repeated :matching_jobs, :message, 1, "google.cloud.talent.v4.SearchJobsResponse.MatchingJob"
99
- repeated :histogram_query_results, :message, 2, "google.cloud.talent.v4.HistogramQueryResult"
100
- optional :next_page_token, :string, 3
101
- repeated :location_filters, :message, 4, "google.cloud.talent.v4.Location"
102
- optional :total_size, :int32, 6
103
- optional :metadata, :message, 7, "google.cloud.talent.v4.ResponseMetadata"
104
- optional :broadened_query_jobs_count, :int32, 8
105
- optional :spell_correction, :message, 9, "google.cloud.talent.v4.SpellingCorrection"
106
- end
107
- add_message "google.cloud.talent.v4.SearchJobsResponse.MatchingJob" do
108
- optional :job, :message, 1, "google.cloud.talent.v4.Job"
109
- optional :job_summary, :string, 2
110
- optional :job_title_snippet, :string, 3
111
- optional :search_text_snippet, :string, 4
112
- optional :commute_info, :message, 5, "google.cloud.talent.v4.SearchJobsResponse.CommuteInfo"
113
- end
114
- add_message "google.cloud.talent.v4.SearchJobsResponse.CommuteInfo" do
115
- optional :job_location, :message, 1, "google.cloud.talent.v4.Location"
116
- optional :travel_duration, :message, 2, "google.protobuf.Duration"
117
- end
118
- add_message "google.cloud.talent.v4.BatchCreateJobsRequest" do
119
- optional :parent, :string, 1
120
- repeated :jobs, :message, 2, "google.cloud.talent.v4.Job"
121
- end
122
- add_message "google.cloud.talent.v4.BatchUpdateJobsRequest" do
123
- optional :parent, :string, 1
124
- repeated :jobs, :message, 2, "google.cloud.talent.v4.Job"
125
- optional :update_mask, :message, 3, "google.protobuf.FieldMask"
126
- end
127
- add_message "google.cloud.talent.v4.BatchDeleteJobsRequest" do
128
- optional :parent, :string, 1
129
- repeated :names, :string, 2
130
- end
131
- add_message "google.cloud.talent.v4.JobResult" do
132
- optional :job, :message, 1, "google.cloud.talent.v4.Job"
133
- optional :status, :message, 2, "google.rpc.Status"
134
- end
135
- add_message "google.cloud.talent.v4.BatchCreateJobsResponse" do
136
- repeated :job_results, :message, 1, "google.cloud.talent.v4.JobResult"
137
- end
138
- add_message "google.cloud.talent.v4.BatchUpdateJobsResponse" do
139
- repeated :job_results, :message, 1, "google.cloud.talent.v4.JobResult"
140
- end
141
- add_message "google.cloud.talent.v4.BatchDeleteJobsResponse" do
142
- repeated :job_results, :message, 1, "google.cloud.talent.v4.JobResult"
143
- end
144
- add_enum "google.cloud.talent.v4.JobView" do
145
- value :JOB_VIEW_UNSPECIFIED, 0
146
- value :JOB_VIEW_ID_ONLY, 1
147
- value :JOB_VIEW_MINIMAL, 2
148
- value :JOB_VIEW_SMALL, 3
149
- value :JOB_VIEW_FULL, 4
21
+
22
+ descriptor_data = "\n(google/cloud/talent/v4/job_service.proto\x12\x16google.cloud.talent.v4\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/v4/common.proto\x1a$google/cloud/talent/v4/filters.proto\x1a&google/cloud/talent/v4/histogram.proto\x1a google/cloud/talent/v4/job.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"r\n\x10\x43reateJobRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12-\n\x03job\x18\x02 \x01(\x0b\x32\x1b.google.cloud.talent.v4.JobB\x03\xe0\x41\x02\">\n\rGetJobRequest\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\n\x17jobs.googleapis.com/Job\"r\n\x10UpdateJobRequest\x12-\n\x03job\x18\x01 \x01(\x0b\x32\x1b.google.cloud.talent.v4.JobB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"A\n\x10\x44\x65leteJobRequest\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\n\x17jobs.googleapis.com/Job\"\xb1\x01\n\x0fListJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x31\n\x08job_view\x18\x05 \x01(\x0e\x32\x1f.google.cloud.talent.v4.JobView\"\x92\x01\n\x10ListJobsResponse\x12)\n\x04jobs\x18\x01 \x03(\x0b\x32\x1b.google.cloud.talent.v4.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12:\n\x08metadata\x18\x03 \x01(\x0b\x32(.google.cloud.talent.v4.ResponseMetadata\"\xd7\x0b\n\x11SearchJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12I\n\x0bsearch_mode\x18\x02 \x01(\x0e\x32\x34.google.cloud.talent.v4.SearchJobsRequest.SearchMode\x12\x46\n\x10request_metadata\x18\x03 \x01(\x0b\x32\'.google.cloud.talent.v4.RequestMetadataB\x03\xe0\x41\x02\x12\x33\n\tjob_query\x18\x04 \x01(\x0b\x32 .google.cloud.talent.v4.JobQuery\x12\x19\n\x11\x65nable_broadening\x18\x05 \x01(\x08\x12\x41\n\x11histogram_queries\x18\x07 \x03(\x0b\x32&.google.cloud.talent.v4.HistogramQuery\x12\x31\n\x08job_view\x18\x08 \x01(\x0e\x32\x1f.google.cloud.talent.v4.JobView\x12\x0e\n\x06offset\x18\t \x01(\x05\x12\x15\n\rmax_page_size\x18\n \x01(\x05\x12\x12\n\npage_token\x18\x0b \x01(\t\x12\x10\n\x08order_by\x18\x0c \x01(\t\x12]\n\x15\x64iversification_level\x18\r \x01(\x0e\x32>.google.cloud.talent.v4.SearchJobsRequest.DiversificationLevel\x12X\n\x13\x63ustom_ranking_info\x18\x0e \x01(\x0b\x32;.google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo\x12!\n\x15\x64isable_keyword_match\x18\x10 \x01(\x08\x42\x02\x18\x01\x12V\n\x12keyword_match_mode\x18\x12 \x01(\x0e\x32:.google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode\x1a\x95\x02\n\x11\x43ustomRankingInfo\x12j\n\x10importance_level\x18\x01 \x01(\x0e\x32K.google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.ImportanceLevelB\x03\xe0\x41\x02\x12\x1f\n\x12ranking_expression\x18\x02 \x01(\tB\x03\xe0\x41\x02\"s\n\x0fImportanceLevel\x12 \n\x1cIMPORTANCE_LEVEL_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\x08\n\x04MILD\x10\x03\x12\n\n\x06MEDIUM\x10\x04\x12\x08\n\x04HIGH\x10\x05\x12\x0b\n\x07\x45XTREME\x10\x06\"R\n\nSearchMode\x12\x1b\n\x17SEARCH_MODE_UNSPECIFIED\x10\x00\x12\x0e\n\nJOB_SEARCH\x10\x01\x12\x17\n\x13\x46\x45\x41TURED_JOB_SEARCH\x10\x02\"\xc0\x01\n\x14\x44iversificationLevel\x12%\n!DIVERSIFICATION_LEVEL_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\n\n\x06SIMPLE\x10\x02\x12\x13\n\x0fONE_PER_COMPANY\x10\x03\x12\x13\n\x0fTWO_PER_COMPANY\x10\x04\x12\x19\n\x15MAX_THREE_PER_COMPANY\x10\x06\x12\"\n\x1e\x44IVERSIFY_BY_LOOSER_SIMILARITY\x10\x05\"\x87\x01\n\x10KeywordMatchMode\x12\"\n\x1eKEYWORD_MATCH_MODE_UNSPECIFIED\x10\x00\x12\x1a\n\x16KEYWORD_MATCH_DISABLED\x10\x01\x12\x15\n\x11KEYWORD_MATCH_ALL\x10\x02\x12\x1c\n\x18KEYWORD_MATCH_TITLE_ONLY\x10\x03\"\x91\x06\n\x12SearchJobsResponse\x12M\n\rmatching_jobs\x18\x01 \x03(\x0b\x32\x36.google.cloud.talent.v4.SearchJobsResponse.MatchingJob\x12M\n\x17histogram_query_results\x18\x02 \x03(\x0b\x32,.google.cloud.talent.v4.HistogramQueryResult\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x12:\n\x10location_filters\x18\x04 \x03(\x0b\x32 .google.cloud.talent.v4.Location\x12\x12\n\ntotal_size\x18\x06 \x01(\x05\x12:\n\x08metadata\x18\x07 \x01(\x0b\x32(.google.cloud.talent.v4.ResponseMetadata\x12\"\n\x1a\x62roadened_query_jobs_count\x18\x08 \x01(\x05\x12\x44\n\x10spell_correction\x18\t \x01(\x0b\x32*.google.cloud.talent.v4.SpellingCorrection\x1a\xd2\x01\n\x0bMatchingJob\x12(\n\x03job\x18\x01 \x01(\x0b\x32\x1b.google.cloud.talent.v4.Job\x12\x13\n\x0bjob_summary\x18\x02 \x01(\t\x12\x19\n\x11job_title_snippet\x18\x03 \x01(\t\x12\x1b\n\x13search_text_snippet\x18\x04 \x01(\t\x12L\n\x0c\x63ommute_info\x18\x05 \x01(\x0b\x32\x36.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo\x1ay\n\x0b\x43ommuteInfo\x12\x36\n\x0cjob_location\x18\x01 \x01(\x0b\x32 .google.cloud.talent.v4.Location\x12\x32\n\x0ftravel_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"y\n\x16\x42\x61tchCreateJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12.\n\x04jobs\x18\x02 \x03(\x0b\x32\x1b.google.cloud.talent.v4.JobB\x03\xe0\x41\x02\"\xaa\x01\n\x16\x42\x61tchUpdateJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12.\n\x04jobs\x18\x02 \x03(\x0b\x32\x1b.google.cloud.talent.v4.JobB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"y\n\x16\x42\x61tchDeleteJobsRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant\x12+\n\x05names\x18\x02 \x03(\tB\x1c\xfa\x41\x19\n\x17jobs.googleapis.com/Job\"Y\n\tJobResult\x12(\n\x03job\x18\x01 \x01(\x0b\x32\x1b.google.cloud.talent.v4.Job\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"Q\n\x17\x42\x61tchCreateJobsResponse\x12\x36\n\x0bjob_results\x18\x01 \x03(\x0b\x32!.google.cloud.talent.v4.JobResult\"Q\n\x17\x42\x61tchUpdateJobsResponse\x12\x36\n\x0bjob_results\x18\x01 \x03(\x0b\x32!.google.cloud.talent.v4.JobResult\"Q\n\x17\x42\x61tchDeleteJobsResponse\x12\x36\n\x0bjob_results\x18\x01 \x03(\x0b\x32!.google.cloud.talent.v4.JobResult*v\n\x07JobView\x12\x18\n\x14JOB_VIEW_UNSPECIFIED\x10\x00\x12\x14\n\x10JOB_VIEW_ID_ONLY\x10\x01\x12\x14\n\x10JOB_VIEW_MINIMAL\x10\x02\x12\x12\n\x0eJOB_VIEW_SMALL\x10\x03\x12\x11\n\rJOB_VIEW_FULL\x10\x04\x32\xdc\x0e\n\nJobService\x12\x94\x01\n\tCreateJob\x12(.google.cloud.talent.v4.CreateJobRequest\x1a\x1b.google.cloud.talent.v4.Job\"@\x82\xd3\xe4\x93\x02-\"&/v4/{parent=projects/*/tenants/*}/jobs:\x03job\xda\x41\nparent,job\x12\xe1\x01\n\x0f\x42\x61tchCreateJobs\x12..google.cloud.talent.v4.BatchCreateJobsRequest\x1a\x1d.google.longrunning.Operation\"\x7f\x82\xd3\xe4\x93\x02\x37\"2/v4/{parent=projects/*/tenants/*}/jobs:batchCreate:\x01*\xda\x41\x0bparent,jobs\xca\x41\x31\n\x17\x42\x61tchCreateJobsResponse\x12\x16\x42\x61tchOperationMetadata\x12\x83\x01\n\x06GetJob\x12%.google.cloud.talent.v4.GetJobRequest\x1a\x1b.google.cloud.talent.v4.Job\"5\x82\xd3\xe4\x93\x02(\x12&/v4/{name=projects/*/tenants/*/jobs/*}\xda\x41\x04name\x12\x9d\x01\n\tUpdateJob\x12(.google.cloud.talent.v4.UpdateJobRequest\x1a\x1b.google.cloud.talent.v4.Job\"I\x82\xd3\xe4\x93\x02\x31\x32*/v4/{job.name=projects/*/tenants/*/jobs/*}:\x03job\xda\x41\x0fjob,update_mask\x12\xe1\x01\n\x0f\x42\x61tchUpdateJobs\x12..google.cloud.talent.v4.BatchUpdateJobsRequest\x1a\x1d.google.longrunning.Operation\"\x7f\x82\xd3\xe4\x93\x02\x37\"2/v4/{parent=projects/*/tenants/*}/jobs:batchUpdate:\x01*\xda\x41\x0bparent,jobs\xca\x41\x31\n\x17\x42\x61tchUpdateJobsResponse\x12\x16\x42\x61tchOperationMetadata\x12\x84\x01\n\tDeleteJob\x12(.google.cloud.talent.v4.DeleteJobRequest\x1a\x16.google.protobuf.Empty\"5\x82\xd3\xe4\x93\x02(*&/v4/{name=projects/*/tenants/*/jobs/*}\xda\x41\x04name\x12\xe3\x01\n\x0f\x42\x61tchDeleteJobs\x12..google.cloud.talent.v4.BatchDeleteJobsRequest\x1a\x1d.google.longrunning.Operation\"\x80\x01\x82\xd3\xe4\x93\x02\x37\"2/v4/{parent=projects/*/tenants/*}/jobs:batchDelete:\x01*\xda\x41\x0cparent,names\xca\x41\x31\n\x17\x42\x61tchDeleteJobsResponse\x12\x16\x42\x61tchOperationMetadata\x12\x9d\x01\n\x08ListJobs\x12\'.google.cloud.talent.v4.ListJobsRequest\x1a(.google.cloud.talent.v4.ListJobsResponse\">\x82\xd3\xe4\x93\x02(\x12&/v4/{parent=projects/*/tenants/*}/jobs\xda\x41\rparent,filter\x12\x9d\x01\n\nSearchJobs\x12).google.cloud.talent.v4.SearchJobsRequest\x1a*.google.cloud.talent.v4.SearchJobsResponse\"8\x82\xd3\xe4\x93\x02\x32\"-/v4/{parent=projects/*/tenants/*}/jobs:search:\x01*\x12\xad\x01\n\x12SearchJobsForAlert\x12).google.cloud.talent.v4.SearchJobsRequest\x1a*.google.cloud.talent.v4.SearchJobsResponse\"@\x82\xd3\xe4\x93\x02:\"5/v4/{parent=projects/*/tenants/*}/jobs:searchForAlert:\x01*\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsBi\n\x1a\x63om.google.cloud.talent.v4B\x0fJobServiceProtoP\x01Z2cloud.google.com/go/talent/apiv4/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
23
+
24
+ pool = Google::Protobuf::DescriptorPool.generated_pool
25
+
26
+ begin
27
+ pool.add_serialized_file(descriptor_data)
28
+ rescue TypeError => e
29
+ # Compatibility code: will be removed in the next major version.
30
+ require 'google/protobuf/descriptor_pb'
31
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
32
+ parsed.clear_dependency
33
+ serialized = parsed.class.encode(parsed)
34
+ file = pool.add_serialized_file(serialized)
35
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
36
+ imports = [
37
+ ["google.cloud.talent.v4.Job", "google/cloud/talent/v4/job.proto"],
38
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
39
+ ["google.cloud.talent.v4.ResponseMetadata", "google/cloud/talent/v4/common.proto"],
40
+ ["google.cloud.talent.v4.JobQuery", "google/cloud/talent/v4/filters.proto"],
41
+ ["google.cloud.talent.v4.HistogramQuery", "google/cloud/talent/v4/histogram.proto"],
42
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
43
+ ["google.rpc.Status", "google/rpc/status.proto"],
44
+ ]
45
+ imports.each do |type_name, expected_filename|
46
+ import_file = pool.lookup(type_name).file_descriptor
47
+ if import_file.name != expected_filename
48
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
150
49
  end
151
50
  end
51
+ warn "Each proto file must use a consistent fully-qualified name."
52
+ warn "This will become an error in the next major version."
152
53
  end
153
54
 
154
55
  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/v4/tenant.proto
3
4
 
@@ -6,13 +7,31 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/talent/v4/tenant.proto", :syntax => :proto3) do
11
- add_message "google.cloud.talent.v4.Tenant" do
12
- optional :name, :string, 1
13
- optional :external_id, :string, 2
10
+
11
+ descriptor_data = "\n#google/cloud/talent/v4/tenant.proto\x12\x16google.cloud.talent.v4\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"v\n\x06Tenant\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x65xternal_id\x18\x02 \x01(\tB\x03\xe0\x41\x02:D\xea\x41\x41\n\x1ajobs.googleapis.com/Tenant\x12#projects/{project}/tenants/{tenant}Be\n\x1a\x63om.google.cloud.talent.v4B\x0bTenantProtoP\x01Z2cloud.google.com/go/talent/apiv4/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
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
14
31
  end
15
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
16
35
  end
17
36
 
18
37
  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/v4/tenant_service.proto
3
4
 
@@ -12,33 +13,34 @@ require 'google/cloud/talent/v4/tenant_pb'
12
13
  require 'google/protobuf/empty_pb'
13
14
  require 'google/protobuf/field_mask_pb'
14
15
 
15
- Google::Protobuf::DescriptorPool.generated_pool.build do
16
- add_file("google/cloud/talent/v4/tenant_service.proto", :syntax => :proto3) do
17
- add_message "google.cloud.talent.v4.CreateTenantRequest" do
18
- optional :parent, :string, 1
19
- optional :tenant, :message, 2, "google.cloud.talent.v4.Tenant"
20
- end
21
- add_message "google.cloud.talent.v4.GetTenantRequest" do
22
- optional :name, :string, 1
23
- end
24
- add_message "google.cloud.talent.v4.UpdateTenantRequest" do
25
- optional :tenant, :message, 1, "google.cloud.talent.v4.Tenant"
26
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
27
- end
28
- add_message "google.cloud.talent.v4.DeleteTenantRequest" do
29
- optional :name, :string, 1
30
- end
31
- add_message "google.cloud.talent.v4.ListTenantsRequest" do
32
- optional :parent, :string, 1
33
- optional :page_token, :string, 2
34
- optional :page_size, :int32, 3
35
- end
36
- add_message "google.cloud.talent.v4.ListTenantsResponse" do
37
- repeated :tenants, :message, 1, "google.cloud.talent.v4.Tenant"
38
- optional :next_page_token, :string, 2
39
- optional :metadata, :message, 3, "google.cloud.talent.v4.ResponseMetadata"
16
+
17
+ descriptor_data = "\n+google/cloud/talent/v4/tenant_service.proto\x12\x16google.cloud.talent.v4\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/v4/common.proto\x1a#google/cloud/talent/v4/tenant.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x8f\x01\n\x13\x43reateTenantRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x33\n\x06tenant\x18\x02 \x01(\x0b\x32\x1e.google.cloud.talent.v4.TenantB\x03\xe0\x41\x02\"D\n\x10GetTenantRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant\"{\n\x13UpdateTenantRequest\x12\x33\n\x06tenant\x18\x01 \x01(\x0b\x32\x1e.google.cloud.talent.v4.TenantB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"G\n\x13\x44\x65leteTenantRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant\"\x80\x01\n\x12ListTenantsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"\x9b\x01\n\x13ListTenantsResponse\x12/\n\x07tenants\x18\x01 \x03(\x0b\x32\x1e.google.cloud.talent.v4.Tenant\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12:\n\x08metadata\x18\x03 \x01(\x0b\x32(.google.cloud.talent.v4.ResponseMetadata2\xf0\x06\n\rTenantService\x12\x9c\x01\n\x0c\x43reateTenant\x12+.google.cloud.talent.v4.CreateTenantRequest\x1a\x1e.google.cloud.talent.v4.Tenant\"?\x82\xd3\xe4\x93\x02)\"\x1f/v4/{parent=projects/*}/tenants:\x06tenant\xda\x41\rparent,tenant\x12\x85\x01\n\tGetTenant\x12(.google.cloud.talent.v4.GetTenantRequest\x1a\x1e.google.cloud.talent.v4.Tenant\".\x82\xd3\xe4\x93\x02!\x12\x1f/v4/{name=projects/*/tenants/*}\xda\x41\x04name\x12\xa8\x01\n\x0cUpdateTenant\x12+.google.cloud.talent.v4.UpdateTenantRequest\x1a\x1e.google.cloud.talent.v4.Tenant\"K\x82\xd3\xe4\x93\x02\x30\x32&/v4/{tenant.name=projects/*/tenants/*}:\x06tenant\xda\x41\x12tenant,update_mask\x12\x83\x01\n\x0c\x44\x65leteTenant\x12+.google.cloud.talent.v4.DeleteTenantRequest\x1a\x16.google.protobuf.Empty\".\x82\xd3\xe4\x93\x02!*\x1f/v4/{name=projects/*/tenants/*}\xda\x41\x04name\x12\x98\x01\n\x0bListTenants\x12*.google.cloud.talent.v4.ListTenantsRequest\x1a+.google.cloud.talent.v4.ListTenantsResponse\"0\x82\xd3\xe4\x93\x02!\x12\x1f/v4/{parent=projects/*}/tenants\xda\x41\x06parent\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsBl\n\x1a\x63om.google.cloud.talent.v4B\x12TenantServiceProtoP\x01Z2cloud.google.com/go/talent/apiv4/talentpb;talentpb\xa2\x02\x03\x43TSb\x06proto3"
18
+
19
+ pool = Google::Protobuf::DescriptorPool.generated_pool
20
+
21
+ begin
22
+ pool.add_serialized_file(descriptor_data)
23
+ rescue TypeError => e
24
+ # Compatibility code: will be removed in the next major version.
25
+ require 'google/protobuf/descriptor_pb'
26
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
27
+ parsed.clear_dependency
28
+ serialized = parsed.class.encode(parsed)
29
+ file = pool.add_serialized_file(serialized)
30
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
31
+ imports = [
32
+ ["google.cloud.talent.v4.Tenant", "google/cloud/talent/v4/tenant.proto"],
33
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
34
+ ["google.cloud.talent.v4.ResponseMetadata", "google/cloud/talent/v4/common.proto"],
35
+ ]
36
+ imports.each do |type_name, expected_filename|
37
+ import_file = pool.lookup(type_name).file_descriptor
38
+ if import_file.name != expected_filename
39
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
40
40
  end
41
41
  end
42
+ warn "Each proto file must use a consistent fully-qualified name."
43
+ warn "This will become an error in the next major version."
42
44
  end
43
45
 
44
46
  module Google
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Talent
23
23
  module V4
24
- VERSION = "0.9.1"
24
+ VERSION = "0.10.0"
25
25
  end
26
26
  end
27
27
  end
@@ -579,6 +579,11 @@ module Google
579
579
  # pushed to the end of the last page of search result.
580
580
  TWO_PER_COMPANY = 4
581
581
 
582
+ # Similar to ONE_PER_COMPANY, but it allows at most three jobs in the
583
+ # same company to be shown at once, the other jobs under same company are
584
+ # dropped.
585
+ MAX_THREE_PER_COMPANY = 6
586
+
582
587
  # The result list is ordered such that somewhat similar results are pushed
583
588
  # to the end of the last page of the search results. This option is
584
589
  # recommended if SIMPLE diversification does not diversify enough.
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]