1 /** 2 * Autogenerated by Thrift 3 * 4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 * @generated 6 */ 7 import java.util.List; 8 import java.util.ArrayList; 9 import java.util.Map; 10 import java.util.HashMap; 11 import java.util.Set; 12 import java.util.HashSet; 13 import java.util.Collections; 14 import java.util.BitSet; 15 import java.util.Arrays; 16 import com.facebook.thrift.*; 17 import com.facebook.thrift.annotations.*; 18 import com.facebook.thrift.async.*; 19 import com.facebook.thrift.meta_data.*; 20 import com.facebook.thrift.server.*; 21 import com.facebook.thrift.transport.*; 22 import com.facebook.thrift.protocol.*; 23 24 @SuppressWarnings({ "unused", "serial" }) 25 public class Empty implements TBase, java.io.Serializable, Cloneable { 26 private static final TStruct STRUCT_DESC = new TStruct("Empty"); 27 28 Empty()29 public Empty() { 30 } 31 32 /** 33 * Performs a deep copy on <i>other</i>. 34 */ Empty(Empty other)35 public Empty(Empty other) { 36 } 37 deepCopy()38 public Empty deepCopy() { 39 return new Empty(this); 40 } 41 42 @Override equals(Object _that)43 public boolean equals(Object _that) { 44 if (_that == null) 45 return false; 46 if (this == _that) 47 return true; 48 if (!(_that instanceof Empty)) 49 return false; 50 Empty that = (Empty)_that; 51 52 return true; 53 } 54 55 @Override hashCode()56 public int hashCode() { 57 return Arrays.deepHashCode(new Object[] {}); 58 } 59 60 // This is required to satisfy the TBase interface, but can't be implemented on immutable struture. read(TProtocol iprot)61 public void read(TProtocol iprot) throws TException { 62 throw new TException("unimplemented in android immutable structure"); 63 } 64 deserialize(TProtocol iprot)65 public static Empty deserialize(TProtocol iprot) throws TException { 66 TField __field; 67 iprot.readStructBegin(); 68 while (true) 69 { 70 __field = iprot.readFieldBegin(); 71 if (__field.type == TType.STOP) { 72 break; 73 } 74 switch (__field.id) 75 { 76 default: 77 TProtocolUtil.skip(iprot, __field.type); 78 break; 79 } 80 iprot.readFieldEnd(); 81 } 82 iprot.readStructEnd(); 83 84 Empty _that; 85 _that = new Empty( 86 ); 87 _that.validate(); 88 return _that; 89 } 90 write(TProtocol oprot)91 public void write(TProtocol oprot) throws TException { 92 validate(); 93 94 oprot.writeStructBegin(STRUCT_DESC); 95 oprot.writeFieldStop(); 96 oprot.writeStructEnd(); 97 } 98 99 @Override toString()100 public String toString() { 101 return toString(1, true); 102 } 103 104 @Override toString(int indent, boolean prettyPrint)105 public String toString(int indent, boolean prettyPrint) { 106 return TBaseHelper.toStringHelper(this, indent, prettyPrint); 107 } 108 validate()109 public void validate() throws TException { 110 // check for required fields 111 } 112 113 } 114 115