diff options
author | Jonathan Bauer | 2016-01-07 13:55:40 +0100 |
---|---|---|
committer | Jonathan Bauer | 2016-01-07 13:55:40 +0100 |
commit | 5ba446543184d5af8185da23b9a5fd28133d5513 (patch) | |
tree | 5f0dc18ddee5ee2370f6c0226e5337987d393428 /src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java | |
parent | [thrift] added generated Location class (diff) | |
download | master-sync-shared-5ba446543184d5af8185da23b9a5fd28133d5513.tar.gz master-sync-shared-5ba446543184d5af8185da23b9a5fd28133d5513.tar.xz master-sync-shared-5ba446543184d5af8185da23b9a5fd28133d5513.zip |
added "onlyInLocations" flag for LectureWrite
update thrift files to 0.9.3
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java')
-rw-r--r-- | src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java | 81 |
1 files changed, 55 insertions, 26 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java b/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java index 19a1d8c..7b25f2c 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.3) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -29,9 +29,12 @@ import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; +import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") public class TransferInformation implements org.apache.thrift.TBase<TransferInformation, TransferInformation._Fields>, java.io.Serializable, Cloneable, Comparable<TransferInformation> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TransferInformation"); @@ -127,7 +130,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo private static final int __PLAINPORT_ISSET_ID = 0; private static final int __SSLPORT_ISSET_ID = 1; private byte __isset_bitfield = 0; - private _Fields optionals[] = {_Fields.BLOCK_HASHES,_Fields.MACHINE_DESCRIPTION}; + private static final _Fields optionals[] = {_Fields.BLOCK_HASHES,_Fields.MACHINE_DESCRIPTION}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -178,7 +181,6 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo } if (other.isSetMachineDescription()) { this.machineDescription = org.apache.thrift.TBaseHelper.copyBinary(other.machineDescription); -; } } @@ -312,16 +314,16 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo } public ByteBuffer bufferForMachineDescription() { - return machineDescription; + return org.apache.thrift.TBaseHelper.copyBinary(machineDescription); } public TransferInformation setMachineDescription(byte[] machineDescription) { - setMachineDescription(machineDescription == null ? (ByteBuffer)null : ByteBuffer.wrap(machineDescription)); + this.machineDescription = machineDescription == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(machineDescription, machineDescription.length)); return this; } public TransferInformation setMachineDescription(ByteBuffer machineDescription) { - this.machineDescription = machineDescription; + this.machineDescription = org.apache.thrift.TBaseHelper.copyBinary(machineDescription); return this; } @@ -391,10 +393,10 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo return getToken(); case PLAIN_PORT: - return Integer.valueOf(getPlainPort()); + return getPlainPort(); case SSL_PORT: - return Integer.valueOf(getSslPort()); + return getSslPort(); case BLOCK_HASHES: return getBlockHashes(); @@ -490,7 +492,34 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo @Override public int hashCode() { - return 0; + List<Object> list = new ArrayList<Object>(); + + boolean present_token = true && (isSetToken()); + list.add(present_token); + if (present_token) + list.add(token); + + boolean present_plainPort = true; + list.add(present_plainPort); + if (present_plainPort) + list.add(plainPort); + + boolean present_sslPort = true; + list.add(present_sslPort); + if (present_sslPort) + list.add(sslPort); + + boolean present_blockHashes = true && (isSetBlockHashes()); + list.add(present_blockHashes); + if (present_blockHashes) + list.add(blockHashes); + + boolean present_machineDescription = true && (isSetMachineDescription()); + list.add(present_machineDescription); + if (present_machineDescription) + list.add(machineDescription); + + return list.hashCode(); } @Override @@ -592,7 +621,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo if (this.blockHashes == null) { sb.append("null"); } else { - sb.append(this.blockHashes); + org.apache.thrift.TBaseHelper.toString(this.blockHashes, sb); } first = false; } @@ -678,13 +707,13 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo case 4: // BLOCK_HASHES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list146 = iprot.readListBegin(); - struct.blockHashes = new ArrayList<ByteBuffer>(_list146.size); - for (int _i147 = 0; _i147 < _list146.size; ++_i147) + org.apache.thrift.protocol.TList _list162 = iprot.readListBegin(); + struct.blockHashes = new ArrayList<ByteBuffer>(_list162.size); + ByteBuffer _elem163; + for (int _i164 = 0; _i164 < _list162.size; ++_i164) { - ByteBuffer _elem148; - _elem148 = iprot.readBinary(); - struct.blockHashes.add(_elem148); + _elem163 = iprot.readBinary(); + struct.blockHashes.add(_elem163); } iprot.readListEnd(); } @@ -732,9 +761,9 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size())); - for (ByteBuffer _iter149 : struct.blockHashes) + for (ByteBuffer _iter165 : struct.blockHashes) { - oprot.writeBinary(_iter149); + oprot.writeBinary(_iter165); } oprot.writeListEnd(); } @@ -794,9 +823,9 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo if (struct.isSetBlockHashes()) { { oprot.writeI32(struct.blockHashes.size()); - for (ByteBuffer _iter150 : struct.blockHashes) + for (ByteBuffer _iter166 : struct.blockHashes) { - oprot.writeBinary(_iter150); + oprot.writeBinary(_iter166); } } } @@ -823,13 +852,13 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.blockHashes = new ArrayList<ByteBuffer>(_list151.size); - for (int _i152 = 0; _i152 < _list151.size; ++_i152) + org.apache.thrift.protocol.TList _list167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.blockHashes = new ArrayList<ByteBuffer>(_list167.size); + ByteBuffer _elem168; + for (int _i169 = 0; _i169 < _list167.size; ++_i169) { - ByteBuffer _elem153; - _elem153 = iprot.readBinary(); - struct.blockHashes.add(_elem153); + _elem168 = iprot.readBinary(); + struct.blockHashes.add(_elem168); } } struct.setBlockHashesIsSet(true); |