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

namespace Google\Cloud\StorageInsights\V1;

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

/**
 * Options to configure CSV formatted reports.
 *
 * Generated from protobuf message <code>google.cloud.storageinsights.v1.CSVOptions</code>
 */
class CSVOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * Record separator characters in CSV.
     *
     * Generated from protobuf field <code>string record_separator = 1;</code>
     */
    protected $record_separator = '';
    /**
     * Delimiter characters in CSV.
     *
     * Generated from protobuf field <code>string delimiter = 2;</code>
     */
    protected $delimiter = '';
    /**
     * If set, will include a header row in the CSV report.
     *
     * Generated from protobuf field <code>bool header_required = 3;</code>
     */
    protected $header_required = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $record_separator
     *           Record separator characters in CSV.
     *     @type string $delimiter
     *           Delimiter characters in CSV.
     *     @type bool $header_required
     *           If set, will include a header row in the CSV report.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Storageinsights\V1\Storageinsights::initOnce();
        parent::__construct($data);
    }

    /**
     * Record separator characters in CSV.
     *
     * Generated from protobuf field <code>string record_separator = 1;</code>
     * @return string
     */
    public function getRecordSeparator()
    {
        return $this->record_separator;
    }

    /**
     * Record separator characters in CSV.
     *
     * Generated from protobuf field <code>string record_separator = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setRecordSeparator($var)
    {
        GPBUtil::checkString($var, True);
        $this->record_separator = $var;

        return $this;
    }

    /**
     * Delimiter characters in CSV.
     *
     * Generated from protobuf field <code>string delimiter = 2;</code>
     * @return string
     */
    public function getDelimiter()
    {
        return $this->delimiter;
    }

    /**
     * Delimiter characters in CSV.
     *
     * Generated from protobuf field <code>string delimiter = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setDelimiter($var)
    {
        GPBUtil::checkString($var, True);
        $this->delimiter = $var;

        return $this;
    }

    /**
     * If set, will include a header row in the CSV report.
     *
     * Generated from protobuf field <code>bool header_required = 3;</code>
     * @return bool
     */
    public function getHeaderRequired()
    {
        return $this->header_required;
    }

    /**
     * If set, will include a header row in the CSV report.
     *
     * Generated from protobuf field <code>bool header_required = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setHeaderRequired($var)
    {
        GPBUtil::checkBool($var);
        $this->header_required = $var;

        return $this;
    }

}

