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

namespace Google\Cloud\BigQuery\Storage\V1;

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

/**
 * Arrow schema as specified in
 * https://arrow.apache.org/docs/python/api/datatypes.html
 * and serialized to bytes using IPC:
 * https://arrow.apache.org/docs/format/Columnar.html#serialization-and-interprocess-communication-ipc
 * See code samples on how this message can be deserialized.
 *
 * Generated from protobuf message <code>google.cloud.bigquery.storage.v1.ArrowSchema</code>
 */
class ArrowSchema extends \Google\Protobuf\Internal\Message
{
    /**
     * IPC serialized Arrow schema.
     *
     * Generated from protobuf field <code>bytes serialized_schema = 1;</code>
     */
    private $serialized_schema = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $serialized_schema
     *           IPC serialized Arrow schema.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Bigquery\Storage\V1\Arrow::initOnce();
        parent::__construct($data);
    }

    /**
     * IPC serialized Arrow schema.
     *
     * Generated from protobuf field <code>bytes serialized_schema = 1;</code>
     * @return string
     */
    public function getSerializedSchema()
    {
        return $this->serialized_schema;
    }

    /**
     * IPC serialized Arrow schema.
     *
     * Generated from protobuf field <code>bytes serialized_schema = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setSerializedSchema($var)
    {
        GPBUtil::checkString($var, False);
        $this->serialized_schema = $var;

        return $this;
    }

}

