api.GlobalSearchResult */ class GlobalSearchResult extends \Google\Protobuf\Internal\Message { /** * Record kind. * * Generated from protobuf field string kind = 1; */ protected $kind = ''; /** * Search score. * * Generated from protobuf field float score = 2; */ protected $score = 0.0; /** * Organization id. * * Generated from protobuf field string tenant_id = 3; */ protected $tenant_id = ''; /** * Organization name. * * Generated from protobuf field string tenant_name = 4; */ protected $tenant_name = ''; /** * Application id. * * Generated from protobuf field string application_id = 5; */ protected $application_id = ''; /** * Application name. * * Generated from protobuf field string application_name = 6; */ protected $application_name = ''; /** * Device DevEUI (hex encoded). * * Generated from protobuf field string device_dev_eui = 7; */ protected $device_dev_eui = ''; /** * Device name. * * Generated from protobuf field string device_name = 8; */ protected $device_name = ''; /** * Gateway MAC (hex encoded). * * Generated from protobuf field string gateway_id = 9; */ protected $gateway_id = ''; /** * Gateway name. * * Generated from protobuf field string gateway_name = 10; */ protected $gateway_name = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $kind * Record kind. * @type float $score * Search score. * @type string $tenant_id * Organization id. * @type string $tenant_name * Organization name. * @type string $application_id * Application id. * @type string $application_name * Application name. * @type string $device_dev_eui * Device DevEUI (hex encoded). * @type string $device_name * Device name. * @type string $gateway_id * Gateway MAC (hex encoded). * @type string $gateway_name * Gateway name. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\Internal::initOnce(); parent::__construct($data); } /** * Record kind. * * Generated from protobuf field string kind = 1; * @return string */ public function getKind() { return $this->kind; } /** * Record kind. * * Generated from protobuf field string kind = 1; * @param string $var * @return $this */ public function setKind($var) { GPBUtil::checkString($var, True); $this->kind = $var; return $this; } /** * Search score. * * Generated from protobuf field float score = 2; * @return float */ public function getScore() { return $this->score; } /** * Search score. * * Generated from protobuf field float score = 2; * @param float $var * @return $this */ public function setScore($var) { GPBUtil::checkFloat($var); $this->score = $var; return $this; } /** * Organization id. * * Generated from protobuf field string tenant_id = 3; * @return string */ public function getTenantId() { return $this->tenant_id; } /** * Organization id. * * Generated from protobuf field string tenant_id = 3; * @param string $var * @return $this */ public function setTenantId($var) { GPBUtil::checkString($var, True); $this->tenant_id = $var; return $this; } /** * Organization name. * * Generated from protobuf field string tenant_name = 4; * @return string */ public function getTenantName() { return $this->tenant_name; } /** * Organization name. * * Generated from protobuf field string tenant_name = 4; * @param string $var * @return $this */ public function setTenantName($var) { GPBUtil::checkString($var, True); $this->tenant_name = $var; return $this; } /** * Application id. * * Generated from protobuf field string application_id = 5; * @return string */ public function getApplicationId() { return $this->application_id; } /** * Application id. * * Generated from protobuf field string application_id = 5; * @param string $var * @return $this */ public function setApplicationId($var) { GPBUtil::checkString($var, True); $this->application_id = $var; return $this; } /** * Application name. * * Generated from protobuf field string application_name = 6; * @return string */ public function getApplicationName() { return $this->application_name; } /** * Application name. * * Generated from protobuf field string application_name = 6; * @param string $var * @return $this */ public function setApplicationName($var) { GPBUtil::checkString($var, True); $this->application_name = $var; return $this; } /** * Device DevEUI (hex encoded). * * Generated from protobuf field string device_dev_eui = 7; * @return string */ public function getDeviceDevEui() { return $this->device_dev_eui; } /** * Device DevEUI (hex encoded). * * Generated from protobuf field string device_dev_eui = 7; * @param string $var * @return $this */ public function setDeviceDevEui($var) { GPBUtil::checkString($var, True); $this->device_dev_eui = $var; return $this; } /** * Device name. * * Generated from protobuf field string device_name = 8; * @return string */ public function getDeviceName() { return $this->device_name; } /** * Device name. * * Generated from protobuf field string device_name = 8; * @param string $var * @return $this */ public function setDeviceName($var) { GPBUtil::checkString($var, True); $this->device_name = $var; return $this; } /** * Gateway MAC (hex encoded). * * Generated from protobuf field string gateway_id = 9; * @return string */ public function getGatewayId() { return $this->gateway_id; } /** * Gateway MAC (hex encoded). * * Generated from protobuf field string gateway_id = 9; * @param string $var * @return $this */ public function setGatewayId($var) { GPBUtil::checkString($var, True); $this->gateway_id = $var; return $this; } /** * Gateway name. * * Generated from protobuf field string gateway_name = 10; * @return string */ public function getGatewayName() { return $this->gateway_name; } /** * Gateway name. * * Generated from protobuf field string gateway_name = 10; * @param string $var * @return $this */ public function setGatewayName($var) { GPBUtil::checkString($var, True); $this->gateway_name = $var; return $this; } }