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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Sampling Strategy for logging, can be for both training and prediction
 * dataset.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.SamplingStrategy</code>
 */
class SamplingStrategy extends \Google\Protobuf\Internal\Message
{
    /**
     * Random sample config. Will support more sampling strategies later.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig random_sample_config = 1;</code>
     */
    protected $random_sample_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AIPlatform\V1\SamplingStrategy\RandomSampleConfig $random_sample_config
     *           Random sample config. Will support more sampling strategies later.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelMonitoring::initOnce();
        parent::__construct($data);
    }

    /**
     * Random sample config. Will support more sampling strategies later.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig random_sample_config = 1;</code>
     * @return \Google\Cloud\AIPlatform\V1\SamplingStrategy\RandomSampleConfig|null
     */
    public function getRandomSampleConfig()
    {
        return $this->random_sample_config;
    }

    public function hasRandomSampleConfig()
    {
        return isset($this->random_sample_config);
    }

    public function clearRandomSampleConfig()
    {
        unset($this->random_sample_config);
    }

    /**
     * Random sample config. Will support more sampling strategies later.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig random_sample_config = 1;</code>
     * @param \Google\Cloud\AIPlatform\V1\SamplingStrategy\RandomSampleConfig $var
     * @return $this
     */
    public function setRandomSampleConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\SamplingStrategy\RandomSampleConfig::class);
        $this->random_sample_config = $var;

        return $this;
    }

}

