api.HttpIntegration */ class HttpIntegration extends \Google\Protobuf\Internal\Message { /** * Application ID (UUID). * * Generated from protobuf field string application_id = 1; */ protected $application_id = ''; /** * HTTP headers to set when making requests. * * Generated from protobuf field map headers = 2; */ private $headers; /** * Payload encoding. * * Generated from protobuf field .api.Encoding encoding = 3; */ protected $encoding = 0; /** * Event endpoint URL. * The HTTP integration will POST all events to this enpoint. The request * will contain a query parameters "event" containing the type of the * event. * * Generated from protobuf field string event_endpoint_url = 4; */ protected $event_endpoint_url = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $application_id * Application ID (UUID). * @type array|\Google\Protobuf\Internal\MapField $headers * HTTP headers to set when making requests. * @type int $encoding * Payload encoding. * @type string $event_endpoint_url * Event endpoint URL. * The HTTP integration will POST all events to this enpoint. The request * will contain a query parameters "event" containing the type of the * event. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\Application::initOnce(); parent::__construct($data); } /** * Application ID (UUID). * * Generated from protobuf field string application_id = 1; * @return string */ public function getApplicationId() { return $this->application_id; } /** * Application ID (UUID). * * Generated from protobuf field string application_id = 1; * @param string $var * @return $this */ public function setApplicationId($var) { GPBUtil::checkString($var, True); $this->application_id = $var; return $this; } /** * HTTP headers to set when making requests. * * Generated from protobuf field map headers = 2; * @return \Google\Protobuf\Internal\MapField */ public function getHeaders() { return $this->headers; } /** * HTTP headers to set when making requests. * * Generated from protobuf field map headers = 2; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setHeaders($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->headers = $arr; return $this; } /** * Payload encoding. * * Generated from protobuf field .api.Encoding encoding = 3; * @return int */ public function getEncoding() { return $this->encoding; } /** * Payload encoding. * * Generated from protobuf field .api.Encoding encoding = 3; * @param int $var * @return $this */ public function setEncoding($var) { GPBUtil::checkEnum($var, \Chirpstack\Api\Encoding::class); $this->encoding = $var; return $this; } /** * Event endpoint URL. * The HTTP integration will POST all events to this enpoint. The request * will contain a query parameters "event" containing the type of the * event. * * Generated from protobuf field string event_endpoint_url = 4; * @return string */ public function getEventEndpointUrl() { return $this->event_endpoint_url; } /** * Event endpoint URL. * The HTTP integration will POST all events to this enpoint. The request * will contain a query parameters "event" containing the type of the * event. * * Generated from protobuf field string event_endpoint_url = 4; * @param string $var * @return $this */ public function setEventEndpointUrl($var) { GPBUtil::checkString($var, True); $this->event_endpoint_url = $var; return $this; } }