public void write(org.apache.thrift.protocol.TProtocol oprot, UnaryPredicate struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.predicateName != null) { oprot.writeFieldBegin(PREDICATE_NAME_FIELD_DESC); oprot.writeString(struct.predicateName); oprot.writeFieldEnd(); } if (struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (PredicateValue _iter3 : struct.values) { _iter3.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, UnaryPredicate struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.predicateName); { oprot.writeI32(struct.values.size()); for (PredicateValue _iter4 : struct.values) { _iter4.write(oprot); } } }