1// Copyright 2020 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/v4beta1/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_v4beta1_completion_service_proto_enumTypes[0].Descriptor() 82} 83 84func (CompleteQueryRequest_CompletionScope) Type() protoreflect.EnumType { 85 return &file_google_cloud_talent_v4beta1_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_v4beta1_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.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE] type, only open jobs with the same 106 // [language_codes][google.cloud.talent.v4beta1.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.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME] type, 111 // only companies having open jobs with the same [language_codes][google.cloud.talent.v4beta1.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.v4beta1.CompleteQueryRequest.CompletionType.COMBINED] type, only open jobs with the same 117 // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] or companies having open jobs with the same 118 // [language_codes][google.cloud.talent.v4beta1.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_v4beta1_completion_service_proto_enumTypes[1].Descriptor() 150} 151 152func (CompleteQueryRequest_CompletionType) Type() protoreflect.EnumType { 153 return &file_google_cloud_talent_v4beta1_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_v4beta1_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/tenant/bar". 175 // 176 // If tenant id is unspecified, the default tenant is used, for 177 // example, "projects/foo". 178 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 179 // Required. The query used to generate suggestions. 180 // 181 // The maximum number of allowed characters is 255. 182 Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` 183 // The list of languages of the query. This is 184 // the BCP-47 language code, such as "en-US" or "sr-Latn". 185 // For more information, see 186 // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). 187 // 188 // The maximum number of allowed characters is 255. 189 LanguageCodes []string `protobuf:"bytes,3,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"` 190 // Required. Completion result count. 191 // 192 // The maximum allowed page size is 10. 193 PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 194 // If provided, restricts completion to specified company. 195 // 196 // The format is 197 // "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for 198 // example, "projects/foo/tenants/bar/companies/baz". 199 // 200 // If tenant id is unspecified, the default tenant is used, for 201 // example, "projects/foo". 202 Company string `protobuf:"bytes,5,opt,name=company,proto3" json:"company,omitempty"` 203 // The scope of the completion. The defaults is [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC]. 204 Scope CompleteQueryRequest_CompletionScope `protobuf:"varint,6,opt,name=scope,proto3,enum=google.cloud.talent.v4beta1.CompleteQueryRequest_CompletionScope" json:"scope,omitempty"` 205 // The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]. 206 Type CompleteQueryRequest_CompletionType `protobuf:"varint,7,opt,name=type,proto3,enum=google.cloud.talent.v4beta1.CompleteQueryRequest_CompletionType" json:"type,omitempty"` 207} 208 209func (x *CompleteQueryRequest) Reset() { 210 *x = CompleteQueryRequest{} 211 if protoimpl.UnsafeEnabled { 212 mi := &file_google_cloud_talent_v4beta1_completion_service_proto_msgTypes[0] 213 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 214 ms.StoreMessageInfo(mi) 215 } 216} 217 218func (x *CompleteQueryRequest) String() string { 219 return protoimpl.X.MessageStringOf(x) 220} 221 222func (*CompleteQueryRequest) ProtoMessage() {} 223 224func (x *CompleteQueryRequest) ProtoReflect() protoreflect.Message { 225 mi := &file_google_cloud_talent_v4beta1_completion_service_proto_msgTypes[0] 226 if protoimpl.UnsafeEnabled && x != nil { 227 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 228 if ms.LoadMessageInfo() == nil { 229 ms.StoreMessageInfo(mi) 230 } 231 return ms 232 } 233 return mi.MessageOf(x) 234} 235 236// Deprecated: Use CompleteQueryRequest.ProtoReflect.Descriptor instead. 237func (*CompleteQueryRequest) Descriptor() ([]byte, []int) { 238 return file_google_cloud_talent_v4beta1_completion_service_proto_rawDescGZIP(), []int{0} 239} 240 241func (x *CompleteQueryRequest) GetParent() string { 242 if x != nil { 243 return x.Parent 244 } 245 return "" 246} 247 248func (x *CompleteQueryRequest) GetQuery() string { 249 if x != nil { 250 return x.Query 251 } 252 return "" 253} 254 255func (x *CompleteQueryRequest) GetLanguageCodes() []string { 256 if x != nil { 257 return x.LanguageCodes 258 } 259 return nil 260} 261 262func (x *CompleteQueryRequest) GetPageSize() int32 { 263 if x != nil { 264 return x.PageSize 265 } 266 return 0 267} 268 269func (x *CompleteQueryRequest) GetCompany() string { 270 if x != nil { 271 return x.Company 272 } 273 return "" 274} 275 276func (x *CompleteQueryRequest) GetScope() CompleteQueryRequest_CompletionScope { 277 if x != nil { 278 return x.Scope 279 } 280 return CompleteQueryRequest_COMPLETION_SCOPE_UNSPECIFIED 281} 282 283func (x *CompleteQueryRequest) GetType() CompleteQueryRequest_CompletionType { 284 if x != nil { 285 return x.Type 286 } 287 return CompleteQueryRequest_COMPLETION_TYPE_UNSPECIFIED 288} 289 290// Response of auto-complete query. 291type CompleteQueryResponse struct { 292 state protoimpl.MessageState 293 sizeCache protoimpl.SizeCache 294 unknownFields protoimpl.UnknownFields 295 296 // Results of the matching job/company candidates. 297 CompletionResults []*CompleteQueryResponse_CompletionResult `protobuf:"bytes,1,rep,name=completion_results,json=completionResults,proto3" json:"completion_results,omitempty"` 298 // Additional information for the API invocation, such as the request 299 // tracking id. 300 Metadata *ResponseMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` 301} 302 303func (x *CompleteQueryResponse) Reset() { 304 *x = CompleteQueryResponse{} 305 if protoimpl.UnsafeEnabled { 306 mi := &file_google_cloud_talent_v4beta1_completion_service_proto_msgTypes[1] 307 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 308 ms.StoreMessageInfo(mi) 309 } 310} 311 312func (x *CompleteQueryResponse) String() string { 313 return protoimpl.X.MessageStringOf(x) 314} 315 316func (*CompleteQueryResponse) ProtoMessage() {} 317 318func (x *CompleteQueryResponse) ProtoReflect() protoreflect.Message { 319 mi := &file_google_cloud_talent_v4beta1_completion_service_proto_msgTypes[1] 320 if protoimpl.UnsafeEnabled && 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. 331func (*CompleteQueryResponse) Descriptor() ([]byte, []int) { 332 return file_google_cloud_talent_v4beta1_completion_service_proto_rawDescGZIP(), []int{1} 333} 334 335func (x *CompleteQueryResponse) GetCompletionResults() []*CompleteQueryResponse_CompletionResult { 336 if x != nil { 337 return x.CompletionResults 338 } 339 return nil 340} 341 342func (x *CompleteQueryResponse) GetMetadata() *ResponseMetadata { 343 if x != nil { 344 return x.Metadata 345 } 346 return nil 347} 348 349// Resource that represents completion results. 350type 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.v4beta1.CompleteQueryRequest_CompletionType" json:"type,omitempty"` 359 // The URI of the company image for 360 // [COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]. 361 ImageUri string `protobuf:"bytes,3,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"` 362} 363 364func (x *CompleteQueryResponse_CompletionResult) Reset() { 365 *x = CompleteQueryResponse_CompletionResult{} 366 if protoimpl.UnsafeEnabled { 367 mi := &file_google_cloud_talent_v4beta1_completion_service_proto_msgTypes[2] 368 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 369 ms.StoreMessageInfo(mi) 370 } 371} 372 373func (x *CompleteQueryResponse_CompletionResult) String() string { 374 return protoimpl.X.MessageStringOf(x) 375} 376 377func (*CompleteQueryResponse_CompletionResult) ProtoMessage() {} 378 379func (x *CompleteQueryResponse_CompletionResult) ProtoReflect() protoreflect.Message { 380 mi := &file_google_cloud_talent_v4beta1_completion_service_proto_msgTypes[2] 381 if protoimpl.UnsafeEnabled && x != nil { 382 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 383 if ms.LoadMessageInfo() == nil { 384 ms.StoreMessageInfo(mi) 385 } 386 return ms 387 } 388 return mi.MessageOf(x) 389} 390 391// Deprecated: Use CompleteQueryResponse_CompletionResult.ProtoReflect.Descriptor instead. 392func (*CompleteQueryResponse_CompletionResult) Descriptor() ([]byte, []int) { 393 return file_google_cloud_talent_v4beta1_completion_service_proto_rawDescGZIP(), []int{1, 0} 394} 395 396func (x *CompleteQueryResponse_CompletionResult) GetSuggestion() string { 397 if x != nil { 398 return x.Suggestion 399 } 400 return "" 401} 402 403func (x *CompleteQueryResponse_CompletionResult) GetType() CompleteQueryRequest_CompletionType { 404 if x != nil { 405 return x.Type 406 } 407 return CompleteQueryRequest_COMPLETION_TYPE_UNSPECIFIED 408} 409 410func (x *CompleteQueryResponse_CompletionResult) GetImageUri() string { 411 if x != nil { 412 return x.ImageUri 413 } 414 return "" 415} 416 417var File_google_cloud_talent_v4beta1_completion_service_proto protoreflect.FileDescriptor 418 419var file_google_cloud_talent_v4beta1_completion_service_proto_rawDesc = []byte{ 420 0x0a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74, 421 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 422 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 423 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 424 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x62, 0x65, 425 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 426 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 427 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 428 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 429 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 430 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x67, 431 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74, 0x61, 0x6c, 0x65, 432 0x6e, 0x74, 0x2f, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 433 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 434 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 435 0x22, 0xd1, 0x04, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 436 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x70, 0x61, 0x72, 437 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe0, 0x41, 0x02, 0xfa, 0x41, 438 0x1d, 0x12, 0x1b, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 439 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x52, 0x06, 440 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 441 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 442 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 443 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 444 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 445 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x02, 446 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x63, 0x6f, 447 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x20, 0xfa, 0x41, 0x1d, 448 0x0a, 0x1b, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 449 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x52, 0x07, 0x63, 450 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x12, 0x57, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 451 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 452 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x62, 0x65, 453 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 454 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 455 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 456 0x54, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x40, 0x2e, 457 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 458 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 459 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 460 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 461 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x4b, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 462 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x43, 0x4f, 0x4d, 0x50, 463 0x4c, 0x45, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 464 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x45, 465 0x4e, 0x41, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 466 0x10, 0x02, 0x22, 0x60, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 467 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x49, 468 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 469 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x4f, 0x42, 0x5f, 0x54, 0x49, 0x54, 470 0x4c, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4f, 0x4d, 0x50, 0x41, 0x4e, 0x59, 0x5f, 471 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, 0x4d, 0x42, 0x49, 0x4e, 472 0x45, 0x44, 0x10, 0x03, 0x22, 0xfe, 0x02, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 473 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 474 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 475 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 476 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 477 0x2e, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 478 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 479 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 480 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 481 0x74, 0x73, 0x12, 0x49, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 482 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 483 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x62, 0x65, 0x74, 484 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 485 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0xa5, 0x01, 486 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 487 0x6c, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 488 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 489 0x6f, 0x6e, 0x12, 0x54, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 490 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 491 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 492 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 493 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 494 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6d, 0x61, 0x67, 495 0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6d, 0x61, 496 0x67, 0x65, 0x55, 0x72, 0x69, 0x32, 0xd5, 0x02, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 497 0x74, 0x69, 0x6f, 0x6e, 0x12, 0xd8, 0x01, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 498 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 499 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x62, 500 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 501 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 502 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 503 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 504 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x60, 0x82, 505 0xd3, 0xe4, 0x93, 0x02, 0x5a, 0x12, 0x2f, 0x2f, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 506 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 507 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x6f, 508 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x5a, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x34, 0x62, 0x65, 0x74, 509 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 510 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x1a, 511 0x6c, 0xca, 0x41, 0x13, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 512 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x53, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 513 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 514 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 515 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 516 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 517 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6a, 0x6f, 0x62, 0x73, 0x42, 0x84, 0x01, 518 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 519 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 520 0x31, 0x42, 0x16, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 521 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, 0x6f, 0x6f, 522 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 523 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 524 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2f, 525 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0xa2, 0x02, 526 0x03, 0x43, 0x54, 0x53, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 527} 528 529var ( 530 file_google_cloud_talent_v4beta1_completion_service_proto_rawDescOnce sync.Once 531 file_google_cloud_talent_v4beta1_completion_service_proto_rawDescData = file_google_cloud_talent_v4beta1_completion_service_proto_rawDesc 532) 533 534func file_google_cloud_talent_v4beta1_completion_service_proto_rawDescGZIP() []byte { 535 file_google_cloud_talent_v4beta1_completion_service_proto_rawDescOnce.Do(func() { 536 file_google_cloud_talent_v4beta1_completion_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_talent_v4beta1_completion_service_proto_rawDescData) 537 }) 538 return file_google_cloud_talent_v4beta1_completion_service_proto_rawDescData 539} 540 541var file_google_cloud_talent_v4beta1_completion_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 542var file_google_cloud_talent_v4beta1_completion_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 543var file_google_cloud_talent_v4beta1_completion_service_proto_goTypes = []interface{}{ 544 (CompleteQueryRequest_CompletionScope)(0), // 0: google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope 545 (CompleteQueryRequest_CompletionType)(0), // 1: google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType 546 (*CompleteQueryRequest)(nil), // 2: google.cloud.talent.v4beta1.CompleteQueryRequest 547 (*CompleteQueryResponse)(nil), // 3: google.cloud.talent.v4beta1.CompleteQueryResponse 548 (*CompleteQueryResponse_CompletionResult)(nil), // 4: google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult 549 (*ResponseMetadata)(nil), // 5: google.cloud.talent.v4beta1.ResponseMetadata 550} 551var file_google_cloud_talent_v4beta1_completion_service_proto_depIdxs = []int32{ 552 0, // 0: google.cloud.talent.v4beta1.CompleteQueryRequest.scope:type_name -> google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope 553 1, // 1: google.cloud.talent.v4beta1.CompleteQueryRequest.type:type_name -> google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType 554 4, // 2: google.cloud.talent.v4beta1.CompleteQueryResponse.completion_results:type_name -> google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult 555 5, // 3: google.cloud.talent.v4beta1.CompleteQueryResponse.metadata:type_name -> google.cloud.talent.v4beta1.ResponseMetadata 556 1, // 4: google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.type:type_name -> google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType 557 2, // 5: google.cloud.talent.v4beta1.Completion.CompleteQuery:input_type -> google.cloud.talent.v4beta1.CompleteQueryRequest 558 3, // 6: google.cloud.talent.v4beta1.Completion.CompleteQuery:output_type -> google.cloud.talent.v4beta1.CompleteQueryResponse 559 6, // [6:7] is the sub-list for method output_type 560 5, // [5:6] is the sub-list for method input_type 561 5, // [5:5] is the sub-list for extension type_name 562 5, // [5:5] is the sub-list for extension extendee 563 0, // [0:5] is the sub-list for field type_name 564} 565 566func init() { file_google_cloud_talent_v4beta1_completion_service_proto_init() } 567func file_google_cloud_talent_v4beta1_completion_service_proto_init() { 568 if File_google_cloud_talent_v4beta1_completion_service_proto != nil { 569 return 570 } 571 file_google_cloud_talent_v4beta1_common_proto_init() 572 if !protoimpl.UnsafeEnabled { 573 file_google_cloud_talent_v4beta1_completion_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 574 switch v := v.(*CompleteQueryRequest); 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_v4beta1_completion_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 586 switch v := v.(*CompleteQueryResponse); 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 file_google_cloud_talent_v4beta1_completion_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 598 switch v := v.(*CompleteQueryResponse_CompletionResult); i { 599 case 0: 600 return &v.state 601 case 1: 602 return &v.sizeCache 603 case 2: 604 return &v.unknownFields 605 default: 606 return nil 607 } 608 } 609 } 610 type x struct{} 611 out := protoimpl.TypeBuilder{ 612 File: protoimpl.DescBuilder{ 613 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 614 RawDescriptor: file_google_cloud_talent_v4beta1_completion_service_proto_rawDesc, 615 NumEnums: 2, 616 NumMessages: 3, 617 NumExtensions: 0, 618 NumServices: 1, 619 }, 620 GoTypes: file_google_cloud_talent_v4beta1_completion_service_proto_goTypes, 621 DependencyIndexes: file_google_cloud_talent_v4beta1_completion_service_proto_depIdxs, 622 EnumInfos: file_google_cloud_talent_v4beta1_completion_service_proto_enumTypes, 623 MessageInfos: file_google_cloud_talent_v4beta1_completion_service_proto_msgTypes, 624 }.Build() 625 File_google_cloud_talent_v4beta1_completion_service_proto = out.File 626 file_google_cloud_talent_v4beta1_completion_service_proto_rawDesc = nil 627 file_google_cloud_talent_v4beta1_completion_service_proto_goTypes = nil 628 file_google_cloud_talent_v4beta1_completion_service_proto_depIdxs = nil 629} 630 631// Reference imports to suppress errors if they are not otherwise used. 632var _ context.Context 633var _ grpc.ClientConnInterface 634 635// This is a compile-time assertion to ensure that this generated file 636// is compatible with the grpc package it is being compiled against. 637const _ = grpc.SupportPackageIsVersion6 638 639// CompletionClient is the client API for Completion service. 640// 641// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 642type CompletionClient interface { 643 // Completes the specified prefix with keyword suggestions. 644 // Intended for use by a job search auto-complete search box. 645 CompleteQuery(ctx context.Context, in *CompleteQueryRequest, opts ...grpc.CallOption) (*CompleteQueryResponse, error) 646} 647 648type completionClient struct { 649 cc grpc.ClientConnInterface 650} 651 652func NewCompletionClient(cc grpc.ClientConnInterface) CompletionClient { 653 return &completionClient{cc} 654} 655 656func (c *completionClient) CompleteQuery(ctx context.Context, in *CompleteQueryRequest, opts ...grpc.CallOption) (*CompleteQueryResponse, error) { 657 out := new(CompleteQueryResponse) 658 err := c.cc.Invoke(ctx, "/google.cloud.talent.v4beta1.Completion/CompleteQuery", in, out, opts...) 659 if err != nil { 660 return nil, err 661 } 662 return out, nil 663} 664 665// CompletionServer is the server API for Completion service. 666type CompletionServer interface { 667 // Completes the specified prefix with keyword suggestions. 668 // Intended for use by a job search auto-complete search box. 669 CompleteQuery(context.Context, *CompleteQueryRequest) (*CompleteQueryResponse, error) 670} 671 672// UnimplementedCompletionServer can be embedded to have forward compatible implementations. 673type UnimplementedCompletionServer struct { 674} 675 676func (*UnimplementedCompletionServer) CompleteQuery(context.Context, *CompleteQueryRequest) (*CompleteQueryResponse, error) { 677 return nil, status.Errorf(codes.Unimplemented, "method CompleteQuery not implemented") 678} 679 680func RegisterCompletionServer(s *grpc.Server, srv CompletionServer) { 681 s.RegisterService(&_Completion_serviceDesc, srv) 682} 683 684func _Completion_CompleteQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 685 in := new(CompleteQueryRequest) 686 if err := dec(in); err != nil { 687 return nil, err 688 } 689 if interceptor == nil { 690 return srv.(CompletionServer).CompleteQuery(ctx, in) 691 } 692 info := &grpc.UnaryServerInfo{ 693 Server: srv, 694 FullMethod: "/google.cloud.talent.v4beta1.Completion/CompleteQuery", 695 } 696 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 697 return srv.(CompletionServer).CompleteQuery(ctx, req.(*CompleteQueryRequest)) 698 } 699 return interceptor(ctx, in, info, handler) 700} 701 702var _Completion_serviceDesc = grpc.ServiceDesc{ 703 ServiceName: "google.cloud.talent.v4beta1.Completion", 704 HandlerType: (*CompletionServer)(nil), 705 Methods: []grpc.MethodDesc{ 706 { 707 MethodName: "CompleteQuery", 708 Handler: _Completion_CompleteQuery_Handler, 709 }, 710 }, 711 Streams: []grpc.StreamDesc{}, 712 Metadata: "google/cloud/talent/v4beta1/completion_service.proto", 713} 714