blob: 56bf54ddabe2bcc6298249b4b20f3a3f878c8de1 (
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
120
121
122
123
124
125
126
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;
}
}
|