diff options
Diffstat (limited to 'vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Common/V1/StringKeyValue.php')
-rw-r--r-- | vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Common/V1/StringKeyValue.php | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Common/V1/StringKeyValue.php b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Common/V1/StringKeyValue.php new file mode 100644 index 000000000..c508dd1aa --- /dev/null +++ b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Common/V1/StringKeyValue.php @@ -0,0 +1,88 @@ +<?php +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: opentelemetry/proto/common/v1/common.proto + +namespace Opentelemetry\Proto\Common\V1; + +use Google\Protobuf\Internal\GPBType; +use Google\Protobuf\Internal\RepeatedField; +use Google\Protobuf\Internal\GPBUtil; + +/** + * StringKeyValue is a pair of key/value strings. This is the simpler (and faster) version + * of KeyValue that only supports string values. + * + * Generated from protobuf message <code>opentelemetry.proto.common.v1.StringKeyValue</code> + */ +class StringKeyValue extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field <code>string key = 1;</code> + */ + protected $key = ''; + /** + * Generated from protobuf field <code>string value = 2;</code> + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * @type string $value + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Common\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field <code>string key = 1;</code> + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Generated from protobuf field <code>string key = 1;</code> + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * Generated from protobuf field <code>string value = 2;</code> + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Generated from protobuf field <code>string value = 2;</code> + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + |