blob: dde00ae41b22cbd864adff9d1231d5e15c777221 [file] [log] [blame]
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: apache/rocketmq/v2/service.proto
namespace Apache\Rocketmq\V2;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Topics are destination of messages to publish to or subscribe from. Similar
* to domain names, they will be addressable after resolution through the
* provided access point.
* Access points are usually the addresses of name servers, which fulfill
* service discovery, load-balancing and other auxiliary services. Name servers
* receive periodic heartbeats from affiliate brokers and erase those which
* failed to maintain alive status.
* Name servers answer queries of QueryRouteRequest, responding clients with
* addressable message-queues, which they may directly publish messages to or
* subscribe messages from.
* QueryRouteRequest shall include source endpoints, aka, configured
* access-point, which annotates tenant-id, instance-id or other
* vendor-specific settings. Purpose-built name servers may respond customized
* results based on these particular requirements.
*
* Generated from protobuf message <code>apache.rocketmq.v2.QueryRouteRequest</code>
*/
class QueryRouteRequest extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>.apache.rocketmq.v2.Resource topic = 1;</code>
*/
protected $topic = null;
/**
* Generated from protobuf field <code>.apache.rocketmq.v2.Endpoints endpoints = 2;</code>
*/
protected $endpoints = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Apache\Rocketmq\V2\Resource $topic
* @type \Apache\Rocketmq\V2\Endpoints $endpoints
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Apache\Rocketmq\V2\Service::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.apache.rocketmq.v2.Resource topic = 1;</code>
* @return \Apache\Rocketmq\V2\Resource|null
*/
public function getTopic()
{
return $this->topic;
}
public function hasTopic()
{
return isset($this->topic);
}
public function clearTopic()
{
unset($this->topic);
}
/**
* Generated from protobuf field <code>.apache.rocketmq.v2.Resource topic = 1;</code>
* @param \Apache\Rocketmq\V2\Resource $var
* @return $this
*/
public function setTopic($var)
{
GPBUtil::checkMessage($var, \Apache\Rocketmq\V2\Resource::class);
$this->topic = $var;
return $this;
}
/**
* Generated from protobuf field <code>.apache.rocketmq.v2.Endpoints endpoints = 2;</code>
* @return \Apache\Rocketmq\V2\Endpoints|null
*/
public function getEndpoints()
{
return $this->endpoints;
}
public function hasEndpoints()
{
return isset($this->endpoints);
}
public function clearEndpoints()
{
unset($this->endpoints);
}
/**
* Generated from protobuf field <code>.apache.rocketmq.v2.Endpoints endpoints = 2;</code>
* @param \Apache\Rocketmq\V2\Endpoints $var
* @return $this
*/
public function setEndpoints($var)
{
GPBUtil::checkMessage($var, \Apache\Rocketmq\V2\Endpoints::class);
$this->endpoints = $var;
return $this;
}
}