-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathBatchCommitWriteStreamsResponse.php
More file actions
135 lines (121 loc) · 4.94 KB
/
BatchCommitWriteStreamsResponse.php
File metadata and controls
135 lines (121 loc) · 4.94 KB
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
128
129
130
131
132
133
134
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/bigquery/storage/v1/storage.proto
namespace Google\Cloud\BigQuery\Storage\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* Response message for `BatchCommitWriteStreams`.
*
* Generated from protobuf message <code>google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse</code>
*/
class BatchCommitWriteStreamsResponse extends \Google\Protobuf\Internal\Message
{
/**
* The time at which streams were committed in microseconds granularity.
* This field will only exist when there are no stream errors.
* **Note** if this field is not set, it means the commit was not successful.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp commit_time = 1;</code>
*/
protected $commit_time = null;
/**
* Stream level error if commit failed. Only streams with error will be in
* the list.
* If empty, there is no error and all streams are committed successfully.
* If non empty, certain streams have errors and ZERO stream is committed due
* to atomicity guarantee.
*
* Generated from protobuf field <code>repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;</code>
*/
private $stream_errors;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Google\Protobuf\Timestamp $commit_time
* The time at which streams were committed in microseconds granularity.
* This field will only exist when there are no stream errors.
* **Note** if this field is not set, it means the commit was not successful.
* @type \Google\Cloud\BigQuery\Storage\V1\StorageError[] $stream_errors
* Stream level error if commit failed. Only streams with error will be in
* the list.
* If empty, there is no error and all streams are committed successfully.
* If non empty, certain streams have errors and ZERO stream is committed due
* to atomicity guarantee.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Bigquery\Storage\V1\Storage::initOnce();
parent::__construct($data);
}
/**
* The time at which streams were committed in microseconds granularity.
* This field will only exist when there are no stream errors.
* **Note** if this field is not set, it means the commit was not successful.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp commit_time = 1;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getCommitTime()
{
return $this->commit_time;
}
public function hasCommitTime()
{
return isset($this->commit_time);
}
public function clearCommitTime()
{
unset($this->commit_time);
}
/**
* The time at which streams were committed in microseconds granularity.
* This field will only exist when there are no stream errors.
* **Note** if this field is not set, it means the commit was not successful.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp commit_time = 1;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setCommitTime($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->commit_time = $var;
return $this;
}
/**
* Stream level error if commit failed. Only streams with error will be in
* the list.
* If empty, there is no error and all streams are committed successfully.
* If non empty, certain streams have errors and ZERO stream is committed due
* to atomicity guarantee.
*
* Generated from protobuf field <code>repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;</code>
* @return RepeatedField<\Google\Cloud\BigQuery\Storage\V1\StorageError>
*/
public function getStreamErrors()
{
return $this->stream_errors;
}
/**
* Stream level error if commit failed. Only streams with error will be in
* the list.
* If empty, there is no error and all streams are committed successfully.
* If non empty, certain streams have errors and ZERO stream is committed due
* to atomicity guarantee.
*
* Generated from protobuf field <code>repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;</code>
* @param \Google\Cloud\BigQuery\Storage\V1\StorageError[] $var
* @return $this
*/
public function setStreamErrors($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Storage\V1\StorageError::class);
$this->stream_errors = $arr;
return $this;
}
}