<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.InvoiceMessage</code>
 */
class InvoiceMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string note = 1;</code>
     */
    protected $note = null;
    /**
     * Generated from protobuf field <code>optional string token = 2;</code>
     */
    protected $token = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.InvoiceMessage.AttachmentType attachmentType = 3;</code>
     */
    protected $attachmentType = null;
    /**
     * Generated from protobuf field <code>optional string attachmentMimetype = 4;</code>
     */
    protected $attachmentMimetype = null;
    /**
     * Generated from protobuf field <code>optional bytes attachmentMediaKey = 5;</code>
     */
    protected $attachmentMediaKey = null;
    /**
     * Generated from protobuf field <code>optional int64 attachmentMediaKeyTimestamp = 6;</code>
     */
    protected $attachmentMediaKeyTimestamp = null;
    /**
     * Generated from protobuf field <code>optional bytes attachmentFileSha256 = 7;</code>
     */
    protected $attachmentFileSha256 = null;
    /**
     * Generated from protobuf field <code>optional bytes attachmentFileEncSha256 = 8;</code>
     */
    protected $attachmentFileEncSha256 = null;
    /**
     * Generated from protobuf field <code>optional string attachmentDirectPath = 9;</code>
     */
    protected $attachmentDirectPath = null;
    /**
     * Generated from protobuf field <code>optional bytes attachmentJpegThumbnail = 10;</code>
     */
    protected $attachmentJpegThumbnail = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $note
     *     @type string $token
     *     @type int $attachmentType
     *     @type string $attachmentMimetype
     *     @type string $attachmentMediaKey
     *     @type int|string $attachmentMediaKeyTimestamp
     *     @type string $attachmentFileSha256
     *     @type string $attachmentFileEncSha256
     *     @type string $attachmentDirectPath
     *     @type string $attachmentJpegThumbnail
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional string note = 1;</code>
     * @return string
     */
    public function getNote()
    {
        return isset($this->note) ? $this->note : '';
    }

    public function hasNote()
    {
        return isset($this->note);
    }

    public function clearNote()
    {
        unset($this->note);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string token = 2;</code>
     * @return string
     */
    public function getToken()
    {
        return isset($this->token) ? $this->token : '';
    }

    public function hasToken()
    {
        return isset($this->token);
    }

    public function clearToken()
    {
        unset($this->token);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.InvoiceMessage.AttachmentType attachmentType = 3;</code>
     * @return int
     */
    public function getAttachmentType()
    {
        return isset($this->attachmentType) ? $this->attachmentType : 0;
    }

    public function hasAttachmentType()
    {
        return isset($this->attachmentType);
    }

    public function clearAttachmentType()
    {
        unset($this->attachmentType);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.InvoiceMessage.AttachmentType attachmentType = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setAttachmentType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\InvoiceMessage\AttachmentType::class);
        $this->attachmentType = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string attachmentMimetype = 4;</code>
     * @return string
     */
    public function getAttachmentMimetype()
    {
        return isset($this->attachmentMimetype) ? $this->attachmentMimetype : '';
    }

    public function hasAttachmentMimetype()
    {
        return isset($this->attachmentMimetype);
    }

    public function clearAttachmentMimetype()
    {
        unset($this->attachmentMimetype);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes attachmentMediaKey = 5;</code>
     * @return string
     */
    public function getAttachmentMediaKey()
    {
        return isset($this->attachmentMediaKey) ? $this->attachmentMediaKey : '';
    }

    public function hasAttachmentMediaKey()
    {
        return isset($this->attachmentMediaKey);
    }

    public function clearAttachmentMediaKey()
    {
        unset($this->attachmentMediaKey);
    }

    /**
     * Generated from protobuf field <code>optional bytes attachmentMediaKey = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setAttachmentMediaKey($var)
    {
        GPBUtil::checkString($var, False);
        $this->attachmentMediaKey = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 attachmentMediaKeyTimestamp = 6;</code>
     * @return int|string
     */
    public function getAttachmentMediaKeyTimestamp()
    {
        return isset($this->attachmentMediaKeyTimestamp) ? $this->attachmentMediaKeyTimestamp : 0;
    }

    public function hasAttachmentMediaKeyTimestamp()
    {
        return isset($this->attachmentMediaKeyTimestamp);
    }

    public function clearAttachmentMediaKeyTimestamp()
    {
        unset($this->attachmentMediaKeyTimestamp);
    }

    /**
     * Generated from protobuf field <code>optional int64 attachmentMediaKeyTimestamp = 6;</code>
     * @param int|string $var
     * @return $this
     */
    public function setAttachmentMediaKeyTimestamp($var)
    {
        GPBUtil::checkInt64($var);
        $this->attachmentMediaKeyTimestamp = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes attachmentFileSha256 = 7;</code>
     * @return string
     */
    public function getAttachmentFileSha256()
    {
        return isset($this->attachmentFileSha256) ? $this->attachmentFileSha256 : '';
    }

    public function hasAttachmentFileSha256()
    {
        return isset($this->attachmentFileSha256);
    }

    public function clearAttachmentFileSha256()
    {
        unset($this->attachmentFileSha256);
    }

    /**
     * Generated from protobuf field <code>optional bytes attachmentFileSha256 = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setAttachmentFileSha256($var)
    {
        GPBUtil::checkString($var, False);
        $this->attachmentFileSha256 = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes attachmentFileEncSha256 = 8;</code>
     * @return string
     */
    public function getAttachmentFileEncSha256()
    {
        return isset($this->attachmentFileEncSha256) ? $this->attachmentFileEncSha256 : '';
    }

    public function hasAttachmentFileEncSha256()
    {
        return isset($this->attachmentFileEncSha256);
    }

    public function clearAttachmentFileEncSha256()
    {
        unset($this->attachmentFileEncSha256);
    }

    /**
     * Generated from protobuf field <code>optional bytes attachmentFileEncSha256 = 8;</code>
     * @param string $var
     * @return $this
     */
    public function setAttachmentFileEncSha256($var)
    {
        GPBUtil::checkString($var, False);
        $this->attachmentFileEncSha256 = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string attachmentDirectPath = 9;</code>
     * @return string
     */
    public function getAttachmentDirectPath()
    {
        return isset($this->attachmentDirectPath) ? $this->attachmentDirectPath : '';
    }

    public function hasAttachmentDirectPath()
    {
        return isset($this->attachmentDirectPath);
    }

    public function clearAttachmentDirectPath()
    {
        unset($this->attachmentDirectPath);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes attachmentJpegThumbnail = 10;</code>
     * @return string
     */
    public function getAttachmentJpegThumbnail()
    {
        return isset($this->attachmentJpegThumbnail) ? $this->attachmentJpegThumbnail : '';
    }

    public function hasAttachmentJpegThumbnail()
    {
        return isset($this->attachmentJpegThumbnail);
    }

    public function clearAttachmentJpegThumbnail()
    {
        unset($this->attachmentJpegThumbnail);
    }

    /**
     * Generated from protobuf field <code>optional bytes attachmentJpegThumbnail = 10;</code>
     * @param string $var
     * @return $this
     */
    public function setAttachmentJpegThumbnail($var)
    {
        GPBUtil::checkString($var, False);
        $this->attachmentJpegThumbnail = $var;

        return $this;
    }

}

