You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

414 lines
16 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/talent/v4beta1/resume_service.proto
  3. package talent // import "google.golang.org/genproto/googleapis/cloud/talent/v4beta1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. import (
  9. context "golang.org/x/net/context"
  10. grpc "google.golang.org/grpc"
  11. )
  12. // Reference imports to suppress errors if they are not otherwise used.
  13. var _ = proto.Marshal
  14. var _ = fmt.Errorf
  15. var _ = math.Inf
  16. // This is a compile-time assertion to ensure that this generated file
  17. // is compatible with the proto package it is being compiled against.
  18. // A compilation error at this line likely means your copy of the
  19. // proto package needs to be updated.
  20. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  21. // Parse resume request.
  22. type ParseResumeRequest struct {
  23. // Required.
  24. //
  25. // The resource name of the project.
  26. //
  27. // The format is "projects/{project_id}", for example,
  28. // "projects/api-test-project".
  29. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  30. // Required.
  31. //
  32. // The bytes of the resume file in common format, for example, PDF, TXT.
  33. // UTF-8 encoding is required if the resume is text-based, otherwise an error
  34. // is thrown.
  35. Resume []byte `protobuf:"bytes,2,opt,name=resume,proto3" json:"resume,omitempty"`
  36. // Optional.
  37. //
  38. // The region code indicating where the resume is from. Values
  39. // are as per the ISO-3166-2 format. For example, US, FR, DE.
  40. //
  41. // This value is optional, but providing this value improves the resume
  42. // parsing quality and performance.
  43. //
  44. // An error is thrown if the regionCode is invalid.
  45. RegionCode string `protobuf:"bytes,3,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
  46. // Optional.
  47. //
  48. // The language code of contents in the resume.
  49. //
  50. // Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
  51. // For more information, see
  52. // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
  53. // class="external" target="_blank" }.
  54. LanguageCode string `protobuf:"bytes,4,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
  55. // Optional.
  56. //
  57. // Options that change how the resume parse is performed.
  58. Options *ParseResumeOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"`
  59. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  60. XXX_unrecognized []byte `json:"-"`
  61. XXX_sizecache int32 `json:"-"`
  62. }
  63. func (m *ParseResumeRequest) Reset() { *m = ParseResumeRequest{} }
  64. func (m *ParseResumeRequest) String() string { return proto.CompactTextString(m) }
  65. func (*ParseResumeRequest) ProtoMessage() {}
  66. func (*ParseResumeRequest) Descriptor() ([]byte, []int) {
  67. return fileDescriptor_resume_service_d325ab94b73b8b68, []int{0}
  68. }
  69. func (m *ParseResumeRequest) XXX_Unmarshal(b []byte) error {
  70. return xxx_messageInfo_ParseResumeRequest.Unmarshal(m, b)
  71. }
  72. func (m *ParseResumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  73. return xxx_messageInfo_ParseResumeRequest.Marshal(b, m, deterministic)
  74. }
  75. func (dst *ParseResumeRequest) XXX_Merge(src proto.Message) {
  76. xxx_messageInfo_ParseResumeRequest.Merge(dst, src)
  77. }
  78. func (m *ParseResumeRequest) XXX_Size() int {
  79. return xxx_messageInfo_ParseResumeRequest.Size(m)
  80. }
  81. func (m *ParseResumeRequest) XXX_DiscardUnknown() {
  82. xxx_messageInfo_ParseResumeRequest.DiscardUnknown(m)
  83. }
  84. var xxx_messageInfo_ParseResumeRequest proto.InternalMessageInfo
  85. func (m *ParseResumeRequest) GetParent() string {
  86. if m != nil {
  87. return m.Parent
  88. }
  89. return ""
  90. }
  91. func (m *ParseResumeRequest) GetResume() []byte {
  92. if m != nil {
  93. return m.Resume
  94. }
  95. return nil
  96. }
  97. func (m *ParseResumeRequest) GetRegionCode() string {
  98. if m != nil {
  99. return m.RegionCode
  100. }
  101. return ""
  102. }
  103. func (m *ParseResumeRequest) GetLanguageCode() string {
  104. if m != nil {
  105. return m.LanguageCode
  106. }
  107. return ""
  108. }
  109. func (m *ParseResumeRequest) GetOptions() *ParseResumeOptions {
  110. if m != nil {
  111. return m.Options
  112. }
  113. return nil
  114. }
  115. // Options that change how the resume parse is performed.
  116. type ParseResumeOptions struct {
  117. // Optional.
  118. //
  119. // Controls whether Optical Character Recognition (OCR) is enabled.
  120. //
  121. // OCR is used to decipher pictorial resumes, or resumes that have some
  122. // element of pictorial detail (for example, contact information placed within
  123. // an image in a pdf). Note that the API call has a higher latency if OCR is
  124. // enabled.
  125. EnableOcr bool `protobuf:"varint,1,opt,name=enable_ocr,json=enableOcr,proto3" json:"enable_ocr,omitempty"`
  126. // Optional.
  127. //
  128. // Controls whether detected skills are included in the parsed profile from
  129. // sections of the resume other than just skills sections.
  130. //
  131. // Normally, returned skills are limited to those taken from a resume section
  132. // intended to list skills. When enabled, this feature causes detected
  133. // skills in other sections to also be included in the returned profile.
  134. EnableFullSkillDetection bool `protobuf:"varint,2,opt,name=enable_full_skill_detection,json=enableFullSkillDetection,proto3" json:"enable_full_skill_detection,omitempty"`
  135. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  136. XXX_unrecognized []byte `json:"-"`
  137. XXX_sizecache int32 `json:"-"`
  138. }
  139. func (m *ParseResumeOptions) Reset() { *m = ParseResumeOptions{} }
  140. func (m *ParseResumeOptions) String() string { return proto.CompactTextString(m) }
  141. func (*ParseResumeOptions) ProtoMessage() {}
  142. func (*ParseResumeOptions) Descriptor() ([]byte, []int) {
  143. return fileDescriptor_resume_service_d325ab94b73b8b68, []int{1}
  144. }
  145. func (m *ParseResumeOptions) XXX_Unmarshal(b []byte) error {
  146. return xxx_messageInfo_ParseResumeOptions.Unmarshal(m, b)
  147. }
  148. func (m *ParseResumeOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  149. return xxx_messageInfo_ParseResumeOptions.Marshal(b, m, deterministic)
  150. }
  151. func (dst *ParseResumeOptions) XXX_Merge(src proto.Message) {
  152. xxx_messageInfo_ParseResumeOptions.Merge(dst, src)
  153. }
  154. func (m *ParseResumeOptions) XXX_Size() int {
  155. return xxx_messageInfo_ParseResumeOptions.Size(m)
  156. }
  157. func (m *ParseResumeOptions) XXX_DiscardUnknown() {
  158. xxx_messageInfo_ParseResumeOptions.DiscardUnknown(m)
  159. }
  160. var xxx_messageInfo_ParseResumeOptions proto.InternalMessageInfo
  161. func (m *ParseResumeOptions) GetEnableOcr() bool {
  162. if m != nil {
  163. return m.EnableOcr
  164. }
  165. return false
  166. }
  167. func (m *ParseResumeOptions) GetEnableFullSkillDetection() bool {
  168. if m != nil {
  169. return m.EnableFullSkillDetection
  170. }
  171. return false
  172. }
  173. // Parse resume response.
  174. type ParseResumeResponse struct {
  175. // The profile parsed from resume.
  176. Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
  177. // Raw text from resume.
  178. RawText string `protobuf:"bytes,2,opt,name=raw_text,json=rawText,proto3" json:"raw_text,omitempty"`
  179. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  180. XXX_unrecognized []byte `json:"-"`
  181. XXX_sizecache int32 `json:"-"`
  182. }
  183. func (m *ParseResumeResponse) Reset() { *m = ParseResumeResponse{} }
  184. func (m *ParseResumeResponse) String() string { return proto.CompactTextString(m) }
  185. func (*ParseResumeResponse) ProtoMessage() {}
  186. func (*ParseResumeResponse) Descriptor() ([]byte, []int) {
  187. return fileDescriptor_resume_service_d325ab94b73b8b68, []int{2}
  188. }
  189. func (m *ParseResumeResponse) XXX_Unmarshal(b []byte) error {
  190. return xxx_messageInfo_ParseResumeResponse.Unmarshal(m, b)
  191. }
  192. func (m *ParseResumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  193. return xxx_messageInfo_ParseResumeResponse.Marshal(b, m, deterministic)
  194. }
  195. func (dst *ParseResumeResponse) XXX_Merge(src proto.Message) {
  196. xxx_messageInfo_ParseResumeResponse.Merge(dst, src)
  197. }
  198. func (m *ParseResumeResponse) XXX_Size() int {
  199. return xxx_messageInfo_ParseResumeResponse.Size(m)
  200. }
  201. func (m *ParseResumeResponse) XXX_DiscardUnknown() {
  202. xxx_messageInfo_ParseResumeResponse.DiscardUnknown(m)
  203. }
  204. var xxx_messageInfo_ParseResumeResponse proto.InternalMessageInfo
  205. func (m *ParseResumeResponse) GetProfile() *Profile {
  206. if m != nil {
  207. return m.Profile
  208. }
  209. return nil
  210. }
  211. func (m *ParseResumeResponse) GetRawText() string {
  212. if m != nil {
  213. return m.RawText
  214. }
  215. return ""
  216. }
  217. func init() {
  218. proto.RegisterType((*ParseResumeRequest)(nil), "google.cloud.talent.v4beta1.ParseResumeRequest")
  219. proto.RegisterType((*ParseResumeOptions)(nil), "google.cloud.talent.v4beta1.ParseResumeOptions")
  220. proto.RegisterType((*ParseResumeResponse)(nil), "google.cloud.talent.v4beta1.ParseResumeResponse")
  221. }
  222. // Reference imports to suppress errors if they are not otherwise used.
  223. var _ context.Context
  224. var _ grpc.ClientConn
  225. // This is a compile-time assertion to ensure that this generated file
  226. // is compatible with the grpc package it is being compiled against.
  227. const _ = grpc.SupportPackageIsVersion4
  228. // ResumeServiceClient is the client API for ResumeService service.
  229. //
  230. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  231. type ResumeServiceClient interface {
  232. // Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The
  233. // API attempts to fill out the following profile fields if present within the
  234. // resume:
  235. //
  236. // * personNames
  237. // * addresses
  238. // * emailAddress
  239. // * phoneNumbers
  240. // * personalUris
  241. // * employmentRecords
  242. // * educationRecords
  243. // * skills
  244. //
  245. // Note that some attributes in these fields may not be populated if they're
  246. // not present within the resume or unrecognizable by the resume parser.
  247. //
  248. // This API does not save the resume or profile. To create a profile from this
  249. // resume, clients need to call the CreateProfile method again with the
  250. // profile returned.
  251. //
  252. // The following list of formats are supported:
  253. //
  254. // * PDF
  255. // * TXT
  256. // * DOC
  257. // * RTF
  258. // * DOCX
  259. // * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`,
  260. // otherwise an error is thrown)
  261. ParseResume(ctx context.Context, in *ParseResumeRequest, opts ...grpc.CallOption) (*ParseResumeResponse, error)
  262. }
  263. type resumeServiceClient struct {
  264. cc *grpc.ClientConn
  265. }
  266. func NewResumeServiceClient(cc *grpc.ClientConn) ResumeServiceClient {
  267. return &resumeServiceClient{cc}
  268. }
  269. func (c *resumeServiceClient) ParseResume(ctx context.Context, in *ParseResumeRequest, opts ...grpc.CallOption) (*ParseResumeResponse, error) {
  270. out := new(ParseResumeResponse)
  271. err := c.cc.Invoke(ctx, "/google.cloud.talent.v4beta1.ResumeService/ParseResume", in, out, opts...)
  272. if err != nil {
  273. return nil, err
  274. }
  275. return out, nil
  276. }
  277. // ResumeServiceServer is the server API for ResumeService service.
  278. type ResumeServiceServer interface {
  279. // Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The
  280. // API attempts to fill out the following profile fields if present within the
  281. // resume:
  282. //
  283. // * personNames
  284. // * addresses
  285. // * emailAddress
  286. // * phoneNumbers
  287. // * personalUris
  288. // * employmentRecords
  289. // * educationRecords
  290. // * skills
  291. //
  292. // Note that some attributes in these fields may not be populated if they're
  293. // not present within the resume or unrecognizable by the resume parser.
  294. //
  295. // This API does not save the resume or profile. To create a profile from this
  296. // resume, clients need to call the CreateProfile method again with the
  297. // profile returned.
  298. //
  299. // The following list of formats are supported:
  300. //
  301. // * PDF
  302. // * TXT
  303. // * DOC
  304. // * RTF
  305. // * DOCX
  306. // * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`,
  307. // otherwise an error is thrown)
  308. ParseResume(context.Context, *ParseResumeRequest) (*ParseResumeResponse, error)
  309. }
  310. func RegisterResumeServiceServer(s *grpc.Server, srv ResumeServiceServer) {
  311. s.RegisterService(&_ResumeService_serviceDesc, srv)
  312. }
  313. func _ResumeService_ParseResume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  314. in := new(ParseResumeRequest)
  315. if err := dec(in); err != nil {
  316. return nil, err
  317. }
  318. if interceptor == nil {
  319. return srv.(ResumeServiceServer).ParseResume(ctx, in)
  320. }
  321. info := &grpc.UnaryServerInfo{
  322. Server: srv,
  323. FullMethod: "/google.cloud.talent.v4beta1.ResumeService/ParseResume",
  324. }
  325. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  326. return srv.(ResumeServiceServer).ParseResume(ctx, req.(*ParseResumeRequest))
  327. }
  328. return interceptor(ctx, in, info, handler)
  329. }
  330. var _ResumeService_serviceDesc = grpc.ServiceDesc{
  331. ServiceName: "google.cloud.talent.v4beta1.ResumeService",
  332. HandlerType: (*ResumeServiceServer)(nil),
  333. Methods: []grpc.MethodDesc{
  334. {
  335. MethodName: "ParseResume",
  336. Handler: _ResumeService_ParseResume_Handler,
  337. },
  338. },
  339. Streams: []grpc.StreamDesc{},
  340. Metadata: "google/cloud/talent/v4beta1/resume_service.proto",
  341. }
  342. func init() {
  343. proto.RegisterFile("google/cloud/talent/v4beta1/resume_service.proto", fileDescriptor_resume_service_d325ab94b73b8b68)
  344. }
  345. var fileDescriptor_resume_service_d325ab94b73b8b68 = []byte{
  346. // 476 bytes of a gzipped FileDescriptorProto
  347. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6e, 0x13, 0x31,
  348. 0x10, 0x86, 0xe5, 0x16, 0x9a, 0xc4, 0x69, 0x2f, 0x46, 0x42, 0x4b, 0x0a, 0x6a, 0xb4, 0x70, 0x08,
  349. 0x39, 0xac, 0x4b, 0x80, 0x4b, 0x51, 0x91, 0x68, 0x11, 0x12, 0xa7, 0x46, 0x9b, 0x9e, 0xb8, 0xac,
  350. 0x9c, 0xcd, 0x74, 0xb5, 0xe0, 0x7a, 0x8c, 0xed, 0x6d, 0x2b, 0x21, 0x24, 0xc4, 0x2b, 0xf0, 0x06,
  351. 0x5c, 0x78, 0x06, 0x9e, 0x03, 0xf1, 0x06, 0x3c, 0x08, 0x5a, 0xdb, 0x41, 0x8d, 0x84, 0xa2, 0x1e,
  352. 0x3d, 0xf3, 0x7f, 0x3b, 0xf3, 0xcf, 0xfe, 0x74, 0xbf, 0x42, 0xac, 0x24, 0xf0, 0x52, 0x62, 0xb3,
  353. 0xe0, 0x4e, 0x48, 0x50, 0x8e, 0x5f, 0x3c, 0x9b, 0x83, 0x13, 0x4f, 0xb8, 0x01, 0xdb, 0x9c, 0x43,
  354. 0x61, 0xc1, 0x5c, 0xd4, 0x25, 0x64, 0xda, 0xa0, 0x43, 0xb6, 0x1b, 0x88, 0xcc, 0x13, 0x59, 0x20,
  355. 0xb2, 0x48, 0x0c, 0xee, 0xc7, 0xcf, 0x09, 0x5d, 0x73, 0xa1, 0x14, 0x3a, 0xe1, 0x6a, 0x54, 0x36,
  356. 0xa0, 0x83, 0xc7, 0xeb, 0x86, 0x69, 0x83, 0x67, 0xb5, 0x8c, 0x53, 0xd2, 0xdf, 0x84, 0xb2, 0xa9,
  357. 0x30, 0x16, 0x72, 0xbf, 0x43, 0x0e, 0x1f, 0x1b, 0xb0, 0x8e, 0xdd, 0xa5, 0x5b, 0x5a, 0x18, 0x50,
  358. 0x2e, 0x21, 0x43, 0x32, 0xea, 0xe5, 0xf1, 0xd5, 0xd6, 0xc3, 0xb2, 0xc9, 0xc6, 0x90, 0x8c, 0xb6,
  359. 0xf3, 0xf8, 0x62, 0x7b, 0xb4, 0x6f, 0xa0, 0xaa, 0x51, 0x15, 0x25, 0x2e, 0x20, 0xd9, 0xf4, 0x10,
  360. 0x0d, 0xa5, 0x63, 0x5c, 0x00, 0x7b, 0x48, 0x77, 0xa4, 0x50, 0x55, 0x23, 0x2a, 0x08, 0x92, 0x5b,
  361. 0x5e, 0xb2, 0xbd, 0x2c, 0x7a,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71, 0x7b, 0xa0, 0xdb, 0x2f, 0x1c, 0x90, 0xf1, 0xd1, 0x17, 0x42, 0xf7, 0x4a,
  373. 0x3c, 0x5f, 0x37, 0xee, 0x88, 0xad, 0x98, 0x9b, 0xb6, 0x89, 0x9d, 0x92, 0x77, 0xaf, 0x22, 0x52,
  374. 0x61, 0x9b, 0x9e, 0x0c, 0x4d, 0xc5, 0x2b, 0x50, 0x3e, 0xcf, 0x3c, 0xb4, 0x84, 0xae, 0xed, 0x7f,
  375. 0xd3, 0xff, 0x22, 0x3c, 0xbf, 0x6f, 0x6c, 0x1e, 0x9f, 0xce, 0xe6, 0x5b, 0x9e, 0x79, 0xfa, 0x37,
  376. 0x00, 0x00, 0xff, 0xff, 0xf9, 0x33, 0x2d, 0x87, 0x9d, 0x03, 0x00, 0x00,
  377. }