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

namespace Google\Cloud\Dataform\V1;

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

/**
 * Represents a Dataform TeamFolder. This is a resource that sits at the project
 * level and is used to organize Repositories and Folders with hierarchical
 * access controls. They provide a team context and stricter access controls.
 *
 * Generated from protobuf message <code>google.cloud.dataform.v1.TeamFolder</code>
 */
class TeamFolder extends \Google\Protobuf\Internal\Message
{
    /**
     * Identifier. The TeamFolder's name.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     */
    protected $name = '';
    /**
     * Required. The TeamFolder's user-friendly name.
     *
     * Generated from protobuf field <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $display_name = '';
    /**
     * Output only. The timestamp of when the TeamFolder was created.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $create_time = null;
    /**
     * Output only. The timestamp of when the TeamFolder was last updated.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $update_time = null;
    /**
     * Output only. All the metadata information that is used internally to serve
     * the resource. For example: timestamps, flags, status fields, etc. The
     * format of this field is a JSON string.
     *
     * Generated from protobuf field <code>optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $internal_metadata = null;
    /**
     * Output only. The IAM principal identifier of the creator of the TeamFolder.
     *
     * Generated from protobuf field <code>optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $creator_iam_principal = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Identifier. The TeamFolder's name.
     *     @type string $display_name
     *           Required. The TeamFolder's user-friendly name.
     *     @type \Google\Protobuf\Timestamp $create_time
     *           Output only. The timestamp of when the TeamFolder was created.
     *     @type \Google\Protobuf\Timestamp $update_time
     *           Output only. The timestamp of when the TeamFolder was last updated.
     *     @type string $internal_metadata
     *           Output only. All the metadata information that is used internally to serve
     *           the resource. For example: timestamps, flags, status fields, etc. The
     *           format of this field is a JSON string.
     *     @type string $creator_iam_principal
     *           Output only. The IAM principal identifier of the creator of the TeamFolder.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce();
        parent::__construct($data);
    }

    /**
     * Identifier. The TeamFolder's name.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Identifier. The TeamFolder's name.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Required. The TeamFolder's user-friendly name.
     *
     * Generated from protobuf field <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * Required. The TeamFolder's user-friendly name.
     *
     * Generated from protobuf field <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

    /**
     * Output only. The timestamp of when the TeamFolder was created.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCreateTime()
    {
        return $this->create_time;
    }

    public function hasCreateTime()
    {
        return isset($this->create_time);
    }

    public function clearCreateTime()
    {
        unset($this->create_time);
    }

    /**
     * Output only. The timestamp of when the TeamFolder was created.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCreateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->create_time = $var;

        return $this;
    }

    /**
     * Output only. The timestamp of when the TeamFolder was last updated.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getUpdateTime()
    {
        return $this->update_time;
    }

    public function hasUpdateTime()
    {
        return isset($this->update_time);
    }

    public function clearUpdateTime()
    {
        unset($this->update_time);
    }

    /**
     * Output only. The timestamp of when the TeamFolder was last updated.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setUpdateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->update_time = $var;

        return $this;
    }

    /**
     * Output only. All the metadata information that is used internally to serve
     * the resource. For example: timestamps, flags, status fields, etc. The
     * format of this field is a JSON string.
     *
     * Generated from protobuf field <code>optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getInternalMetadata()
    {
        return isset($this->internal_metadata) ? $this->internal_metadata : '';
    }

    public function hasInternalMetadata()
    {
        return isset($this->internal_metadata);
    }

    public function clearInternalMetadata()
    {
        unset($this->internal_metadata);
    }

    /**
     * Output only. All the metadata information that is used internally to serve
     * the resource. For example: timestamps, flags, status fields, etc. The
     * format of this field is a JSON string.
     *
     * Generated from protobuf field <code>optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setInternalMetadata($var)
    {
        GPBUtil::checkString($var, True);
        $this->internal_metadata = $var;

        return $this;
    }

    /**
     * Output only. The IAM principal identifier of the creator of the TeamFolder.
     *
     * Generated from protobuf field <code>optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getCreatorIamPrincipal()
    {
        return isset($this->creator_iam_principal) ? $this->creator_iam_principal : '';
    }

    public function hasCreatorIamPrincipal()
    {
        return isset($this->creator_iam_principal);
    }

    public function clearCreatorIamPrincipal()
    {
        unset($this->creator_iam_principal);
    }

    /**
     * Output only. The IAM principal identifier of the creator of the TeamFolder.
     *
     * Generated from protobuf field <code>optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setCreatorIamPrincipal($var)
    {
        GPBUtil::checkString($var, True);
        $this->creator_iam_principal = $var;

        return $this;
    }

}

