summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java')
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java114
1 files changed, 109 insertions, 5 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java b/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java
index c274a4c..df1d0c4 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java
@@ -34,7 +34,7 @@ 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-08")
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-11-23")
public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fields>, java.io.Serializable, Cloneable, Comparable<NetShare> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NetShare");
@@ -44,6 +44,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
private static final org.apache.thrift.protocol.TField MOUNTPOINT_FIELD_DESC = new org.apache.thrift.protocol.TField("mountpoint", org.apache.thrift.protocol.TType.STRING, (short)6);
private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)3);
+ private static final org.apache.thrift.protocol.TField SHARE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("shareId", org.apache.thrift.protocol.TType.I32, (short)7);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
@@ -61,6 +62,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
public String mountpoint; // optional
public String username; // optional
public String password; // optional
+ public int shareId; // 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 {
@@ -73,7 +75,8 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
DISPLAYNAME((short)5, "displayname"),
MOUNTPOINT((short)6, "mountpoint"),
USERNAME((short)2, "username"),
- PASSWORD((short)3, "password");
+ PASSWORD((short)3, "password"),
+ SHARE_ID((short)7, "shareId");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -100,6 +103,8 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
return USERNAME;
case 3: // PASSWORD
return PASSWORD;
+ case 7: // SHARE_ID
+ return SHARE_ID;
default:
return null;
}
@@ -140,7 +145,9 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
}
// isset id assignments
- private static final _Fields optionals[] = {_Fields.DISPLAYNAME,_Fields.MOUNTPOINT,_Fields.USERNAME,_Fields.PASSWORD};
+ private static final int __SHAREID_ISSET_ID = 0;
+ private byte __isset_bitfield = 0;
+ private static final _Fields optionals[] = {_Fields.DISPLAYNAME,_Fields.MOUNTPOINT,_Fields.USERNAME,_Fields.PASSWORD,_Fields.SHARE_ID};
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);
@@ -156,6 +163,8 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.SHARE_ID, new org.apache.thrift.meta_data.FieldMetaData("shareId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(NetShare.class, metaDataMap);
}
@@ -176,6 +185,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
* Performs a deep copy on <i>other</i>.
*/
public NetShare(NetShare other) {
+ __isset_bitfield = other.__isset_bitfield;
if (other.isSetAuth()) {
this.auth = other.auth;
}
@@ -194,6 +204,7 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
if (other.isSetPassword()) {
this.password = other.password;
}
+ this.shareId = other.shareId;
}
public NetShare deepCopy() {
@@ -208,6 +219,8 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
this.mountpoint = null;
this.username = null;
this.password = null;
+ setShareIdIsSet(false);
+ this.shareId = 0;
}
/**
@@ -362,6 +375,29 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
}
}
+ public int getShareId() {
+ return this.shareId;
+ }
+
+ public NetShare setShareId(int shareId) {
+ this.shareId = shareId;
+ setShareIdIsSet(true);
+ return this;
+ }
+
+ public void unsetShareId() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SHAREID_ISSET_ID);
+ }
+
+ /** Returns true if field shareId is set (has been assigned a value) and false otherwise */
+ public boolean isSetShareId() {
+ return EncodingUtils.testBit(__isset_bitfield, __SHAREID_ISSET_ID);
+ }
+
+ public void setShareIdIsSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SHAREID_ISSET_ID, value);
+ }
+
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case AUTH:
@@ -412,6 +448,14 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
}
break;
+ case SHARE_ID:
+ if (value == null) {
+ unsetShareId();
+ } else {
+ setShareId((Integer)value);
+ }
+ break;
+
}
}
@@ -435,6 +479,9 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
case PASSWORD:
return getPassword();
+ case SHARE_ID:
+ return getShareId();
+
}
throw new IllegalStateException();
}
@@ -458,6 +505,8 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
return isSetUsername();
case PASSWORD:
return isSetPassword();
+ case SHARE_ID:
+ return isSetShareId();
}
throw new IllegalStateException();
}
@@ -529,6 +578,15 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
return false;
}
+ boolean this_present_shareId = true && this.isSetShareId();
+ boolean that_present_shareId = true && that.isSetShareId();
+ if (this_present_shareId || that_present_shareId) {
+ if (!(this_present_shareId && that_present_shareId))
+ return false;
+ if (this.shareId != that.shareId)
+ return false;
+ }
+
return true;
}
@@ -566,6 +624,11 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
if (present_password)
list.add(password);
+ boolean present_shareId = true && (isSetShareId());
+ list.add(present_shareId);
+ if (present_shareId)
+ list.add(shareId);
+
return list.hashCode();
}
@@ -637,6 +700,16 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
return lastComparison;
}
}
+ lastComparison = Boolean.valueOf(isSetShareId()).compareTo(other.isSetShareId());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetShareId()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shareId, other.shareId);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
return 0;
}
@@ -712,6 +785,12 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
}
first = false;
}
+ if (isSetShareId()) {
+ if (!first) sb.append(", ");
+ sb.append("shareId:");
+ sb.append(this.shareId);
+ first = false;
+ }
sb.append(")");
return sb.toString();
}
@@ -731,6 +810,8 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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;
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);
@@ -803,6 +884,14 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case 7: // SHARE_ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+ struct.shareId = iprot.readI32();
+ struct.setShareIdIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -856,6 +945,11 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
oprot.writeFieldEnd();
}
}
+ if (struct.isSetShareId()) {
+ oprot.writeFieldBegin(SHARE_ID_FIELD_DESC);
+ oprot.writeI32(struct.shareId);
+ oprot.writeFieldEnd();
+ }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
@@ -892,7 +986,10 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
if (struct.isSetPassword()) {
optionals.set(5);
}
- oprot.writeBitSet(optionals, 6);
+ if (struct.isSetShareId()) {
+ optionals.set(6);
+ }
+ oprot.writeBitSet(optionals, 7);
if (struct.isSetAuth()) {
oprot.writeI32(struct.auth.getValue());
}
@@ -911,12 +1008,15 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
if (struct.isSetPassword()) {
oprot.writeString(struct.password);
}
+ if (struct.isSetShareId()) {
+ oprot.writeI32(struct.shareId);
+ }
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, NetShare struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(6);
+ BitSet incoming = iprot.readBitSet(7);
if (incoming.get(0)) {
struct.auth = org.openslx.bwlp.thrift.iface.NetShareAuth.findByValue(iprot.readI32());
struct.setAuthIsSet(true);
@@ -941,6 +1041,10 @@ public class NetShare implements org.apache.thrift.TBase<NetShare, NetShare._Fie
struct.password = iprot.readString();
struct.setPasswordIsSet(true);
}
+ if (incoming.get(6)) {
+ struct.shareId = iprot.readI32();
+ struct.setShareIdIsSet(true);
+ }
}
}