From 1e2f981ebd39f96b4c0d50f3b3908f63bdd6424b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 30 Oct 2019 09:11:19 -0700 Subject: [PATCH] feat: add queryLanguageCode to JobQuery (#9) * [CHANGE ME] Re-generated to pick up changes in the API or client library generator. * fix: allow interface changes for proto generated classes --- .../clirr-ignored-differences.xml | 19 + .../cloud/talent/v4beta1/FiltersProto.java | 245 ++++++------ .../google/cloud/talent/v4beta1/JobQuery.java | 355 ++++++++++++++---- .../talent/v4beta1/JobQueryOrBuilder.java | 33 ++ .../google/cloud/talent/v4beta1/filters.proto | 12 + synth.metadata | 10 +- 6 files changed, 473 insertions(+), 201 deletions(-) create mode 100644 proto-google-cloud-talent-v4beta1/clirr-ignored-differences.xml diff --git a/proto-google-cloud-talent-v4beta1/clirr-ignored-differences.xml b/proto-google-cloud-talent-v4beta1/clirr-ignored-differences.xml new file mode 100644 index 00000000..9fe3cad6 --- /dev/null +++ b/proto-google-cloud-talent-v4beta1/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/talent/v4beta1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/talent/v4beta1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/talent/v4beta1/*OrBuilder + boolean has*(*) + + diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java index 7618d386..23e97a10 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java @@ -109,126 +109,128 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/api/annotations.proto\032\037google/api/field" + "_behavior.proto\032(google/cloud/talent/v4b" + "eta1/common.proto\032\036google/protobuf/durat" - + "ion.proto\032\037google/protobuf/timestamp.pro" - + "to\032\036google/protobuf/wrappers.proto\032\026goog" - + "le/type/date.proto\032\030google/type/latlng.p" - + "roto\032\033google/type/timeofday.proto\"\343\004\n\010Jo" - + "bQuery\022\r\n\005query\030\001 \001(\t\022\021\n\tcompanies\030\002 \003(\t" - + "\022E\n\020location_filters\030\003 \003(\0132+.google.clou" - + "d.talent.v4beta1.LocationFilter\022@\n\016job_c" - + "ategories\030\004 \003(\0162(.google.cloud.talent.v4" - + "beta1.JobCategory\022B\n\016commute_filter\030\005 \001(" - + "\0132*.google.cloud.talent.v4beta1.CommuteF" - + "ilter\022\035\n\025company_display_names\030\006 \003(\t\022L\n\023" - + "compensation_filter\030\007 \001(\0132/.google.cloud" - + ".talent.v4beta1.CompensationFilter\022\037\n\027cu" - + "stom_attribute_filter\030\010 \001(\t\022\033\n\023disable_s" - + "pell_check\030\t \001(\010\022E\n\020employment_types\030\n \003" - + "(\0162+.google.cloud.talent.v4beta1.Employm" - + "entType\022\026\n\016language_codes\030\013 \003(\t\022G\n\022publi" - + "sh_time_range\030\014 \001(\0132+.google.cloud.talen" - + "t.v4beta1.TimestampRange\022\025\n\rexcluded_job" - + "s\030\r \003(\t\"\365\010\n\014ProfileQuery\022\r\n\005query\030\001 \001(\t\022" - + "E\n\020location_filters\030\002 \003(\0132+.google.cloud" - + ".talent.v4beta1.LocationFilter\022F\n\021job_ti" - + "tle_filters\030\003 \003(\0132+.google.cloud.talent." - + "v4beta1.JobTitleFilter\022E\n\020employer_filte" - + "rs\030\004 \003(\0132+.google.cloud.talent.v4beta1.E" - + "mployerFilter\022G\n\021education_filters\030\005 \003(\013" - + "2,.google.cloud.talent.v4beta1.Education" - + "Filter\022?\n\rskill_filters\030\006 \003(\0132(.google.c" - + "loud.talent.v4beta1.SkillFilter\022Q\n\026work_" - + "experience_filter\030\007 \003(\01321.google.cloud.t" - + "alent.v4beta1.WorkExperienceFilter\022=\n\014ti" - + "me_filters\030\010 \003(\0132\'.google.cloud.talent.v" - + "4beta1.TimeFilter\0222\n\016hirable_filter\030\t \001(" - + "\0132\032.google.protobuf.BoolValue\022T\n\030applica" - + "tion_date_filters\030\n \003(\01322.google.cloud.t" - + "alent.v4beta1.ApplicationDateFilter\022e\n!a" - + "pplication_outcome_notes_filters\030\013 \003(\0132:" - + ".google.cloud.talent.v4beta1.Application" - + "OutcomeNotesFilter\022R\n\027application_job_fi" - + "lters\030\r \003(\01321.google.cloud.talent.v4beta" - + "1.ApplicationJobFilter\022\037\n\027custom_attribu" - + "te_filter\030\017 \001(\t\022c\n\035candidate_availabilit" - + "y_filter\030\020 \001(\01328.google.cloud.talent.v4b" - + "eta1.CandidateAvailabilityFilterB\002\030\001\022M\n\024" - + "availability_filters\030\022 \003(\0132/.google.clou" - + "d.talent.v4beta1.AvailabilityFilter\022J\n\023p" - + "erson_name_filters\030\021 \003(\0132-.google.cloud." - + "talent.v4beta1.PersonNameFilter\"\337\002\n\016Loca" - + "tionFilter\022\017\n\007address\030\001 \001(\t\022\023\n\013region_co" - + "de\030\002 \001(\t\022$\n\007lat_lng\030\003 \001(\0132\023.google.type." - + "LatLng\022\031\n\021distance_in_miles\030\004 \001(\001\022a\n\026tel" - + "ecommute_preference\030\005 \001(\0162A.google.cloud" - + ".talent.v4beta1.LocationFilter.Telecommu" - + "tePreference\022\017\n\007negated\030\006 \001(\010\"r\n\025Telecom" - + "mutePreference\022&\n\"TELECOMMUTE_PREFERENCE" - + "_UNSPECIFIED\020\000\022\030\n\024TELECOMMUTE_EXCLUDED\020\001" - + "\022\027\n\023TELECOMMUTE_ALLOWED\020\002\"\312\003\n\022Compensati" - + "onFilter\022M\n\004type\030\001 \001(\0162:.google.cloud.ta" - + "lent.v4beta1.CompensationFilter.FilterTy" - + "peB\003\340A\002\022R\n\005units\030\002 \003(\0162>.google.cloud.ta" - + "lent.v4beta1.CompensationInfo.Compensati" - + "onUnitB\003\340A\002\022N\n\005range\030\003 \001(\0132?.google.clou" - + "d.talent.v4beta1.CompensationInfo.Compen" - + "sationRange\0228\n0include_jobs_with_unspeci" - + "fied_compensation_range\030\004 \001(\010\"\206\001\n\nFilter" - + "Type\022\033\n\027FILTER_TYPE_UNSPECIFIED\020\000\022\r\n\tUNI" - + "T_ONLY\020\001\022\023\n\017UNIT_AND_AMOUNT\020\002\022\032\n\026ANNUALI" - + "ZED_BASE_AMOUNT\020\003\022\033\n\027ANNUALIZED_TOTAL_AM" - + "OUNT\020\004\"\313\003\n\rCommuteFilter\022G\n\016commute_meth" - + "od\030\001 \001(\0162*.google.cloud.talent.v4beta1.C" - + "ommuteMethodB\003\340A\002\0223\n\021start_coordinates\030\002" - + " \001(\0132\023.google.type.LatLngB\003\340A\002\0227\n\017travel" - + "_duration\030\003 \001(\0132\031.google.protobuf.Durati" - + "onB\003\340A\002\022!\n\031allow_imprecise_addresses\030\004 \001" - + "(\010\022N\n\014road_traffic\030\005 \001(\01626.google.cloud." - + "talent.v4beta1.CommuteFilter.RoadTraffic" - + "H\000\0220\n\016departure_time\030\006 \001(\0132\026.google.type" - + ".TimeOfDayH\000\"L\n\013RoadTraffic\022\034\n\030ROAD_TRAF" - + "FIC_UNSPECIFIED\020\000\022\020\n\014TRAFFIC_FREE\020\001\022\r\n\tB" - + "USY_HOUR\020\002B\020\n\016traffic_option\"9\n\016JobTitle" - + "Filter\022\026\n\tjob_title\030\001 \001(\tB\003\340A\002\022\017\n\007negate" - + "d\030\002 \001(\010\"2\n\013SkillFilter\022\022\n\005skill\030\001 \001(\tB\003\340" - + "A\002\022\017\n\007negated\030\002 \001(\010\"\246\002\n\016EmployerFilter\022\025" - + "\n\010employer\030\001 \001(\tB\003\340A\002\022L\n\004mode\030\002 \001(\0162>.go" - + "ogle.cloud.talent.v4beta1.EmployerFilter" - + ".EmployerFilterMode\022\017\n\007negated\030\003 \001(\010\"\235\001\n" - + "\022EmployerFilterMode\022$\n EMPLOYER_FILTER_M" - + "ODE_UNSPECIFIED\020\000\022\032\n\026ALL_EMPLOYMENT_RECO" - + "RDS\020\001\022#\n\037CURRENT_EMPLOYMENT_RECORDS_ONLY" - + "\020\002\022 \n\034PAST_EMPLOYMENT_RECORDS_ONLY\020\003\"\210\001\n" - + "\017EducationFilter\022\016\n\006school\030\001 \001(\t\022\026\n\016fiel" - + "d_of_study\030\002 \001(\t\022<\n\013degree_type\030\003 \001(\0162\'." - + "google.cloud.talent.v4beta1.DegreeType\022\017" - + "\n\007negated\030\006 \001(\010\"|\n\024WorkExperienceFilter\022" - + "1\n\016min_experience\030\001 \001(\0132\031.google.protobu" - + "f.Duration\0221\n\016max_experience\030\002 \001(\0132\031.goo" - + "gle.protobuf.Duration\"c\n\025ApplicationDate" - + "Filter\022%\n\nstart_date\030\001 \001(\0132\021.google.type" - + ".Date\022#\n\010end_date\030\002 \001(\0132\021.google.type.Da" - + "te\"L\n\035ApplicationOutcomeNotesFilter\022\032\n\ro" - + "utcome_notes\030\001 \001(\tB\003\340A\002\022\017\n\007negated\030\002 \001(\010" - + "\"V\n\024ApplicationJobFilter\022\032\n\022job_requisit" - + "ion_id\030\002 \001(\t\022\021\n\tjob_title\030\003 \001(\t\022\017\n\007negat" - + "ed\030\004 \001(\010\"\374\001\n\nTimeFilter\022.\n\nstart_time\030\001 " - + "\001(\0132\032.google.protobuf.Timestamp\022,\n\010end_t" - + "ime\030\002 \001(\0132\032.google.protobuf.Timestamp\022E\n" - + "\ntime_field\030\003 \001(\01621.google.cloud.talent." - + "v4beta1.TimeFilter.TimeField\"I\n\tTimeFiel" - + "d\022\032\n\026TIME_FIELD_UNSPECIFIED\020\000\022\017\n\013CREATE_" - + "TIME\020\001\022\017\n\013UPDATE_TIME\020\002\"2\n\033CandidateAvai" - + "labilityFilter\022\017\n\007negated\030\001 \001(\010:\002\030\001\"\266\001\n\022" - + "AvailabilityFilter\022M\n\013signal_type\030\001 \001(\0162" - + "3.google.cloud.talent.v4beta1.Availabili" - + "tySignalTypeB\003\340A\002\022?\n\005range\030\002 \001(\0132+.googl" - + "e.cloud.talent.v4beta1.TimestampRangeB\003\340" - + "A\002\022\020\n\010required\030\003 \001(\010\",\n\020PersonNameFilter" - + "\022\030\n\013person_name\030\001 \001(\tB\003\340A\002Bz\n\037com.google" - + ".cloud.talent.v4beta1B\014FiltersProtoP\001ZAg" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/talent/v4beta1;talent\242\002\003CTSb\006proto3" + + "ion.proto\032 google/protobuf/field_mask.pr" + + "oto\032\037google/protobuf/timestamp.proto\032\036go" + + "ogle/protobuf/wrappers.proto\032\026google/typ" + + "e/date.proto\032\030google/type/latlng.proto\032\033" + + "google/type/timeofday.proto\"\200\005\n\010JobQuery" + + "\022\r\n\005query\030\001 \001(\t\022\033\n\023query_language_code\030\016" + + " \001(\t\022\021\n\tcompanies\030\002 \003(\t\022E\n\020location_filt" + + "ers\030\003 \003(\0132+.google.cloud.talent.v4beta1." + + "LocationFilter\022@\n\016job_categories\030\004 \003(\0162(" + + ".google.cloud.talent.v4beta1.JobCategory" + + "\022B\n\016commute_filter\030\005 \001(\0132*.google.cloud." + + "talent.v4beta1.CommuteFilter\022\035\n\025company_" + + "display_names\030\006 \003(\t\022L\n\023compensation_filt" + + "er\030\007 \001(\0132/.google.cloud.talent.v4beta1.C" + + "ompensationFilter\022\037\n\027custom_attribute_fi" + + "lter\030\010 \001(\t\022\033\n\023disable_spell_check\030\t \001(\010\022" + + "E\n\020employment_types\030\n \003(\0162+.google.cloud" + + ".talent.v4beta1.EmploymentType\022\026\n\016langua" + + "ge_codes\030\013 \003(\t\022G\n\022publish_time_range\030\014 \001" + + "(\0132+.google.cloud.talent.v4beta1.Timesta" + + "mpRange\022\025\n\rexcluded_jobs\030\r \003(\t\"\365\010\n\014Profi" + + "leQuery\022\r\n\005query\030\001 \001(\t\022E\n\020location_filte" + + "rs\030\002 \003(\0132+.google.cloud.talent.v4beta1.L" + + "ocationFilter\022F\n\021job_title_filters\030\003 \003(\013" + + "2+.google.cloud.talent.v4beta1.JobTitleF" + + "ilter\022E\n\020employer_filters\030\004 \003(\0132+.google" + + ".cloud.talent.v4beta1.EmployerFilter\022G\n\021" + + "education_filters\030\005 \003(\0132,.google.cloud.t" + + "alent.v4beta1.EducationFilter\022?\n\rskill_f" + + "ilters\030\006 \003(\0132(.google.cloud.talent.v4bet" + + "a1.SkillFilter\022Q\n\026work_experience_filter" + + "\030\007 \003(\01321.google.cloud.talent.v4beta1.Wor" + + "kExperienceFilter\022=\n\014time_filters\030\010 \003(\0132" + + "\'.google.cloud.talent.v4beta1.TimeFilter" + + "\0222\n\016hirable_filter\030\t \001(\0132\032.google.protob" + + "uf.BoolValue\022T\n\030application_date_filters" + + "\030\n \003(\01322.google.cloud.talent.v4beta1.App" + + "licationDateFilter\022e\n!application_outcom" + + "e_notes_filters\030\013 \003(\0132:.google.cloud.tal" + + "ent.v4beta1.ApplicationOutcomeNotesFilte" + + "r\022R\n\027application_job_filters\030\r \003(\01321.goo" + + "gle.cloud.talent.v4beta1.ApplicationJobF" + + "ilter\022\037\n\027custom_attribute_filter\030\017 \001(\t\022c" + + "\n\035candidate_availability_filter\030\020 \001(\01328." + + "google.cloud.talent.v4beta1.CandidateAva" + + "ilabilityFilterB\002\030\001\022M\n\024availability_filt" + + "ers\030\022 \003(\0132/.google.cloud.talent.v4beta1." + + "AvailabilityFilter\022J\n\023person_name_filter" + + "s\030\021 \003(\0132-.google.cloud.talent.v4beta1.Pe" + + "rsonNameFilter\"\337\002\n\016LocationFilter\022\017\n\007add" + + "ress\030\001 \001(\t\022\023\n\013region_code\030\002 \001(\t\022$\n\007lat_l" + + "ng\030\003 \001(\0132\023.google.type.LatLng\022\031\n\021distanc" + + "e_in_miles\030\004 \001(\001\022a\n\026telecommute_preferen" + + "ce\030\005 \001(\0162A.google.cloud.talent.v4beta1.L" + + "ocationFilter.TelecommutePreference\022\017\n\007n" + + "egated\030\006 \001(\010\"r\n\025TelecommutePreference\022&\n" + + "\"TELECOMMUTE_PREFERENCE_UNSPECIFIED\020\000\022\030\n" + + "\024TELECOMMUTE_EXCLUDED\020\001\022\027\n\023TELECOMMUTE_A" + + "LLOWED\020\002\"\312\003\n\022CompensationFilter\022M\n\004type\030" + + "\001 \001(\0162:.google.cloud.talent.v4beta1.Comp" + + "ensationFilter.FilterTypeB\003\340A\002\022R\n\005units\030" + + "\002 \003(\0162>.google.cloud.talent.v4beta1.Comp" + + "ensationInfo.CompensationUnitB\003\340A\002\022N\n\005ra" + + "nge\030\003 \001(\0132?.google.cloud.talent.v4beta1." + + "CompensationInfo.CompensationRange\0228\n0in" + + "clude_jobs_with_unspecified_compensation" + + "_range\030\004 \001(\010\"\206\001\n\nFilterType\022\033\n\027FILTER_TY" + + "PE_UNSPECIFIED\020\000\022\r\n\tUNIT_ONLY\020\001\022\023\n\017UNIT_" + + "AND_AMOUNT\020\002\022\032\n\026ANNUALIZED_BASE_AMOUNT\020\003" + + "\022\033\n\027ANNUALIZED_TOTAL_AMOUNT\020\004\"\313\003\n\rCommut" + + "eFilter\022G\n\016commute_method\030\001 \001(\0162*.google" + + ".cloud.talent.v4beta1.CommuteMethodB\003\340A\002" + + "\0223\n\021start_coordinates\030\002 \001(\0132\023.google.typ" + + "e.LatLngB\003\340A\002\0227\n\017travel_duration\030\003 \001(\0132\031" + + ".google.protobuf.DurationB\003\340A\002\022!\n\031allow_" + + "imprecise_addresses\030\004 \001(\010\022N\n\014road_traffi" + + "c\030\005 \001(\01626.google.cloud.talent.v4beta1.Co" + + "mmuteFilter.RoadTrafficH\000\0220\n\016departure_t" + + "ime\030\006 \001(\0132\026.google.type.TimeOfDayH\000\"L\n\013R" + + "oadTraffic\022\034\n\030ROAD_TRAFFIC_UNSPECIFIED\020\000" + + "\022\020\n\014TRAFFIC_FREE\020\001\022\r\n\tBUSY_HOUR\020\002B\020\n\016tra" + + "ffic_option\"9\n\016JobTitleFilter\022\026\n\tjob_tit" + + "le\030\001 \001(\tB\003\340A\002\022\017\n\007negated\030\002 \001(\010\"2\n\013SkillF" + + "ilter\022\022\n\005skill\030\001 \001(\tB\003\340A\002\022\017\n\007negated\030\002 \001" + + "(\010\"\246\002\n\016EmployerFilter\022\025\n\010employer\030\001 \001(\tB" + + "\003\340A\002\022L\n\004mode\030\002 \001(\0162>.google.cloud.talent" + + ".v4beta1.EmployerFilter.EmployerFilterMo" + + "de\022\017\n\007negated\030\003 \001(\010\"\235\001\n\022EmployerFilterMo" + + "de\022$\n EMPLOYER_FILTER_MODE_UNSPECIFIED\020\000" + + "\022\032\n\026ALL_EMPLOYMENT_RECORDS\020\001\022#\n\037CURRENT_" + + "EMPLOYMENT_RECORDS_ONLY\020\002\022 \n\034PAST_EMPLOY" + + "MENT_RECORDS_ONLY\020\003\"\210\001\n\017EducationFilter\022" + + "\016\n\006school\030\001 \001(\t\022\026\n\016field_of_study\030\002 \001(\t\022" + + "<\n\013degree_type\030\003 \001(\0162\'.google.cloud.tale" + + "nt.v4beta1.DegreeType\022\017\n\007negated\030\006 \001(\010\"|" + + "\n\024WorkExperienceFilter\0221\n\016min_experience" + + "\030\001 \001(\0132\031.google.protobuf.Duration\0221\n\016max" + + "_experience\030\002 \001(\0132\031.google.protobuf.Dura" + + "tion\"c\n\025ApplicationDateFilter\022%\n\nstart_d" + + "ate\030\001 \001(\0132\021.google.type.Date\022#\n\010end_date" + + "\030\002 \001(\0132\021.google.type.Date\"L\n\035Application" + + "OutcomeNotesFilter\022\032\n\routcome_notes\030\001 \001(" + + "\tB\003\340A\002\022\017\n\007negated\030\002 \001(\010\"V\n\024ApplicationJo" + + "bFilter\022\032\n\022job_requisition_id\030\002 \001(\t\022\021\n\tj" + + "ob_title\030\003 \001(\t\022\017\n\007negated\030\004 \001(\010\"\374\001\n\nTime" + + "Filter\022.\n\nstart_time\030\001 \001(\0132\032.google.prot" + + "obuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022E\n\ntime_field\030\003 \001(\016" + + "21.google.cloud.talent.v4beta1.TimeFilte" + + "r.TimeField\"I\n\tTimeField\022\032\n\026TIME_FIELD_U" + + "NSPECIFIED\020\000\022\017\n\013CREATE_TIME\020\001\022\017\n\013UPDATE_" + + "TIME\020\002\"2\n\033CandidateAvailabilityFilter\022\017\n" + + "\007negated\030\001 \001(\010:\002\030\001\"\266\001\n\022AvailabilityFilte" + + "r\022M\n\013signal_type\030\001 \001(\01623.google.cloud.ta" + + "lent.v4beta1.AvailabilitySignalTypeB\003\340A\002" + + "\022?\n\005range\030\002 \001(\0132+.google.cloud.talent.v4" + + "beta1.TimestampRangeB\003\340A\002\022\020\n\010required\030\003 " + + "\001(\010\",\n\020PersonNameFilter\022\030\n\013person_name\030\001" + + " \001(\tB\003\340A\002Bz\n\037com.google.cloud.talent.v4b" + + "eta1B\014FiltersProtoP\001ZAgoogle.golang.org/" + + "genproto/googleapis/cloud/talent/v4beta1" + + ";talent\242\002\003CTSb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -245,6 +247,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.api.FieldBehaviorProto.getDescriptor(), com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), com.google.type.DateProto.getDescriptor(), @@ -259,6 +262,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor, new java.lang.String[] { "Query", + "QueryLanguageCode", "Companies", "LocationFilters", "JobCategories", @@ -435,6 +439,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.api.FieldBehaviorProto.getDescriptor(); com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); com.google.type.DateProto.getDescriptor(); diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java index 86d23305..4c312b4e 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java @@ -39,6 +39,7 @@ private JobQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { private JobQuery() { query_ = ""; + queryLanguageCode_ = ""; companies_ = com.google.protobuf.LazyStringArrayList.EMPTY; locationFilters_ = java.util.Collections.emptyList(); jobCategories_ = java.util.Collections.emptyList(); @@ -83,19 +84,19 @@ private JobQuery( case 18: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { companies_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000004; } companies_.add(s); break; } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { locationFilters_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000008; } locationFilters_.add( input.readMessage( @@ -105,9 +106,9 @@ private JobQuery( case 32: { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { jobCategories_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000010; } jobCategories_.add(rawValue); break; @@ -118,9 +119,9 @@ private JobQuery( int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { jobCategories_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000010; } jobCategories_.add(rawValue); } @@ -146,9 +147,9 @@ private JobQuery( case 50: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000020) != 0)) { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { companyDisplayNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000040; } companyDisplayNames_.add(s); break; @@ -185,9 +186,9 @@ private JobQuery( case 80: { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000200) != 0)) { + if (!((mutable_bitField0_ & 0x00000400) != 0)) { employmentTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; + mutable_bitField0_ |= 0x00000400; } employmentTypes_.add(rawValue); break; @@ -198,9 +199,9 @@ private JobQuery( int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000200) != 0)) { + if (!((mutable_bitField0_ & 0x00000400) != 0)) { employmentTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; + mutable_bitField0_ |= 0x00000400; } employmentTypes_.add(rawValue); } @@ -210,9 +211,9 @@ private JobQuery( case 90: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000400) != 0)) { + if (!((mutable_bitField0_ & 0x00000800) != 0)) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000400; + mutable_bitField0_ |= 0x00000800; } languageCodes_.add(s); break; @@ -236,13 +237,20 @@ private JobQuery( case 106: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00001000) != 0)) { + if (!((mutable_bitField0_ & 0x00002000) != 0)) { excludedJobs_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00001000; + mutable_bitField0_ |= 0x00002000; } excludedJobs_.add(s); break; } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + + queryLanguageCode_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -257,25 +265,25 @@ private JobQuery( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { companies_ = companies_.getUnmodifiableView(); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000008) != 0)) { locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000010) != 0)) { jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_); } - if (((mutable_bitField0_ & 0x00000020) != 0)) { + if (((mutable_bitField0_ & 0x00000040) != 0)) { companyDisplayNames_ = companyDisplayNames_.getUnmodifiableView(); } - if (((mutable_bitField0_ & 0x00000200) != 0)) { + if (((mutable_bitField0_ & 0x00000400) != 0)) { employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_); } - if (((mutable_bitField0_ & 0x00000400) != 0)) { + if (((mutable_bitField0_ & 0x00000800) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); } - if (((mutable_bitField0_ & 0x00001000) != 0)) { + if (((mutable_bitField0_ & 0x00002000) != 0)) { excludedJobs_ = excludedJobs_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -346,6 +354,61 @@ public com.google.protobuf.ByteString getQueryBytes() { } } + public static final int QUERY_LANGUAGE_CODE_FIELD_NUMBER = 14; + private volatile java.lang.Object queryLanguageCode_; + /** + * + * + *
+   * The language code of [query][google.cloud.talent.v4beta1.JobQuery.query].
+   * For example, "en-US". This field helps to better interpret the query.
+   * If a value isn't specified, the query language code is automatically
+   * detected, which may not be accurate.
+   * Language code should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * 
+ * + * string query_language_code = 14; + */ + public java.lang.String getQueryLanguageCode() { + java.lang.Object ref = queryLanguageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryLanguageCode_ = s; + return s; + } + } + /** + * + * + *
+   * The language code of [query][google.cloud.talent.v4beta1.JobQuery.query].
+   * For example, "en-US". This field helps to better interpret the query.
+   * If a value isn't specified, the query language code is automatically
+   * detected, which may not be accurate.
+   * Language code should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * 
+ * + * string query_language_code = 14; + */ + public com.google.protobuf.ByteString getQueryLanguageCodeBytes() { + java.lang.Object ref = queryLanguageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int COMPANIES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList companies_; /** @@ -1296,6 +1359,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < excludedJobs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, excludedJobs_.getRaw(i)); } + if (!getQueryLanguageCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, queryLanguageCode_); + } unknownFields.writeTo(output); } @@ -1384,6 +1450,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getExcludedJobsList().size(); } + if (!getQueryLanguageCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, queryLanguageCode_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1400,6 +1469,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.talent.v4beta1.JobQuery other = (com.google.cloud.talent.v4beta1.JobQuery) obj; if (!getQuery().equals(other.getQuery())) return false; + if (!getQueryLanguageCode().equals(other.getQueryLanguageCode())) return false; if (!getCompaniesList().equals(other.getCompaniesList())) return false; if (!getLocationFiltersList().equals(other.getLocationFiltersList())) return false; if (!jobCategories_.equals(other.jobCategories_)) return false; @@ -1434,6 +1504,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + QUERY_LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getQueryLanguageCode().hashCode(); if (getCompaniesCount() > 0) { hash = (37 * hash) + COMPANIES_FIELD_NUMBER; hash = (53 * hash) + getCompaniesList().hashCode(); @@ -1627,16 +1699,18 @@ public Builder clear() { super.clear(); query_ = ""; + queryLanguageCode_ = ""; + companies_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); if (locationFiltersBuilder_ == null) { locationFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } else { locationFiltersBuilder_.clear(); } jobCategories_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); if (commuteFilterBuilder_ == null) { commuteFilter_ = null; } else { @@ -1644,7 +1718,7 @@ public Builder clear() { commuteFilterBuilder_ = null; } companyDisplayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); if (compensationFilterBuilder_ == null) { compensationFilter_ = null; } else { @@ -1656,9 +1730,9 @@ public Builder clear() { disableSpellCheck_ = false; employmentTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000400); + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000800); if (publishTimeRangeBuilder_ == null) { publishTimeRange_ = null; } else { @@ -1666,7 +1740,7 @@ public Builder clear() { publishTimeRangeBuilder_ = null; } excludedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); return this; } @@ -1697,23 +1771,24 @@ public com.google.cloud.talent.v4beta1.JobQuery buildPartial() { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.query_ = query_; - if (((bitField0_ & 0x00000002) != 0)) { + result.queryLanguageCode_ = queryLanguageCode_; + if (((bitField0_ & 0x00000004) != 0)) { companies_ = companies_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.companies_ = companies_; if (locationFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } result.locationFilters_ = locationFilters_; } else { result.locationFilters_ = locationFiltersBuilder_.build(); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } result.jobCategories_ = jobCategories_; if (commuteFilterBuilder_ == null) { @@ -1721,9 +1796,9 @@ public com.google.cloud.talent.v4beta1.JobQuery buildPartial() { } else { result.commuteFilter_ = commuteFilterBuilder_.build(); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { companyDisplayNames_ = companyDisplayNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); } result.companyDisplayNames_ = companyDisplayNames_; if (compensationFilterBuilder_ == null) { @@ -1733,14 +1808,14 @@ public com.google.cloud.talent.v4beta1.JobQuery buildPartial() { } result.customAttributeFilter_ = customAttributeFilter_; result.disableSpellCheck_ = disableSpellCheck_; - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); } result.employmentTypes_ = employmentTypes_; - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); } result.languageCodes_ = languageCodes_; if (publishTimeRangeBuilder_ == null) { @@ -1748,9 +1823,9 @@ public com.google.cloud.talent.v4beta1.JobQuery buildPartial() { } else { result.publishTimeRange_ = publishTimeRangeBuilder_.build(); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { excludedJobs_ = excludedJobs_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } result.excludedJobs_ = excludedJobs_; result.bitField0_ = to_bitField0_; @@ -1807,10 +1882,14 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobQuery other) { query_ = other.query_; onChanged(); } + if (!other.getQueryLanguageCode().isEmpty()) { + queryLanguageCode_ = other.queryLanguageCode_; + onChanged(); + } if (!other.companies_.isEmpty()) { if (companies_.isEmpty()) { companies_ = other.companies_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCompaniesIsMutable(); companies_.addAll(other.companies_); @@ -1821,7 +1900,7 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobQuery other) { if (!other.locationFilters_.isEmpty()) { if (locationFilters_.isEmpty()) { locationFilters_ = other.locationFilters_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureLocationFiltersIsMutable(); locationFilters_.addAll(other.locationFilters_); @@ -1834,7 +1913,7 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobQuery other) { locationFiltersBuilder_.dispose(); locationFiltersBuilder_ = null; locationFilters_ = other.locationFilters_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); locationFiltersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLocationFiltersFieldBuilder() @@ -1847,7 +1926,7 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobQuery other) { if (!other.jobCategories_.isEmpty()) { if (jobCategories_.isEmpty()) { jobCategories_ = other.jobCategories_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureJobCategoriesIsMutable(); jobCategories_.addAll(other.jobCategories_); @@ -1860,7 +1939,7 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobQuery other) { if (!other.companyDisplayNames_.isEmpty()) { if (companyDisplayNames_.isEmpty()) { companyDisplayNames_ = other.companyDisplayNames_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureCompanyDisplayNamesIsMutable(); companyDisplayNames_.addAll(other.companyDisplayNames_); @@ -1880,7 +1959,7 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobQuery other) { if (!other.employmentTypes_.isEmpty()) { if (employmentTypes_.isEmpty()) { employmentTypes_ = other.employmentTypes_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureEmploymentTypesIsMutable(); employmentTypes_.addAll(other.employmentTypes_); @@ -1890,7 +1969,7 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobQuery other) { if (!other.languageCodes_.isEmpty()) { if (languageCodes_.isEmpty()) { languageCodes_ = other.languageCodes_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); } else { ensureLanguageCodesIsMutable(); languageCodes_.addAll(other.languageCodes_); @@ -1903,7 +1982,7 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobQuery other) { if (!other.excludedJobs_.isEmpty()) { if (excludedJobs_.isEmpty()) { excludedJobs_ = other.excludedJobs_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } else { ensureExcludedJobsIsMutable(); excludedJobs_.addAll(other.excludedJobs_); @@ -2045,13 +2124,137 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object queryLanguageCode_ = ""; + /** + * + * + *
+     * The language code of [query][google.cloud.talent.v4beta1.JobQuery.query].
+     * For example, "en-US". This field helps to better interpret the query.
+     * If a value isn't specified, the query language code is automatically
+     * detected, which may not be accurate.
+     * Language code should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * 
+ * + * string query_language_code = 14; + */ + public java.lang.String getQueryLanguageCode() { + java.lang.Object ref = queryLanguageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryLanguageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The language code of [query][google.cloud.talent.v4beta1.JobQuery.query].
+     * For example, "en-US". This field helps to better interpret the query.
+     * If a value isn't specified, the query language code is automatically
+     * detected, which may not be accurate.
+     * Language code should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * 
+ * + * string query_language_code = 14; + */ + public com.google.protobuf.ByteString getQueryLanguageCodeBytes() { + java.lang.Object ref = queryLanguageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The language code of [query][google.cloud.talent.v4beta1.JobQuery.query].
+     * For example, "en-US". This field helps to better interpret the query.
+     * If a value isn't specified, the query language code is automatically
+     * detected, which may not be accurate.
+     * Language code should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * 
+ * + * string query_language_code = 14; + */ + public Builder setQueryLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + queryLanguageCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The language code of [query][google.cloud.talent.v4beta1.JobQuery.query].
+     * For example, "en-US". This field helps to better interpret the query.
+     * If a value isn't specified, the query language code is automatically
+     * detected, which may not be accurate.
+     * Language code should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * 
+ * + * string query_language_code = 14; + */ + public Builder clearQueryLanguageCode() { + + queryLanguageCode_ = getDefaultInstance().getQueryLanguageCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * The language code of [query][google.cloud.talent.v4beta1.JobQuery.query].
+     * For example, "en-US". This field helps to better interpret the query.
+     * If a value isn't specified, the query language code is automatically
+     * detected, which may not be accurate.
+     * Language code should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * 
+ * + * string query_language_code = 14; + */ + public Builder setQueryLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + queryLanguageCode_ = value; + onChanged(); + return this; + } + private com.google.protobuf.LazyStringList companies_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCompaniesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { companies_ = new com.google.protobuf.LazyStringArrayList(companies_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } /** @@ -2244,7 +2447,7 @@ public Builder addAllCompanies(java.lang.Iterable values) { */ public Builder clearCompanies() { companies_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2282,11 +2485,11 @@ public Builder addCompaniesBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureLocationFiltersIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { locationFilters_ = new java.util.ArrayList( locationFilters_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } @@ -2614,7 +2817,7 @@ public Builder addAllLocationFilters( public Builder clearLocationFilters() { if (locationFiltersBuilder_ == null) { locationFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { locationFiltersBuilder_.clear(); @@ -2810,7 +3013,7 @@ public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFilters com.google.cloud.talent.v4beta1.LocationFilter.Builder, com.google.cloud.talent.v4beta1.LocationFilterOrBuilder>( locationFilters_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); locationFilters_ = null; @@ -2821,9 +3024,9 @@ public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFilters private java.util.List jobCategories_ = java.util.Collections.emptyList(); private void ensureJobCategoriesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { jobCategories_ = new java.util.ArrayList(jobCategories_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } /** @@ -2964,7 +3167,7 @@ public Builder addAllJobCategories( */ public Builder clearJobCategories() { jobCategories_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -3305,9 +3508,9 @@ public com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder getCommuteFilterOr com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCompanyDisplayNamesIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { companyDisplayNames_ = new com.google.protobuf.LazyStringArrayList(companyDisplayNames_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; } } /** @@ -3476,7 +3679,7 @@ public Builder addAllCompanyDisplayNames(java.lang.Iterable va */ public Builder clearCompanyDisplayNames() { companyDisplayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3963,9 +4166,9 @@ public Builder clearDisableSpellCheck() { private java.util.List employmentTypes_ = java.util.Collections.emptyList(); private void ensureEmploymentTypesIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { employmentTypes_ = new java.util.ArrayList(employmentTypes_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } } /** @@ -4114,7 +4317,7 @@ public Builder addAllEmploymentTypes( */ public Builder clearEmploymentTypes() { employmentTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -4224,9 +4427,9 @@ public Builder addAllEmploymentTypesValue(java.lang.Iterable com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLanguageCodesIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { + if (!((bitField0_ & 0x00000800) != 0)) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; } } /** @@ -4395,7 +4598,7 @@ public Builder addAllLanguageCodes(java.lang.Iterable values) */ public Builder clearLanguageCodes() { languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -4621,9 +4824,9 @@ public com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder getPublishTimeRan com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExcludedJobsIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { + if (!((bitField0_ & 0x00002000) != 0)) { excludedJobs_ = new com.google.protobuf.LazyStringArrayList(excludedJobs_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } } /** @@ -4744,7 +4947,7 @@ public Builder addAllExcludedJobs(java.lang.Iterable values) { */ public Builder clearExcludedJobs() { excludedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java index f8071756..ae1f66ce 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java @@ -48,6 +48,39 @@ public interface JobQueryOrBuilder */ com.google.protobuf.ByteString getQueryBytes(); + /** + * + * + *
+   * The language code of [query][google.cloud.talent.v4beta1.JobQuery.query].
+   * For example, "en-US". This field helps to better interpret the query.
+   * If a value isn't specified, the query language code is automatically
+   * detected, which may not be accurate.
+   * Language code should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * 
+ * + * string query_language_code = 14; + */ + java.lang.String getQueryLanguageCode(); + /** + * + * + *
+   * The language code of [query][google.cloud.talent.v4beta1.JobQuery.query].
+   * For example, "en-US". This field helps to better interpret the query.
+   * If a value isn't specified, the query language code is automatically
+   * detected, which may not be accurate.
+   * Language code should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * 
+ * + * string query_language_code = 14; + */ + com.google.protobuf.ByteString getQueryLanguageCodeBytes(); + /** * * diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto index cccc576a..caf0a28f 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto +++ b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto @@ -21,6 +21,7 @@ import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/cloud/talent/v4beta1/common.proto"; import "google/protobuf/duration.proto"; +import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; import "google/type/date.proto"; @@ -41,6 +42,17 @@ message JobQuery { // The maximum number of allowed characters is 255. string query = 1; + // The language code of [query][google.cloud.talent.v4beta1.JobQuery.query]. + // For example, "en-US". This field helps to better interpret the query. + // + // If a value isn't specified, the query language code is automatically + // detected, which may not be accurate. + // + // Language code should be in BCP-47 format, such as "en-US" or "sr-Latn". + // For more information, see + // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). + string query_language_code = 14; + // This filter specifies the company entities to search against. // // If a value isn't specified, jobs are searched for against all diff --git a/synth.metadata b/synth.metadata index 8b9ca261..91a53946 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-10-26T07:56:37.017686Z", + "updateTime": "2019-10-30T07:53:41.441968Z", "sources": [ { "generator": { "name": "artman", - "version": "0.40.3", - "dockerImage": "googleapis/artman@sha256:c805f50525f5f557886c94ab76f56eaa09cb1da58c3ee95111fd34259376621a" + "version": "0.41.0", + "dockerImage": "googleapis/artman@sha256:75b38a3b073a7b243545f2332463096624c802bb1e56b8cb6f22ba1ecd325fa9" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "d27a44798506d28e8e6d874bd128da43f45f74c4", - "internalRef": "276716410" + "sha": "7c4cf35d5fe3b8ad664bd219edd6d9f28a788b64", + "internalRef": "277334937" } }, {