<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/notebooks/v1beta1/environment.proto

namespace Google\Cloud\Notebooks\V1beta1;

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

/**
 * Definition of a container image for starting a notebook instance with the
 * environment installed in a container.
 *
 * Generated from protobuf message <code>google.cloud.notebooks.v1beta1.ContainerImage</code>
 */
class ContainerImage extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The path to the container image repository. For example:
     * `gcr.io/{project_id}/{image_name}`
     *
     * Generated from protobuf field <code>string repository = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $repository = '';
    /**
     * The tag of the container image. If not specified, this defaults
     * to the latest tag.
     *
     * Generated from protobuf field <code>string tag = 2;</code>
     */
    private $tag = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $repository
     *           Required. The path to the container image repository. For example:
     *           `gcr.io/{project_id}/{image_name}`
     *     @type string $tag
     *           The tag of the container image. If not specified, this defaults
     *           to the latest tag.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Notebooks\V1Beta1\Environment::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The path to the container image repository. For example:
     * `gcr.io/{project_id}/{image_name}`
     *
     * Generated from protobuf field <code>string repository = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getRepository()
    {
        return $this->repository;
    }

    /**
     * Required. The path to the container image repository. For example:
     * `gcr.io/{project_id}/{image_name}`
     *
     * Generated from protobuf field <code>string repository = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setRepository($var)
    {
        GPBUtil::checkString($var, True);
        $this->repository = $var;

        return $this;
    }

    /**
     * The tag of the container image. If not specified, this defaults
     * to the latest tag.
     *
     * Generated from protobuf field <code>string tag = 2;</code>
     * @return string
     */
    public function getTag()
    {
        return $this->tag;
    }

    /**
     * The tag of the container image. If not specified, this defaults
     * to the latest tag.
     *
     * Generated from protobuf field <code>string tag = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setTag($var)
    {
        GPBUtil::checkString($var, True);
        $this->tag = $var;

        return $this;
    }

}

