summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs')
-rw-r--r--vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/ExportLogsPartialSuccess.php127
-rw-r--r--vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/ExportLogsServiceRequest.php81
-rw-r--r--vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/ExportLogsServiceResponse.php119
-rw-r--r--vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/LogsServiceClient.php53
4 files changed, 380 insertions, 0 deletions
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 @@
+<?php
+# Generated by the protocol buffer compiler. DO NOT EDIT!
+# source: opentelemetry/proto/collector/logs/v1/logs_service.proto
+
+namespace Opentelemetry\Proto\Collector\Logs\V1;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess</code>
+ */
+class ExportLogsPartialSuccess extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The number of rejected log records.
+ * A `rejected_<signal>` field holding a `0` value indicates that the
+ * request was fully accepted.
+ *
+ * Generated from protobuf field <code>int64 rejected_log_records = 1;</code>
+ */
+ 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 <code>string error_message = 2;</code>
+ */
+ 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_<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\Logs\V1\LogsService::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The number of rejected log records.
+ * A `rejected_<signal>` field holding a `0` value indicates that the
+ * request was fully accepted.
+ *
+ * Generated from protobuf field <code>int64 rejected_log_records = 1;</code>
+ * @return int|string
+ */
+ public function getRejectedLogRecords()
+ {
+ return $this->rejected_log_records;
+ }
+
+ /**
+ * The number of rejected log records.
+ * A `rejected_<signal>` field holding a `0` value indicates that the
+ * request was fully accepted.
+ *
+ * Generated from protobuf field <code>int64 rejected_log_records = 1;</code>
+ * @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 <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;
+ }
+
+}
+
diff --git a/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/ExportLogsServiceRequest.php b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/ExportLogsServiceRequest.php
new file mode 100644
index 000000000..e6f4147c4
--- /dev/null
+++ b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/ExportLogsServiceRequest.php
@@ -0,0 +1,81 @@
+<?php
+# Generated by the protocol buffer compiler. DO NOT EDIT!
+# source: opentelemetry/proto/collector/logs/v1/logs_service.proto
+
+namespace Opentelemetry\Proto\Collector\Logs\V1;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest</code>
+ */
+class ExportLogsServiceRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * An array of ResourceLogs.
+ * For data coming from a single resource this array will typically contain one
+ * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
+ * data from multiple origins typically batch the data before forwarding further and
+ * in that case this array will contain multiple elements.
+ *
+ * Generated from protobuf field <code>repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;</code>
+ */
+ private $resource_logs;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Opentelemetry\Proto\Logs\V1\ResourceLogs[]|\Google\Protobuf\Internal\RepeatedField $resource_logs
+ * An array of ResourceLogs.
+ * For data coming from a single resource this array will typically contain one
+ * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
+ * data from multiple origins typically batch the data before forwarding further and
+ * in that case this array will contain multiple elements.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Opentelemetry\Proto\Collector\Logs\V1\LogsService::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * An array of ResourceLogs.
+ * For data coming from a single resource this array will typically contain one
+ * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
+ * data from multiple origins typically batch the data before forwarding further and
+ * in that case this array will contain multiple elements.
+ *
+ * Generated from protobuf field <code>repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;</code>
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getResourceLogs()
+ {
+ return $this->resource_logs;
+ }
+
+ /**
+ * An array of ResourceLogs.
+ * For data coming from a single resource this array will typically contain one
+ * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
+ * data from multiple origins typically batch the data before forwarding further and
+ * in that case this array will contain multiple elements.
+ *
+ * Generated from protobuf field <code>repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;</code>
+ * @param \Opentelemetry\Proto\Logs\V1\ResourceLogs[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setResourceLogs($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Logs\V1\ResourceLogs::class);
+ $this->resource_logs = $arr;
+
+ return $this;
+ }
+
+}
+
diff --git a/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/ExportLogsServiceResponse.php b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/ExportLogsServiceResponse.php
new file mode 100644
index 000000000..34e76a836
--- /dev/null
+++ b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/ExportLogsServiceResponse.php
@@ -0,0 +1,119 @@
+<?php
+# Generated by the protocol buffer compiler. DO NOT EDIT!
+# source: opentelemetry/proto/collector/logs/v1/logs_service.proto
+
+namespace Opentelemetry\Proto\Collector\Logs\V1;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse</code>
+ */
+class ExportLogsServiceResponse extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The details of a partially successful export request.
+ * If the request is only partially accepted
+ * (i.e. when the server accepts only parts of the data and rejects the rest)
+ * the server MUST initialize the `partial_success` field and MUST
+ * set the `rejected_<signal>` with the number of items it rejected.
+ * Servers MAY also make use of the `partial_success` field to convey
+ * warnings/suggestions to senders even when the request was fully accepted.
+ * In such cases, the `rejected_<signal>` MUST have a value of `0` and
+ * the `error_message` MUST be non-empty.
+ * A `partial_success` message with an empty value (rejected_<signal> = 0 and
+ * `error_message` = "") is equivalent to it not being set/present. Senders
+ * SHOULD interpret it the same way as in the full success case.
+ *
+ * Generated from protobuf field <code>.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess partial_success = 1;</code>
+ */
+ protected $partial_success = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Opentelemetry\Proto\Collector\Logs\V1\ExportLogsPartialSuccess $partial_success
+ * The details of a partially successful export request.
+ * If the request is only partially accepted
+ * (i.e. when the server accepts only parts of the data and rejects the rest)
+ * the server MUST initialize the `partial_success` field and MUST
+ * set the `rejected_<signal>` with the number of items it rejected.
+ * Servers MAY also make use of the `partial_success` field to convey
+ * warnings/suggestions to senders even when the request was fully accepted.
+ * In such cases, the `rejected_<signal>` MUST have a value of `0` and
+ * the `error_message` MUST be non-empty.
+ * A `partial_success` message with an empty value (rejected_<signal> = 0 and
+ * `error_message` = "") is equivalent to it not being set/present. Senders
+ * SHOULD interpret it the same way as in the full success case.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Opentelemetry\Proto\Collector\Logs\V1\LogsService::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The details of a partially successful export request.
+ * If the request is only partially accepted
+ * (i.e. when the server accepts only parts of the data and rejects the rest)
+ * the server MUST initialize the `partial_success` field and MUST
+ * set the `rejected_<signal>` with the number of items it rejected.
+ * Servers MAY also make use of the `partial_success` field to convey
+ * warnings/suggestions to senders even when the request was fully accepted.
+ * In such cases, the `rejected_<signal>` MUST have a value of `0` and
+ * the `error_message` MUST be non-empty.
+ * A `partial_success` message with an empty value (rejected_<signal> = 0 and
+ * `error_message` = "") is equivalent to it not being set/present. Senders
+ * SHOULD interpret it the same way as in the full success case.
+ *
+ * Generated from protobuf field <code>.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess partial_success = 1;</code>
+ * @return \Opentelemetry\Proto\Collector\Logs\V1\ExportLogsPartialSuccess|null
+ */
+ public function getPartialSuccess()
+ {
+ return $this->partial_success;
+ }
+
+ public function hasPartialSuccess()
+ {
+ return isset($this->partial_success);
+ }
+
+ public function clearPartialSuccess()
+ {
+ unset($this->partial_success);
+ }
+
+ /**
+ * The details of a partially successful export request.
+ * If the request is only partially accepted
+ * (i.e. when the server accepts only parts of the data and rejects the rest)
+ * the server MUST initialize the `partial_success` field and MUST
+ * set the `rejected_<signal>` with the number of items it rejected.
+ * Servers MAY also make use of the `partial_success` field to convey
+ * warnings/suggestions to senders even when the request was fully accepted.
+ * In such cases, the `rejected_<signal>` MUST have a value of `0` and
+ * the `error_message` MUST be non-empty.
+ * A `partial_success` message with an empty value (rejected_<signal> = 0 and
+ * `error_message` = "") is equivalent to it not being set/present. Senders
+ * SHOULD interpret it the same way as in the full success case.
+ *
+ * Generated from protobuf field <code>.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess partial_success = 1;</code>
+ * @param \Opentelemetry\Proto\Collector\Logs\V1\ExportLogsPartialSuccess $var
+ * @return $this
+ */
+ public function setPartialSuccess($var)
+ {
+ GPBUtil::checkMessage($var, \Opentelemetry\Proto\Collector\Logs\V1\ExportLogsPartialSuccess::class);
+ $this->partial_success = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/LogsServiceClient.php b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/LogsServiceClient.php
new file mode 100644
index 000000000..e3249d73e
--- /dev/null
+++ b/vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Collector/Logs/V1/LogsServiceClient.php
@@ -0,0 +1,53 @@
+<?php
+// GENERATED CODE -- DO NOT EDIT!
+
+// Original file comments:
+// Copyright 2020, OpenTelemetry Authors
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+namespace Opentelemetry\Proto\Collector\Logs\V1;
+
+/**
+ * Service that can be used to push logs between one Application instrumented with
+ * OpenTelemetry and an collector, or between an collector and a central collector (in this
+ * case logs are sent/received to/from multiple Applications).
+ */
+class LogsServiceClient extends \Grpc\BaseStub {
+
+ /**
+ * @param string $hostname hostname
+ * @param array $opts channel options
+ * @param \Grpc\Channel $channel (optional) re-use channel object
+ */
+ public function __construct($hostname, $opts, $channel = null) {
+ parent::__construct($hostname, $opts, $channel);
+ }
+
+ /**
+ * For performance reasons, it is recommended to keep this RPC
+ * alive for the entire life of the application.
+ * @param \Opentelemetry\Proto\Collector\Logs\V1\ExportLogsServiceRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function Export(\Opentelemetry\Proto\Collector\Logs\V1\ExportLogsServiceRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/opentelemetry.proto.collector.logs.v1.LogsService/Export',
+ $argument,
+ ['\Opentelemetry\Proto\Collector\Logs\V1\ExportLogsServiceResponse', 'decode'],
+ $metadata, $options);
+ }
+
+}