<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/dataflow/v1beta3/templates.proto

namespace Google\Cloud\Dataflow\V1beta3;

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

/**
 * SDK Information.
 *
 * Generated from protobuf message <code>google.dataflow.v1beta3.SDKInfo</code>
 */
class SDKInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The SDK Language.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.SDKInfo.Language language = 1;</code>
     */
    private $language = 0;
    /**
     * Optional. The SDK version.
     *
     * Generated from protobuf field <code>string version = 2;</code>
     */
    private $version = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $language
     *           Required. The SDK Language.
     *     @type string $version
     *           Optional. The SDK version.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The SDK Language.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.SDKInfo.Language language = 1;</code>
     * @return int
     */
    public function getLanguage()
    {
        return $this->language;
    }

    /**
     * Required. The SDK Language.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.SDKInfo.Language language = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setLanguage($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\SDKInfo\Language::class);
        $this->language = $var;

        return $this;
    }

    /**
     * Optional. The SDK version.
     *
     * Generated from protobuf field <code>string version = 2;</code>
     * @return string
     */
    public function getVersion()
    {
        return $this->version;
    }

    /**
     * Optional. The SDK version.
     *
     * Generated from protobuf field <code>string version = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->version = $var;

        return $this;
    }

}

