<?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;

/**
 * Container Spec.
 *
 * Generated from protobuf message <code>google.dataflow.v1beta3.ContainerSpec</code>
 */
class ContainerSpec extends \Google\Protobuf\Internal\Message
{
    /**
     * Name of the docker container image. E.g., gcr.io/project/some-image
     *
     * Generated from protobuf field <code>string image = 1;</code>
     */
    private $image = '';
    /**
     * Metadata describing a template including description and validation rules.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.TemplateMetadata metadata = 2;</code>
     */
    private $metadata = null;
    /**
     * Required. SDK info of the Flex Template.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.SDKInfo sdk_info = 3;</code>
     */
    private $sdk_info = null;
    /**
     * Default runtime environment for the job.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment default_environment = 4;</code>
     */
    private $default_environment = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $image
     *           Name of the docker container image. E.g., gcr.io/project/some-image
     *     @type \Google\Cloud\Dataflow\V1beta3\TemplateMetadata $metadata
     *           Metadata describing a template including description and validation rules.
     *     @type \Google\Cloud\Dataflow\V1beta3\SDKInfo $sdk_info
     *           Required. SDK info of the Flex Template.
     *     @type \Google\Cloud\Dataflow\V1beta3\FlexTemplateRuntimeEnvironment $default_environment
     *           Default runtime environment for the job.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce();
        parent::__construct($data);
    }

    /**
     * Name of the docker container image. E.g., gcr.io/project/some-image
     *
     * Generated from protobuf field <code>string image = 1;</code>
     * @return string
     */
    public function getImage()
    {
        return $this->image;
    }

    /**
     * Name of the docker container image. E.g., gcr.io/project/some-image
     *
     * Generated from protobuf field <code>string image = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setImage($var)
    {
        GPBUtil::checkString($var, True);
        $this->image = $var;

        return $this;
    }

    /**
     * Metadata describing a template including description and validation rules.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.TemplateMetadata metadata = 2;</code>
     * @return \Google\Cloud\Dataflow\V1beta3\TemplateMetadata|null
     */
    public function getMetadata()
    {
        return $this->metadata;
    }

    public function hasMetadata()
    {
        return isset($this->metadata);
    }

    public function clearMetadata()
    {
        unset($this->metadata);
    }

    /**
     * Metadata describing a template including description and validation rules.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.TemplateMetadata metadata = 2;</code>
     * @param \Google\Cloud\Dataflow\V1beta3\TemplateMetadata $var
     * @return $this
     */
    public function setMetadata($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\TemplateMetadata::class);
        $this->metadata = $var;

        return $this;
    }

    /**
     * Required. SDK info of the Flex Template.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.SDKInfo sdk_info = 3;</code>
     * @return \Google\Cloud\Dataflow\V1beta3\SDKInfo|null
     */
    public function getSdkInfo()
    {
        return $this->sdk_info;
    }

    public function hasSdkInfo()
    {
        return isset($this->sdk_info);
    }

    public function clearSdkInfo()
    {
        unset($this->sdk_info);
    }

    /**
     * Required. SDK info of the Flex Template.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.SDKInfo sdk_info = 3;</code>
     * @param \Google\Cloud\Dataflow\V1beta3\SDKInfo $var
     * @return $this
     */
    public function setSdkInfo($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\SDKInfo::class);
        $this->sdk_info = $var;

        return $this;
    }

    /**
     * Default runtime environment for the job.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment default_environment = 4;</code>
     * @return \Google\Cloud\Dataflow\V1beta3\FlexTemplateRuntimeEnvironment|null
     */
    public function getDefaultEnvironment()
    {
        return $this->default_environment;
    }

    public function hasDefaultEnvironment()
    {
        return isset($this->default_environment);
    }

    public function clearDefaultEnvironment()
    {
        unset($this->default_environment);
    }

    /**
     * Default runtime environment for the job.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment default_environment = 4;</code>
     * @param \Google\Cloud\Dataflow\V1beta3\FlexTemplateRuntimeEnvironment $var
     * @return $this
     */
    public function setDefaultEnvironment($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\FlexTemplateRuntimeEnvironment::class);
        $this->default_environment = $var;

        return $this;
    }

}

