Google BigQuery Storage V1 Client - Class AvroSchema (1.8.0)

Reference documentation and code samples for the Google BigQuery Storage V1 Client class AvroSchema.

Avro schema.

Generated from protobuf message google.cloud.bigquery.storage.v1.AvroSchema

Namespace

Google \ Cloud \ BigQuery \ Storage \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ schema string

Json serialized schema, as described at https://avro.apache.org/docs/1.8.1/spec.html.

getSchema

Json serialized schema, as described at https://avro.apache.org/docs/1.8.1/spec.html.

Returns
TypeDescription
string

setSchema

Json serialized schema, as described at https://avro.apache.org/docs/1.8.1/spec.html.

Parameter
NameDescription
var string
Returns
TypeDescription
$this