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 --- .../Collector/Logs/V1/ExportLogsPartialSuccess.php | 127 +++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/ExportLogsPartialSuccess.php (limited to 'vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/ExportLogsPartialSuccess.php') diff --git a/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/ExportLogsPartialSuccess.php b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/ExportLogsPartialSuccess.php new file mode 100644 index 000000000..044cdffdd --- /dev/null +++ b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/ExportLogsPartialSuccess.php @@ -0,0 +1,127 @@ +opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess + */ +class ExportLogsPartialSuccess extends \Google\Protobuf\Internal\Message +{ + /** + * The number of rejected log records. + * A `rejected_` field holding a `0` value indicates that the + * request was fully accepted. + * + * Generated from protobuf field int64 rejected_log_records = 1; + */ + protected $rejected_log_records = 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 string error_message = 2; + */ + protected $error_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $rejected_log_records + * The number of rejected log records. + * A `rejected_` 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\Logs\V1\LogsService::initOnce(); + parent::__construct($data); + } + + /** + * The number of rejected log records. + * A `rejected_` field holding a `0` value indicates that the + * request was fully accepted. + * + * Generated from protobuf field int64 rejected_log_records = 1; + * @return int|string + */ + public function getRejectedLogRecords() + { + return $this->rejected_log_records; + } + + /** + * The number of rejected log records. + * A `rejected_` field holding a `0` value indicates that the + * request was fully accepted. + * + * Generated from protobuf field int64 rejected_log_records = 1; + * @param int|string $var + * @return $this + */ + public function setRejectedLogRecords($var) + { + GPBUtil::checkInt64($var); + $this->rejected_log_records = $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 string error_message = 2; + * @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 string error_message = 2; + * @param string $var + * @return $this + */ + public function setErrorMessage($var) + { + GPBUtil::checkString($var, True); + $this->error_message = $var; + + return $this; + } + +} + -- cgit v1.2.3