NAME

Google::Cloud::Talent::V4::Filters - Compiled Protocol Buffers messages for google/cloud/talent/v4/filters.proto

SYNOPSIS

use Google::Cloud::Talent::V4::Filters;

my $msg = Google::Cloud::Talent::V4::Filters::JobQuery->new({
    query => $query,
    query_language_code => $query_language_code,
    companies => $companies,
    location_filters => $location_filters,
});

# Read or update a field
my $val = $msg->query();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Talent::V4::Filters::JobQuery->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/talent/v4/filters.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Talent::V4::Filters::JobQuery

The query required to perform a search query.

Inherits from Protobuf::Message.

Accessors

  • $msg->query() / $msg->query($value)

    Type: String

    The query string that matches against the job title, description, and location fields.

    The maximum number of allowed characters is 255.

  • $msg->query_language_code() / $msg->query_language_code($value)

    Type: String

    The language code of [query][google.cloud.talent.v4.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).

  • $msg->companies() / $msg->companies($value)

    Type: String

    This filter specifies the company entities to search against.

    If a value isn't specified, jobs are searched for against all companies.

    If multiple values are specified, jobs are searched against the companies specified.

    The format is "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}". For example, "projects/foo/tenants/bar/companies/baz".

    At most 20 company filters are allowed.

  • $msg->location_filters() / $msg->location_filters($value)

    Type: Message (Google::Cloud::Talent::V4::Filters::LocationFilter)

    The location filter specifies geo-regions containing the jobs to search against. See [LocationFilter][google.cloud.talent.v4.LocationFilter] for more information.

    If a location value isn't specified, jobs fitting the other search criteria are retrieved regardless of where they're located.

    If multiple values are specified, jobs are retrieved from any of the specified locations. If different values are specified for the [LocationFilter.distance_in_miles][google.cloud.talent.v4.LocationFilter.distance_in_miles] parameter, the maximum provided distance is used for all locations.

    At most 5 location filters are allowed.

  • $msg->job_categories() / $msg->job_categories($value)

    Type: Enum (Google::Cloud::Talent::V4::JobCategory)

    The category filter specifies the categories of jobs to search against. See [JobCategory][google.cloud.talent.v4.JobCategory] for more information.

    If a value isn't specified, jobs from any category are searched against.

    If multiple values are specified, jobs from any of the specified categories are searched against.

  • $msg->commute_filter() / $msg->commute_filter($value)

    Type: Message (Google::Cloud::Talent::V4::Filters::CommuteFilter)

    Allows filtering jobs by commute time with different travel methods (for example, driving or public transit).

    Note: This only works when you specify a [CommuteMethod][google.cloud.talent.v4.CommuteMethod]. In this case, [location_filters][google.cloud.talent.v4.JobQuery.location_filters] is ignored.

    Currently we don't support sorting by commute time.
  • $msg->company_display_names() / $msg->company_display_names($value)

    Type: String

    This filter specifies the company [Company.display_name][google.cloud.talent.v4.Company.display_name] of the jobs to search against. The company name must match the value exactly.

    Alternatively, the value being searched for can be wrapped in different match operators. `SUBSTRING_MATCH([value])` The company name must contain a case insensitive substring match of the value. Using this function may increase latency.

    Sample Value: `SUBSTRING_MATCH(google)`

    `MULTI_WORD_TOKEN_MATCH([value])` The value will be treated as a multi word token and the company name must contain a case insensitive match of the value. Using this function may increase latency.

    Sample Value: `MULTI_WORD_TOKEN_MATCH(google)`

    If a value isn't specified, jobs within the search results are associated with any company.

    If multiple values are specified, jobs within the search results may be associated with any of the specified companies.

    At most 20 company display name filters are allowed.

  • $msg->compensation_filter() / $msg->compensation_filter($value)

    Type: Message (Google::Cloud::Talent::V4::Filters::CompensationFilter)

    This search filter is applied only to [Job.compensation_info][google.cloud.talent.v4.Job.compensation_info]. For example, if the filter is specified as "Hourly job with per-hour compensation > $15", only jobs meeting these criteria are searched. If a filter isn't defined, all open jobs are searched.

  • $msg->custom_attribute_filter() / $msg->custom_attribute_filter($value)

    Type: String

    This filter specifies a structured syntax to match against the [Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes] marked as `filterable`.

    The syntax for this expression is a subset of SQL syntax.

    Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the left of the operator is a custom field key and the right of the operator is a number or a quoted string. You must escape backslash (\\) and quote (\") characters.

    Supported functions are `LOWER([field_name])` to perform a case insensitive match and `EMPTY([field_name])` to filter on the existence of a key.

    Boolean expressions (AND/OR/NOT) are supported up to 3 levels of nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100 comparisons or functions are allowed in the expression. The expression must be < 10000 bytes in length.

    Sample Query: `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND driving_years > 10`

  • $msg->disable_spell_check() / $msg->disable_spell_check($value)

    Type: Bool

    This flag controls the spell-check feature. If false, the service attempts to correct a misspelled query, for example, "enginee" is corrected to "engineer".

    Defaults to false: a spell check is performed.

  • $msg->employment_types() / $msg->employment_types($value)

    Type: Enum (Google::Cloud::Talent::V4::EmploymentType)

    The employment type filter specifies the employment type of jobs to search against, such as [EmploymentType.FULL_TIME][google.cloud.talent.v4.EmploymentType.FULL_TIME].

    If a value isn't specified, jobs in the search results includes any employment type.

    If multiple values are specified, jobs in the search results include any of the specified employment types.

  • $msg->language_codes() / $msg->language_codes($value)

    Type: String

    This filter specifies the locale of jobs to search against, for example, "en-US".

    If a value isn't specified, the search results can contain jobs in any locale.

    Language codes 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).

    At most 10 language code filters are allowed.

  • $msg->publish_time_range() / $msg->publish_time_range($value)

    Type: Message (Google::Cloud::Talent::V4::Common::TimestampRange)

    Jobs published within a range specified by this filter are searched against.

  • $msg->excluded_jobs() / $msg->excluded_jobs($value)

    Type: String

    This filter specifies a list of job names to be excluded during search.

    At most 400 excluded job names are allowed.

Google::Cloud::Talent::V4::Filters::LocationFilter

Geographic region of the search.

Inherits from Protobuf::Message.

Accessors

  • $msg->address() / $msg->address($value)

    Type: String

    The address name, such as "Mountain View" or "Bay Area".

  • $msg->region_code() / $msg->region_code($value)

    Type: String

    CLDR region code of the country/region. This field may be used in two ways:

    1) If telecommute preference is not set, this field is used address ambiguity of the user-input address. For example, "Liverpool" may refer to "Liverpool, NY, US" or "Liverpool, UK". This region code biases the address resolution toward a specific country or territory. If this field is not set, address resolution is biased toward the United States by default.

    2) If telecommute preference is set to TELECOMMUTE_ALLOWED, the telecommute location filter will be limited to the region specified in this field. If this field is not set, the telecommute job locations will not be

    See https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/territory_information.html for details. Example: "CH" for Switzerland.

  • $msg->lat_lng() / $msg->lat_lng($value)

    Type: Message (Google::Type::Latlng::LatLng)

    The latitude and longitude of the geographic center to search from. This field is ignored if `address` is provided.

  • $msg->distance_in_miles() / $msg->distance_in_miles($value)

    Type: Double

    The distance_in_miles is applied when the location being searched for is identified as a city or smaller. This field is ignored if the location being searched for is a state or larger.

  • $msg->telecommute_preference() / $msg->telecommute_preference($value)

    Type: Enum (Google::Cloud::Talent::V4::LocationFilter::TelecommutePreference)

    Allows the client to return jobs without a set location, specifically, telecommuting jobs (telecommuting is considered by the service as a special location). [Job.posting_region][google.cloud.talent.v4.Job.posting_region] indicates if a job permits telecommuting. If this field is set to [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED], telecommuting jobs are searched, and [address][google.cloud.talent.v4.LocationFilter.address] and [lat_lng][google.cloud.talent.v4.LocationFilter.lat_lng] are ignored. If not set or set to [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], the telecommute status of the jobs is ignored. Jobs that have [PostingRegion.TELECOMMUTE][google.cloud.talent.v4.PostingRegion.TELECOMMUTE] and have additional [Job.addresses][google.cloud.talent.v4.Job.addresses] may still be matched based on other location filters using [address][google.cloud.talent.v4.LocationFilter.address] or [lat_lng][google.cloud.talent.v4.LocationFilter.lat_lng].

    This filter can be used by itself to search exclusively for telecommuting jobs, or it can be combined with another location filter to search for a combination of job locations, such as "Mountain View" or "telecommuting" jobs. However, when used in combination with other location filters, telecommuting jobs can be treated as less relevant than other jobs in the search response.

    This field is only used for job search requests.

Enum: LocationFilter::TelecommutePreference

  • TELECOMMUTE_PREFERENCE_UNSPECIFIED => 0

  • TELECOMMUTE_EXCLUDED => 1

  • TELECOMMUTE_ALLOWED => 2

  • TELECOMMUTE_JOBS_EXCLUDED => 3

Google::Cloud::Talent::V4::Filters::CompensationFilter

Filter on job compensation type and amount.

Inherits from Protobuf::Message.

Accessors

Enum: CompensationFilter::FilterType

  • FILTER_TYPE_UNSPECIFIED => 0

  • UNIT_ONLY => 1

  • UNIT_AND_AMOUNT => 2

  • ANNUALIZED_BASE_AMOUNT => 3

  • ANNUALIZED_TOTAL_AMOUNT => 4

Google::Cloud::Talent::V4::Filters::CommuteFilter

Parameters needed for commute search.

Inherits from Protobuf::Message.

Accessors

  • $msg->commute_method() / $msg->commute_method($value)

    Type: Enum (Google::Cloud::Talent::V4::CommuteMethod)

    Required. The method of transportation to calculate the commute time for.

  • $msg->start_coordinates() / $msg->start_coordinates($value)

    Type: Message (Google::Type::Latlng::LatLng)

    Required. The latitude and longitude of the location to calculate the commute time from.

  • $msg->travel_duration() / $msg->travel_duration($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Required. The maximum travel time in seconds. The maximum allowed value is `3600s` (one hour). Format is `123s`.

  • $msg->allow_imprecise_addresses() / $msg->allow_imprecise_addresses($value)

    Type: Bool

    If `true`, jobs without street level addresses may also be returned. For city level addresses, the city center is used. For state and coarser level addresses, text matching is used. If this field is set to `false` or isn't specified, only jobs that include street level addresses will be returned by commute search.

  • $msg->road_traffic() / $msg->road_traffic($value)

    Type: Enum (Google::Cloud::Talent::V4::CommuteFilter::RoadTraffic)

    Specifies the traffic density to use when calculating commute time.

  • $msg->departure_time() / $msg->departure_time($value)

    Type: Message (Google::Type::Timeofday::TimeOfDay)

    The departure time used to calculate traffic impact, represented as [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.

    Currently traffic model is restricted to hour level resolution.

Enum: CommuteFilter::RoadTraffic

  • ROAD_TRAFFIC_UNSPECIFIED => 0

  • TRAFFIC_FREE => 1

  • BUSY_HOUR => 2

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Talent::V4::Filters::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.