public void write(org.apache.thrift.protocol.TProtocol oprot, CacheFileMetadataRequest struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.dbName != null) { oprot.writeFieldBegin(DB_NAME_FIELD_DESC); oprot.writeString(struct.dbName); oprot.writeFieldEnd(); } if (struct.tblName != null) { oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); oprot.writeString(struct.tblName); oprot.writeFieldEnd(); } if (struct.partName != null) { if (struct.isSetPartName()) { oprot.writeFieldBegin(PART_NAME_FIELD_DESC); oprot.writeString(struct.partName); oprot.writeFieldEnd(); } } if (struct.isSetIsAllParts()) { oprot.writeFieldBegin(IS_ALL_PARTS_FIELD_DESC); oprot.writeBool(struct.isAllParts); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
struct.validate();
public void write(org.apache.thrift.protocol.TProtocol oprot, CacheFileMetadataRequest struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.dbName != null) { oprot.writeFieldBegin(DB_NAME_FIELD_DESC); oprot.writeString(struct.dbName); oprot.writeFieldEnd(); } if (struct.tblName != null) { oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); oprot.writeString(struct.tblName); oprot.writeFieldEnd(); } if (struct.partName != null) { if (struct.isSetPartName()) { oprot.writeFieldBegin(PART_NAME_FIELD_DESC); oprot.writeString(struct.partName); oprot.writeFieldEnd(); } } if (struct.isSetIsAllParts()) { oprot.writeFieldBegin(IS_ALL_PARTS_FIELD_DESC); oprot.writeBool(struct.isAllParts); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }