diff options
author | Andrew Dolgov <[email protected]> | 2023-10-20 17:12:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-20 21:13:39 +0300 |
commit | cdd7ad020e165fe680703b6d3319b908b682fb7a (patch) | |
tree | b51eb09b7b4587e8fbc5624ac8d88d28cfcd0b04 /vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Trace/V1/ExportTracePartialSuccess.php | |
parent | 45a9ff0c88cbd33892ff16ab837e9059937d656e (diff) |
jaeger-client -> opentelemetry
Diffstat (limited to 'vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Trace/V1/ExportTracePartialSuccess.php')
-rw-r--r-- | vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Trace/V1/ExportTracePartialSuccess.php | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Trace/V1/ExportTracePartialSuccess.php b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Trace/V1/ExportTracePartialSuccess.php new file mode 100644 index 000000000..56bf54dda --- /dev/null +++ b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Trace/V1/ExportTracePartialSuccess.php @@ -0,0 +1,127 @@ +<?php +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: opentelemetry/proto/collector/trace/v1/trace_service.proto + +namespace Opentelemetry\Proto\Collector\Trace\V1; + +use Google\Protobuf\Internal\GPBType; +use Google\Protobuf\Internal\RepeatedField; +use Google\Protobuf\Internal\GPBUtil; + +/** + * Generated from protobuf message <code>opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess</code> + */ +class ExportTracePartialSuccess extends \Google\Protobuf\Internal\Message +{ + /** + * The number of rejected spans. + * A `rejected_<signal>` field holding a `0` value indicates that the + * request was fully accepted. + * + * Generated from protobuf field <code>int64 rejected_spans = 1;</code> + */ + protected $rejected_spans = 0; + /** + * A developer-facing human-readable message in English. It should be used + * either to explain why the server rejected parts of the data during a partial + * success or to convey warnings/suggestions during a full success. The message + * should offer guidance on how users can address such issues. + * error_message is an optional field. An error_message with an empty value + * is equivalent to it not being set. + * + * Generated from protobuf field <code>string error_message = 2;</code> + */ + protected $error_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $rejected_spans + * The number of rejected spans. + * A `rejected_<signal>` field holding a `0` value indicates that the + * request was fully accepted. + * @type string $error_message + * A developer-facing human-readable message in English. It should be used + * either to explain why the server rejected parts of the data during a partial + * success or to convey warnings/suggestions during a full success. The message + * should offer guidance on how users can address such issues. + * error_message is an optional field. An error_message with an empty value + * is equivalent to it not being set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Opentelemetry\Proto\Collector\Trace\V1\TraceService::initOnce(); + parent::__construct($data); + } + + /** + * The number of rejected spans. + * A `rejected_<signal>` field holding a `0` value indicates that the + * request was fully accepted. + * + * Generated from protobuf field <code>int64 rejected_spans = 1;</code> + * @return int|string + */ + public function getRejectedSpans() + { + return $this->rejected_spans; + } + + /** + * The number of rejected spans. + * A `rejected_<signal>` field holding a `0` value indicates that the + * request was fully accepted. + * + * Generated from protobuf field <code>int64 rejected_spans = 1;</code> + * @param int|string $var + * @return $this + */ + public function setRejectedSpans($var) + { + GPBUtil::checkInt64($var); + $this->rejected_spans = $var; + + return $this; + } + + /** + * A developer-facing human-readable message in English. It should be used + * either to explain why the server rejected parts of the data during a partial + * success or to convey warnings/suggestions during a full success. The message + * should offer guidance on how users can address such issues. + * error_message is an optional field. An error_message with an empty value + * is equivalent to it not being set. + * + * Generated from protobuf field <code>string error_message = 2;</code> + * @return string + */ + public function getErrorMessage() + { + return $this->error_message; + } + + /** + * A developer-facing human-readable message in English. It should be used + * either to explain why the server rejected parts of the data during a partial + * success or to convey warnings/suggestions during a full success. The message + * should offer guidance on how users can address such issues. + * error_message is an optional field. An error_message with an empty value + * is equivalent to it not being set. + * + * Generated from protobuf field <code>string error_message = 2;</code> + * @param string $var + * @return $this + */ + public function setErrorMessage($var) + { + GPBUtil::checkString($var, True); + $this->error_message = $var; + + return $this; + } + +} + |