<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/bigquery/storage/v1/avro.proto

namespace Google\Cloud\BigQuery\Storage\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Avro schema.
 *
 * Generated from protobuf message <code>google.cloud.bigquery.storage.v1.AvroSchema</code>
 */
class AvroSchema extends \Google\Protobuf\Internal\Message
{
    /**
     * Json serialized schema, as described at
     * https://avro.apache.org/docs/1.8.1/spec.html.
     *
     * Generated from protobuf field <code>string schema = 1;</code>
     */
    protected $schema = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $schema
     *           Json serialized schema, as described at
     *           https://avro.apache.org/docs/1.8.1/spec.html.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Bigquery\Storage\V1\Avro::initOnce();
        parent::__construct($data);
    }

    /**
     * Json serialized schema, as described at
     * https://avro.apache.org/docs/1.8.1/spec.html.
     *
     * Generated from protobuf field <code>string schema = 1;</code>
     * @return string
     */
    public function getSchema()
    {
        return $this->schema;
    }

    /**
     * Json serialized schema, as described at
     * https://avro.apache.org/docs/1.8.1/spec.html.
     *
     * Generated from protobuf field <code>string schema = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setSchema($var)
    {
        GPBUtil::checkString($var, True);
        $this->schema = $var;

        return $this;
    }

}

