summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java
diff options
context:
space:
mode:
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.java245
1 files changed, 110 insertions, 135 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 40d5680..692d3df 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java
@@ -1,40 +1,13 @@
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.15.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.openslx.bwlp.thrift.iface;
-import org.apache.thrift.scheme.IScheme;
-import org.apache.thrift.scheme.SchemeFactory;
-import org.apache.thrift.scheme.StandardScheme;
-
-import org.apache.thrift.scheme.TupleScheme;
-import org.apache.thrift.protocol.TTupleProtocol;
-import org.apache.thrift.protocol.TProtocolException;
-import org.apache.thrift.EncodingUtils;
-import org.apache.thrift.TException;
-import org.apache.thrift.async.AsyncMethodCallback;
-import org.apache.thrift.server.AbstractNonblockingServer.*;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-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 = "2017-09-06")
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17")
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");
@@ -44,17 +17,14 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
private static final org.apache.thrift.protocol.TField BLOCK_HASHES_FIELD_DESC = new org.apache.thrift.protocol.TField("blockHashes", org.apache.thrift.protocol.TType.LIST, (short)4);
private static final org.apache.thrift.protocol.TField MACHINE_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("machineDescription", org.apache.thrift.protocol.TType.STRING, (short)5);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new TransferInformationStandardSchemeFactory());
- schemes.put(TupleScheme.class, new TransferInformationTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TransferInformationStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TransferInformationTupleSchemeFactory();
- public String token; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String token; // required
public int plainPort; // required
public int sslPort; // required
- public List<ByteBuffer> blockHashes; // optional
- public ByteBuffer machineDescription; // optional
+ public @org.apache.thrift.annotation.Nullable java.util.List<java.nio.ByteBuffer> blockHashes; // optional
+ public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer machineDescription; // optional
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
@@ -64,10 +34,10 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
BLOCK_HASHES((short)4, "blockHashes"),
MACHINE_DESCRIPTION((short)5, "machineDescription");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -75,6 +45,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // TOKEN
@@ -98,21 +69,22 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
- public static _Fields findByName(String name) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
@@ -121,7 +93,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
return _thriftId;
}
- public String getFieldName() {
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -131,9 +103,9 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
private static final int __SSLPORT_ISSET_ID = 1;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.BLOCK_HASHES,_Fields.MACHINE_DESCRIPTION};
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token")));
tmpMap.put(_Fields.PLAIN_PORT, new org.apache.thrift.meta_data.FieldMetaData("plainPort", org.apache.thrift.TFieldRequirementType.DEFAULT,
@@ -145,7 +117,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))));
tmpMap.put(_Fields.MACHINE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("machineDescription", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TransferInformation.class, metaDataMap);
}
@@ -153,7 +125,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
}
public TransferInformation(
- String token,
+ java.lang.String token,
int plainPort,
int sslPort)
{
@@ -176,7 +148,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
this.plainPort = other.plainPort;
this.sslPort = other.sslPort;
if (other.isSetBlockHashes()) {
- List<ByteBuffer> __this__blockHashes = new ArrayList<ByteBuffer>(other.blockHashes);
+ java.util.List<java.nio.ByteBuffer> __this__blockHashes = new java.util.ArrayList<java.nio.ByteBuffer>(other.blockHashes);
this.blockHashes = __this__blockHashes;
}
if (other.isSetMachineDescription()) {
@@ -199,11 +171,12 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
this.machineDescription = null;
}
- public String getToken() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getToken() {
return this.token;
}
- public TransferInformation setToken(String token) {
+ public TransferInformation setToken(@org.apache.thrift.annotation.Nullable java.lang.String token) {
this.token = token;
return this;
}
@@ -234,16 +207,16 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
}
public void unsetPlainPort() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PLAINPORT_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __PLAINPORT_ISSET_ID);
}
/** Returns true if field plainPort is set (has been assigned a value) and false otherwise */
public boolean isSetPlainPort() {
- return EncodingUtils.testBit(__isset_bitfield, __PLAINPORT_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PLAINPORT_ISSET_ID);
}
public void setPlainPortIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PLAINPORT_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __PLAINPORT_ISSET_ID, value);
}
public int getSslPort() {
@@ -257,38 +230,40 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
}
public void unsetSslPort() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SSLPORT_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SSLPORT_ISSET_ID);
}
/** Returns true if field sslPort is set (has been assigned a value) and false otherwise */
public boolean isSetSslPort() {
- return EncodingUtils.testBit(__isset_bitfield, __SSLPORT_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SSLPORT_ISSET_ID);
}
public void setSslPortIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SSLPORT_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SSLPORT_ISSET_ID, value);
}
public int getBlockHashesSize() {
return (this.blockHashes == null) ? 0 : this.blockHashes.size();
}
- public java.util.Iterator<ByteBuffer> getBlockHashesIterator() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.Iterator<java.nio.ByteBuffer> getBlockHashesIterator() {
return (this.blockHashes == null) ? null : this.blockHashes.iterator();
}
- public void addToBlockHashes(ByteBuffer elem) {
+ public void addToBlockHashes(java.nio.ByteBuffer elem) {
if (this.blockHashes == null) {
- this.blockHashes = new ArrayList<ByteBuffer>();
+ this.blockHashes = new java.util.ArrayList<java.nio.ByteBuffer>();
}
this.blockHashes.add(elem);
}
- public List<ByteBuffer> getBlockHashes() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<java.nio.ByteBuffer> getBlockHashes() {
return this.blockHashes;
}
- public TransferInformation setBlockHashes(List<ByteBuffer> blockHashes) {
+ public TransferInformation setBlockHashes(@org.apache.thrift.annotation.Nullable java.util.List<java.nio.ByteBuffer> blockHashes) {
this.blockHashes = blockHashes;
return this;
}
@@ -313,16 +288,16 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
return machineDescription == null ? null : machineDescription.array();
}
- public ByteBuffer bufferForMachineDescription() {
+ public java.nio.ByteBuffer bufferForMachineDescription() {
return org.apache.thrift.TBaseHelper.copyBinary(machineDescription);
}
public TransferInformation setMachineDescription(byte[] machineDescription) {
- this.machineDescription = machineDescription == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(machineDescription, machineDescription.length));
+ this.machineDescription = machineDescription == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(machineDescription.clone());
return this;
}
- public TransferInformation setMachineDescription(ByteBuffer machineDescription) {
+ public TransferInformation setMachineDescription(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer machineDescription) {
this.machineDescription = org.apache.thrift.TBaseHelper.copyBinary(machineDescription);
return this;
}
@@ -342,13 +317,13 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
}
}
- public void setFieldValue(_Fields field, Object value) {
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case TOKEN:
if (value == null) {
unsetToken();
} else {
- setToken((String)value);
+ setToken((java.lang.String)value);
}
break;
@@ -356,7 +331,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
if (value == null) {
unsetPlainPort();
} else {
- setPlainPort((Integer)value);
+ setPlainPort((java.lang.Integer)value);
}
break;
@@ -364,7 +339,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
if (value == null) {
unsetSslPort();
} else {
- setSslPort((Integer)value);
+ setSslPort((java.lang.Integer)value);
}
break;
@@ -372,7 +347,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
if (value == null) {
unsetBlockHashes();
} else {
- setBlockHashes((List<ByteBuffer>)value);
+ setBlockHashes((java.util.List<java.nio.ByteBuffer>)value);
}
break;
@@ -380,14 +355,19 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
if (value == null) {
unsetMachineDescription();
} else {
- setMachineDescription((ByteBuffer)value);
+ if (value instanceof byte[]) {
+ setMachineDescription((byte[])value);
+ } else {
+ setMachineDescription((java.nio.ByteBuffer)value);
+ }
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case TOKEN:
return getToken();
@@ -405,13 +385,13 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
return getMachineDescription();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -426,13 +406,11 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
case MACHINE_DESCRIPTION:
return isSetMachineDescription();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof TransferInformation)
return this.equals((TransferInformation)that);
return false;
@@ -441,6 +419,8 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
public boolean equals(TransferInformation that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_token = true && this.isSetToken();
boolean that_present_token = true && that.isSetToken();
@@ -492,34 +472,25 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_token = true && (isSetToken());
- list.add(present_token);
- if (present_token)
- list.add(token);
+ hashCode = hashCode * 8191 + ((isSetToken()) ? 131071 : 524287);
+ if (isSetToken())
+ hashCode = hashCode * 8191 + token.hashCode();
- boolean present_plainPort = true;
- list.add(present_plainPort);
- if (present_plainPort)
- list.add(plainPort);
+ hashCode = hashCode * 8191 + plainPort;
- boolean present_sslPort = true;
- list.add(present_sslPort);
- if (present_sslPort)
- list.add(sslPort);
+ hashCode = hashCode * 8191 + sslPort;
- boolean present_blockHashes = true && (isSetBlockHashes());
- list.add(present_blockHashes);
- if (present_blockHashes)
- list.add(blockHashes);
+ hashCode = hashCode * 8191 + ((isSetBlockHashes()) ? 131071 : 524287);
+ if (isSetBlockHashes())
+ hashCode = hashCode * 8191 + blockHashes.hashCode();
- boolean present_machineDescription = true && (isSetMachineDescription());
- list.add(present_machineDescription);
- if (present_machineDescription)
- list.add(machineDescription);
+ hashCode = hashCode * 8191 + ((isSetMachineDescription()) ? 131071 : 524287);
+ if (isSetMachineDescription())
+ hashCode = hashCode * 8191 + machineDescription.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -530,7 +501,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken());
+ lastComparison = java.lang.Boolean.compare(isSetToken(), other.isSetToken());
if (lastComparison != 0) {
return lastComparison;
}
@@ -540,7 +511,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetPlainPort()).compareTo(other.isSetPlainPort());
+ lastComparison = java.lang.Boolean.compare(isSetPlainPort(), other.isSetPlainPort());
if (lastComparison != 0) {
return lastComparison;
}
@@ -550,7 +521,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetSslPort()).compareTo(other.isSetSslPort());
+ lastComparison = java.lang.Boolean.compare(isSetSslPort(), other.isSetSslPort());
if (lastComparison != 0) {
return lastComparison;
}
@@ -560,7 +531,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetBlockHashes()).compareTo(other.isSetBlockHashes());
+ lastComparison = java.lang.Boolean.compare(isSetBlockHashes(), other.isSetBlockHashes());
if (lastComparison != 0) {
return lastComparison;
}
@@ -570,7 +541,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetMachineDescription()).compareTo(other.isSetMachineDescription());
+ lastComparison = java.lang.Boolean.compare(isSetMachineDescription(), other.isSetMachineDescription());
if (lastComparison != 0) {
return lastComparison;
}
@@ -583,21 +554,22 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
return 0;
}
+ @org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("TransferInformation(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("TransferInformation(");
boolean first = true;
sb.append("token:");
@@ -652,7 +624,7 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
@@ -662,13 +634,13 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
}
}
- private static class TransferInformationStandardSchemeFactory implements SchemeFactory {
+ private static class TransferInformationStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TransferInformationStandardScheme getScheme() {
return new TransferInformationStandardScheme();
}
}
- private static class TransferInformationStandardScheme extends StandardScheme<TransferInformation> {
+ private static class TransferInformationStandardScheme extends org.apache.thrift.scheme.StandardScheme<TransferInformation> {
public void read(org.apache.thrift.protocol.TProtocol iprot, TransferInformation struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
@@ -707,13 +679,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 _list178 = iprot.readListBegin();
- struct.blockHashes = new ArrayList<ByteBuffer>(_list178.size);
- ByteBuffer _elem179;
- for (int _i180 = 0; _i180 < _list178.size; ++_i180)
+ org.apache.thrift.protocol.TList _list290 = iprot.readListBegin();
+ struct.blockHashes = new java.util.ArrayList<java.nio.ByteBuffer>(_list290.size);
+ @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem291;
+ for (int _i292 = 0; _i292 < _list290.size; ++_i292)
{
- _elem179 = iprot.readBinary();
- struct.blockHashes.add(_elem179);
+ _elem291 = iprot.readBinary();
+ struct.blockHashes.add(_elem291);
}
iprot.readListEnd();
}
@@ -761,9 +733,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 _iter181 : struct.blockHashes)
+ for (java.nio.ByteBuffer _iter293 : struct.blockHashes)
{
- oprot.writeBinary(_iter181);
+ oprot.writeBinary(_iter293);
}
oprot.writeListEnd();
}
@@ -783,18 +755,18 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
}
- private static class TransferInformationTupleSchemeFactory implements SchemeFactory {
+ private static class TransferInformationTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TransferInformationTupleScheme getScheme() {
return new TransferInformationTupleScheme();
}
}
- private static class TransferInformationTupleScheme extends TupleScheme<TransferInformation> {
+ private static class TransferInformationTupleScheme extends org.apache.thrift.scheme.TupleScheme<TransferInformation> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TransferInformation struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetToken()) {
optionals.set(0);
}
@@ -823,9 +795,9 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
if (struct.isSetBlockHashes()) {
{
oprot.writeI32(struct.blockHashes.size());
- for (ByteBuffer _iter182 : struct.blockHashes)
+ for (java.nio.ByteBuffer _iter294 : struct.blockHashes)
{
- oprot.writeBinary(_iter182);
+ oprot.writeBinary(_iter294);
}
}
}
@@ -836,8 +808,8 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TransferInformation struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(5);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(5);
if (incoming.get(0)) {
struct.token = iprot.readString();
struct.setTokenIsSet(true);
@@ -852,13 +824,13 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
}
if (incoming.get(3)) {
{
- org.apache.thrift.protocol.TList _list183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.blockHashes = new ArrayList<ByteBuffer>(_list183.size);
- ByteBuffer _elem184;
- for (int _i185 = 0; _i185 < _list183.size; ++_i185)
+ org.apache.thrift.protocol.TList _list295 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
+ struct.blockHashes = new java.util.ArrayList<java.nio.ByteBuffer>(_list295.size);
+ @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem296;
+ for (int _i297 = 0; _i297 < _list295.size; ++_i297)
{
- _elem184 = iprot.readBinary();
- struct.blockHashes.add(_elem184);
+ _elem296 = iprot.readBinary();
+ struct.blockHashes.add(_elem296);
}
}
struct.setBlockHashesIsSet(true);
@@ -870,5 +842,8 @@ public class TransferInformation implements org.apache.thrift.TBase<TransferInfo
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}