opentelemetry.proto.common.v1.InstrumentationLibrary */ class InstrumentationLibrary extends \Google\Protobuf\Internal\Message { /** * An empty instrumentation library name means the name is unknown. * * Generated from protobuf field string name = 1; */ protected $name = ''; /** * Generated from protobuf field string version = 2; */ protected $version = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * An empty instrumentation library name means the name is unknown. * @type string $version * } */ public function __construct($data = NULL) { \GPBMetadata\Opentelemetry\Proto\Common\V1\Common::initOnce(); parent::__construct($data); } /** * An empty instrumentation library name means the name is unknown. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * An empty instrumentation library name means the name is unknown. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Generated from protobuf field string version = 2; * @return string */ public function getVersion() { return $this->version; } /** * Generated from protobuf field string version = 2; * @param string $var * @return $this */ public function setVersion($var) { GPBUtil::checkString($var, True); $this->version = $var; return $this; } }