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

namespace PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage;

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

/**
 * Generated from protobuf message <code>proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction</code>
 */
class GalaxyFlowAction extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.GalaxyFlowActionType type = 1;</code>
     */
    protected $type = null;
    /**
     * Generated from protobuf field <code>optional string flowId = 2;</code>
     */
    protected $flowId = null;
    /**
     * Generated from protobuf field <code>optional string stanzaId = 3;</code>
     */
    protected $stanzaId = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $type
     *     @type string $flowId
     *     @type string $stanzaId
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.GalaxyFlowActionType type = 1;</code>
     * @return int
     */
    public function getType()
    {
        return isset($this->type) ? $this->type : 0;
    }

    public function hasType()
    {
        return isset($this->type);
    }

    public function clearType()
    {
        unset($this->type);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.GalaxyFlowActionType type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\PeerDataOperationRequestMessage\GalaxyFlowAction\GalaxyFlowActionType::class);
        $this->type = $var;

        return $this;
    }

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

    public function hasFlowId()
    {
        return isset($this->flowId);
    }

    public function clearFlowId()
    {
        unset($this->flowId);
    }

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

        return $this;
    }

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

    public function hasStanzaId()
    {
        return isset($this->stanzaId);
    }

    public function clearStanzaId()
    {
        unset($this->stanzaId);
    }

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

        return $this;
    }

}

