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