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

namespace Google\Cloud\Ces\V1\DataStoreTool;

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

/**
 * Boost specification to boost certain documents.
 *
 * Generated from protobuf message <code>google.cloud.ces.v1.DataStoreTool.BoostSpec</code>
 */
class BoostSpec extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. A list of boosting specifications.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $condition_boost_specs;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Ces\V1\DataStoreTool\BoostSpec\ConditionBoostSpec[] $condition_boost_specs
     *           Required. A list of boosting specifications.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Ces\V1\DataStoreTool::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. A list of boosting specifications.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return RepeatedField<\Google\Cloud\Ces\V1\DataStoreTool\BoostSpec\ConditionBoostSpec>
     */
    public function getConditionBoostSpecs()
    {
        return $this->condition_boost_specs;
    }

    /**
     * Required. A list of boosting specifications.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\Ces\V1\DataStoreTool\BoostSpec\ConditionBoostSpec[] $var
     * @return $this
     */
    public function setConditionBoostSpecs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Ces\V1\DataStoreTool\BoostSpec\ConditionBoostSpec::class);
        $this->condition_boost_specs = $arr;

        return $this;
    }

}

