BigQuery Client - Class Bytes (1.30.1)

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 \ BigQuery

Methods

__construct

Parameter
NameDescription
value string|resource|Psr\Http\Message\StreamInterface

The bytes value.

get

Get the bytes as a stream.

Returns
TypeDescription
Psr\Http\Message\StreamInterface

type

Get the type.

Returns
TypeDescription
string

formatAsString

Format the value as a string.

Returns
TypeDescription
string

__toString

Format the value as a string.

Returns
TypeDescription
string