Synchronize new proto/yaml changes.

PiperOrigin-RevId: 263831339
This commit is contained in:
Google APIs 2019-08-16 13:09:51 -07:00 committed by Copybara-Service
parent 2a02e33c79
commit f6cc01ff6d
6 changed files with 55 additions and 11 deletions

View File

@ -0,0 +1 @@
exports_files(glob(["*.yaml"]))

View File

@ -442,8 +442,12 @@ enum PostingRegion {
TELECOMMUTE = 3;
}
// Deprecated. All resources are only visible to the owner.
//
// An enum that represents who has view access to the resource.
enum Visibility {
option deprecated = true;
// Default value.
VISIBILITY_UNSPECIFIED = 0;

View File

@ -222,7 +222,43 @@ message ProfileQuery {
// [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
// is specified, the result doesn't contain profiles from that location.
//
// For example, search for profiles with addresses in "New York City".
// If
// [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address]
// is provided, the
// [LocationType][google.cloud.talent.v4beta1.Location.LocationType], center
// point (latitude and longitude), and radius are automatically detected by
// the Google Maps Geocoding API and included as well. If
// [LocationFilter.address][google.cloud.talent.v4beta1.LocationFilter.address]
// is not recognized as a location, the filter falls back to keyword search.
//
// If the detected
// [LocationType][google.cloud.talent.v4beta1.Location.LocationType] is
// [LocationType.SUB_ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.Location.LocationType.SUB_ADMINISTRATIVE_AREA],
// [LocationType.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.Location.LocationType.ADMINISTRATIVE_AREA],
// or
// [LocationType.COUNTRY][google.cloud.talent.v4beta1.Location.LocationType.COUNTRY],
// or location is recognized but a radius can not be determined by the
// geo-coder, the filter is performed against the detected location name
// (using exact text matching). Otherwise, the filter is performed against the
// detected center point and a radius. The largest value from among the
// following options is automatically set as the radius value:
// 1. 10 miles.
// 2. Detected location radius +
// [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles].
// 3. If the detected
// [LocationType][google.cloud.talent.v4beta1.Location.LocationType] is one of
// [LocationType.SUB_LOCALITY][google.cloud.talent.v4beta1.Location.LocationType.SUB_LOCALITY],
// [LocationType.SUB_LOCALITY_2][google.cloud.talent.v4beta1.Location.LocationType.SUB_LOCALITY_2],
// [LocationType.NEIGHBORHOOD][google.cloud.talent.v4beta1.Location.LocationType.NEIGHBORHOOD],
// [LocationType.POSTAL_CODE][google.cloud.talent.v4beta1.Location.LocationType.POSTAL_CODE],
// or
// [LocationType.STREET_ADDRESS][google.cloud.talent.v4beta1.Location.LocationType.STREET_ADDRESS],
// the following two values are calculated and the larger of the two is
// compared to #1 and #2, above:
// - Calculated radius of the city (from the city center) that contains the
// geo-coded location.
// - Distance from the city center (of the city containing the geo-coded
// location) to the detected location center + 0.5 miles.
repeated LocationFilter location_filters = 2;
// Optional. Job title filter specifies job titles of profiles to match on.
@ -376,7 +412,7 @@ message ProfileQuery {
//
// Geographic region of the search.
message LocationFilter {
// Specify whether including telecommute jobs.
// Specify whether to include telecommute jobs.
enum TelecommutePreference {
// Default value if the telecommute preference isn't specified.
TELECOMMUTE_PREFERENCE_UNSPECIFIED = 0;
@ -405,13 +441,13 @@ message LocationFilter {
// Note that this filter is not applicable for Profile Search related queries.
string region_code = 2;
// Optional. The latitude and longitude of the geographic center from which to
// search. This field's ignored if `address` is provided.
// Optional. The latitude and longitude of the geographic center to search
// from. This field is ignored if `address` is provided.
google.type.LatLng lat_lng = 3;
// Optional. The distance_in_miles is applied when the location being searched
// for is identified as a city or smaller. When the location being searched
// for is a state or larger, this field is ignored.
// for is identified as a city or smaller. This field is ignored if the
// location being searched for is a state or larger.
double distance_in_miles = 4;
// Optional. Allows the client to return jobs without a
@ -433,6 +469,8 @@ message LocationFilter {
// such as "Mountain View" or "telecommuting" jobs. However, when used in
// combination with other location filters, telecommuting jobs can be
// treated as less relevant than other jobs in the search response.
//
// This field is only used for job search requests.
TelecommutePreference telecommute_preference = 5;
// Optional. Whether to apply negation to the filter so profiles matching the

View File

@ -285,12 +285,14 @@ message Job {
// the same location level as this field is strongly recommended.
PostingRegion posting_region = 20;
// Optional. The visibility of the job.
// Deprecated. The job is only visible to the owner.
//
// The visibility of the job.
//
// Defaults to
// [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
// if not specified.
Visibility visibility = 21;
Visibility visibility = 21 [deprecated = true];
// Optional. The start timestamp of the job in UTC time zone. Typically this
// field is used for contracting engagements. Invalid timestamps are ignored.

View File

@ -19,7 +19,6 @@ package google.cloud.talent.v4beta1;
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/cloud/talent/v4beta1/batch.proto";
import "google/cloud/talent/v4beta1/common.proto";
import "google/cloud/talent/v4beta1/filters.proto";
import "google/cloud/talent/v4beta1/histogram.proto";

View File

@ -281,11 +281,11 @@ message SearchProfilesRequest {
//
// * "relevance desc": By descending relevance, as determined by the API
// algorithms.
// * "update_time desc": Sort by
// * "update_date desc": Sort by
// [Profile.update_time][google.cloud.talent.v4beta1.Profile.update_time] in
// descending order
// (recently updated profiles first).
// * "create_time desc": Sort by
// * "create_date desc": Sort by
// [Profile.create_time][google.cloud.talent.v4beta1.Profile.create_time] in
// descending order
// (recently created profiles first).