Skip to content

Commit 55dd4d7

Browse files
Google APIscopybara-github
authored andcommitted
chore: fix proto formatting
PiperOrigin-RevId: 503230949
1 parent a391fd1 commit 55dd4d7

12 files changed

Lines changed: 627 additions & 397 deletions

google/cloud/talent/v4beta1/common.proto

Lines changed: 122 additions & 59 deletions
Large diffs are not rendered by default.

google/cloud/talent/v4beta1/company.proto

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ message Company {
3939
// Derived details about the company.
4040
message DerivedInfo {
4141
// A structured headquarters location of the company, resolved from
42-
// [Company.headquarters_address][google.cloud.talent.v4beta1.Company.headquarters_address] if provided.
42+
// [Company.headquarters_address][google.cloud.talent.v4beta1.Company.headquarters_address]
43+
// if provided.
4344
Location headquarters_location = 1;
4445
}
4546

@@ -71,7 +72,8 @@ message Company {
7172
// The street address of the company's main headquarters, which may be
7273
// different from the job location. The service attempts
7374
// to geolocate the provided address, and populates a more specific
74-
// location wherever possible in [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
75+
// location wherever possible in
76+
// [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
7577
string headquarters_address = 5;
7678

7779
// Set to true if it is the hiring agency that post jobs for other
@@ -101,15 +103,19 @@ message Company {
101103
string image_uri = 10;
102104

103105
// This field is deprecated. Please set the searchability of the custom
104-
// attribute in the [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] going forward.
106+
// attribute in the
107+
// [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
108+
// going forward.
105109
//
106-
// A list of keys of filterable [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], whose
107-
// corresponding `string_values` are used in keyword searches. Jobs with
110+
// A list of keys of filterable
111+
// [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
112+
// whose corresponding `string_values` are used in keyword searches. Jobs with
108113
// `string_values` under these specified field keys are returned if any
109114
// of the values match the search keyword. Custom field values with
110115
// parenthesis, brackets and special symbols are not searchable as-is,
111116
// and those keyword queries must be surrounded by quotes.
112-
repeated string keyword_searchable_job_custom_attributes = 11 [deprecated = true];
117+
repeated string keyword_searchable_job_custom_attributes = 11
118+
[deprecated = true];
113119

114120
// Output only. Derived details about the company.
115121
DerivedInfo derived_info = 12 [(google.api.field_behavior) = OUTPUT_ONLY];

google/cloud/talent/v4beta1/company_service.proto

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ service CompanyService {
5555
rpc GetCompany(GetCompanyRequest) returns (Company) {
5656
option (google.api.http) = {
5757
get: "/v4beta1/{name=projects/*/tenants/*/companies/*}"
58-
additional_bindings {
59-
get: "/v4beta1/{name=projects/*/companies/*}"
60-
}
58+
additional_bindings { get: "/v4beta1/{name=projects/*/companies/*}" }
6159
};
6260
option (google.api.method_signature) = "name";
6361
}
@@ -80,9 +78,7 @@ service CompanyService {
8078
rpc DeleteCompany(DeleteCompanyRequest) returns (google.protobuf.Empty) {
8179
option (google.api.http) = {
8280
delete: "/v4beta1/{name=projects/*/tenants/*/companies/*}"
83-
additional_bindings {
84-
delete: "/v4beta1/{name=projects/*/companies/*}"
85-
}
81+
additional_bindings { delete: "/v4beta1/{name=projects/*/companies/*}" }
8682
};
8783
option (google.api.method_signature) = "name";
8884
}
@@ -91,9 +87,7 @@ service CompanyService {
9187
rpc ListCompanies(ListCompaniesRequest) returns (ListCompaniesResponse) {
9288
option (google.api.http) = {
9389
get: "/v4beta1/{parent=projects/*/tenants/*}/companies"
94-
additional_bindings {
95-
get: "/v4beta1/{parent=projects/*}/companies"
96-
}
90+
additional_bindings { get: "/v4beta1/{parent=projects/*}/companies" }
9791
};
9892
option (google.api.method_signature) = "parent";
9993
}
@@ -129,24 +123,27 @@ message GetCompanyRequest {
129123
// example, "projects/api-test-project/companies/bar".
130124
string name = 1 [
131125
(google.api.field_behavior) = REQUIRED,
132-
(google.api.resource_reference) = {
133-
type: "jobs.googleapis.com/Company"
134-
}
126+
(google.api.resource_reference) = { type: "jobs.googleapis.com/Company" }
135127
];
136128
}
137129

138130
// Request for updating a specified company.
139131
message UpdateCompanyRequest {
140-
// Required. The company resource to replace the current resource in the system.
132+
// Required. The company resource to replace the current resource in the
133+
// system.
141134
Company company = 1 [(google.api.field_behavior) = REQUIRED];
142135

143136
// Strongly recommended for the best service experience.
144137
//
145-
// If [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask] is provided, only the specified fields in
146-
// [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are updated. Otherwise all the fields are updated.
138+
// If
139+
// [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
140+
// is provided, only the specified fields in
141+
// [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
142+
// updated. Otherwise all the fields are updated.
147143
//
148144
// A field mask to specify the company fields to be updated. Only
149-
// top level fields of [Company][google.cloud.talent.v4beta1.Company] are supported.
145+
// top level fields of [Company][google.cloud.talent.v4beta1.Company] are
146+
// supported.
150147
google.protobuf.FieldMask update_mask = 2;
151148
}
152149

@@ -162,9 +159,7 @@ message DeleteCompanyRequest {
162159
// example, "projects/foo/companies/bar".
163160
string name = 1 [
164161
(google.api.field_behavior) = REQUIRED,
165-
(google.api.resource_reference) = {
166-
type: "jobs.googleapis.com/Company"
167-
}
162+
(google.api.resource_reference) = { type: "jobs.googleapis.com/Company" }
168163
];
169164
}
170165

@@ -195,8 +190,9 @@ message ListCompaniesRequest {
195190
//
196191
// Defaults to false.
197192
//
198-
// If true, at most [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of companies are fetched, among which
199-
// only those with open jobs are returned.
193+
// If true, at most
194+
// [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
195+
// companies are fetched, among which only those with open jobs are returned.
200196
bool require_open_jobs = 4;
201197
}
202198

google/cloud/talent/v4beta1/completion_service.proto

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ service Completion {
4040
rpc CompleteQuery(CompleteQueryRequest) returns (CompleteQueryResponse) {
4141
option (google.api.http) = {
4242
get: "/v4beta1/{parent=projects/*/tenants/*}:complete"
43-
additional_bindings {
44-
get: "/v4beta1/{parent=projects/*}:complete"
45-
}
43+
additional_bindings { get: "/v4beta1/{parent=projects/*}:complete" }
4644
};
4745
}
4846
}
@@ -69,22 +67,31 @@ message CompleteQueryRequest {
6967

7068
// Suggest job titles for jobs autocomplete.
7169
//
72-
// For [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE] type, only open jobs with the same
73-
// [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] are returned.
70+
// For
71+
// [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
72+
// type, only open jobs with the same
73+
// [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
74+
// are returned.
7475
JOB_TITLE = 1;
7576

7677
// Suggest company names for jobs autocomplete.
7778
//
78-
// For [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME] type,
79-
// only companies having open jobs with the same [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] are
80-
// returned.
79+
// For
80+
// [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
81+
// type, only companies having open jobs with the same
82+
// [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
83+
// are returned.
8184
COMPANY_NAME = 2;
8285

8386
// Suggest both job titles and company names for jobs autocomplete.
8487
//
85-
// For [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED] type, only open jobs with the same
86-
// [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] or companies having open jobs with the same
87-
// [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] are returned.
88+
// For
89+
// [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
90+
// type, only open jobs with the same
91+
// [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
92+
// or companies having open jobs with the same
93+
// [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
94+
// are returned.
8895
COMBINED = 3;
8996
}
9097

@@ -128,14 +135,16 @@ message CompleteQueryRequest {
128135
//
129136
// If tenant id is unspecified, the default tenant is used, for
130137
// example, "projects/foo".
131-
string company = 5 [(google.api.resource_reference) = {
132-
type: "jobs.googleapis.com/Company"
133-
}];
138+
string company = 5 [
139+
(google.api.resource_reference) = { type: "jobs.googleapis.com/Company" }
140+
];
134141

135-
// The scope of the completion. The defaults is [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
142+
// The scope of the completion. The defaults is
143+
// [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
136144
CompletionScope scope = 6;
137145

138-
// The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
146+
// The completion topic. The default is
147+
// [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
139148
CompletionType type = 7;
140149
}
141150

google/cloud/talent/v4beta1/event.proto

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ message ClientEvent {
4141
string event_id = 2 [(google.api.field_behavior) = REQUIRED];
4242

4343
// Required. The timestamp of the event.
44-
google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = REQUIRED];
44+
google.protobuf.Timestamp create_time = 4
45+
[(google.api.field_behavior) = REQUIRED];
4546

4647
// Required.
4748
//
@@ -96,7 +97,9 @@ message JobEvent {
9697
// submitted an application for a job with a single click without
9798
// entering information. If a job seeker performs this action, send only
9899
// this event to the service. Do not also send
99-
// [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START] or [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
100+
// [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START]
101+
// or
102+
// [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
100103
// events.
101104
APPLICATION_QUICK_SUBMISSION = 6;
102105

@@ -116,8 +119,12 @@ message JobEvent {
116119
// (without viewing the details of the job posting), and is redirected
117120
// to a different website to complete the application. If a candidate
118121
// performs this action, send only this event to the service. Do not also
119-
// send [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START],
120-
// [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH] or [JobEventType.VIEW][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] events.
122+
// send
123+
// [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START],
124+
// [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
125+
// or
126+
// [JobEventType.VIEW][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW]
127+
// events.
121128
APPLICATION_REDIRECT_FROM_SEARCH = 9;
122129

123130
// This event should be used when a company submits an application
@@ -154,21 +161,25 @@ message JobEvent {
154161
INTERVIEW_GRANTED = 15;
155162
}
156163

157-
// Required. The type of the event (see [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
164+
// Required. The type of the event (see
165+
// [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
158166
JobEventType type = 1 [(google.api.field_behavior) = REQUIRED];
159167

160-
// Required. The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with this event.
161-
// For example, if this is an [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION] event,
162-
// this field contains the identifiers of all jobs shown to the job seeker.
163-
// If this was a [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this field contains the
164-
// identifier of the viewed job.
168+
// Required. The [job name(s)][google.cloud.talent.v4beta1.Job.name]
169+
// associated with this event. For example, if this is an
170+
// [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
171+
// event, this field contains the identifiers of all jobs shown to the job
172+
// seeker. If this was a
173+
// [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
174+
// field contains the identifier of the viewed job.
165175
//
166176
// The format is
167177
// "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
168178
// example, "projects/foo/tenants/bar/jobs/baz".
169179
repeated string jobs = 2 [(google.api.field_behavior) = REQUIRED];
170180

171-
// The [profile name][google.cloud.talent.v4beta1.Profile.name] associated with this client event.
181+
// The [profile name][google.cloud.talent.v4beta1.Profile.name] associated
182+
// with this client event.
172183
//
173184
// The format is
174185
// "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",

google/cloud/talent/v4beta1/event_service.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ message CreateClientEventRequest {
6969
}
7070
];
7171

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

0 commit comments

Comments
 (0)