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

namespace Rv\Data\API_v1_Link_Response;

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

/**
 * Generated from protobuf message <code>rv.data.API_v1_Link_Response.Heartbeat</code>
 */
class Heartbeat extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.API_v1_GroupDefinition group_definition = 1;</code>
     */
    protected $group_definition = null;
    /**
     * Generated from protobuf field <code>.rv.data.API_v1_GroupMemberStatus status = 2;</code>
     */
    protected $status = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\API_v1_GroupDefinition $group_definition
     *     @type \Rv\Data\API_v1_GroupMemberStatus $status
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Link::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_GroupDefinition group_definition = 1;</code>
     * @return \Rv\Data\API_v1_GroupDefinition|null
     */
    public function getGroupDefinition()
    {
        return $this->group_definition;
    }

    public function hasGroupDefinition()
    {
        return isset($this->group_definition);
    }

    public function clearGroupDefinition()
    {
        unset($this->group_definition);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_GroupDefinition group_definition = 1;</code>
     * @param \Rv\Data\API_v1_GroupDefinition $var
     * @return $this
     */
    public function setGroupDefinition($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_GroupDefinition::class);
        $this->group_definition = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_GroupMemberStatus status = 2;</code>
     * @return \Rv\Data\API_v1_GroupMemberStatus|null
     */
    public function getStatus()
    {
        return $this->status;
    }

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

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

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_GroupMemberStatus status = 2;</code>
     * @param \Rv\Data\API_v1_GroupMemberStatus $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_GroupMemberStatus::class);
        $this->status = $var;

        return $this;
    }

}

