com.twitter.common.thrift.testing
Class TestThriftTypes.Struct

java.lang.Object
  extended by com.twitter.common.thrift.testing.TestThriftTypes.Struct
All Implemented Interfaces:
Serializable, Comparable<TestThriftTypes.Struct>, org.apache.thrift.TBase<TestThriftTypes.Struct,TestThriftTypes.Field>
Enclosing class:
TestThriftTypes

public static class TestThriftTypes.Struct
extends Object
implements org.apache.thrift.TBase<TestThriftTypes.Struct,TestThriftTypes.Field>

See Also:
Serialized Form

Constructor Summary
TestThriftTypes.Struct()
           
TestThriftTypes.Struct(String name, String value)
           
 
Method Summary
 void clear()
           
 int compareTo(TestThriftTypes.Struct other)
           
 org.apache.thrift.TBase<TestThriftTypes.Struct,TestThriftTypes.Field> deepCopy()
           
 TestThriftTypes.Field fieldForId(int fieldId)
           
 Object getFieldValue(TestThriftTypes.Field field)
           
 String getName()
           
 String getValue()
           
 boolean isSet(TestThriftTypes.Field field)
           
 void read(org.apache.thrift.protocol.TProtocol tProtocol)
           
 void setFieldValue(TestThriftTypes.Field field, Object o)
           
 void write(org.apache.thrift.protocol.TProtocol tProtocol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestThriftTypes.Struct

public TestThriftTypes.Struct()

TestThriftTypes.Struct

public TestThriftTypes.Struct(String name,
                              String value)
Method Detail

getName

public String getName()

getValue

public String getValue()

read

public void read(org.apache.thrift.protocol.TProtocol tProtocol)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<TestThriftTypes.Struct,TestThriftTypes.Field>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol tProtocol)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<TestThriftTypes.Struct,TestThriftTypes.Field>
Throws:
org.apache.thrift.TException

isSet

public boolean isSet(TestThriftTypes.Field field)
Specified by:
isSet in interface org.apache.thrift.TBase<TestThriftTypes.Struct,TestThriftTypes.Field>

getFieldValue

public Object getFieldValue(TestThriftTypes.Field field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<TestThriftTypes.Struct,TestThriftTypes.Field>

setFieldValue

public void setFieldValue(TestThriftTypes.Field field,
                          Object o)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<TestThriftTypes.Struct,TestThriftTypes.Field>

deepCopy

public org.apache.thrift.TBase<TestThriftTypes.Struct,TestThriftTypes.Field> deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<TestThriftTypes.Struct,TestThriftTypes.Field>

compareTo

public int compareTo(TestThriftTypes.Struct other)
Specified by:
compareTo in interface Comparable<TestThriftTypes.Struct>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<TestThriftTypes.Struct,TestThriftTypes.Field>

fieldForId

public TestThriftTypes.Field fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<TestThriftTypes.Struct,TestThriftTypes.Field>