Reference documentation and code samples for the BigQuery Client class Bytes.
Represents a value with a data type of bytes.
Example:
use Google\Cloud\BigQuery\BigQueryClient;
$bigQuery = new BigQueryClient();
$bytes = $bigQuery->bytes('hello world');
Namespace
Google \ Cloud \ BigQueryMethods
__construct
| Parameter | |
|---|---|
| Name | Description | 
| value | string|resource|Psr\Http\Message\StreamInterfaceThe bytes value. | 
get
Get the bytes as a stream.
| Returns | |
|---|---|
| Type | Description | 
| Psr\Http\Message\StreamInterface | |
type
Get the type.
| Returns | |
|---|---|
| Type | Description | 
| string | |
formatAsString
Format the value as a string.
| Returns | |
|---|---|
| Type | Description | 
| string | |
__toString
Format the value as a string.
| Returns | |
|---|---|
| Type | Description | 
| string | |