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

namespace Google\Cloud\Compute\V1;

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

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig</code>
 */
class SecurityPolicyAdvancedOptionsConfigJsonCustomConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * A list of custom Content-Type header values to apply the JSON parsing.
     * As per RFC 1341, a Content-Type header value has the following format:
     * Content-Type := type "/" subtype *[";" parameter]
     * When configuring a custom Content-Type header value, only the
     * type/subtype needs to be specified, and the parameters should be
     * excluded.
     *
     * Generated from protobuf field <code>repeated string content_types = 17428787;</code>
     */
    private $content_types;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $content_types
     *           A list of custom Content-Type header values to apply the JSON parsing.
     *           As per RFC 1341, a Content-Type header value has the following format:
     *           Content-Type := type "/" subtype *[";" parameter]
     *           When configuring a custom Content-Type header value, only the
     *           type/subtype needs to be specified, and the parameters should be
     *           excluded.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * A list of custom Content-Type header values to apply the JSON parsing.
     * As per RFC 1341, a Content-Type header value has the following format:
     * Content-Type := type "/" subtype *[";" parameter]
     * When configuring a custom Content-Type header value, only the
     * type/subtype needs to be specified, and the parameters should be
     * excluded.
     *
     * Generated from protobuf field <code>repeated string content_types = 17428787;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getContentTypes()
    {
        return $this->content_types;
    }

    /**
     * A list of custom Content-Type header values to apply the JSON parsing.
     * As per RFC 1341, a Content-Type header value has the following format:
     * Content-Type := type "/" subtype *[";" parameter]
     * When configuring a custom Content-Type header value, only the
     * type/subtype needs to be specified, and the parameters should be
     * excluded.
     *
     * Generated from protobuf field <code>repeated string content_types = 17428787;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setContentTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->content_types = $arr;

        return $this;
    }

}

