Reference documentation and code samples for the Google Cloud Device Streaming V1 Client class StreamData.
Data for a stream.
Generated from protobuf message google.cloud.devicestreaming.v1.StreamData
Namespace
Google \ Cloud \ DeviceStreaming \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ stream_id |
int
Required. The unique ID of this stream, assigned by the client. |
↳ data |
string
Data in the stream. |
↳ close |
Close
The stream is closing. EOF. |
getStreamId
Required. The unique ID of this stream, assigned by the client.
Returns | |
---|---|
Type | Description |
int |
setStreamId
Required. The unique ID of this stream, assigned by the client.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getData
Data in the stream.
Returns | |
---|---|
Type | Description |
string |
hasData
setData
Data in the stream.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getClose
The stream is closing. EOF.
Returns | |
---|---|
Type | Description |
Close|null |
hasClose
setClose
The stream is closing. EOF.
Parameter | |
---|---|
Name | Description |
var |
Close
|
Returns | |
---|---|
Type | Description |
$this |
getContents
Returns | |
---|---|
Type | Description |
string |