<?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 publication resource of a candidate.
 *
 * Generated from protobuf message <code>google.cloud.talent.v4beta1.Publication</code>
 */
class Publication extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional.
     * A list of author names.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>repeated string authors = 1;</code>
     */
    private $authors;
    /**
     * Optional.
     * The title of the publication.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string title = 2;</code>
     */
    private $title = '';
    /**
     * Optional.
     * The description of the publication.
     * Number of characters allowed is 100,000.
     *
     * Generated from protobuf field <code>string description = 3;</code>
     */
    private $description = '';
    /**
     * Optional.
     * The journal name of the publication.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string journal = 4;</code>
     */
    private $journal = '';
    /**
     * Optional.
     * Volume number.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string volume = 5;</code>
     */
    private $volume = '';
    /**
     * Optional.
     * The publisher of the journal.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string publisher = 6;</code>
     */
    private $publisher = '';
    /**
     * Optional.
     * The publication date.
     *
     * Generated from protobuf field <code>.google.type.Date publication_date = 7;</code>
     */
    private $publication_date = null;
    /**
     * Optional.
     * The publication type.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string publication_type = 8;</code>
     */
    private $publication_type = '';
    /**
     * Optional.
     * ISBN number.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string isbn = 9;</code>
     */
    private $isbn = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[]|\Google\Protobuf\Internal\RepeatedField $authors
     *           Optional.
     *           A list of author names.
     *           Number of characters allowed is 100.
     *     @type string $title
     *           Optional.
     *           The title of the publication.
     *           Number of characters allowed is 100.
     *     @type string $description
     *           Optional.
     *           The description of the publication.
     *           Number of characters allowed is 100,000.
     *     @type string $journal
     *           Optional.
     *           The journal name of the publication.
     *           Number of characters allowed is 100.
     *     @type string $volume
     *           Optional.
     *           Volume number.
     *           Number of characters allowed is 100.
     *     @type string $publisher
     *           Optional.
     *           The publisher of the journal.
     *           Number of characters allowed is 100.
     *     @type \Google\Type\Date $publication_date
     *           Optional.
     *           The publication date.
     *     @type string $publication_type
     *           Optional.
     *           The publication type.
     *           Number of characters allowed is 100.
     *     @type string $isbn
     *           Optional.
     *           ISBN number.
     *           Number of characters allowed is 100.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Talent\V4Beta1\Profile::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional.
     * A list of author names.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>repeated string authors = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAuthors()
    {
        return $this->authors;
    }

    /**
     * Optional.
     * A list of author names.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>repeated string authors = 1;</code>
     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAuthors($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->authors = $arr;

        return $this;
    }

    /**
     * Optional.
     * The title of the publication.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string title = 2;</code>
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Optional.
     * The title of the publication.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string title = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->title = $var;

        return $this;
    }

    /**
     * Optional.
     * The description of the publication.
     * Number of characters allowed is 100,000.
     *
     * Generated from protobuf field <code>string description = 3;</code>
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Optional.
     * The description of the publication.
     * Number of characters allowed is 100,000.
     *
     * Generated from protobuf field <code>string description = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->description = $var;

        return $this;
    }

    /**
     * Optional.
     * The journal name of the publication.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string journal = 4;</code>
     * @return string
     */
    public function getJournal()
    {
        return $this->journal;
    }

    /**
     * Optional.
     * The journal name of the publication.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string journal = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setJournal($var)
    {
        GPBUtil::checkString($var, True);
        $this->journal = $var;

        return $this;
    }

    /**
     * Optional.
     * Volume number.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string volume = 5;</code>
     * @return string
     */
    public function getVolume()
    {
        return $this->volume;
    }

    /**
     * Optional.
     * Volume number.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string volume = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setVolume($var)
    {
        GPBUtil::checkString($var, True);
        $this->volume = $var;

        return $this;
    }

    /**
     * Optional.
     * The publisher of the journal.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string publisher = 6;</code>
     * @return string
     */
    public function getPublisher()
    {
        return $this->publisher;
    }

    /**
     * Optional.
     * The publisher of the journal.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string publisher = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setPublisher($var)
    {
        GPBUtil::checkString($var, True);
        $this->publisher = $var;

        return $this;
    }

    /**
     * Optional.
     * The publication date.
     *
     * Generated from protobuf field <code>.google.type.Date publication_date = 7;</code>
     * @return \Google\Type\Date
     */
    public function getPublicationDate()
    {
        return $this->publication_date;
    }

    /**
     * Optional.
     * The publication date.
     *
     * Generated from protobuf field <code>.google.type.Date publication_date = 7;</code>
     * @param \Google\Type\Date $var
     * @return $this
     */
    public function setPublicationDate($var)
    {
        GPBUtil::checkMessage($var, \Google\Type\Date::class);
        $this->publication_date = $var;

        return $this;
    }

    /**
     * Optional.
     * The publication type.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string publication_type = 8;</code>
     * @return string
     */
    public function getPublicationType()
    {
        return $this->publication_type;
    }

    /**
     * Optional.
     * The publication type.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string publication_type = 8;</code>
     * @param string $var
     * @return $this
     */
    public function setPublicationType($var)
    {
        GPBUtil::checkString($var, True);
        $this->publication_type = $var;

        return $this;
    }

    /**
     * Optional.
     * ISBN number.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string isbn = 9;</code>
     * @return string
     */
    public function getIsbn()
    {
        return $this->isbn;
    }

    /**
     * Optional.
     * ISBN number.
     * Number of characters allowed is 100.
     *
     * Generated from protobuf field <code>string isbn = 9;</code>
     * @param string $var
     * @return $this
     */
    public function setIsbn($var)
    {
        GPBUtil::checkString($var, True);
        $this->isbn = $var;

        return $this;
    }

}

