|
| 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 | +package com.facebook.thrift.annotation.cpp_deprecated; |
| 8 | + |
| 9 | +import java.util.List; |
| 10 | +import java.util.ArrayList; |
| 11 | +import java.util.Map; |
| 12 | +import java.util.HashMap; |
| 13 | +import java.util.Set; |
| 14 | +import java.util.HashSet; |
| 15 | +import java.util.Collections; |
| 16 | +import java.util.BitSet; |
| 17 | +import java.util.Arrays; |
| 18 | +import com.facebook.thrift.*; |
| 19 | +import com.facebook.thrift.annotations.*; |
| 20 | +import com.facebook.thrift.async.*; |
| 21 | +import com.facebook.thrift.meta_data.*; |
| 22 | +import com.facebook.thrift.server.*; |
| 23 | +import com.facebook.thrift.transport.*; |
| 24 | +import com.facebook.thrift.protocol.*; |
| 25 | + |
| 26 | +/** |
| 27 | + * Allows the field to be annotated @cpp.Ref (or cpp[2].ref[_type]) even if it |
| 28 | + * is deprecated_terse_writes field. |
| 29 | + * |
| 30 | + * This annotation is provided for a limited time, to exempt pre-existing fields |
| 31 | + * while rolling out a stricter enforcement of the condition above. |
| 32 | + */ |
| 33 | +@SuppressWarnings({ "unused", "serial" }) |
| 34 | +public class AllowLegacyDeprecatedTerseWritesRef implements TBase, java.io.Serializable, Cloneable { |
| 35 | + private static final TStruct STRUCT_DESC = new TStruct("AllowLegacyDeprecatedTerseWritesRef"); |
| 36 | + |
| 37 | + |
| 38 | + public AllowLegacyDeprecatedTerseWritesRef() { |
| 39 | + } |
| 40 | + |
| 41 | + /** |
| 42 | + * Performs a deep copy on <i>other</i>. |
| 43 | + */ |
| 44 | + public AllowLegacyDeprecatedTerseWritesRef(AllowLegacyDeprecatedTerseWritesRef other) { |
| 45 | + } |
| 46 | + |
| 47 | + public AllowLegacyDeprecatedTerseWritesRef deepCopy() { |
| 48 | + return new AllowLegacyDeprecatedTerseWritesRef(this); |
| 49 | + } |
| 50 | + |
| 51 | + @Override |
| 52 | + public boolean equals(Object _that) { |
| 53 | + if (_that == null) |
| 54 | + return false; |
| 55 | + if (this == _that) |
| 56 | + return true; |
| 57 | + if (!(_that instanceof AllowLegacyDeprecatedTerseWritesRef)) |
| 58 | + return false; |
| 59 | + AllowLegacyDeprecatedTerseWritesRef that = (AllowLegacyDeprecatedTerseWritesRef)_that; |
| 60 | + |
| 61 | + return true; |
| 62 | + } |
| 63 | + |
| 64 | + @Override |
| 65 | + public int hashCode() { |
| 66 | + return Arrays.deepHashCode(new Object[] {}); |
| 67 | + } |
| 68 | + |
| 69 | + // This is required to satisfy the TBase interface, but can't be implemented on immutable struture. |
| 70 | + public void read(TProtocol iprot) throws TException { |
| 71 | + throw new TException("unimplemented in android immutable structure"); |
| 72 | + } |
| 73 | + |
| 74 | + public static AllowLegacyDeprecatedTerseWritesRef deserialize(TProtocol iprot) throws TException { |
| 75 | + TField __field; |
| 76 | + iprot.readStructBegin(); |
| 77 | + while (true) |
| 78 | + { |
| 79 | + __field = iprot.readFieldBegin(); |
| 80 | + if (__field.type == TType.STOP) { |
| 81 | + break; |
| 82 | + } |
| 83 | + switch (__field.id) |
| 84 | + { |
| 85 | + default: |
| 86 | + TProtocolUtil.skip(iprot, __field.type); |
| 87 | + break; |
| 88 | + } |
| 89 | + iprot.readFieldEnd(); |
| 90 | + } |
| 91 | + iprot.readStructEnd(); |
| 92 | + |
| 93 | + AllowLegacyDeprecatedTerseWritesRef _that; |
| 94 | + _that = new AllowLegacyDeprecatedTerseWritesRef( |
| 95 | + ); |
| 96 | + _that.validate(); |
| 97 | + return _that; |
| 98 | + } |
| 99 | + |
| 100 | + public void write(TProtocol oprot) throws TException { |
| 101 | + validate(); |
| 102 | + |
| 103 | + oprot.writeStructBegin(STRUCT_DESC); |
| 104 | + oprot.writeFieldStop(); |
| 105 | + oprot.writeStructEnd(); |
| 106 | + } |
| 107 | + |
| 108 | + @Override |
| 109 | + public String toString() { |
| 110 | + return toString(1, true); |
| 111 | + } |
| 112 | + |
| 113 | + @Override |
| 114 | + public String toString(int indent, boolean prettyPrint) { |
| 115 | + return TBaseHelper.toStringHelper(this, indent, prettyPrint); |
| 116 | + } |
| 117 | + |
| 118 | + public void validate() throws TException { |
| 119 | + // check for required fields |
| 120 | + } |
| 121 | + |
| 122 | +} |
| 123 | + |
0 commit comments