#
# Autogenerated by Thrift Compiler (0.9.3)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#

require 'thrift'

class InnerStruct
  include ::Thrift::Struct, ::Thrift::Struct_Union
  FIELD0 = 1

  FIELDS = {
    FIELD0 => {:type => ::Thrift::Types::I32, :name => 'field0'}
  }

  def struct_fields; FIELDS; end

  def validate
  end

  ::Thrift::Struct.generate_accessors self
end

class ThriftTestObj
  include ::Thrift::Struct, ::Thrift::Struct_Union
  FIELD1 = 1
  FIELD2 = 2
  FIELD3 = 3

  FIELDS = {
    FIELD1 => {:type => ::Thrift::Types::I32, :name => 'field1'},
    FIELD2 => {:type => ::Thrift::Types::STRING, :name => 'field2'},
    FIELD3 => {:type => ::Thrift::Types::LIST, :name => 'field3', :element => {:type => ::Thrift::Types::STRUCT, :class => ::InnerStruct}}
  }

  def struct_fields; FIELDS; end

  def validate
  end

  ::Thrift::Struct.generate_accessors self
end

