From cdd7ad020e165fe680703b6d3319b908b682fb7a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 20 Oct 2023 17:12:29 +0300 Subject: jaeger-client -> opentelemetry --- .../Protobuf/Internal/EnumBuilderContext.php | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 vendor/google/protobuf/src/Google/Protobuf/Internal/EnumBuilderContext.php (limited to 'vendor/google/protobuf/src/Google/Protobuf/Internal/EnumBuilderContext.php') diff --git a/vendor/google/protobuf/src/Google/Protobuf/Internal/EnumBuilderContext.php b/vendor/google/protobuf/src/Google/Protobuf/Internal/EnumBuilderContext.php new file mode 100644 index 000000000..08397284e --- /dev/null +++ b/vendor/google/protobuf/src/Google/Protobuf/Internal/EnumBuilderContext.php @@ -0,0 +1,63 @@ +descriptor = new EnumDescriptor(); + $this->descriptor->setFullName($full_name); + $this->descriptor->setClass($klass); + $this->pool = $pool; + } + + public function value($name, $number) + { + $value = new EnumValueDescriptor($name, $number); + $this->descriptor->addValue($number, $value); + return $this; + } + + public function finalizeToPool() + { + $this->pool->addEnumDescriptor($this->descriptor); + } +} -- cgit v1.2.3