<?php
namespace Jaeger\Thrift\Agent;

/**
 * Autogenerated by Thrift Compiler (0.11.0)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
use Thrift\Base\TBase;
use Thrift\Type\TType;
use Thrift\Type\TMessageType;
use Thrift\Exception\TException;
use Thrift\Exception\TProtocolException;
use Thrift\Protocol\TProtocol;
use Thrift\Protocol\TBinaryProtocolAccelerated;
use Thrift\Exception\TApplicationException;


class SamplingStrategyResponse extends TBase {
  static $isValidate = false;

  static $_TSPEC = array(
    1 => array(
      'var' => 'strategyType',
      'isRequired' => true,
      'type' => TType::I32,
      ),
    2 => array(
      'var' => 'probabilisticSampling',
      'isRequired' => false,
      'type' => TType::STRUCT,
      'class' => '\Jaeger\Thrift\Agent\ProbabilisticSamplingStrategy',
      ),
    3 => array(
      'var' => 'rateLimitingSampling',
      'isRequired' => false,
      'type' => TType::STRUCT,
      'class' => '\Jaeger\Thrift\Agent\RateLimitingSamplingStrategy',
      ),
    4 => array(
      'var' => 'operationSampling',
      'isRequired' => false,
      'type' => TType::STRUCT,
      'class' => '\Jaeger\Thrift\Agent\PerOperationSamplingStrategies',
      ),
    );

  /**
   * @var int
   */
  public $strategyType = null;
  /**
   * @var \Jaeger\Thrift\Agent\ProbabilisticSamplingStrategy
   */
  public $probabilisticSampling = null;
  /**
   * @var \Jaeger\Thrift\Agent\RateLimitingSamplingStrategy
   */
  public $rateLimitingSampling = null;
  /**
   * @var \Jaeger\Thrift\Agent\PerOperationSamplingStrategies
   */
  public $operationSampling = null;

  public function __construct($vals=null) {
    if (is_array($vals)) {
      parent::__construct(self::$_TSPEC, $vals);
    }
  }

  public function getName() {
    return 'SamplingStrategyResponse';
  }

  public function read($input)
  {
    return $this->_read('SamplingStrategyResponse', self::$_TSPEC, $input);
  }

  public function write($output) {
    return $this->_write('SamplingStrategyResponse', self::$_TSPEC, $output);
  }

}

