@Override public void clearFileMetadata(List<Long> fileIds) throws TException { ClearFileMetadataRequest req = new ClearFileMetadataRequest(); req.setFileIds(fileIds); client.clear_file_metadata(req); }
public Object getFieldValue(_Fields field) { switch (field) { case FILE_IDS: return getFileIds(); } throw new IllegalStateException(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof ClearFileMetadataRequest) return this.equals((ClearFileMetadataRequest)that); return false; }
public void setFieldValue(_Fields field, Object value) { switch (field) { case FILE_IDS: if (value == null) { unsetFileIds(); } else { setFileIds((List<Long>)value); } break; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetFileIds()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'fileIds' is unset! Struct:" + toString()); } // check for sub-struct validity }
public boolean equals(ClearFileMetadataRequest that) { if (that == null) return false; boolean this_present_fileIds = true && this.isSetFileIds(); boolean that_present_fileIds = true && that.isSetFileIds(); if (this_present_fileIds || that_present_fileIds) { if (!(this_present_fileIds && that_present_fileIds)) return false; if (!this.fileIds.equals(that.fileIds)) return false; } return true; }
struct.setFileIdsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
public ClearFileMetadataRequest deepCopy() { return new ClearFileMetadataRequest(this); }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TList _list869 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.fileIds = new ArrayList<Long>(_list869.size); long _elem870; for (int _i871 = 0; _i871 < _list869.size; ++_i871) { _elem870 = iprot.readI64(); struct.fileIds.add(_elem870); } } struct.setFileIdsIsSet(true); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, ClearFileMetadataRequest struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.fileIds != null) { oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); for (long _iter867 : struct.fileIds) { oprot.writeI64(_iter867); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void setFieldValue(_Fields field, Object value) { switch (field) { case FILE_IDS: if (value == null) { unsetFileIds(); } else { setFileIds((List<Long>)value); } break; } }
/** * Performs a deep copy on <i>other</i>. */ public ClearFileMetadataRequest(ClearFileMetadataRequest other) { if (other.isSetFileIds()) { List<Long> __this__fileIds = new ArrayList<Long>(other.fileIds); this.fileIds = __this__fileIds; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetFileIds()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'fileIds' is unset! Struct:" + toString()); } // check for sub-struct validity }
struct.setFileIdsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
public ClearFileMetadataRequest deepCopy() { return new ClearFileMetadataRequest(this); }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TList _list805 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.fileIds = new ArrayList<Long>(_list805.size); long _elem806; for (int _i807 = 0; _i807 < _list805.size; ++_i807) { _elem806 = iprot.readI64(); struct.fileIds.add(_elem806); } } struct.setFileIdsIsSet(true); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, ClearFileMetadataRequest struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.fileIds != null) { oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); for (long _iter803 : struct.fileIds) { oprot.writeI64(_iter803); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void clearFileMetadata(List<Long> fileIds) throws TException { ClearFileMetadataRequest req = new ClearFileMetadataRequest(); req.setFileIds(fileIds); client.clear_file_metadata(req); }