<?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
{
    /**
     * Optional.
     * Users can create a profile with only this field field, if [resume_type][google.cloud.talent.v4beta1.Resume.resume_type]
     * is [HRXML][]. For example, the API parses this field and creates a profile
     * with all structured fields populated, for example. [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.
     * If this field is provided during profile creation or update,
     * any other structured data provided in the profile is ignored. The
     * API populates these fields by parsing this field.
     *
     * Generated from protobuf field <code>string structured_resume = 1;</code>
     */
    private $structured_resume = '';
    /**
     * Optional.
     * 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
     *           Optional.
     *           Users can create a profile with only this field field, if [resume_type][google.cloud.talent.v4beta1.Resume.resume_type]
     *           is [HRXML][]. For example, the API parses this field and creates a profile
     *           with all structured fields populated, for example. [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.
     *           If this field is provided during profile creation or update,
     *           any other structured data provided in the profile is ignored. The
     *           API populates these fields by parsing this field.
     *     @type int $resume_type
     *           Optional.
     *           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);
    }

    /**
     * Optional.
     * Users can create a profile with only this field field, if [resume_type][google.cloud.talent.v4beta1.Resume.resume_type]
     * is [HRXML][]. For example, the API parses this field and creates a profile
     * with all structured fields populated, for example. [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.
     * If this field is provided during profile creation or update,
     * any other structured data provided in the profile is ignored. The
     * API populates these fields by parsing this field.
     *
     * Generated from protobuf field <code>string structured_resume = 1;</code>
     * @return string
     */
    public function getStructuredResume()
    {
        return $this->structured_resume;
    }

    /**
     * Optional.
     * Users can create a profile with only this field field, if [resume_type][google.cloud.talent.v4beta1.Resume.resume_type]
     * is [HRXML][]. For example, the API parses this field and creates a profile
     * with all structured fields populated, for example. [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.
     * If this field is provided during profile creation or update,
     * any other structured data provided in the profile is ignored. The
     * API populates these fields by parsing this field.
     *
     * 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;
    }

    /**
     * Optional.
     * 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;
    }

    /**
     * Optional.
     * 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;
    }

}

