<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/talent/v4beta1/profile.proto

namespace Google\Cloud\Talent\V4beta1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Resource that represents a resume.
 *
 * Generated from protobuf message <code>google.cloud.talent.v4beta1.Resume</code>
 */
class Resume extends \Google\Protobuf\Internal\Message
{
    /**
     * Users can create a profile with only this field field, if [resume_type][google.cloud.talent.v4beta1.Resume.resume_type]
     * is [HRXML][google.cloud.talent.v4beta1.Resume.ResumeType.HRXML]. For example, the API parses this field and
     * creates a profile
     * with all structured fields populated. [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], and so on. An error is thrown if this field cannot be
     * parsed.
     * Note that the use of the functionality offered by this field to extract
     * data from resumes is an Alpha feature and as such is not covered by any
     * SLA.
     *
     * Generated from protobuf field <code>string structured_resume = 1;</code>
     */
    private $structured_resume = '';
    /**
     * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume].
     *
     * Generated from protobuf field <code>.google.cloud.talent.v4beta1.Resume.ResumeType resume_type = 2;</code>
     */
    private $resume_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $structured_resume
     *           Users can create a profile with only this field field, if [resume_type][google.cloud.talent.v4beta1.Resume.resume_type]
     *           is [HRXML][google.cloud.talent.v4beta1.Resume.ResumeType.HRXML]. For example, the API parses this field and
     *           creates a profile
     *           with all structured fields populated. [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
     *           [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], and so on. An error is thrown if this field cannot be
     *           parsed.
     *           Note that the use of the functionality offered by this field to extract
     *           data from resumes is an Alpha feature and as such is not covered by any
     *           SLA.
     *     @type int $resume_type
     *           The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume].
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce();
        parent::__construct($data);
    }

    /**
     * Users can create a profile with only this field field, if [resume_type][google.cloud.talent.v4beta1.Resume.resume_type]
     * is [HRXML][google.cloud.talent.v4beta1.Resume.ResumeType.HRXML]. For example, the API parses this field and
     * creates a profile
     * with all structured fields populated. [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], and so on. An error is thrown if this field cannot be
     * parsed.
     * Note that the use of the functionality offered by this field to extract
     * data from resumes is an Alpha feature and as such is not covered by any
     * SLA.
     *
     * Generated from protobuf field <code>string structured_resume = 1;</code>
     * @return string
     */
    public function getStructuredResume()
    {
        return $this->structured_resume;
    }

    /**
     * Users can create a profile with only this field field, if [resume_type][google.cloud.talent.v4beta1.Resume.resume_type]
     * is [HRXML][google.cloud.talent.v4beta1.Resume.ResumeType.HRXML]. For example, the API parses this field and
     * creates a profile
     * with all structured fields populated. [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], and so on. An error is thrown if this field cannot be
     * parsed.
     * Note that the use of the functionality offered by this field to extract
     * data from resumes is an Alpha feature and as such is not covered by any
     * SLA.
     *
     * Generated from protobuf field <code>string structured_resume = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setStructuredResume($var)
    {
        GPBUtil::checkString($var, True);
        $this->structured_resume = $var;

        return $this;
    }

    /**
     * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume].
     *
     * Generated from protobuf field <code>.google.cloud.talent.v4beta1.Resume.ResumeType resume_type = 2;</code>
     * @return int
     */
    public function getResumeType()
    {
        return $this->resume_type;
    }

    /**
     * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume].
     *
     * Generated from protobuf field <code>.google.cloud.talent.v4beta1.Resume.ResumeType resume_type = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setResumeType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\Resume_ResumeType::class);
        $this->resume_type = $var;

        return $this;
    }

}

