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

namespace PhpWA\Protocol\Proto\SyncActionValue;

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

/**
 * Generated from protobuf message <code>proto.SyncActionValue.MerchantPaymentPartnerAction</code>
 */
class MerchantPaymentPartnerAction extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.SyncActionValue.MerchantPaymentPartnerAction.Status status = 1;</code>
     */
    protected $status = null;
    /**
     * Generated from protobuf field <code>optional string country = 2;</code>
     */
    protected $country = null;
    /**
     * Generated from protobuf field <code>optional string gatewayName = 3;</code>
     */
    protected $gatewayName = null;
    /**
     * Generated from protobuf field <code>optional string credentialId = 4;</code>
     */
    protected $credentialId = null;

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

    /**
     * Generated from protobuf field <code>optional .proto.SyncActionValue.MerchantPaymentPartnerAction.Status status = 1;</code>
     * @return int
     */
    public function getStatus()
    {
        return isset($this->status) ? $this->status : 0;
    }

    public function hasStatus()
    {
        return isset($this->status);
    }

    public function clearStatus()
    {
        unset($this->status);
    }

    /**
     * Generated from protobuf field <code>optional .proto.SyncActionValue.MerchantPaymentPartnerAction.Status status = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\SyncActionValue\MerchantPaymentPartnerAction\Status::class);
        $this->status = $var;

        return $this;
    }

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

    public function hasCountry()
    {
        return isset($this->country);
    }

    public function clearCountry()
    {
        unset($this->country);
    }

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

        return $this;
    }

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

    public function hasGatewayName()
    {
        return isset($this->gatewayName);
    }

    public function clearGatewayName()
    {
        unset($this->gatewayName);
    }

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

        return $this;
    }

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

    public function hasCredentialId()
    {
        return isset($this->credentialId);
    }

    public function clearCredentialId()
    {
        unset($this->credentialId);
    }

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

        return $this;
    }

}

