Skip to content

Commit

Permalink
chore: fix proto formatting
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 503206506
  • Loading branch information
Google APIs authored and pull[bot] committed Apr 11, 2024
1 parent 3f14d84 commit 3a6f168
Show file tree
Hide file tree
Showing 12 changed files with 590 additions and 383 deletions.
180 changes: 121 additions & 59 deletions google/cloud/talent/v4/common.proto

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions google/cloud/talent/v4/company.proto
Expand Up @@ -38,7 +38,8 @@ message Company {
// Derived details about the company.
message DerivedInfo {
// A structured headquarters location of the company, resolved from
// [Company.headquarters_address][google.cloud.talent.v4.Company.headquarters_address] if provided.
// [Company.headquarters_address][google.cloud.talent.v4.Company.headquarters_address]
// if provided.
Location headquarters_location = 1;
}

Expand Down Expand Up @@ -67,7 +68,8 @@ message Company {
// The street address of the company's main headquarters, which may be
// different from the job location. The service attempts
// to geolocate the provided address, and populates a more specific
// location wherever possible in [DerivedInfo.headquarters_location][google.cloud.talent.v4.Company.DerivedInfo.headquarters_location].
// location wherever possible in
// [DerivedInfo.headquarters_location][google.cloud.talent.v4.Company.DerivedInfo.headquarters_location].
string headquarters_address = 5;

// Set to true if it is the hiring agency that post jobs for other
Expand Down Expand Up @@ -97,15 +99,19 @@ message Company {
string image_uri = 10;

// This field is deprecated. Please set the searchability of the custom
// attribute in the [Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes] going forward.
// attribute in the
// [Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes] going
// forward.
//
// A list of keys of filterable [Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes], whose
// corresponding `string_values` are used in keyword searches. Jobs with
// A list of keys of filterable
// [Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes],
// whose corresponding `string_values` are used in keyword searches. Jobs with
// `string_values` under these specified field keys are returned if any
// of the values match the search keyword. Custom field values with
// parenthesis, brackets and special symbols are not searchable as-is,
// and those keyword queries must be surrounded by quotes.
repeated string keyword_searchable_job_custom_attributes = 11 [deprecated = true];
repeated string keyword_searchable_job_custom_attributes = 11
[deprecated = true];

// Output only. Derived details about the company.
DerivedInfo derived_info = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
Expand Down
33 changes: 15 additions & 18 deletions google/cloud/talent/v4/company_service.proto
Expand Up @@ -90,9 +90,7 @@ message CreateCompanyRequest {
// "projects/foo/tenants/bar".
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "jobs.googleapis.com/Tenant"
}
(google.api.resource_reference) = { type: "jobs.googleapis.com/Tenant" }
];

// Required. The company to be created.
Expand All @@ -108,24 +106,26 @@ message GetCompanyRequest {
// example, "projects/api-test-project/tenants/foo/companies/bar".
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "jobs.googleapis.com/Company"
}
(google.api.resource_reference) = { type: "jobs.googleapis.com/Company" }
];
}

// Request for updating a specified company.
message UpdateCompanyRequest {
// Required. The company resource to replace the current resource in the system.
// Required. The company resource to replace the current resource in the
// system.
Company company = 1 [(google.api.field_behavior) = REQUIRED];

// Strongly recommended for the best service experience.
//
// If [update_mask][google.cloud.talent.v4.UpdateCompanyRequest.update_mask] is provided, only the specified fields in
// [company][google.cloud.talent.v4.UpdateCompanyRequest.company] are updated. Otherwise all the fields are updated.
// If [update_mask][google.cloud.talent.v4.UpdateCompanyRequest.update_mask]
// is provided, only the specified fields in
// [company][google.cloud.talent.v4.UpdateCompanyRequest.company] are updated.
// Otherwise all the fields are updated.
//
// A field mask to specify the company fields to be updated. Only
// top level fields of [Company][google.cloud.talent.v4.Company] are supported.
// top level fields of [Company][google.cloud.talent.v4.Company] are
// supported.
google.protobuf.FieldMask update_mask = 2;
}

Expand All @@ -138,9 +138,7 @@ message DeleteCompanyRequest {
// example, "projects/foo/tenants/bar/companies/baz".
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "jobs.googleapis.com/Company"
}
(google.api.resource_reference) = { type: "jobs.googleapis.com/Company" }
];
}

Expand All @@ -152,9 +150,7 @@ message ListCompaniesRequest {
// "projects/foo/tenants/bar".
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "jobs.googleapis.com/Tenant"
}
(google.api.resource_reference) = { type: "jobs.googleapis.com/Tenant" }
];

// The starting indicator from which to return results.
Expand All @@ -168,8 +164,9 @@ message ListCompaniesRequest {
//
// Defaults to false.
//
// If true, at most [page_size][google.cloud.talent.v4.ListCompaniesRequest.page_size] of companies are fetched, among which
// only those with open jobs are returned.
// If true, at most
// [page_size][google.cloud.talent.v4.ListCompaniesRequest.page_size] of
// companies are fetched, among which only those with open jobs are returned.
bool require_open_jobs = 4;
}

Expand Down
41 changes: 25 additions & 16 deletions google/cloud/talent/v4/completion_service.proto
Expand Up @@ -66,22 +66,31 @@ message CompleteQueryRequest {

// Suggest job titles for jobs autocomplete.
//
// For [CompletionType.JOB_TITLE][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.JOB_TITLE] type, only open jobs with the same
// [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes] are returned.
// For
// [CompletionType.JOB_TITLE][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.JOB_TITLE]
// type, only open jobs with the same
// [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes]
// are returned.
JOB_TITLE = 1;

// Suggest company names for jobs autocomplete.
//
// For [CompletionType.COMPANY_NAME][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMPANY_NAME] type,
// only companies having open jobs with the same [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes] are
// returned.
// For
// [CompletionType.COMPANY_NAME][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMPANY_NAME]
// type, only companies having open jobs with the same
// [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes]
// are returned.
COMPANY_NAME = 2;

// Suggest both job titles and company names for jobs autocomplete.
//
// For [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED] type, only open jobs with the same
// [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes] or companies having open jobs with the same
// [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes] are returned.
// For
// [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED]
// type, only open jobs with the same
// [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes]
// or companies having open jobs with the same
// [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes]
// are returned.
COMBINED = 3;
}

Expand All @@ -91,9 +100,7 @@ message CompleteQueryRequest {
// "projects/foo/tenants/bar".
string tenant = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "jobs.googleapis.com/Tenant"
}
(google.api.resource_reference) = { type: "jobs.googleapis.com/Tenant" }
];

// Required. The query used to generate suggestions.
Expand All @@ -119,14 +126,16 @@ message CompleteQueryRequest {
// The format is
// "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
// example, "projects/foo/tenants/bar/companies/baz".
string company = 5 [(google.api.resource_reference) = {
type: "jobs.googleapis.com/Company"
}];
string company = 5 [
(google.api.resource_reference) = { type: "jobs.googleapis.com/Company" }
];

// The scope of the completion. The defaults is [CompletionScope.PUBLIC][google.cloud.talent.v4.CompleteQueryRequest.CompletionScope.PUBLIC].
// The scope of the completion. The defaults is
// [CompletionScope.PUBLIC][google.cloud.talent.v4.CompleteQueryRequest.CompletionScope.PUBLIC].
CompletionScope scope = 6;

// The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED].
// The completion topic. The default is
// [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED].
CompletionType type = 7;
}

Expand Down
29 changes: 19 additions & 10 deletions google/cloud/talent/v4/event.proto
Expand Up @@ -41,7 +41,8 @@ message ClientEvent {
string event_id = 2 [(google.api.field_behavior) = REQUIRED];

// Required. The timestamp of the event.
google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = REQUIRED];
google.protobuf.Timestamp create_time = 4
[(google.api.field_behavior) = REQUIRED];

// Required.
//
Expand Down Expand Up @@ -96,7 +97,9 @@ message JobEvent {
// submitted an application for a job with a single click without
// entering information. If a job seeker performs this action, send only
// this event to the service. Do not also send
// [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START] or [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH]
// [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START]
// or
// [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH]
// events.
APPLICATION_QUICK_SUBMISSION = 6;

Expand All @@ -116,8 +119,11 @@ message JobEvent {
// (without viewing the details of the job posting), and is redirected
// to a different website to complete the application. If a candidate
// performs this action, send only this event to the service. Do not also
// send [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START],
// [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH] or [JobEventType.VIEW][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] events.
// send
// [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START],
// [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH]
// or [JobEventType.VIEW][google.cloud.talent.v4.JobEvent.JobEventType.VIEW]
// events.
APPLICATION_REDIRECT_FROM_SEARCH = 9;

// This event should be used when a company submits an application
Expand Down Expand Up @@ -154,14 +160,17 @@ message JobEvent {
INTERVIEW_GRANTED = 15;
}

// Required. The type of the event (see [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
// Required. The type of the event (see
// [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
JobEventType type = 1 [(google.api.field_behavior) = REQUIRED];

// Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated with this event.
// For example, if this is an [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION] event,
// this field contains the identifiers of all jobs shown to the job seeker.
// If this was a [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field contains the
// identifier of the viewed job.
// Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
// with this event. For example, if this is an
// [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
// event, this field contains the identifiers of all jobs shown to the job
// seeker. If this was a
// [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
// contains the identifier of the viewed job.
//
// The format is
// "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
Expand Down
8 changes: 3 additions & 5 deletions google/cloud/talent/v4/event_service.proto
Expand Up @@ -59,12 +59,10 @@ message CreateClientEventRequest {
// "projects/foo/tenants/bar".
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "jobs.googleapis.com/Tenant"
}
(google.api.resource_reference) = { type: "jobs.googleapis.com/Tenant" }
];

// Required. Events issued when end user interacts with customer's application that
// uses Cloud Talent Solution.
// Required. Events issued when end user interacts with customer's application
// that uses Cloud Talent Solution.
ClientEvent client_event = 2 [(google.api.field_behavior) = REQUIRED];
}

0 comments on commit 3a6f168

Please sign in to comment.