<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: registration.proto

namespace Registration\Core;

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

/**
 * Generated from protobuf message <code>registration.core.ProductInformation</code>
 */
class ProductInformation extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string product_name = 1;</code>
     */
    protected $product_name = '';
    /**
     * Generated from protobuf field <code>string major_version = 2;</code>
     */
    protected $major_version = '';
    /**
     * Generated from protobuf field <code>string minor_version = 3;</code>
     */
    protected $minor_version = '';
    /**
     * Generated from protobuf field <code>string patch_version = 4;</code>
     */
    protected $patch_version = '';
    /**
     * Generated from protobuf field <code>string build_number = 5;</code>
     */
    protected $build_number = '';
    /**
     * Generated from protobuf field <code>int64 build_date = 6;</code>
     */
    protected $build_date = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $product_name
     *     @type string $major_version
     *     @type string $minor_version
     *     @type string $patch_version
     *     @type string $build_number
     *     @type int|string $build_date
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Registration::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string product_name = 1;</code>
     * @return string
     */
    public function getProductName()
    {
        return $this->product_name;
    }

    /**
     * Generated from protobuf field <code>string product_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setProductName($var)
    {
        GPBUtil::checkString($var, True);
        $this->product_name = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string major_version = 2;</code>
     * @return string
     */
    public function getMajorVersion()
    {
        return $this->major_version;
    }

    /**
     * Generated from protobuf field <code>string major_version = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setMajorVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->major_version = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string minor_version = 3;</code>
     * @return string
     */
    public function getMinorVersion()
    {
        return $this->minor_version;
    }

    /**
     * Generated from protobuf field <code>string minor_version = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setMinorVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->minor_version = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string patch_version = 4;</code>
     * @return string
     */
    public function getPatchVersion()
    {
        return $this->patch_version;
    }

    /**
     * Generated from protobuf field <code>string patch_version = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setPatchVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->patch_version = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string build_number = 5;</code>
     * @return string
     */
    public function getBuildNumber()
    {
        return $this->build_number;
    }

    /**
     * Generated from protobuf field <code>string build_number = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setBuildNumber($var)
    {
        GPBUtil::checkString($var, True);
        $this->build_number = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 build_date = 6;</code>
     * @return int|string
     */
    public function getBuildDate()
    {
        return $this->build_date;
    }

    /**
     * Generated from protobuf field <code>int64 build_date = 6;</code>
     * @param int|string $var
     * @return $this
     */
    public function setBuildDate($var)
    {
        GPBUtil::checkInt64($var);
        $this->build_date = $var;

        return $this;
    }

}

