<?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 contact information other than phone, email,
 * URI and addresses.
 *
 * Generated from protobuf message <code>google.cloud.talent.v4beta1.AdditionalContactInfo</code>
 */
class AdditionalContactInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
     *
     * Generated from protobuf field <code>.google.cloud.talent.v4beta1.ContactInfoUsage usage = 1;</code>
     */
    private $usage = 0;
    /**
     * The name of the contact method.
     * For example, "hangout", "skype".
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string name = 2;</code>
     */
    private $name = '';
    /**
     * The contact id.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string contact_id = 3;</code>
     */
    private $contact_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $usage
     *           The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
     *     @type string $name
     *           The name of the contact method.
     *           For example, "hangout", "skype".
     *           Number of characters allowed is 100.
     *     @type string $contact_id
     *           The contact id.
     *           Number of characters allowed is 100.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce();
        parent::__construct($data);
    }

    /**
     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
     *
     * Generated from protobuf field <code>.google.cloud.talent.v4beta1.ContactInfoUsage usage = 1;</code>
     * @return int
     */
    public function getUsage()
    {
        return $this->usage;
    }

    /**
     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
     *
     * Generated from protobuf field <code>.google.cloud.talent.v4beta1.ContactInfoUsage usage = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setUsage($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\ContactInfoUsage::class);
        $this->usage = $var;

        return $this;
    }

    /**
     * The name of the contact method.
     * For example, "hangout", "skype".
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string name = 2;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * The name of the contact method.
     * For example, "hangout", "skype".
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * The contact id.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string contact_id = 3;</code>
     * @return string
     */
    public function getContactId()
    {
        return $this->contact_id;
    }

    /**
     * The contact id.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string contact_id = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setContactId($var)
    {
        GPBUtil::checkString($var, True);
        $this->contact_id = $var;

        return $this;
    }

}

