<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v20/resources/local_services_employee.proto

namespace Google\Ads\GoogleAds\V20\Resources;

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

/**
 * A list of degrees this employee has obtained, and wants to feature.
 *
 * Generated from protobuf message <code>google.ads.googleads.v20.resources.UniversityDegree</code>
 */
class UniversityDegree extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Name of the university at which the degree was obtained.
     *
     * Generated from protobuf field <code>optional string institution_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $institution_name = null;
    /**
     * Output only. Name of the degree obtained.
     *
     * Generated from protobuf field <code>optional string degree = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $degree = null;
    /**
     * Output only. Year of graduation.
     *
     * Generated from protobuf field <code>optional int32 graduation_year = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $graduation_year = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $institution_name
     *           Output only. Name of the university at which the degree was obtained.
     *     @type string $degree
     *           Output only. Name of the degree obtained.
     *     @type int $graduation_year
     *           Output only. Year of graduation.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V20\Resources\LocalServicesEmployee::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Name of the university at which the degree was obtained.
     *
     * Generated from protobuf field <code>optional string institution_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getInstitutionName()
    {
        return isset($this->institution_name) ? $this->institution_name : '';
    }

    public function hasInstitutionName()
    {
        return isset($this->institution_name);
    }

    public function clearInstitutionName()
    {
        unset($this->institution_name);
    }

    /**
     * Output only. Name of the university at which the degree was obtained.
     *
     * Generated from protobuf field <code>optional string institution_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setInstitutionName($var)
    {
        GPBUtil::checkString($var, True);
        $this->institution_name = $var;

        return $this;
    }

    /**
     * Output only. Name of the degree obtained.
     *
     * Generated from protobuf field <code>optional string degree = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getDegree()
    {
        return isset($this->degree) ? $this->degree : '';
    }

    public function hasDegree()
    {
        return isset($this->degree);
    }

    public function clearDegree()
    {
        unset($this->degree);
    }

    /**
     * Output only. Name of the degree obtained.
     *
     * Generated from protobuf field <code>optional string degree = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setDegree($var)
    {
        GPBUtil::checkString($var, True);
        $this->degree = $var;

        return $this;
    }

    /**
     * Output only. Year of graduation.
     *
     * Generated from protobuf field <code>optional int32 graduation_year = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getGraduationYear()
    {
        return isset($this->graduation_year) ? $this->graduation_year : 0;
    }

    public function hasGraduationYear()
    {
        return isset($this->graduation_year);
    }

    public function clearGraduationYear()
    {
        unset($this->graduation_year);
    }

    /**
     * Output only. Year of graduation.
     *
     * Generated from protobuf field <code>optional int32 graduation_year = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setGraduationYear($var)
    {
        GPBUtil::checkInt32($var);
        $this->graduation_year = $var;

        return $this;
    }

}

