Skip to content

Commit cb38285

Browse files
Google APIscopybara-github
authored andcommitted
docs: Added functionality in the companyDisplayNames filter to support fuzzy matching
PiperOrigin-RevId: 435467010
1 parent 1b146e7 commit cb38285

12 files changed

Lines changed: 138 additions & 135 deletions

google/cloud/talent/v4/common.proto

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -22,7 +22,6 @@ import "google/protobuf/wrappers.proto";
2222
import "google/type/latlng.proto";
2323
import "google/type/money.proto";
2424
import "google/type/postal_address.proto";
25-
import "google/api/annotations.proto";
2625

2726
option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent";
2827
option java_multiple_files = true;
@@ -701,20 +700,6 @@ message CompensationInfo {
701700
google.protobuf.DoubleValue expected_units_per_year = 6;
702701
}
703702

704-
// Compensation range.
705-
message CompensationRange {
706-
// The maximum amount of compensation. If left empty, the value is set
707-
// to a maximal compensation value and the currency code is set to
708-
// match the [currency code][google.type.Money.currency_code] of
709-
// min_compensation.
710-
google.type.Money max_compensation = 2;
711-
712-
// The minimum amount of compensation. If left empty, the value is set
713-
// to zero and the currency code is set to match the
714-
// [currency code][google.type.Money.currency_code] of max_compensation.
715-
google.type.Money min_compensation = 1;
716-
}
717-
718703
// The type of compensation.
719704
//
720705
// For compensation amounts specified in non-monetary amounts,
@@ -790,6 +775,20 @@ message CompensationInfo {
790775
OTHER_COMPENSATION_UNIT = 7;
791776
}
792777

778+
// Compensation range.
779+
message CompensationRange {
780+
// The maximum amount of compensation. If left empty, the value is set
781+
// to a maximal compensation value and the currency code is set to
782+
// match the [currency code][google.type.Money.currency_code] of
783+
// min_compensation.
784+
google.type.Money max_compensation = 2;
785+
786+
// The minimum amount of compensation. If left empty, the value is set
787+
// to zero and the currency code is set to match the
788+
// [currency code][google.type.Money.currency_code] of max_compensation.
789+
google.type.Money min_compensation = 1;
790+
}
791+
793792
// Job compensation information.
794793
//
795794
// At most one entry can be of type

google/cloud/talent/v4/company.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -19,7 +19,6 @@ package google.cloud.talent.v4;
1919
import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/cloud/talent/v4/common.proto";
22-
import "google/api/annotations.proto";
2322

2423
option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent";
2524
option java_multiple_files = true;

google/cloud/talent/v4/company_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/cloud/talent/v4/completion_service.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -17,10 +17,10 @@ syntax = "proto3";
1717
package google.cloud.talent.v4;
1818

1919
import "google/api/annotations.proto";
20+
import "google/api/client.proto";
2021
import "google/api/field_behavior.proto";
2122
import "google/api/resource.proto";
2223
import "google/cloud/talent/v4/common.proto";
23-
import "google/api/client.proto";
2424

2525
option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent";
2626
option java_multiple_files = true;

google/cloud/talent/v4/event.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@ package google.cloud.talent.v4;
1818

1919
import "google/api/field_behavior.proto";
2020
import "google/protobuf/timestamp.proto";
21-
import "google/api/annotations.proto";
2221

2322
option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent";
2423
option java_multiple_files = true;

google/cloud/talent/v4/event_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/cloud/talent/v4/filters.proto

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -21,7 +21,6 @@ import "google/cloud/talent/v4/common.proto";
2121
import "google/protobuf/duration.proto";
2222
import "google/type/latlng.proto";
2323
import "google/type/timeofday.proto";
24-
import "google/api/annotations.proto";
2524

2625
option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent";
2726
option java_multiple_files = true;
@@ -95,8 +94,16 @@ message JobQuery {
9594
// Currently we don't support sorting by commute time.
9695
CommuteFilter commute_filter = 5;
9796

98-
// This filter specifies the exact company [Company.display_name][google.cloud.talent.v4.Company.display_name]
99-
// of the jobs to search against.
97+
// This filter specifies the company [Company.display_name][google.cloud.talent.v4.Company.display_name]
98+
// of the jobs to search against. The company name must match the value
99+
// exactly (case sensitive).
100+
//
101+
// Alternatively, if the value being searched for is wrapped in
102+
// `SUBSTRING_MATCH([value])`, the company name must contain a case
103+
// insensitive substring match of the value. Using this function may increase
104+
// latency.
105+
//
106+
// Sample Values: `["Google LLC", "SUBSTRING_MATCH(google)"]`
100107
//
101108
// If a value isn't specified, jobs within the search results are
102109
// associated with any company.
@@ -229,8 +236,10 @@ message LocationFilter {
229236
// If this field is set to [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
230237
// telecommuting jobs are searched, and [address][google.cloud.talent.v4.LocationFilter.address] and [lat_lng][google.cloud.talent.v4.LocationFilter.lat_lng] are
231238
// ignored. If not set or set to
232-
// [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], telecommute job are not
233-
// searched.
239+
// [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], the telecommute status of
240+
// the jobs is ignored. Jobs that have [PostingRegion.TELECOMMUTE][google.cloud.talent.v4.PostingRegion.TELECOMMUTE] and have
241+
// additional [Job.addresses][google.cloud.talent.v4.Job.addresses] may still be matched based on other location
242+
// filters using [address][google.cloud.talent.v4.LocationFilter.address] or [latlng][].
234243
//
235244
// This filter can be used by itself to search exclusively for telecommuting
236245
// jobs, or it can be combined with another location

google/cloud/talent/v4/histogram.proto

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -16,8 +16,6 @@ syntax = "proto3";
1616

1717
package google.cloud.talent.v4;
1818

19-
import "google/api/annotations.proto";
20-
2119
option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent";
2220
option java_multiple_files = true;
2321
option java_outer_classname = "HistogramProto";

google/cloud/talent/v4/job.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -20,7 +20,6 @@ import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/cloud/talent/v4/common.proto";
2222
import "google/protobuf/timestamp.proto";
23-
import "google/api/annotations.proto";
2423

2524
option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent";
2625
option java_multiple_files = true;

0 commit comments

Comments
 (0)