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

namespace Google\Cloud\Talent\V4beta1;

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

/**
 * Update profile request
 *
 * Generated from protobuf message <code>google.cloud.talent.v4beta1.UpdateProfileRequest</code>
 */
class UpdateProfileRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Profile to be updated.
     *
     * Generated from protobuf field <code>.google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $profile = null;
    /**
     * A field mask to specify the profile fields to update.
     * A full update is performed if it is unset.
     * Valid values are:
     * * external_id
     * * source
     * * source_types
     * * uri
     * * is_hirable
     * * create_time
     * * update_time
     * * candidate_update_time
     * * resume_update_time
     * * resume
     * * person_names
     * * addresses
     * * email_addresses
     * * phone_numbers
     * * personal_uris
     * * additional_contact_info
     * * employment_records
     * * education_records
     * * skills
     * * activities
     * * publications
     * * patents
     * * certifications
     * * recruiting_notes
     * * custom_attributes
     * * group_id
     * * external_system
     * * source_note
     * * primary_responsibilities
     * * citizenships
     * * work_authorizations
     * * employee_types
     * * language_code
     * * qualification_summary
     * * allowed_contact_types
     * * preferred_contact_types
     * * contact_availability
     * * language_fluencies
     * * work_preference
     * * industry_experiences
     * * work_environment_experiences
     * * work_availability
     * * security_clearances
     * * references
     * * assessments
     * * interviews
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     */
    private $update_mask = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Talent\V4beta1\Profile $profile
     *           Required. Profile to be updated.
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           A field mask to specify the profile fields to update.
     *           A full update is performed if it is unset.
     *           Valid values are:
     *           * external_id
     *           * source
     *           * source_types
     *           * uri
     *           * is_hirable
     *           * create_time
     *           * update_time
     *           * candidate_update_time
     *           * resume_update_time
     *           * resume
     *           * person_names
     *           * addresses
     *           * email_addresses
     *           * phone_numbers
     *           * personal_uris
     *           * additional_contact_info
     *           * employment_records
     *           * education_records
     *           * skills
     *           * activities
     *           * publications
     *           * patents
     *           * certifications
     *           * recruiting_notes
     *           * custom_attributes
     *           * group_id
     *           * external_system
     *           * source_note
     *           * primary_responsibilities
     *           * citizenships
     *           * work_authorizations
     *           * employee_types
     *           * language_code
     *           * qualification_summary
     *           * allowed_contact_types
     *           * preferred_contact_types
     *           * contact_availability
     *           * language_fluencies
     *           * work_preference
     *           * industry_experiences
     *           * work_environment_experiences
     *           * work_availability
     *           * security_clearances
     *           * references
     *           * assessments
     *           * interviews
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Talent\V4Beta1\ProfileService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Profile to be updated.
     *
     * Generated from protobuf field <code>.google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\Talent\V4beta1\Profile
     */
    public function getProfile()
    {
        return $this->profile;
    }

    /**
     * Required. Profile to be updated.
     *
     * Generated from protobuf field <code>.google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\Talent\V4beta1\Profile $var
     * @return $this
     */
    public function setProfile($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Profile::class);
        $this->profile = $var;

        return $this;
    }

    /**
     * A field mask to specify the profile fields to update.
     * A full update is performed if it is unset.
     * Valid values are:
     * * external_id
     * * source
     * * source_types
     * * uri
     * * is_hirable
     * * create_time
     * * update_time
     * * candidate_update_time
     * * resume_update_time
     * * resume
     * * person_names
     * * addresses
     * * email_addresses
     * * phone_numbers
     * * personal_uris
     * * additional_contact_info
     * * employment_records
     * * education_records
     * * skills
     * * activities
     * * publications
     * * patents
     * * certifications
     * * recruiting_notes
     * * custom_attributes
     * * group_id
     * * external_system
     * * source_note
     * * primary_responsibilities
     * * citizenships
     * * work_authorizations
     * * employee_types
     * * language_code
     * * qualification_summary
     * * allowed_contact_types
     * * preferred_contact_types
     * * contact_availability
     * * language_fluencies
     * * work_preference
     * * industry_experiences
     * * work_environment_experiences
     * * work_availability
     * * security_clearances
     * * references
     * * assessments
     * * interviews
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     * @return \Google\Protobuf\FieldMask
     */
    public function getUpdateMask()
    {
        return $this->update_mask;
    }

    /**
     * A field mask to specify the profile fields to update.
     * A full update is performed if it is unset.
     * Valid values are:
     * * external_id
     * * source
     * * source_types
     * * uri
     * * is_hirable
     * * create_time
     * * update_time
     * * candidate_update_time
     * * resume_update_time
     * * resume
     * * person_names
     * * addresses
     * * email_addresses
     * * phone_numbers
     * * personal_uris
     * * additional_contact_info
     * * employment_records
     * * education_records
     * * skills
     * * activities
     * * publications
     * * patents
     * * certifications
     * * recruiting_notes
     * * custom_attributes
     * * group_id
     * * external_system
     * * source_note
     * * primary_responsibilities
     * * citizenships
     * * work_authorizations
     * * employee_types
     * * language_code
     * * qualification_summary
     * * allowed_contact_types
     * * preferred_contact_types
     * * contact_availability
     * * language_fluencies
     * * work_preference
     * * industry_experiences
     * * work_environment_experiences
     * * work_availability
     * * security_clearances
     * * references
     * * assessments
     * * interviews
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     * @param \Google\Protobuf\FieldMask $var
     * @return $this
     */
    public function setUpdateMask($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
        $this->update_mask = $var;

        return $this;
    }

}

