<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Client_Game_Packet.proto

namespace Game\Protobuf;

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

/**
 * Generated from protobuf message <code>Game.Protobuf.GCZLfindFriends</code>
 */
class GCZLfindFriends extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 Code = 1;</code>
     */
    protected $Code = 0;
    /**
     * Generated from protobuf field <code>int32 Option = 2;</code>
     */
    protected $Option = 0;
    /**
     * 符合条件好友 list
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.FriendRole Info = 3;</code>
     */
    private $Info;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Code
     *     @type int $Option
     *     @type \Game\Protobuf\FriendRole[]|\Google\Protobuf\Internal\RepeatedField $Info
     *           符合条件好友 list
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int32 Code = 1;</code>
     * @return int
     */
    public function getCode()
    {
        return $this->Code;
    }

    /**
     * Generated from protobuf field <code>int32 Code = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setCode($var)
    {
        GPBUtil::checkInt32($var);
        $this->Code = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 Option = 2;</code>
     * @return int
     */
    public function getOption()
    {
        return $this->Option;
    }

    /**
     * Generated from protobuf field <code>int32 Option = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setOption($var)
    {
        GPBUtil::checkInt32($var);
        $this->Option = $var;

        return $this;
    }

    /**
     * 符合条件好友 list
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.FriendRole Info = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getInfo()
    {
        return $this->Info;
    }

    /**
     * 符合条件好友 list
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.FriendRole Info = 3;</code>
     * @param \Game\Protobuf\FriendRole[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setInfo($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Game\Protobuf\FriendRole::class);
        $this->Info = $arr;

        return $this;
    }

}

