Class JobQuery (2.42.0)

public final class JobQuery extends GeneratedMessageV3 implements JobQueryOrBuilder

The query required to perform a search query.

Protobuf type google.cloud.talent.v4.JobQuery

Implements

JobQueryOrBuilder

Static Fields

COMMUTE_FILTER_FIELD_NUMBER

public static final int COMMUTE_FILTER_FIELD_NUMBER
Field Value
TypeDescription
int

COMPANIES_FIELD_NUMBER

public static final int COMPANIES_FIELD_NUMBER
Field Value
TypeDescription
int

COMPANY_DISPLAY_NAMES_FIELD_NUMBER

public static final int COMPANY_DISPLAY_NAMES_FIELD_NUMBER
Field Value
TypeDescription
int

COMPENSATION_FILTER_FIELD_NUMBER

public static final int COMPENSATION_FILTER_FIELD_NUMBER
Field Value
TypeDescription
int

CUSTOM_ATTRIBUTE_FILTER_FIELD_NUMBER

public static final int CUSTOM_ATTRIBUTE_FILTER_FIELD_NUMBER
Field Value
TypeDescription
int

DISABLE_SPELL_CHECK_FIELD_NUMBER

public static final int DISABLE_SPELL_CHECK_FIELD_NUMBER
Field Value
TypeDescription
int

EMPLOYMENT_TYPES_FIELD_NUMBER

public static final int EMPLOYMENT_TYPES_FIELD_NUMBER
Field Value
TypeDescription
int

EXCLUDED_JOBS_FIELD_NUMBER

public static final int EXCLUDED_JOBS_FIELD_NUMBER
Field Value
TypeDescription
int

JOB_CATEGORIES_FIELD_NUMBER

public static final int JOB_CATEGORIES_FIELD_NUMBER
Field Value
TypeDescription
int

LANGUAGE_CODES_FIELD_NUMBER

public static final int LANGUAGE_CODES_FIELD_NUMBER
Field Value
TypeDescription
int

LOCATION_FILTERS_FIELD_NUMBER

public static final int LOCATION_FILTERS_FIELD_NUMBER
Field Value
TypeDescription
int

PUBLISH_TIME_RANGE_FIELD_NUMBER

public static final int PUBLISH_TIME_RANGE_FIELD_NUMBER
Field Value
TypeDescription
int

QUERY_FIELD_NUMBER

public static final int QUERY_FIELD_NUMBER
Field Value
TypeDescription
int

QUERY_LANGUAGE_CODE_FIELD_NUMBER

public static final int QUERY_LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static JobQuery getDefaultInstance()
Returns
TypeDescription
JobQuery

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static JobQuery.Builder newBuilder()
Returns
TypeDescription
JobQuery.Builder

newBuilder(JobQuery prototype)

public static JobQuery.Builder newBuilder(JobQuery prototype)
Parameter
NameDescription
prototypeJobQuery
Returns
TypeDescription
JobQuery.Builder

parseDelimitedFrom(InputStream input)

public static JobQuery parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
JobQuery
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static JobQuery parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobQuery
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static JobQuery parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
JobQuery
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static JobQuery parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobQuery
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static JobQuery parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
JobQuery
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static JobQuery parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobQuery
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static JobQuery parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
JobQuery
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static JobQuery parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobQuery
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static JobQuery parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
JobQuery
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static JobQuery parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobQuery
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static JobQuery parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
JobQuery
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static JobQuery parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobQuery
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<JobQuery> parser()
Returns
TypeDescription
Parser<JobQuery>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCommuteFilter()

public CommuteFilter getCommuteFilter()

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. In this case, location_filters is ignored.

Currently we don't support sorting by commute time.

.google.cloud.talent.v4.CommuteFilter commute_filter = 5;

Returns
TypeDescription
CommuteFilter

The commuteFilter.

getCommuteFilterOrBuilder()

public CommuteFilterOrBuilder getCommuteFilterOrBuilder()

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. In this case, location_filters is ignored.

Currently we don't support sorting by commute time.

.google.cloud.talent.v4.CommuteFilter commute_filter = 5;

Returns
TypeDescription
CommuteFilterOrBuilder

getCompanies(int index)

public String getCompanies(int index)

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.

repeated string companies = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The companies at the given index.

getCompaniesBytes(int index)

public ByteString getCompaniesBytes(int index)

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.

repeated string companies = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the companies at the given index.

getCompaniesCount()

public int getCompaniesCount()

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.

repeated string companies = 2;

Returns
TypeDescription
int

The count of companies.

getCompaniesList()

public ProtocolStringList getCompaniesList()

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.

repeated string companies = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the companies.

getCompanyDisplayNames(int index)

public String getCompanyDisplayNames(int index)

This filter specifies the company 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.

repeated string company_display_names = 6;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The companyDisplayNames at the given index.

getCompanyDisplayNamesBytes(int index)

public ByteString getCompanyDisplayNamesBytes(int index)

This filter specifies the company 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.

repeated string company_display_names = 6;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the companyDisplayNames at the given index.

getCompanyDisplayNamesCount()

public int getCompanyDisplayNamesCount()

This filter specifies the company 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.

repeated string company_display_names = 6;

Returns
TypeDescription
int

The count of companyDisplayNames.

getCompanyDisplayNamesList()

public ProtocolStringList getCompanyDisplayNamesList()

This filter specifies the company 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.

repeated string company_display_names = 6;

Returns
TypeDescription
ProtocolStringList

A list containing the companyDisplayNames.

getCompensationFilter()

public CompensationFilter getCompensationFilter()

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.

.google.cloud.talent.v4.CompensationFilter compensation_filter = 7;

Returns
TypeDescription
CompensationFilter

The compensationFilter.

getCompensationFilterOrBuilder()

public CompensationFilterOrBuilder getCompensationFilterOrBuilder()

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.

.google.cloud.talent.v4.CompensationFilter compensation_filter = 7;

Returns
TypeDescription
CompensationFilterOrBuilder

getCustomAttributeFilter()

public String getCustomAttributeFilter()

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 < 10000 bytes in length.

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

string custom_attribute_filter = 8;

Returns
TypeDescription
String

The customAttributeFilter.

getCustomAttributeFilterBytes()

public ByteString getCustomAttributeFilterBytes()

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 < 10000 bytes in length.

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

string custom_attribute_filter = 8;

Returns
TypeDescription
ByteString

The bytes for customAttributeFilter.

getDefaultInstanceForType()

public JobQuery getDefaultInstanceForType()
Returns
TypeDescription
JobQuery

getDisableSpellCheck()

public boolean getDisableSpellCheck()

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.

bool disable_spell_check = 9;

Returns
TypeDescription
boolean

The disableSpellCheck.

getEmploymentTypes(int index)

public EmploymentType getEmploymentTypes(int index)

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.

repeated .google.cloud.talent.v4.EmploymentType employment_types = 10;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
EmploymentType

The employmentTypes at the given index.

getEmploymentTypesCount()

public int getEmploymentTypesCount()

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.

repeated .google.cloud.talent.v4.EmploymentType employment_types = 10;

Returns
TypeDescription
int

The count of employmentTypes.

getEmploymentTypesList()

public List<EmploymentType> getEmploymentTypesList()

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.

repeated .google.cloud.talent.v4.EmploymentType employment_types = 10;

Returns
TypeDescription
List<EmploymentType>

A list containing the employmentTypes.

getEmploymentTypesValue(int index)

public int getEmploymentTypesValue(int index)

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.

repeated .google.cloud.talent.v4.EmploymentType employment_types = 10;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of employmentTypes at the given index.

getEmploymentTypesValueList()

public List<Integer> getEmploymentTypesValueList()

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.

repeated .google.cloud.talent.v4.EmploymentType employment_types = 10;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for employmentTypes.

getExcludedJobs(int index)

public String getExcludedJobs(int index)

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

At most 400 excluded job names are allowed.

repeated string excluded_jobs = 13;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The excludedJobs at the given index.

getExcludedJobsBytes(int index)

public ByteString getExcludedJobsBytes(int index)

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

At most 400 excluded job names are allowed.

repeated string excluded_jobs = 13;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the excludedJobs at the given index.

getExcludedJobsCount()

public int getExcludedJobsCount()

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

At most 400 excluded job names are allowed.

repeated string excluded_jobs = 13;

Returns
TypeDescription
int

The count of excludedJobs.

getExcludedJobsList()

public ProtocolStringList getExcludedJobsList()

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

At most 400 excluded job names are allowed.

repeated string excluded_jobs = 13;

Returns
TypeDescription
ProtocolStringList

A list containing the excludedJobs.

getJobCategories(int index)

public JobCategory getJobCategories(int index)

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

repeated .google.cloud.talent.v4.JobCategory job_categories = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
JobCategory

The jobCategories at the given index.

getJobCategoriesCount()

public int getJobCategoriesCount()

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

repeated .google.cloud.talent.v4.JobCategory job_categories = 4;

Returns
TypeDescription
int

The count of jobCategories.

getJobCategoriesList()

public List<JobCategory> getJobCategoriesList()

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

repeated .google.cloud.talent.v4.JobCategory job_categories = 4;

Returns
TypeDescription
List<JobCategory>

A list containing the jobCategories.

getJobCategoriesValue(int index)

public int getJobCategoriesValue(int index)

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

repeated .google.cloud.talent.v4.JobCategory job_categories = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of jobCategories at the given index.

getJobCategoriesValueList()

public List<Integer> getJobCategoriesValueList()

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

repeated .google.cloud.talent.v4.JobCategory job_categories = 4;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for jobCategories.

getLanguageCodes(int index)

public String getLanguageCodes(int index)

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.

repeated string language_codes = 11;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The languageCodes at the given index.

getLanguageCodesBytes(int index)

public ByteString getLanguageCodesBytes(int index)

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.

repeated string language_codes = 11;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the languageCodes at the given index.

getLanguageCodesCount()

public int getLanguageCodesCount()

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.

repeated string language_codes = 11;

Returns
TypeDescription
int

The count of languageCodes.

getLanguageCodesList()

public ProtocolStringList getLanguageCodesList()

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.

repeated string language_codes = 11;

Returns
TypeDescription
ProtocolStringList

A list containing the languageCodes.

getLocationFilters(int index)

public LocationFilter getLocationFilters(int index)

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.

repeated .google.cloud.talent.v4.LocationFilter location_filters = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocationFilter

getLocationFiltersCount()

public int getLocationFiltersCount()

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.

repeated .google.cloud.talent.v4.LocationFilter location_filters = 3;

Returns
TypeDescription
int

getLocationFiltersList()

public List<LocationFilter> getLocationFiltersList()

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.

repeated .google.cloud.talent.v4.LocationFilter location_filters = 3;

Returns
TypeDescription
List<LocationFilter>

getLocationFiltersOrBuilder(int index)

public LocationFilterOrBuilder getLocationFiltersOrBuilder(int index)

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.

repeated .google.cloud.talent.v4.LocationFilter location_filters = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocationFilterOrBuilder

getLocationFiltersOrBuilderList()

public List<? extends LocationFilterOrBuilder> getLocationFiltersOrBuilderList()

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.

repeated .google.cloud.talent.v4.LocationFilter location_filters = 3;

Returns
TypeDescription
List<? extends com.google.cloud.talent.v4.LocationFilterOrBuilder>

getParserForType()

public Parser<JobQuery> getParserForType()
Returns
TypeDescription
Parser<JobQuery>
Overrides

getPublishTimeRange()

public TimestampRange getPublishTimeRange()

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

.google.cloud.talent.v4.TimestampRange publish_time_range = 12;

Returns
TypeDescription
TimestampRange

The publishTimeRange.

getPublishTimeRangeOrBuilder()

public TimestampRangeOrBuilder getPublishTimeRangeOrBuilder()

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

.google.cloud.talent.v4.TimestampRange publish_time_range = 12;

Returns
TypeDescription
TimestampRangeOrBuilder

getQuery()

public String getQuery()

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

The maximum number of allowed characters is 255.

string query = 1;

Returns
TypeDescription
String

The query.

getQueryBytes()

public ByteString getQueryBytes()

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

The maximum number of allowed characters is 255.

string query = 1;

Returns
TypeDescription
ByteString

The bytes for query.

getQueryLanguageCode()

public String getQueryLanguageCode()

The language code of 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.

string query_language_code = 14;

Returns
TypeDescription
String

The queryLanguageCode.

getQueryLanguageCodeBytes()

public ByteString getQueryLanguageCodeBytes()

The language code of 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.

string query_language_code = 14;

Returns
TypeDescription
ByteString

The bytes for queryLanguageCode.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasCommuteFilter()

public boolean hasCommuteFilter()

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. In this case, location_filters is ignored.

Currently we don't support sorting by commute time.

.google.cloud.talent.v4.CommuteFilter commute_filter = 5;

Returns
TypeDescription
boolean

Whether the commuteFilter field is set.

hasCompensationFilter()

public boolean hasCompensationFilter()

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.

.google.cloud.talent.v4.CompensationFilter compensation_filter = 7;

Returns
TypeDescription
boolean

Whether the compensationFilter field is set.

hasPublishTimeRange()

public boolean hasPublishTimeRange()

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

.google.cloud.talent.v4.TimestampRange publish_time_range = 12;

Returns
TypeDescription
boolean

Whether the publishTimeRange field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public JobQuery.Builder newBuilderForType()
Returns
TypeDescription
JobQuery.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected JobQuery.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
JobQuery.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public JobQuery.Builder toBuilder()
Returns
TypeDescription
JobQuery.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException