1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/talent/v4beta1/completion_service.proto 3 4package talent 5 6import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 _ "google.golang.org/genproto/googleapis/api/annotations" 13 grpc "google.golang.org/grpc" 14) 15 16// Reference imports to suppress errors if they are not otherwise used. 17var _ = proto.Marshal 18var _ = fmt.Errorf 19var _ = math.Inf 20 21// This is a compile-time assertion to ensure that this generated file 22// is compatible with the proto package it is being compiled against. 23// A compilation error at this line likely means your copy of the 24// proto package needs to be updated. 25const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 26 27// Enum to specify the scope of completion. 28type CompleteQueryRequest_CompletionScope int32 29 30const ( 31 // Default value. 32 CompleteQueryRequest_COMPLETION_SCOPE_UNSPECIFIED CompleteQueryRequest_CompletionScope = 0 33 // Suggestions are based only on the data provided by the client. 34 CompleteQueryRequest_TENANT CompleteQueryRequest_CompletionScope = 1 35 // Suggestions are based on all jobs data in the system that's visible to 36 // the client 37 CompleteQueryRequest_PUBLIC CompleteQueryRequest_CompletionScope = 2 38) 39 40var CompleteQueryRequest_CompletionScope_name = map[int32]string{ 41 0: "COMPLETION_SCOPE_UNSPECIFIED", 42 1: "TENANT", 43 2: "PUBLIC", 44} 45 46var CompleteQueryRequest_CompletionScope_value = map[string]int32{ 47 "COMPLETION_SCOPE_UNSPECIFIED": 0, 48 "TENANT": 1, 49 "PUBLIC": 2, 50} 51 52func (x CompleteQueryRequest_CompletionScope) String() string { 53 return proto.EnumName(CompleteQueryRequest_CompletionScope_name, int32(x)) 54} 55 56func (CompleteQueryRequest_CompletionScope) EnumDescriptor() ([]byte, []int) { 57 return fileDescriptor_a6e2d15ed940916e, []int{0, 0} 58} 59 60// Enum to specify auto-completion topics. 61type CompleteQueryRequest_CompletionType int32 62 63const ( 64 // Default value. 65 CompleteQueryRequest_COMPLETION_TYPE_UNSPECIFIED CompleteQueryRequest_CompletionType = 0 66 // Only suggest job titles. 67 CompleteQueryRequest_JOB_TITLE CompleteQueryRequest_CompletionType = 1 68 // Only suggest company names. 69 CompleteQueryRequest_COMPANY_NAME CompleteQueryRequest_CompletionType = 2 70 // Suggest both job titles and company names. 71 CompleteQueryRequest_COMBINED CompleteQueryRequest_CompletionType = 3 72) 73 74var CompleteQueryRequest_CompletionType_name = map[int32]string{ 75 0: "COMPLETION_TYPE_UNSPECIFIED", 76 1: "JOB_TITLE", 77 2: "COMPANY_NAME", 78 3: "COMBINED", 79} 80 81var CompleteQueryRequest_CompletionType_value = map[string]int32{ 82 "COMPLETION_TYPE_UNSPECIFIED": 0, 83 "JOB_TITLE": 1, 84 "COMPANY_NAME": 2, 85 "COMBINED": 3, 86} 87 88func (x CompleteQueryRequest_CompletionType) String() string { 89 return proto.EnumName(CompleteQueryRequest_CompletionType_name, int32(x)) 90} 91 92func (CompleteQueryRequest_CompletionType) EnumDescriptor() ([]byte, []int) { 93 return fileDescriptor_a6e2d15ed940916e, []int{0, 1} 94} 95 96// Input only. 97// 98// Auto-complete parameters. 99type CompleteQueryRequest struct { 100 // Required. Resource name of tenant the completion is performed within. 101 // 102 // The format is "projects/{project_id}/tenants/{tenant_id}", for example, 103 // "projects/api-test-project/tenant/foo". 104 // 105 // Tenant id is optional and the default tenant is used if unspecified, for 106 // example, "projects/api-test-project". 107 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 108 // Required. The query used to generate suggestions. 109 // 110 // The maximum number of allowed characters is 255. 111 Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` 112 // Optional. The list of languages of the query. This is 113 // the BCP-47 language code, such as "en-US" or "sr-Latn". 114 // For more information, see 115 // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). 116 // 117 // For 118 // [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE] 119 // type, only open jobs with the same 120 // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] 121 // are returned. 122 // 123 // For 124 // [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME] 125 // type, only companies having open jobs with the same 126 // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] 127 // are returned. 128 // 129 // For 130 // [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED] 131 // type, only open jobs with the same 132 // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] 133 // or companies having open jobs with the same 134 // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] 135 // are returned. 136 // 137 // The maximum number of allowed characters is 255. 138 LanguageCodes []string `protobuf:"bytes,3,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"` 139 // Required. Completion result count. 140 // 141 // The maximum allowed page size is 10. 142 PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 143 // Optional. If provided, restricts completion to specified company. 144 // 145 // The format is 146 // "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for 147 // example, "projects/api-test-project/tenants/foo/companies/bar". 148 // 149 // Tenant id is optional and the default tenant is used if unspecified, for 150 // example, "projects/api-test-project/companies/bar". 151 Company string `protobuf:"bytes,5,opt,name=company,proto3" json:"company,omitempty"` 152 // Optional. The scope of the completion. The defaults is 153 // [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC]. 154 Scope CompleteQueryRequest_CompletionScope `protobuf:"varint,6,opt,name=scope,proto3,enum=google.cloud.talent.v4beta1.CompleteQueryRequest_CompletionScope" json:"scope,omitempty"` 155 // Optional. The completion topic. The default is 156 // [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]. 157 Type CompleteQueryRequest_CompletionType `protobuf:"varint,7,opt,name=type,proto3,enum=google.cloud.talent.v4beta1.CompleteQueryRequest_CompletionType" json:"type,omitempty"` 158 XXX_NoUnkeyedLiteral struct{} `json:"-"` 159 XXX_unrecognized []byte `json:"-"` 160 XXX_sizecache int32 `json:"-"` 161} 162 163func (m *CompleteQueryRequest) Reset() { *m = CompleteQueryRequest{} } 164func (m *CompleteQueryRequest) String() string { return proto.CompactTextString(m) } 165func (*CompleteQueryRequest) ProtoMessage() {} 166func (*CompleteQueryRequest) Descriptor() ([]byte, []int) { 167 return fileDescriptor_a6e2d15ed940916e, []int{0} 168} 169 170func (m *CompleteQueryRequest) XXX_Unmarshal(b []byte) error { 171 return xxx_messageInfo_CompleteQueryRequest.Unmarshal(m, b) 172} 173func (m *CompleteQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 174 return xxx_messageInfo_CompleteQueryRequest.Marshal(b, m, deterministic) 175} 176func (m *CompleteQueryRequest) XXX_Merge(src proto.Message) { 177 xxx_messageInfo_CompleteQueryRequest.Merge(m, src) 178} 179func (m *CompleteQueryRequest) XXX_Size() int { 180 return xxx_messageInfo_CompleteQueryRequest.Size(m) 181} 182func (m *CompleteQueryRequest) XXX_DiscardUnknown() { 183 xxx_messageInfo_CompleteQueryRequest.DiscardUnknown(m) 184} 185 186var xxx_messageInfo_CompleteQueryRequest proto.InternalMessageInfo 187 188func (m *CompleteQueryRequest) GetParent() string { 189 if m != nil { 190 return m.Parent 191 } 192 return "" 193} 194 195func (m *CompleteQueryRequest) GetQuery() string { 196 if m != nil { 197 return m.Query 198 } 199 return "" 200} 201 202func (m *CompleteQueryRequest) GetLanguageCodes() []string { 203 if m != nil { 204 return m.LanguageCodes 205 } 206 return nil 207} 208 209func (m *CompleteQueryRequest) GetPageSize() int32 { 210 if m != nil { 211 return m.PageSize 212 } 213 return 0 214} 215 216func (m *CompleteQueryRequest) GetCompany() string { 217 if m != nil { 218 return m.Company 219 } 220 return "" 221} 222 223func (m *CompleteQueryRequest) GetScope() CompleteQueryRequest_CompletionScope { 224 if m != nil { 225 return m.Scope 226 } 227 return CompleteQueryRequest_COMPLETION_SCOPE_UNSPECIFIED 228} 229 230func (m *CompleteQueryRequest) GetType() CompleteQueryRequest_CompletionType { 231 if m != nil { 232 return m.Type 233 } 234 return CompleteQueryRequest_COMPLETION_TYPE_UNSPECIFIED 235} 236 237// Output only. 238// 239// Response of auto-complete query. 240type CompleteQueryResponse struct { 241 // Results of the matching job/company candidates. 242 CompletionResults []*CompleteQueryResponse_CompletionResult `protobuf:"bytes,1,rep,name=completion_results,json=completionResults,proto3" json:"completion_results,omitempty"` 243 // Additional information for the API invocation, such as the request 244 // tracking id. 245 Metadata *ResponseMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` 246 XXX_NoUnkeyedLiteral struct{} `json:"-"` 247 XXX_unrecognized []byte `json:"-"` 248 XXX_sizecache int32 `json:"-"` 249} 250 251func (m *CompleteQueryResponse) Reset() { *m = CompleteQueryResponse{} } 252func (m *CompleteQueryResponse) String() string { return proto.CompactTextString(m) } 253func (*CompleteQueryResponse) ProtoMessage() {} 254func (*CompleteQueryResponse) Descriptor() ([]byte, []int) { 255 return fileDescriptor_a6e2d15ed940916e, []int{1} 256} 257 258func (m *CompleteQueryResponse) XXX_Unmarshal(b []byte) error { 259 return xxx_messageInfo_CompleteQueryResponse.Unmarshal(m, b) 260} 261func (m *CompleteQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 262 return xxx_messageInfo_CompleteQueryResponse.Marshal(b, m, deterministic) 263} 264func (m *CompleteQueryResponse) XXX_Merge(src proto.Message) { 265 xxx_messageInfo_CompleteQueryResponse.Merge(m, src) 266} 267func (m *CompleteQueryResponse) XXX_Size() int { 268 return xxx_messageInfo_CompleteQueryResponse.Size(m) 269} 270func (m *CompleteQueryResponse) XXX_DiscardUnknown() { 271 xxx_messageInfo_CompleteQueryResponse.DiscardUnknown(m) 272} 273 274var xxx_messageInfo_CompleteQueryResponse proto.InternalMessageInfo 275 276func (m *CompleteQueryResponse) GetCompletionResults() []*CompleteQueryResponse_CompletionResult { 277 if m != nil { 278 return m.CompletionResults 279 } 280 return nil 281} 282 283func (m *CompleteQueryResponse) GetMetadata() *ResponseMetadata { 284 if m != nil { 285 return m.Metadata 286 } 287 return nil 288} 289 290// Output only. 291// 292// Resource that represents completion results. 293type CompleteQueryResponse_CompletionResult struct { 294 // The suggestion for the query. 295 Suggestion string `protobuf:"bytes,1,opt,name=suggestion,proto3" json:"suggestion,omitempty"` 296 // The completion topic. 297 Type CompleteQueryRequest_CompletionType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.talent.v4beta1.CompleteQueryRequest_CompletionType" json:"type,omitempty"` 298 // The URI of the company image for 299 // [COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]. 300 ImageUri string `protobuf:"bytes,3,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"` 301 XXX_NoUnkeyedLiteral struct{} `json:"-"` 302 XXX_unrecognized []byte `json:"-"` 303 XXX_sizecache int32 `json:"-"` 304} 305 306func (m *CompleteQueryResponse_CompletionResult) Reset() { 307 *m = CompleteQueryResponse_CompletionResult{} 308} 309func (m *CompleteQueryResponse_CompletionResult) String() string { return proto.CompactTextString(m) } 310func (*CompleteQueryResponse_CompletionResult) ProtoMessage() {} 311func (*CompleteQueryResponse_CompletionResult) Descriptor() ([]byte, []int) { 312 return fileDescriptor_a6e2d15ed940916e, []int{1, 0} 313} 314 315func (m *CompleteQueryResponse_CompletionResult) XXX_Unmarshal(b []byte) error { 316 return xxx_messageInfo_CompleteQueryResponse_CompletionResult.Unmarshal(m, b) 317} 318func (m *CompleteQueryResponse_CompletionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 319 return xxx_messageInfo_CompleteQueryResponse_CompletionResult.Marshal(b, m, deterministic) 320} 321func (m *CompleteQueryResponse_CompletionResult) XXX_Merge(src proto.Message) { 322 xxx_messageInfo_CompleteQueryResponse_CompletionResult.Merge(m, src) 323} 324func (m *CompleteQueryResponse_CompletionResult) XXX_Size() int { 325 return xxx_messageInfo_CompleteQueryResponse_CompletionResult.Size(m) 326} 327func (m *CompleteQueryResponse_CompletionResult) XXX_DiscardUnknown() { 328 xxx_messageInfo_CompleteQueryResponse_CompletionResult.DiscardUnknown(m) 329} 330 331var xxx_messageInfo_CompleteQueryResponse_CompletionResult proto.InternalMessageInfo 332 333func (m *CompleteQueryResponse_CompletionResult) GetSuggestion() string { 334 if m != nil { 335 return m.Suggestion 336 } 337 return "" 338} 339 340func (m *CompleteQueryResponse_CompletionResult) GetType() CompleteQueryRequest_CompletionType { 341 if m != nil { 342 return m.Type 343 } 344 return CompleteQueryRequest_COMPLETION_TYPE_UNSPECIFIED 345} 346 347func (m *CompleteQueryResponse_CompletionResult) GetImageUri() string { 348 if m != nil { 349 return m.ImageUri 350 } 351 return "" 352} 353 354func init() { 355 proto.RegisterEnum("google.cloud.talent.v4beta1.CompleteQueryRequest_CompletionScope", CompleteQueryRequest_CompletionScope_name, CompleteQueryRequest_CompletionScope_value) 356 proto.RegisterEnum("google.cloud.talent.v4beta1.CompleteQueryRequest_CompletionType", CompleteQueryRequest_CompletionType_name, CompleteQueryRequest_CompletionType_value) 357 proto.RegisterType((*CompleteQueryRequest)(nil), "google.cloud.talent.v4beta1.CompleteQueryRequest") 358 proto.RegisterType((*CompleteQueryResponse)(nil), "google.cloud.talent.v4beta1.CompleteQueryResponse") 359 proto.RegisterType((*CompleteQueryResponse_CompletionResult)(nil), "google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult") 360} 361 362func init() { 363 proto.RegisterFile("google/cloud/talent/v4beta1/completion_service.proto", fileDescriptor_a6e2d15ed940916e) 364} 365 366var fileDescriptor_a6e2d15ed940916e = []byte{ 367 // 712 bytes of a gzipped FileDescriptorProto 368 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xdd, 0x6e, 0xd3, 0x48, 369 0x14, 0x5e, 0x3b, 0x4d, 0x9a, 0x4c, 0x7f, 0xd6, 0x3b, 0xdb, 0xed, 0x5a, 0x69, 0x45, 0xa3, 0x48, 370 0x15, 0x11, 0xa2, 0xb6, 0x1a, 0x7a, 0x55, 0x84, 0x44, 0xe2, 0x1a, 0x29, 0xd0, 0x38, 0xc1, 0x71, 371 0x85, 0xda, 0x9b, 0x74, 0xea, 0x0e, 0xae, 0x2b, 0xdb, 0xe3, 0x7a, 0xc6, 0xad, 0x52, 0x84, 0x84, 372 0x10, 0x6f, 0xc0, 0x1b, 0x20, 0xf1, 0x32, 0x5c, 0x82, 0x90, 0x78, 0x00, 0x9e, 0x03, 0xa1, 0xb1, 373 0x9d, 0x36, 0x0d, 0x55, 0xaa, 0x0a, 0xee, 0x7c, 0xbe, 0x39, 0xdf, 0x77, 0x8e, 0xcf, 0x9c, 0xf9, 374 0xc0, 0x86, 0x43, 0x88, 0xe3, 0x61, 0xd5, 0xf6, 0x48, 0x7c, 0xa8, 0x32, 0xe4, 0xe1, 0x80, 0xa9, 375 0xa7, 0x1b, 0x07, 0x98, 0xa1, 0x75, 0xd5, 0x26, 0x7e, 0xe8, 0x61, 0xe6, 0x92, 0xa0, 0x4f, 0x71, 376 0x74, 0xea, 0xda, 0x58, 0x09, 0x23, 0xc2, 0x08, 0x5c, 0x4a, 0x59, 0x4a, 0xc2, 0x52, 0x52, 0x96, 377 0x92, 0xb1, 0xca, 0xcb, 0x99, 0x24, 0x0a, 0x5d, 0x15, 0x05, 0x01, 0x61, 0x88, 0x2b, 0xd0, 0x94, 378 0x5a, 0xfe, 0x7f, 0xe4, 0xd4, 0xf6, 0x5c, 0x4e, 0x4c, 0x0f, 0x6a, 0x37, 0x74, 0xe2, 0x93, 0x20, 379 0xcd, 0xac, 0xbe, 0x99, 0x02, 0x0b, 0x5a, 0xda, 0x1a, 0x7e, 0x1e, 0xe3, 0x68, 0x60, 0xe2, 0x93, 380 0x18, 0x53, 0x06, 0x17, 0x41, 0x21, 0x44, 0x11, 0x0e, 0x98, 0x2c, 0x54, 0x84, 0x5a, 0xc9, 0xcc, 381 0x22, 0xb8, 0x00, 0xf2, 0x27, 0x3c, 0x4f, 0x16, 0x13, 0x38, 0x0d, 0xe0, 0x2a, 0x98, 0xf7, 0x50, 382 0xe0, 0xc4, 0xc8, 0xc1, 0x7d, 0x9b, 0x1c, 0x62, 0x2a, 0xe7, 0x2a, 0xb9, 0x5a, 0xc9, 0x9c, 0x1b, 383 0xa2, 0x1a, 0x07, 0xe1, 0x12, 0x28, 0x85, 0x3c, 0x85, 0xba, 0xe7, 0x58, 0x9e, 0xaa, 0x08, 0xb5, 384 0xbc, 0x59, 0xe4, 0x40, 0xcf, 0x3d, 0xc7, 0x50, 0x06, 0xd3, 0x7c, 0x48, 0x28, 0x18, 0xc8, 0xf9, 385 0x44, 0x7b, 0x18, 0xc2, 0x17, 0x20, 0x4f, 0x6d, 0x12, 0x62, 0xb9, 0x50, 0x11, 0x6a, 0xf3, 0xf5, 386 0x86, 0x32, 0x61, 0x64, 0xca, 0x75, 0x7f, 0x33, 0x04, 0x5d, 0x12, 0xf4, 0xb8, 0x90, 0x99, 0xea, 387 0x41, 0x0b, 0x4c, 0xb1, 0x41, 0x88, 0xe5, 0xe9, 0x44, 0xf7, 0xf1, 0xef, 0xe8, 0x5a, 0x83, 0x10, 388 0x9b, 0x89, 0x5a, 0xf5, 0x19, 0xf8, 0x7b, 0xac, 0x1e, 0xac, 0x80, 0x65, 0xad, 0xd3, 0xee, 0x6e, 389 0xeb, 0x56, 0xab, 0x63, 0xf4, 0x7b, 0x5a, 0xa7, 0xab, 0xf7, 0x77, 0x8c, 0x5e, 0x57, 0xd7, 0x5a, 390 0x4f, 0x5a, 0xfa, 0x96, 0xf4, 0x17, 0x04, 0xa0, 0x60, 0xe9, 0x46, 0xc3, 0xb0, 0x24, 0x81, 0x7f, 391 0x77, 0x77, 0x9a, 0xdb, 0x2d, 0x4d, 0x12, 0xab, 0xfb, 0x60, 0xfe, 0x6a, 0x11, 0xb8, 0x02, 0x96, 392 0x46, 0xb4, 0xac, 0xdd, 0x5f, 0xa4, 0xe6, 0x40, 0xe9, 0x69, 0xa7, 0xd9, 0xb7, 0x5a, 0xd6, 0xb6, 393 0x2e, 0x09, 0x50, 0x02, 0xb3, 0x3c, 0xbf, 0x61, 0xec, 0xf6, 0x8d, 0x46, 0x5b, 0x97, 0x44, 0x38, 394 0x0b, 0x8a, 0x5a, 0xa7, 0xdd, 0x6c, 0x19, 0xfa, 0x96, 0x94, 0xab, 0xfe, 0x10, 0xc1, 0x7f, 0x63, 395 0x3f, 0x47, 0x43, 0x12, 0x50, 0x0c, 0x23, 0x00, 0x47, 0xd6, 0x36, 0xc2, 0x34, 0xf6, 0x18, 0x95, 396 0x85, 0x4a, 0xae, 0x36, 0x53, 0xd7, 0x6e, 0x33, 0xac, 0x54, 0x6f, 0x64, 0x5a, 0x66, 0xa2, 0x65, 397 0xfe, 0x63, 0x8f, 0x21, 0x14, 0xb6, 0x40, 0xd1, 0xc7, 0x0c, 0x1d, 0x22, 0x86, 0x92, 0x15, 0x9b, 398 0xa9, 0xaf, 0x4d, 0xac, 0x34, 0x14, 0x6f, 0x67, 0x24, 0xf3, 0x82, 0x5e, 0xfe, 0x28, 0x00, 0x69, 399 0xbc, 0x24, 0xbc, 0x03, 0x00, 0x8d, 0x1d, 0x07, 0x53, 0x8e, 0x65, 0xbb, 0x3d, 0x82, 0x5c, 0xac, 400 0x84, 0xf8, 0x27, 0x57, 0x82, 0x2f, 0xbe, 0xeb, 0xf3, 0xcd, 0x8f, 0x23, 0x57, 0xce, 0x25, 0x45, 401 0x8b, 0x09, 0xb0, 0x13, 0xb9, 0xf5, 0xaf, 0x22, 0x00, 0x97, 0x2c, 0xf8, 0x4d, 0x00, 0x73, 0x57, 402 0x94, 0xe1, 0xfa, 0xad, 0xbb, 0x28, 0xd7, 0x6f, 0x7f, 0x3d, 0xd5, 0xfd, 0xb7, 0x5f, 0xbe, 0xbf, 403 0x17, 0xf7, 0xa0, 0x7a, 0x61, 0x15, 0xaf, 0xd2, 0x47, 0xff, 0x28, 0x8c, 0xc8, 0x31, 0xb6, 0x19, 404 0x55, 0xef, 0xa9, 0x0c, 0x07, 0x28, 0xe0, 0x5f, 0xaf, 0x37, 0xb3, 0xcb, 0xc3, 0x7b, 0x77, 0xe1, 405 0xea, 0x04, 0xca, 0x65, 0x62, 0xd9, 0xfb, 0xd4, 0xf8, 0xf7, 0x98, 0x1c, 0xd0, 0xac, 0x39, 0x14, 406 0xba, 0x54, 0xb1, 0x89, 0xff, 0xb9, 0xd1, 0x3b, 0x62, 0x2c, 0xa4, 0x9b, 0xaa, 0x7a, 0x76, 0x76, 407 0x36, 0x76, 0xa8, 0xa2, 0x98, 0x1d, 0xa5, 0x4e, 0xb6, 0x16, 0x7a, 0x88, 0xbd, 0x24, 0x91, 0x7f, 408 0xff, 0xa6, 0x74, 0x5e, 0xa4, 0xf9, 0x4e, 0x00, 0x2b, 0x36, 0xf1, 0x27, 0x4d, 0xa2, 0xb9, 0x38, 409 0xf2, 0x52, 0x53, 0x5b, 0xee, 0x72, 0x5f, 0xec, 0x0a, 0x7b, 0x8d, 0x8c, 0xe6, 0x10, 0xee, 0x61, 410 0x0a, 0x89, 0x1c, 0xd5, 0xc1, 0x41, 0xe2, 0x9a, 0xea, 0x65, 0xc9, 0x6b, 0x2d, 0xf6, 0x61, 0x1a, 411 0x7e, 0x10, 0x73, 0x9a, 0xd5, 0x3b, 0x28, 0x24, 0x9c, 0x07, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 412 0xd3, 0x5f, 0x18, 0xad, 0x1f, 0x06, 0x00, 0x00, 413} 414 415// Reference imports to suppress errors if they are not otherwise used. 416var _ context.Context 417var _ grpc.ClientConn 418 419// This is a compile-time assertion to ensure that this generated file 420// is compatible with the grpc package it is being compiled against. 421const _ = grpc.SupportPackageIsVersion4 422 423// CompletionClient is the client API for Completion service. 424// 425// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 426type CompletionClient interface { 427 // Completes the specified prefix with keyword suggestions. 428 // Intended for use by a job search auto-complete search box. 429 CompleteQuery(ctx context.Context, in *CompleteQueryRequest, opts ...grpc.CallOption) (*CompleteQueryResponse, error) 430} 431 432type completionClient struct { 433 cc *grpc.ClientConn 434} 435 436func NewCompletionClient(cc *grpc.ClientConn) CompletionClient { 437 return &completionClient{cc} 438} 439 440func (c *completionClient) CompleteQuery(ctx context.Context, in *CompleteQueryRequest, opts ...grpc.CallOption) (*CompleteQueryResponse, error) { 441 out := new(CompleteQueryResponse) 442 err := c.cc.Invoke(ctx, "/google.cloud.talent.v4beta1.Completion/CompleteQuery", in, out, opts...) 443 if err != nil { 444 return nil, err 445 } 446 return out, nil 447} 448 449// CompletionServer is the server API for Completion service. 450type CompletionServer interface { 451 // Completes the specified prefix with keyword suggestions. 452 // Intended for use by a job search auto-complete search box. 453 CompleteQuery(context.Context, *CompleteQueryRequest) (*CompleteQueryResponse, error) 454} 455 456func RegisterCompletionServer(s *grpc.Server, srv CompletionServer) { 457 s.RegisterService(&_Completion_serviceDesc, srv) 458} 459 460func _Completion_CompleteQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 461 in := new(CompleteQueryRequest) 462 if err := dec(in); err != nil { 463 return nil, err 464 } 465 if interceptor == nil { 466 return srv.(CompletionServer).CompleteQuery(ctx, in) 467 } 468 info := &grpc.UnaryServerInfo{ 469 Server: srv, 470 FullMethod: "/google.cloud.talent.v4beta1.Completion/CompleteQuery", 471 } 472 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 473 return srv.(CompletionServer).CompleteQuery(ctx, req.(*CompleteQueryRequest)) 474 } 475 return interceptor(ctx, in, info, handler) 476} 477 478var _Completion_serviceDesc = grpc.ServiceDesc{ 479 ServiceName: "google.cloud.talent.v4beta1.Completion", 480 HandlerType: (*CompletionServer)(nil), 481 Methods: []grpc.MethodDesc{ 482 { 483 MethodName: "CompleteQuery", 484 Handler: _Completion_CompleteQuery_Handler, 485 }, 486 }, 487 Streams: []grpc.StreamDesc{}, 488 Metadata: "google/cloud/talent/v4beta1/completion_service.proto", 489} 490