<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: temporal/api/command/v1/message.proto

namespace Temporal\Api\Command\V1;

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

/**
 * Generated from protobuf message <code>temporal.api.command.v1.RecordMarkerCommandAttributes</code>
 */
class RecordMarkerCommandAttributes extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string marker_name = 1;</code>
     */
    protected $marker_name = '';
    /**
     * Generated from protobuf field <code>map<string, .temporal.api.common.v1.Payloads> details = 2;</code>
     */
    private $details;
    /**
     * Generated from protobuf field <code>.temporal.api.common.v1.Header header = 3;</code>
     */
    protected $header = null;
    /**
     * Generated from protobuf field <code>.temporal.api.failure.v1.Failure failure = 4;</code>
     */
    protected $failure = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $marker_name
     *     @type array|\Google\Protobuf\Internal\MapField $details
     *     @type \Temporal\Api\Common\V1\Header $header
     *     @type \Temporal\Api\Failure\V1\Failure $failure
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>map<string, .temporal.api.common.v1.Payloads> details = 2;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getDetails()
    {
        return $this->details;
    }

    /**
     * Generated from protobuf field <code>map<string, .temporal.api.common.v1.Payloads> details = 2;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setDetails($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Common\V1\Payloads::class);
        $this->details = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.temporal.api.common.v1.Header header = 3;</code>
     * @return \Temporal\Api\Common\V1\Header|null
     */
    public function getHeader()
    {
        return $this->header;
    }

    public function hasHeader()
    {
        return isset($this->header);
    }

    public function clearHeader()
    {
        unset($this->header);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.common.v1.Header header = 3;</code>
     * @param \Temporal\Api\Common\V1\Header $var
     * @return $this
     */
    public function setHeader($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
        $this->header = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.temporal.api.failure.v1.Failure failure = 4;</code>
     * @return \Temporal\Api\Failure\V1\Failure|null
     */
    public function getFailure()
    {
        return $this->failure;
    }

    public function hasFailure()
    {
        return isset($this->failure);
    }

    public function clearFailure()
    {
        unset($this->failure);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.failure.v1.Failure failure = 4;</code>
     * @param \Temporal\Api\Failure\V1\Failure $var
     * @return $this
     */
    public function setFailure($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
        $this->failure = $var;

        return $this;
    }

}

