Debian Codegraph @

talent/apiv4/talentpb/completion_service.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/talent/v4/completion_service.proto
20
21 package talentpb
22
23 import (
24 context "context"
25 _ "google.golang.org/genproto/googleapis/api/annotations"
26 grpc "google.golang.org/grpc"
27 codes "google.golang.org/grpc/codes"
28 status "google.golang.org/grpc/status"
29 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31 reflect "reflect"
32 sync "sync"
33 )
34
35 const (
36 // Verify that this generated code is sufficiently up-to-date.
37 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
38 // Verify that runtime/protoimpl is sufficiently up-to-date.
39 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
40 )
41
42 // Enum to specify the scope of completion.
43 type CompleteQueryRequest_CompletionScope int32
44
45 const (
46 // Default value.
47 CompleteQueryRequest_COMPLETION_SCOPE_UNSPECIFIED CompleteQueryRequest_CompletionScope = 0
48 // Suggestions are based only on the data provided by the client.
49 CompleteQueryRequest_TENANT CompleteQueryRequest_CompletionScope = 1
50 // Suggestions are based on all jobs data in the system that's visible to
51 // the client
52 CompleteQueryRequest_PUBLIC CompleteQueryRequest_CompletionScope = 2
53 )
54
55 // Enum value maps for CompleteQueryRequest_CompletionScope.
56 var (
57 CompleteQueryRequest_CompletionScope_name = map[int32]string{
58 0: "COMPLETION_SCOPE_UNSPECIFIED",
59 1: "TENANT",
60 2: "PUBLIC",
61 }
62 CompleteQueryRequest_CompletionScope_value = map[string]int32{
63 "COMPLETION_SCOPE_UNSPECIFIED": 0,
64 "TENANT": 1,
65 "PUBLIC": 2,
66 }
67 )
68
69 func (x CompleteQueryRequest_CompletionScope) Enum() *CompleteQueryRequest_CompletionScope {
70 p := new(CompleteQueryRequest_CompletionScope)
71 *p = x
72 return p
73 }
74
75 func (x CompleteQueryRequest_CompletionScope) String() string {
76 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
77 }
78
79 func (CompleteQueryRequest_CompletionScope) Descriptor() protoreflect.EnumDescriptor {
80 return file_google_cloud_talent_v4_completion_service_proto_enumTypes[0].Descriptor()
81 }
82
83 func (CompleteQueryRequest_CompletionScope) Type() protoreflect.EnumType {
84 return &file_google_cloud_talent_v4_completion_service_proto_enumTypes[0]
85 }
86
87 func (x CompleteQueryRequest_CompletionScope) Number() protoreflect.EnumNumber {
88 return protoreflect.EnumNumber(x)
89 }
90
91 // Deprecated: Use CompleteQueryRequest_CompletionScope.Descriptor instead.
92 func (CompleteQueryRequest_CompletionScope) EnumDescriptor() ([]byte, []int) {
93 return file_google_cloud_talent_v4_completion_service_proto_rawDescGZIP(), []int{0, 0}
94 }
95
96 // Enum to specify auto-completion topics.
97 type CompleteQueryRequest_CompletionType int32
98
99 const (
100 // Default value.
101 CompleteQueryRequest_COMPLETION_TYPE_UNSPECIFIED CompleteQueryRequest_CompletionType = 0
102 // Suggest job titles for jobs autocomplete.
103 //
104 // For
105 // [CompletionType.JOB_TITLE][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.JOB_TITLE]
106 // type, only open jobs with the same
107 // [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes]
108 // are returned.
109 CompleteQueryRequest_JOB_TITLE CompleteQueryRequest_CompletionType = 1
110 // Suggest company names for jobs autocomplete.
111 //
112 // For
113 // [CompletionType.COMPANY_NAME][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMPANY_NAME]
114 // type, only companies having open jobs with the same
115 // [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes]
116 // are returned.
117 CompleteQueryRequest_COMPANY_NAME CompleteQueryRequest_CompletionType = 2
118 // Suggest both job titles and company names for jobs autocomplete.
119 //
120 // For
121 // [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED]
122 // type, only open jobs with the same
123 // [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes]
124 // or companies having open jobs with the same
125 // [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes]
126 // are returned.
127 CompleteQueryRequest_COMBINED CompleteQueryRequest_CompletionType = 3
128 )
129
130 // Enum value maps for CompleteQueryRequest_CompletionType.
131 var (
132 CompleteQueryRequest_CompletionType_name = map[int32]string{
133 0: "COMPLETION_TYPE_UNSPECIFIED",
134 1: "JOB_TITLE",
135 2: "COMPANY_NAME",
136 3: "COMBINED",
137 }
138 CompleteQueryRequest_CompletionType_value = map[string]int32{
139 "COMPLETION_TYPE_UNSPECIFIED": 0,
140 "JOB_TITLE": 1,
141 "COMPANY_NAME": 2,
142 "COMBINED": 3,
143 }
144 )
145
146 func (x CompleteQueryRequest_CompletionType) Enum() *CompleteQueryRequest_CompletionType {
147 p := new(CompleteQueryRequest_CompletionType)
148 *p = x
149 return p
150 }
151
152 func (x CompleteQueryRequest_CompletionType) String() string {
153 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
154 }
155
156 func (CompleteQueryRequest_CompletionType) Descriptor() protoreflect.EnumDescriptor {
157 return file_google_cloud_talent_v4_completion_service_proto_enumTypes[1].Descriptor()
158 }
159
160 func (CompleteQueryRequest_CompletionType) Type() protoreflect.EnumType {
161 return &file_google_cloud_talent_v4_completion_service_proto_enumTypes[1]
162 }
163
164 func (x CompleteQueryRequest_CompletionType) Number() protoreflect.EnumNumber {
165 return protoreflect.EnumNumber(x)
166 }
167
168 // Deprecated: Use CompleteQueryRequest_CompletionType.Descriptor instead.
169 func (CompleteQueryRequest_CompletionType) EnumDescriptor() ([]byte, []int) {
170 return file_google_cloud_talent_v4_completion_service_proto_rawDescGZIP(), []int{0, 1}
171 }
172
173 // Auto-complete parameters.
174 type CompleteQueryRequest struct {
175 state protoimpl.MessageState
176 sizeCache protoimpl.SizeCache
177 unknownFields protoimpl.UnknownFields
178
179 // Required. Resource name of tenant the completion is performed within.
180 //
181 // The format is "projects/{project_id}/tenants/{tenant_id}", for example,
182 // "projects/foo/tenants/bar".
183 Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
184 // Required. The query used to generate suggestions.
185 //
186 // The maximum number of allowed characters is 255.
187 Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
188 // The list of languages of the query. This is
189 // the BCP-47 language code, such as "en-US" or "sr-Latn".
190 // For more information, see
191 // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
192 //
193 // The maximum number of allowed characters is 255.
194 LanguageCodes []string `protobuf:"bytes,3,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"`
195 // Required. Completion result count.
196 //
197 // The maximum allowed page size is 10.
198 PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
199 // If provided, restricts completion to specified company.
200 //
201 // The format is
202 // "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
203 // example, "projects/foo/tenants/bar/companies/baz".
204 Company string `protobuf:"bytes,5,opt,name=company,proto3" json:"company,omitempty"`
205 // The scope of the completion. The defaults is
206 // [CompletionScope.PUBLIC][google.cloud.talent.v4.CompleteQueryRequest.CompletionScope.PUBLIC].
207 Scope CompleteQueryRequest_CompletionScope `protobuf:"varint,6,opt,name=scope,proto3,enum=google.cloud.talent.v4.CompleteQueryRequest_CompletionScope" json:"scope,omitempty"`
208 // The completion topic. The default is
209 // [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED].
210 Type CompleteQueryRequest_CompletionType `protobuf:"varint,7,opt,name=type,proto3,enum=google.cloud.talent.v4.CompleteQueryRequest_CompletionType" json:"type,omitempty"`
211 }
212
213 func (x *CompleteQueryRequest) Reset() {
214 *x = CompleteQueryRequest{}
215 mi := &file_google_cloud_talent_v4_completion_service_proto_msgTypes[0]
216 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
217 ms.StoreMessageInfo(mi)
218 }
219
220 func (x *CompleteQueryRequest) String() string {
221 return protoimpl.X.MessageStringOf(x)
222 }
223
224 func (*CompleteQueryRequest) ProtoMessage() {}
225
226 func (x *CompleteQueryRequest) ProtoReflect() protoreflect.Message {
227 mi := &file_google_cloud_talent_v4_completion_service_proto_msgTypes[0]
228 if x != nil {
229 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
230 if ms.LoadMessageInfo() == nil {
231 ms.StoreMessageInfo(mi)
232 }
233 return ms
234 }
235 return mi.MessageOf(x)
236 }
237
238 // Deprecated: Use CompleteQueryRequest.ProtoReflect.Descriptor instead.
239 func (*CompleteQueryRequest) Descriptor() ([]byte, []int) {
240 return file_google_cloud_talent_v4_completion_service_proto_rawDescGZIP(), []int{0}
241 }
242
243 func (x *CompleteQueryRequest) GetTenant() string {
244 if x != nil {
245 return x.Tenant
246 }
247 return ""
248 }
249
250 func (x *CompleteQueryRequest) GetQuery() string {
251 if x != nil {
252 return x.Query
253 }
254 return ""
255 }
256
257 func (x *CompleteQueryRequest) GetLanguageCodes() []string {
258 if x != nil {
259 return x.LanguageCodes
260 }
261 return nil
262 }
263
264 func (x *CompleteQueryRequest) GetPageSize() int32 {
265 if x != nil {
266 return x.PageSize
267 }
268 return 0
269 }
270
271 func (x *CompleteQueryRequest) GetCompany() string {
272 if x != nil {
273 return x.Company
274 }
275 return ""
276 }
277
278 func (x *CompleteQueryRequest) GetScope() CompleteQueryRequest_CompletionScope {
279 if x != nil {
280 return x.Scope
281 }
282 return CompleteQueryRequest_COMPLETION_SCOPE_UNSPECIFIED
283 }
284
285 func (x *CompleteQueryRequest) GetType() CompleteQueryRequest_CompletionType {
286 if x != nil {
287 return x.Type
288 }
289 return CompleteQueryRequest_COMPLETION_TYPE_UNSPECIFIED
290 }
291
292 // Response of auto-complete query.
293 type CompleteQueryResponse struct {
294 state protoimpl.MessageState
295 sizeCache protoimpl.SizeCache
296 unknownFields protoimpl.UnknownFields
297
298 // Results of the matching job/company candidates.
299 CompletionResults []*CompleteQueryResponse_CompletionResult `protobuf:"bytes,1,rep,name=completion_results,json=completionResults,proto3" json:"completion_results,omitempty"`
300 // Additional information for the API invocation, such as the request
301 // tracking id.
302 Metadata *ResponseMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
303 }
304
305 func (x *CompleteQueryResponse) Reset() {
306 *x = CompleteQueryResponse{}
307 mi := &file_google_cloud_talent_v4_completion_service_proto_msgTypes[1]
308 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
309 ms.StoreMessageInfo(mi)
310 }
311
312 func (x *CompleteQueryResponse) String() string {
313 return protoimpl.X.MessageStringOf(x)
314 }
315
316 func (*CompleteQueryResponse) ProtoMessage() {}
317
318 func (x *CompleteQueryResponse) ProtoReflect() protoreflect.Message {
319 mi := &file_google_cloud_talent_v4_completion_service_proto_msgTypes[1]
320 if x != nil {
321 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
322 if ms.LoadMessageInfo() == nil {
323 ms.StoreMessageInfo(mi)
324 }
325 return ms
326 }
327 return mi.MessageOf(x)
328 }
329
330 // Deprecated: Use CompleteQueryResponse.ProtoReflect.Descriptor instead.
331 func (*CompleteQueryResponse) Descriptor() ([]byte, []int) {
332 return file_google_cloud_talent_v4_completion_service_proto_rawDescGZIP(), []int{1}
333 }
334
335 func (x *CompleteQueryResponse) GetCompletionResults() []*CompleteQueryResponse_CompletionResult {
336 if x != nil {
337 return x.CompletionResults
338 }
339 return nil
340 }
341
342 func (x *CompleteQueryResponse) GetMetadata() *ResponseMetadata {
343 if x != nil {
344 return x.Metadata
345 }
346 return nil
347 }
348
349 // Resource that represents completion results.
350 type CompleteQueryResponse_CompletionResult struct {
351 state protoimpl.MessageState
352 sizeCache protoimpl.SizeCache
353 unknownFields protoimpl.UnknownFields
354
355 // The suggestion for the query.
356 Suggestion string `protobuf:"bytes,1,opt,name=suggestion,proto3" json:"suggestion,omitempty"`
357 // The completion topic.
358 Type CompleteQueryRequest_CompletionType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.talent.v4.CompleteQueryRequest_CompletionType" json:"type,omitempty"`
359 // The URI of the company image for
360 // [COMPANY_NAME][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMPANY_NAME].
361 ImageUri string `protobuf:"bytes,3,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"`
362 }
363
364 func (x *CompleteQueryResponse_CompletionResult) Reset() {
365 *x = CompleteQueryResponse_CompletionResult{}
366 mi := &file_google_cloud_talent_v4_completion_service_proto_msgTypes[2]
367 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
368 ms.StoreMessageInfo(mi)
369 }
370
371 func (x *CompleteQueryResponse_CompletionResult) String() string {
372 return protoimpl.X.MessageStringOf(x)
373 }
374
375 func (*CompleteQueryResponse_CompletionResult) ProtoMessage() {}
376
377 func (x *CompleteQueryResponse_CompletionResult) ProtoReflect() protoreflect.Message {
378 mi := &file_google_cloud_talent_v4_completion_service_proto_msgTypes[2]
379 if x != nil {
380 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
381 if ms.LoadMessageInfo() == nil {
382 ms.StoreMessageInfo(mi)
383 }
384 return ms
385 }
386 return mi.MessageOf(x)
387 }
388
389 // Deprecated: Use CompleteQueryResponse_CompletionResult.ProtoReflect.Descriptor instead.
390 func (*CompleteQueryResponse_CompletionResult) Descriptor() ([]byte, []int) {
391 return file_google_cloud_talent_v4_completion_service_proto_rawDescGZIP(), []int{1, 0}
392 }
393
394 func (x *CompleteQueryResponse_CompletionResult) GetSuggestion() string {
395 if x != nil {
396 return x.Suggestion
397 }
398 return ""
399 }
400
401 func (x *CompleteQueryResponse_CompletionResult) GetType() CompleteQueryRequest_CompletionType {
402 if x != nil {
403 return x.Type
404 }
405 return CompleteQueryRequest_COMPLETION_TYPE_UNSPECIFIED
406 }
407
408 func (x *CompleteQueryResponse_CompletionResult) GetImageUri() string {
409 if x != nil {
410 return x.ImageUri
411 }
412 return ""
413 }
414
415 var File_google_cloud_talent_v4_completion_service_proto protoreflect.FileDescriptor
416
417 var file_google_cloud_talent_v4_completion_service_proto_rawDesc = []byte{
418 0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74,
419 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x34, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74,
420 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
421 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
422 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
423 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
424 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
425 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
426 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65,
427 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
428 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65,
429 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f,
430 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74, 0x61, 0x6c, 0x65, 0x6e,
431 0x74, 0x2f, 0x76, 0x34, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
432 0x6f, 0x22, 0xc6, 0x04, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75,
433 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x74, 0x65,
434 0x6e, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x22, 0xe0, 0x41, 0x02, 0xfa,
435 0x41, 0x1c, 0x0a, 0x1a, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
436 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x06,
437 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18,
438 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72,
439 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f,
440 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75,
441 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65,
442 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x02,
443 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x63, 0x6f,
444 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x20, 0xfa, 0x41, 0x1d,
445 0x0a, 0x1b, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
446 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x52, 0x07, 0x63,
447 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x12, 0x52, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18,
448 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
449 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x2e, 0x43,
450 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75,
451 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63,
452 0x6f, 0x70, 0x65, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x4f, 0x0a, 0x04, 0x74, 0x79,
453 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
454 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76,
455 0x34, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52,
456 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f,
457 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x4b, 0x0a, 0x0f, 0x43,
458 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x20,
459 0x0a, 0x1c, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f,
460 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
461 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06,
462 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x02, 0x22, 0x60, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70,
463 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x4f,
464 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,
465 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4a,
466 0x4f, 0x42, 0x5f, 0x54, 0x49, 0x54, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4f,
467 0x4d, 0x50, 0x41, 0x4e, 0x59, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08,
468 0x43, 0x4f, 0x4d, 0x42, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x03, 0x22, 0xef, 0x02, 0x0a, 0x15, 0x43,
469 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70,
470 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69,
471 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
472 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
473 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65,
474 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e,
475 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
476 0x52, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75,
477 0x6c, 0x74, 0x73, 0x12, 0x44, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18,
478 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
479 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x2e, 0x52,
480 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52,
481 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0xa0, 0x01, 0x0a, 0x10, 0x43, 0x6f,
482 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1e,
483 0x0a, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01,
484 0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f,
485 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x67,
486 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65,
487 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75,
488 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c,
489 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
490 0x1b, 0x0a, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01,
491 0x28, 0x09, 0x52, 0x08, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x55, 0x72, 0x69, 0x32, 0xa2, 0x02, 0x0a,
492 0x0a, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0xa5, 0x01, 0x0a, 0x0d,
493 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x2c, 0x2e,
494 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c,
495 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51,
496 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x6f,
497 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e,
498 0x74, 0x2e, 0x76, 0x34, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65,
499 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93,
500 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x76, 0x34, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x3d,
501 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x61, 0x6e,
502 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75,
503 0x65, 0x72, 0x79, 0x1a, 0x6c, 0xca, 0x41, 0x13, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x67, 0x6f, 0x6f,
504 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x53, 0x68, 0x74,
505 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
506 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c,
507 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74,
508 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
509 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6a, 0x6f, 0x62,
510 0x73, 0x42, 0x70, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
511 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x42,
512 0x16, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69,
513 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c, 0x6f, 0x75, 0x64,
514 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x74,
515 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x34, 0x2f, 0x74, 0x61, 0x6c, 0x65,
516 0x6e, 0x74, 0x70, 0x62, 0x3b, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03,
517 0x43, 0x54, 0x53, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
518 }
519
520 var (
521 file_google_cloud_talent_v4_completion_service_proto_rawDescOnce sync.Once
522 file_google_cloud_talent_v4_completion_service_proto_rawDescData = file_google_cloud_talent_v4_completion_service_proto_rawDesc
523 )
524
525 func file_google_cloud_talent_v4_completion_service_proto_rawDescGZIP() []byte {
526 file_google_cloud_talent_v4_completion_service_proto_rawDescOnce.Do(func() {
527 file_google_cloud_talent_v4_completion_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_talent_v4_completion_service_proto_rawDescData)
528 })
529 return file_google_cloud_talent_v4_completion_service_proto_rawDescData
530 }
531
532 var file_google_cloud_talent_v4_completion_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
533 var file_google_cloud_talent_v4_completion_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
534 var file_google_cloud_talent_v4_completion_service_proto_goTypes = []any{
535 (CompleteQueryRequest_CompletionScope)(0), // 0: google.cloud.talent.v4.CompleteQueryRequest.CompletionScope
536 (CompleteQueryRequest_CompletionType)(0), // 1: google.cloud.talent.v4.CompleteQueryRequest.CompletionType
537 (*CompleteQueryRequest)(nil), // 2: google.cloud.talent.v4.CompleteQueryRequest
538 (*CompleteQueryResponse)(nil), // 3: google.cloud.talent.v4.CompleteQueryResponse
539 (*CompleteQueryResponse_CompletionResult)(nil), // 4: google.cloud.talent.v4.CompleteQueryResponse.CompletionResult
540 (*ResponseMetadata)(nil), // 5: google.cloud.talent.v4.ResponseMetadata
541 }
542 var file_google_cloud_talent_v4_completion_service_proto_depIdxs = []int32{
543 0, // 0: google.cloud.talent.v4.CompleteQueryRequest.scope:type_name -> google.cloud.talent.v4.CompleteQueryRequest.CompletionScope
544 1, // 1: google.cloud.talent.v4.CompleteQueryRequest.type:type_name -> google.cloud.talent.v4.CompleteQueryRequest.CompletionType
545 4, // 2: google.cloud.talent.v4.CompleteQueryResponse.completion_results:type_name -> google.cloud.talent.v4.CompleteQueryResponse.CompletionResult
546 5, // 3: google.cloud.talent.v4.CompleteQueryResponse.metadata:type_name -> google.cloud.talent.v4.ResponseMetadata
547 1, // 4: google.cloud.talent.v4.CompleteQueryResponse.CompletionResult.type:type_name -> google.cloud.talent.v4.CompleteQueryRequest.CompletionType
548 2, // 5: google.cloud.talent.v4.Completion.CompleteQuery:input_type -> google.cloud.talent.v4.CompleteQueryRequest
549 3, // 6: google.cloud.talent.v4.Completion.CompleteQuery:output_type -> google.cloud.talent.v4.CompleteQueryResponse
550 6, // [6:7] is the sub-list for method output_type
551 5, // [5:6] is the sub-list for method input_type
552 5, // [5:5] is the sub-list for extension type_name
553 5, // [5:5] is the sub-list for extension extendee
554 0, // [0:5] is the sub-list for field type_name
555 }
556
557 func init() { file_google_cloud_talent_v4_completion_service_proto_init() }
558 func file_google_cloud_talent_v4_completion_service_proto_init() {
559 if File_google_cloud_talent_v4_completion_service_proto != nil {
560 return
561 }
562 file_google_cloud_talent_v4_common_proto_init()
563 type x struct{}
564 out := protoimpl.TypeBuilder{
565 File: protoimpl.DescBuilder{
566 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
567 RawDescriptor: file_google_cloud_talent_v4_completion_service_proto_rawDesc,
568 NumEnums: 2,
569 NumMessages: 3,
570 NumExtensions: 0,
571 NumServices: 1,
572 },
573 GoTypes: file_google_cloud_talent_v4_completion_service_proto_goTypes,
574 DependencyIndexes: file_google_cloud_talent_v4_completion_service_proto_depIdxs,
575 EnumInfos: file_google_cloud_talent_v4_completion_service_proto_enumTypes,
576 MessageInfos: file_google_cloud_talent_v4_completion_service_proto_msgTypes,
577 }.Build()
578 File_google_cloud_talent_v4_completion_service_proto = out.File
579 file_google_cloud_talent_v4_completion_service_proto_rawDesc = nil
580 file_google_cloud_talent_v4_completion_service_proto_goTypes = nil
581 file_google_cloud_talent_v4_completion_service_proto_depIdxs = nil
582 }
583
584 // Reference imports to suppress errors if they are not otherwise used.
585 var _ context.Context
586 var _ grpc.ClientConnInterface
587
588 // This is a compile-time assertion to ensure that this generated file
589 // is compatible with the grpc package it is being compiled against.
590 const _ = grpc.SupportPackageIsVersion6
591
592 // CompletionClient is the client API for Completion service.
593 //
594 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
595 type CompletionClient interface {
596 // Completes the specified prefix with keyword suggestions.
597 // Intended for use by a job search auto-complete search box.
598 CompleteQuery(ctx context.Context, in *CompleteQueryRequest, opts ...grpc.CallOption) (*CompleteQueryResponse, error)
599 }
600
601 type completionClient struct {
602 cc grpc.ClientConnInterface
603 }
604
605 func NewCompletionClient(cc grpc.ClientConnInterface) CompletionClient {
606 return &completionClient{cc}
607 }
608
609 func (c *completionClient) CompleteQuery(ctx context.Context, in *CompleteQueryRequest, opts ...grpc.CallOption) (*CompleteQueryResponse, error) {
610 out := new(CompleteQueryResponse)
611 err := c.cc.Invoke(ctx, "/google.cloud.talent.v4.Completion/CompleteQuery", in, out, opts...)
612 if err != nil {
613 return nil, err
614 }
615 return out, nil
616 }
617
618 // CompletionServer is the server API for Completion service.
619 type CompletionServer interface {
620 // Completes the specified prefix with keyword suggestions.
621 // Intended for use by a job search auto-complete search box.
622 CompleteQuery(context.Context, *CompleteQueryRequest) (*CompleteQueryResponse, error)
623 }
624
625 // UnimplementedCompletionServer can be embedded to have forward compatible implementations.
626 type UnimplementedCompletionServer struct {
627 }
628
629 func (*UnimplementedCompletionServer) CompleteQuery(context.Context, *CompleteQueryRequest) (*CompleteQueryResponse, error) {
630 return nil, status.Errorf(codes.Unimplemented, "method CompleteQuery not implemented")
631 }
632
633 func RegisterCompletionServer(s *grpc.Server, srv CompletionServer) {
634 s.RegisterService(&_Completion_serviceDesc, srv)
635 }
636
637 func _Completion_CompleteQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
638 in := new(CompleteQueryRequest)
639 if err := dec(in); err != nil {
640 return nil, err
641 }
642 if interceptor == nil {
643 return srv.(CompletionServer).CompleteQuery(ctx, in)
644 }
645 info := &grpc.UnaryServerInfo{
646 Server: srv,
647 FullMethod: "/google.cloud.talent.v4.Completion/CompleteQuery",
648 }
649 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
650 return srv.(CompletionServer).CompleteQuery(ctx, req.(*CompleteQueryRequest))
651 }
652 return interceptor(ctx, in, info, handler)
653 }
654
655 var _Completion_serviceDesc = grpc.ServiceDesc{
656 ServiceName: "google.cloud.talent.v4.Completion",
657 HandlerType: (*CompletionServer)(nil),
658 Methods: []grpc.MethodDesc{
659 {
660 MethodName: "CompleteQuery",
661 Handler: _Completion_CompleteQuery_Handler,
662 },
663 },
664 Streams: []grpc.StreamDesc{},
665 Metadata: "google/cloud/talent/v4/completion_service.proto",
666 }