<?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
{
    /**
     * Optional. 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;
    /**
     * Optional. 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 = '';
    /**
     * Optional. 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
     *           Optional. The usage of this contact method. For example, SCHOOL, WORK,
     *           PERSONAL.
     *     @type string $name
     *           Optional. The name of the contact method.
     *           For example, "hangout", "skype".
     *           Number of characters allowed is 100.
     *     @type string $contact_id
     *           Optional. The contact id.
     *           Number of characters allowed is 100.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce();
        parent::__construct($data);
    }

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

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

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

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

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

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

}

