<?php
namespace Jaeger\Thrift\Crossdock;

/**
 * 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 JoinTraceRequest extends TBase {
  static $isValidate = false;

  static $_TSPEC = array(
    1 => array(
      'var' => 'serverRole',
      'isRequired' => true,
      'type' => TType::STRING,
      ),
    2 => array(
      'var' => 'downstream',
      'isRequired' => false,
      'type' => TType::STRUCT,
      'class' => '\Jaeger\Thrift\Crossdock\Downstream',
      ),
    );

  /**
   * @var string
   */
  public $serverRole = null;
  /**
   * @var \Jaeger\Thrift\Crossdock\Downstream
   */
  public $downstream = null;

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

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

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

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

}

