Skip to content

Commit

Permalink
feat: Add new commute methods in Search APIs feat: Add new histogram …
Browse files Browse the repository at this point in the history
…type 'publish_time_in_day' feat: Support filtering by requisitionId is ListJobs API

PiperOrigin-RevId: 391131412

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Aug 16 14:03:17 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: a6c8dc7f72206eaff566f22593213cd9196d2bf2
Source-Link: googleapis/googleapis@a6c8dc7
  • Loading branch information
yoshi-automation authored and jskeet committed Aug 17, 2021
1 parent 1375d92 commit 4dfd11f
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 21 deletions.
27 changes: 21 additions & 6 deletions apis/Google.Cloud.Talent.V4/Google.Cloud.Talent.V4/Common.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,13 @@ public static partial class CommonReflection {
"T05MWRABEhYKElNIQVJFRF9XSVRIX0dPT0dMRRACEhYKElNIQVJFRF9XSVRI",
"X1BVQkxJQxADGgIYASpxChBIdG1sU2FuaXRpemF0aW9uEiEKHUhUTUxfU0FO",
"SVRJWkFUSU9OX1VOU1BFQ0lGSUVEEAASHgoaSFRNTF9TQU5JVElaQVRJT05f",
"RElTQUJMRUQQARIaChZTSU1QTEVfRk9STUFUVElOR19PTkxZEAIqSQoNQ29t",
"RElTQUJMRUQQARIaChZTSU1QTEVfRk9STUFUVElOR19PTkxZEAIqewoNQ29t",
"bXV0ZU1ldGhvZBIeChpDT01NVVRFX01FVEhPRF9VTlNQRUNJRklFRBAAEgsK",
"B0RSSVZJTkcQARILCgdUUkFOU0lUEAJCbwoaY29tLmdvb2dsZS5jbG91ZC50",
"YWxlbnQudjRCC0NvbW1vblByb3RvUAFaPGdvb2dsZS5nb2xhbmcub3JnL2dl",
"bnByb3RvL2dvb2dsZWFwaXMvY2xvdWQvdGFsZW50L3Y0O3RhbGVudKICA0NU",
"U2IGcHJvdG8z"));
"B0RSSVZJTkcQARILCgdUUkFOU0lUEAISCwoHV0FMS0lORxADEgsKB0NZQ0xJ",
"TkcQBBIWChJUUkFOU0lUX0FDQ0VTU0lCTEUQBUJvChpjb20uZ29vZ2xlLmNs",
"b3VkLnRhbGVudC52NEILQ29tbW9uUHJvdG9QAVo8Z29vZ2xlLmdvbGFuZy5v",
"cmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9jbG91ZC90YWxlbnQvdjQ7dGFsZW50",
"ogIDQ1RTYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Type.LatlngReflection.Descriptor, global::Google.Type.MoneyReflection.Descriptor, global::Google.Type.PostalAddressReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.Talent.V4.CompanySize), typeof(global::Google.Cloud.Talent.V4.JobBenefit), typeof(global::Google.Cloud.Talent.V4.DegreeType), typeof(global::Google.Cloud.Talent.V4.EmploymentType), typeof(global::Google.Cloud.Talent.V4.JobLevel), typeof(global::Google.Cloud.Talent.V4.JobCategory), typeof(global::Google.Cloud.Talent.V4.PostingRegion), typeof(global::Google.Cloud.Talent.V4.Visibility), typeof(global::Google.Cloud.Talent.V4.HtmlSanitization), typeof(global::Google.Cloud.Talent.V4.CommuteMethod), }, null, new pbr::GeneratedClrTypeInfo[] {
Expand Down Expand Up @@ -642,7 +643,8 @@ public enum HtmlSanitization {
}

/// <summary>
/// Method for commute.
/// Method for commute. Walking, biking and wheelchair accessible transit is
/// still in the Preview stage.
/// </summary>
public enum CommuteMethod {
/// <summary>
Expand All @@ -658,6 +660,19 @@ public enum CommuteMethod {
/// subway, and so on.
/// </summary>
[pbr::OriginalName("TRANSIT")] Transit = 2,
/// <summary>
/// Commute time is calculated based on walking time.
/// </summary>
[pbr::OriginalName("WALKING")] Walking = 3,
/// <summary>
/// Commute time is calculated based on biking time.
/// </summary>
[pbr::OriginalName("CYCLING")] Cycling = 4,
/// <summary>
/// Commute time is calculated based on public transit that is wheelchair
/// accessible.
/// </summary>
[pbr::OriginalName("TRANSIT_ACCESSIBLE")] TransitAccessible = 5,
}

#endregion
Expand Down
20 changes: 12 additions & 8 deletions apis/Google.Cloud.Talent.V4/Google.Cloud.Talent.V4/Filters.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public sealed partial class JobQuery : pb::IMessage<JobQuery>
/// 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 &lt; 6000 bytes in length.
/// must be &lt; 10000 bytes in length.
///
/// Sample Query:
/// `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
Expand Down Expand Up @@ -893,16 +893,20 @@ public sealed partial class LocationFilter : pb::IMessage<LocationFilter>
public const int RegionCodeFieldNumber = 2;
private string regionCode_ = "";
/// <summary>
/// CLDR region code of the country/region of the address. This is used
/// to address ambiguity of the user-input location, for example, "Liverpool"
/// against "Liverpool, NY, US" or "Liverpool, UK".
/// CLDR region code of the country/region. This field may be used in two ways:
///
/// Set this field to bias location resolution toward a specific country
/// or territory. If this field is not set, application behavior is biased
/// toward the United States by default.
/// 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://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
/// https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/territory_information.html
/// for details. Example: "CH" for Switzerland.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Expand Down
9 changes: 9 additions & 0 deletions apis/Google.Cloud.Talent.V4/Google.Cloud.Talent.V4/Job.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,15 @@ public sealed partial class Job : pb::IMessage<Job>
/// suggested to group the locations that close to each other in the same job
/// for better search experience.
///
/// Jobs with multiple addresses must have their addresses with the same
/// [LocationType][] to allow location filtering to work properly. (For
/// example, a Job with addresses "1600 Amphitheatre Parkway, Mountain View,
/// CA, USA" and "London, UK" may not have location filters applied correctly
/// at search time since the first is a [LocationType.STREET_ADDRESS][] and the
/// second is a [LocationType.LOCALITY][].) If a job needs to have multiple
/// addresses, it is suggested to split it into multiple jobs with same
/// LocationTypes.
///
/// The maximum number of allowed characters is 500.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Expand Down
12 changes: 10 additions & 2 deletions apis/Google.Cloud.Talent.V4/Google.Cloud.Talent.V4/JobService.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1127,18 +1127,23 @@ public sealed partial class ListJobsRequest : pb::IMessage<ListJobsRequest>
///
/// The fields eligible for filtering are:
///
/// * `companyName` (Required)
/// * `companyName`
/// * `requisitionId`
/// * `status` Available values: OPEN, EXPIRED, ALL. Defaults to
/// OPEN if no value is specified.
///
/// At least one of `companyName` and `requisitionId` must present or an
/// INVALID_ARGUMENT error is thrown.
///
/// Sample Query:
///
/// * companyName = "projects/foo/tenants/bar/companies/baz"
/// * companyName = "projects/foo/tenants/bar/companies/baz" AND
/// requisitionId = "req-1"
/// * companyName = "projects/foo/tenants/bar/companies/baz" AND
/// status = "EXPIRED"
/// * requisitionId = "req-1"
/// * requisitionId = "req-1" AND status = "EXPIRED"
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Filter {
Expand Down Expand Up @@ -1852,6 +1857,9 @@ public sealed partial class SearchJobsRequest : pb::IMessage<SearchJobsRequest>
/// "FULL_TIME", "PART_TIME".
/// * company_size: histogram by [CompanySize][google.cloud.talent.v4.CompanySize], for example, "SMALL",
/// "MEDIUM", "BIG".
/// * publish_time_in_day: histogram by the [Job.posting_publish_time][google.cloud.talent.v4.Job.posting_publish_time]
/// in days.
/// Must specify list of numeric buckets in spec.
/// * publish_time_in_month: histogram by the [Job.posting_publish_time][google.cloud.talent.v4.Job.posting_publish_time]
/// in months.
/// Must specify list of numeric buckets in spec.
Expand Down Expand Up @@ -1905,7 +1913,7 @@ public sealed partial class SearchJobsRequest : pb::IMessage<SearchJobsRequest>
/// bucket(100000, MAX)])`
/// * `count(string_custom_attribute["some-string-custom-attribute"])`
/// * `count(numeric_custom_attribute["some-numeric-custom-attribute"],
/// [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])`
/// [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])`
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Google.Cloud.Talent.V4.HistogramQuery> HistogramQueries {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1607,18 +1607,23 @@ internal static JobServiceClient Create(grpccore::CallInvoker callInvoker, JobSe
///
/// The fields eligible for filtering are:
///
/// * `companyName` (Required)
/// * `companyName`
/// * `requisitionId`
/// * `status` Available values: OPEN, EXPIRED, ALL. Defaults to
/// OPEN if no value is specified.
///
/// At least one of `companyName` and `requisitionId` must present or an
/// INVALID_ARGUMENT error is thrown.
///
/// Sample Query:
///
/// * companyName = "projects/foo/tenants/bar/companies/baz"
/// * companyName = "projects/foo/tenants/bar/companies/baz" AND
/// requisitionId = "req-1"
/// * companyName = "projects/foo/tenants/bar/companies/baz" AND
/// status = "EXPIRED"
/// * requisitionId = "req-1"
/// * requisitionId = "req-1" AND status = "EXPIRED"
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand Down Expand Up @@ -1655,18 +1660,23 @@ internal static JobServiceClient Create(grpccore::CallInvoker callInvoker, JobSe
///
/// The fields eligible for filtering are:
///
/// * `companyName` (Required)
/// * `companyName`
/// * `requisitionId`
/// * `status` Available values: OPEN, EXPIRED, ALL. Defaults to
/// OPEN if no value is specified.
///
/// At least one of `companyName` and `requisitionId` must present or an
/// INVALID_ARGUMENT error is thrown.
///
/// Sample Query:
///
/// * companyName = "projects/foo/tenants/bar/companies/baz"
/// * companyName = "projects/foo/tenants/bar/companies/baz" AND
/// requisitionId = "req-1"
/// * companyName = "projects/foo/tenants/bar/companies/baz" AND
/// status = "EXPIRED"
/// * requisitionId = "req-1"
/// * requisitionId = "req-1" AND status = "EXPIRED"
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand Down Expand Up @@ -1703,18 +1713,23 @@ internal static JobServiceClient Create(grpccore::CallInvoker callInvoker, JobSe
///
/// The fields eligible for filtering are:
///
/// * `companyName` (Required)
/// * `companyName`
/// * `requisitionId`
/// * `status` Available values: OPEN, EXPIRED, ALL. Defaults to
/// OPEN if no value is specified.
///
/// At least one of `companyName` and `requisitionId` must present or an
/// INVALID_ARGUMENT error is thrown.
///
/// Sample Query:
///
/// * companyName = "projects/foo/tenants/bar/companies/baz"
/// * companyName = "projects/foo/tenants/bar/companies/baz" AND
/// requisitionId = "req-1"
/// * companyName = "projects/foo/tenants/bar/companies/baz" AND
/// status = "EXPIRED"
/// * requisitionId = "req-1"
/// * requisitionId = "req-1" AND status = "EXPIRED"
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand Down Expand Up @@ -1751,18 +1766,23 @@ internal static JobServiceClient Create(grpccore::CallInvoker callInvoker, JobSe
///
/// The fields eligible for filtering are:
///
/// * `companyName` (Required)
/// * `companyName`
/// * `requisitionId`
/// * `status` Available values: OPEN, EXPIRED, ALL. Defaults to
/// OPEN if no value is specified.
///
/// At least one of `companyName` and `requisitionId` must present or an
/// INVALID_ARGUMENT error is thrown.
///
/// Sample Query:
///
/// * companyName = "projects/foo/tenants/bar/companies/baz"
/// * companyName = "projects/foo/tenants/bar/companies/baz" AND
/// requisitionId = "req-1"
/// * companyName = "projects/foo/tenants/bar/companies/baz" AND
/// status = "EXPIRED"
/// * requisitionId = "req-1"
/// * requisitionId = "req-1" AND status = "EXPIRED"
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand Down
2 changes: 1 addition & 1 deletion apis/Google.Cloud.Talent.V4/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "a1ab4d44db02d59ff58810c6d4182d84e4b9abaa"
"sha": "a6c8dc7f72206eaff566f22593213cd9196d2bf2"
}
}
]
Expand Down

0 comments on commit 4dfd11f

Please sign in to comment.