stream.ApiRequestLog */ class ApiRequestLog extends \Google\Protobuf\Internal\Message { /** * API service name. * * Generated from protobuf field string service = 1; */ protected $service = ''; /** * API method name. * * Generated from protobuf field string method = 2; */ protected $method = ''; /** * Metadata. * * Generated from protobuf field map metadata = 3; */ private $metadata; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $service * API service name. * @type string $method * API method name. * @type array|\Google\Protobuf\Internal\MapField $metadata * Metadata. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Stream\ApiRequest::initOnce(); parent::__construct($data); } /** * API service name. * * Generated from protobuf field string service = 1; * @return string */ public function getService() { return $this->service; } /** * API service name. * * Generated from protobuf field string service = 1; * @param string $var * @return $this */ public function setService($var) { GPBUtil::checkString($var, True); $this->service = $var; return $this; } /** * API method name. * * Generated from protobuf field string method = 2; * @return string */ public function getMethod() { return $this->method; } /** * API method name. * * Generated from protobuf field string method = 2; * @param string $var * @return $this */ public function setMethod($var) { GPBUtil::checkString($var, True); $this->method = $var; return $this; } /** * Metadata. * * Generated from protobuf field map metadata = 3; * @return \Google\Protobuf\Internal\MapField */ public function getMetadata() { return $this->metadata; } /** * Metadata. * * Generated from protobuf field map metadata = 3; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setMetadata($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->metadata = $arr; return $this; } }