<?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;

/**
 * Contains options specific to Arrow Serialization.
 *
 * Generated from protobuf message <code>google.cloud.bigquery.storage.v1.ArrowSerializationOptions</code>
 */
class ArrowSerializationOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * The compression codec to use for Arrow buffers in serialized record
     * batches.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2;</code>
     */
    private $buffer_compression = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $buffer_compression
     *           The compression codec to use for Arrow buffers in serialized record
     *           batches.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Bigquery\Storage\V1\Arrow::initOnce();
        parent::__construct($data);
    }

    /**
     * The compression codec to use for Arrow buffers in serialized record
     * batches.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2;</code>
     * @return int
     */
    public function getBufferCompression()
    {
        return $this->buffer_compression;
    }

    /**
     * The compression codec to use for Arrow buffers in serialized record
     * batches.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setBufferCompression($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Storage\V1\ArrowSerializationOptions\CompressionCodec::class);
        $this->buffer_compression = $var;

        return $this;
    }

}

