Class: Google::Cloud::Talent::V4beta1::JobQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb

Overview

Input only.

The query required to perform a search query.

Instance Attribute Summary collapse

Instance Attribute Details

#commute_filterGoogle::Cloud::Talent::V4beta1::CommuteFilter

Returns Optional.

Allows filtering jobs by commute time with different travel methods (for example, driving or public transit). Note: This only works with [COMMUTE MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is ignored.

Currently we don't support sorting by commute time.

Returns:

  • (Google::Cloud::Talent::V4beta1::CommuteFilter)

    Optional.

    Allows filtering jobs by commute time with different travel methods (for example, driving or public transit). Note: This only works with [COMMUTE MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is ignored.

    Currently we don't support sorting by commute time.



187
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb', line 187

class JobQuery; end

#companiesArray<String>

Returns Optional.

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/api-test-project/tenants/foo/companies/bar".

Tenant id is optional and the default tenant is used if unspecified, for example, "projects/api-test-project/companies/bar".

At most 20 company filters are allowed.

Returns:

  • (Array<String>)

    Optional.

    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/api-test-project/tenants/foo/companies/bar".

    Tenant id is optional and the default tenant is used if unspecified, for example, "projects/api-test-project/companies/bar".

    At most 20 company filters are allowed.



187
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb', line 187

class JobQuery; end

#company_display_namesArray<String>

Returns Optional.

This filter specifies the exact [company display name][Company.display_name] of the jobs to search against.

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.

Returns:

  • (Array<String>)

    Optional.

    This filter specifies the exact [company display name][Company.display_name] of the jobs to search against.

    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.



187
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb', line 187

class JobQuery; end

#compensation_filterGoogle::Cloud::Talent::V4beta1::CompensationFilter

Returns Optional.

This search filter is applied only to 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.

Returns:



187
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb', line 187

class JobQuery; end

#custom_attribute_filterString

Returns Optional.

This filter specifies a structured syntax to match against the 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 < 3000 bytes in length.

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

Returns:

  • (String)

    Optional.

    This filter specifies a structured syntax to match against the 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 < 3000 bytes in length.

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



187
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb', line 187

class JobQuery; end

#disable_spell_checktrue, false

Returns Optional.

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.

Returns:

  • (true, false)

    Optional.

    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.



187
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb', line 187

class JobQuery; end

#employment_typesArray<Google::Cloud::Talent::V4beta1::EmploymentType>

Returns Optional.

The employment type filter specifies the employment type of jobs to search against, such as 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.

Returns:

  • (Array<Google::Cloud::Talent::V4beta1::EmploymentType>)

    Optional.

    The employment type filter specifies the employment type of jobs to search against, such as 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.



187
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb', line 187

class JobQuery; end

#excluded_jobsArray<String>

Returns Optional.

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

At most 400 excluded job names are allowed.

Returns:

  • (Array<String>)

    Optional.

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

    At most 400 excluded job names are allowed.



187
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb', line 187

class JobQuery; end

#job_categoriesArray<Google::Cloud::Talent::V4beta1::JobCategory>

Returns Optional.

The category filter specifies the categories of jobs to search against. See Category 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.

Returns:

  • (Array<Google::Cloud::Talent::V4beta1::JobCategory>)

    Optional.

    The category filter specifies the categories of jobs to search against. See Category 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.



187
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb', line 187

class JobQuery; end

#language_codesArray<String>

Returns Optional.

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.

At most 10 language code filters are allowed.

Returns:

  • (Array<String>)

    Optional.

    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.

    At most 10 language code filters are allowed.



187
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb', line 187

class JobQuery; end

#location_filtersArray<Google::Cloud::Talent::V4beta1::LocationFilter>

Returns Optional.

The location filter specifies geo-regions containing the jobs to search against. See 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 parameter, the maximum provided distance is used for all locations.

At most 5 location filters are allowed.

Returns:

  • (Array<Google::Cloud::Talent::V4beta1::LocationFilter>)

    Optional.

    The location filter specifies geo-regions containing the jobs to search against. See 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 parameter, the maximum provided distance is used for all locations.

    At most 5 location filters are allowed.



187
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb', line 187

class JobQuery; end

#publish_time_rangeGoogle::Cloud::Talent::V4beta1::TimestampRange

Returns Optional.

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

Returns:



187
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb', line 187

class JobQuery; end

#queryString

Returns Optional.

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

The maximum number of allowed characters is 255.

Returns:

  • (String)

    Optional.

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

    The maximum number of allowed characters is 255.



187
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb', line 187

class JobQuery; end