blob: 34e76a8363762da513fca013d0138ffae7354d0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
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;
}
}
|