-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathReadStream.php
More file actions
73 lines (64 loc) · 2.24 KB
/
ReadStream.php
File metadata and controls
73 lines (64 loc) · 2.24 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
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/bigquery/storage/v1/stream.proto
namespace Google\Cloud\BigQuery\Storage\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* Information about a single stream that gets data out of the storage system.
* Most of the information about `ReadStream` instances is aggregated, making
* `ReadStream` lightweight.
*
* Generated from protobuf message <code>google.cloud.bigquery.storage.v1.ReadStream</code>
*/
class ReadStream extends \Google\Protobuf\Internal\Message
{
/**
* Output only. Name of the stream, in the form
* `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
*
* Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*/
protected $name = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $name
* Output only. Name of the stream, in the form
* `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Bigquery\Storage\V1\Stream::initOnce();
parent::__construct($data);
}
/**
* Output only. Name of the stream, in the form
* `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
*
* Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Name of the stream, in the form
* `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
*
* Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
}