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