Skip to content

Commit

Permalink
feat: Add a new operator on companyDisplayNames filter to further sup…
Browse files Browse the repository at this point in the history
…port fuzzy match by treating input value as a multi word token (#422)

* feat: Add a new operator on companyDisplayNames filter to further support fuzzy match by treating input value as a multi word token
feat: Add a new option TELECOMMUTE_JOBS_EXCLUDED under enum TelecommutePreference to completely filter out the telecommute jobs in response
docs: Deprecate option TELECOMMUTE_EXCLUDED under enum TelecommutePreference

PiperOrigin-RevId: 450699841

Source-Link: googleapis/googleapis@c6fb6ac

Source-Link: googleapis/googleapis-gen@6b27e78
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmIyN2U3ODc0OWM2M2ViNGQyMWVhOTIwYWMxMGJkYzVjN2JhNGNhZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jun 3, 2022
1 parent 0d0a8c7 commit 8b7de15
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,22 @@ message JobQuery {

// 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 (case sensitive).
// exactly.
//
// Alternatively, if the value being searched for is wrapped in
// `SUBSTRING_MATCH([value])`, the company name must contain a case
// insensitive substring match of the value. Using this function may increase
// latency.
// 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 Values: `["Google LLC", "SUBSTRING_MATCH(google)"]`
// 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.
Expand Down Expand Up @@ -193,11 +201,15 @@ message LocationFilter {
// Default value if the telecommute preference isn't specified.
TELECOMMUTE_PREFERENCE_UNSPECIFIED = 0;

// Exclude telecommute jobs.
TELECOMMUTE_EXCLUDED = 1;
// Deprecated: Ignore telecommute status of jobs. Use
// TELECOMMUTE_JOBS_EXCLUDED if want to exclude telecommute jobs.
TELECOMMUTE_EXCLUDED = 1 [deprecated = true];

// Allow telecommute jobs.
TELECOMMUTE_ALLOWED = 2;

// Exclude telecommute jobs.
TELECOMMUTE_JOBS_EXCLUDED = 3;
}

// The address name, such as "Mountain View" or "Bay Area".
Expand Down Expand Up @@ -231,7 +243,7 @@ message LocationFilter {

// Allows the client to return jobs without a
// set location, specifically, telecommuting jobs (telecommuting is considered
// by the service as a special location.
// 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
Expand Down
3 changes: 2 additions & 1 deletion packages/google-cloud-talent/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions packages/google-cloud-talent/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/google-cloud-talent/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b7de15

Please sign in to comment.