|
|
|
|
@ -34,13 +34,13 @@ import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
|
|
|
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-10-18")
|
|
|
|
|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-10-19")
|
|
|
|
|
public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteInterpreterContext, RemoteInterpreterContext._Fields>, java.io.Serializable, Cloneable, Comparable<RemoteInterpreterContext> {
|
|
|
|
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RemoteInterpreterContext");
|
|
|
|
|
|
|
|
|
|
private static final org.apache.thrift.protocol.TField NOTE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("noteId", org.apache.thrift.protocol.TType.STRING, (short)1);
|
|
|
|
|
private static final org.apache.thrift.protocol.TField PARAGRAPH_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paragraphId", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
|
|
private static final org.apache.thrift.protocol.TField REPL_GROUP_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("replGroupName", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
|
|
private static final org.apache.thrift.protocol.TField REPL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("replName", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
|
|
private static final org.apache.thrift.protocol.TField PARAGRAPH_TITLE_FIELD_DESC = new org.apache.thrift.protocol.TField("paragraphTitle", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
|
|
|
private static final org.apache.thrift.protocol.TField PARAGRAPH_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("paragraphText", org.apache.thrift.protocol.TType.STRING, (short)5);
|
|
|
|
|
private static final org.apache.thrift.protocol.TField AUTHENTICATION_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("authenticationInfo", org.apache.thrift.protocol.TType.STRING, (short)6);
|
|
|
|
|
@ -56,7 +56,7 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
|
|
|
|
|
public String noteId; // required
|
|
|
|
|
public String paragraphId; // required
|
|
|
|
|
public String replGroupName; // required
|
|
|
|
|
public String replName; // required
|
|
|
|
|
public String paragraphTitle; // required
|
|
|
|
|
public String paragraphText; // required
|
|
|
|
|
public String authenticationInfo; // required
|
|
|
|
|
@ -68,7 +68,7 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
|
|
NOTE_ID((short)1, "noteId"),
|
|
|
|
|
PARAGRAPH_ID((short)2, "paragraphId"),
|
|
|
|
|
REPL_GROUP_NAME((short)3, "replGroupName"),
|
|
|
|
|
REPL_NAME((short)3, "replName"),
|
|
|
|
|
PARAGRAPH_TITLE((short)4, "paragraphTitle"),
|
|
|
|
|
PARAGRAPH_TEXT((short)5, "paragraphText"),
|
|
|
|
|
AUTHENTICATION_INFO((short)6, "authenticationInfo"),
|
|
|
|
|
@ -93,8 +93,8 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
return NOTE_ID;
|
|
|
|
|
case 2: // PARAGRAPH_ID
|
|
|
|
|
return PARAGRAPH_ID;
|
|
|
|
|
case 3: // REPL_GROUP_NAME
|
|
|
|
|
return REPL_GROUP_NAME;
|
|
|
|
|
case 3: // REPL_NAME
|
|
|
|
|
return REPL_NAME;
|
|
|
|
|
case 4: // PARAGRAPH_TITLE
|
|
|
|
|
return PARAGRAPH_TITLE;
|
|
|
|
|
case 5: // PARAGRAPH_TEXT
|
|
|
|
|
@ -154,7 +154,7 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
|
|
tmpMap.put(_Fields.PARAGRAPH_ID, new org.apache.thrift.meta_data.FieldMetaData("paragraphId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
|
|
tmpMap.put(_Fields.REPL_GROUP_NAME, new org.apache.thrift.meta_data.FieldMetaData("replGroupName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
|
|
tmpMap.put(_Fields.REPL_NAME, new org.apache.thrift.meta_data.FieldMetaData("replName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
|
|
tmpMap.put(_Fields.PARAGRAPH_TITLE, new org.apache.thrift.meta_data.FieldMetaData("paragraphTitle", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
|
|
@ -178,7 +178,7 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
public RemoteInterpreterContext(
|
|
|
|
|
String noteId,
|
|
|
|
|
String paragraphId,
|
|
|
|
|
String replGroupName,
|
|
|
|
|
String replName,
|
|
|
|
|
String paragraphTitle,
|
|
|
|
|
String paragraphText,
|
|
|
|
|
String authenticationInfo,
|
|
|
|
|
@ -189,7 +189,7 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
this();
|
|
|
|
|
this.noteId = noteId;
|
|
|
|
|
this.paragraphId = paragraphId;
|
|
|
|
|
this.replGroupName = replGroupName;
|
|
|
|
|
this.replName = replName;
|
|
|
|
|
this.paragraphTitle = paragraphTitle;
|
|
|
|
|
this.paragraphText = paragraphText;
|
|
|
|
|
this.authenticationInfo = authenticationInfo;
|
|
|
|
|
@ -208,8 +208,8 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
if (other.isSetParagraphId()) {
|
|
|
|
|
this.paragraphId = other.paragraphId;
|
|
|
|
|
}
|
|
|
|
|
if (other.isSetReplGroupName()) {
|
|
|
|
|
this.replGroupName = other.replGroupName;
|
|
|
|
|
if (other.isSetReplName()) {
|
|
|
|
|
this.replName = other.replName;
|
|
|
|
|
}
|
|
|
|
|
if (other.isSetParagraphTitle()) {
|
|
|
|
|
this.paragraphTitle = other.paragraphTitle;
|
|
|
|
|
@ -239,7 +239,7 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
public void clear() {
|
|
|
|
|
this.noteId = null;
|
|
|
|
|
this.paragraphId = null;
|
|
|
|
|
this.replGroupName = null;
|
|
|
|
|
this.replName = null;
|
|
|
|
|
this.paragraphTitle = null;
|
|
|
|
|
this.paragraphText = null;
|
|
|
|
|
this.authenticationInfo = null;
|
|
|
|
|
@ -296,27 +296,27 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getReplGroupName() {
|
|
|
|
|
return this.replGroupName;
|
|
|
|
|
public String getReplName() {
|
|
|
|
|
return this.replName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public RemoteInterpreterContext setReplGroupName(String replGroupName) {
|
|
|
|
|
this.replGroupName = replGroupName;
|
|
|
|
|
public RemoteInterpreterContext setReplName(String replName) {
|
|
|
|
|
this.replName = replName;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void unsetReplGroupName() {
|
|
|
|
|
this.replGroupName = null;
|
|
|
|
|
public void unsetReplName() {
|
|
|
|
|
this.replName = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** Returns true if field replGroupName is set (has been assigned a value) and false otherwise */
|
|
|
|
|
public boolean isSetReplGroupName() {
|
|
|
|
|
return this.replGroupName != null;
|
|
|
|
|
/** Returns true if field replName is set (has been assigned a value) and false otherwise */
|
|
|
|
|
public boolean isSetReplName() {
|
|
|
|
|
return this.replName != null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setReplGroupNameIsSet(boolean value) {
|
|
|
|
|
public void setReplNameIsSet(boolean value) {
|
|
|
|
|
if (!value) {
|
|
|
|
|
this.replGroupName = null;
|
|
|
|
|
this.replName = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -482,11 +482,11 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case REPL_GROUP_NAME:
|
|
|
|
|
case REPL_NAME:
|
|
|
|
|
if (value == null) {
|
|
|
|
|
unsetReplGroupName();
|
|
|
|
|
unsetReplName();
|
|
|
|
|
} else {
|
|
|
|
|
setReplGroupName((String)value);
|
|
|
|
|
setReplName((String)value);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
@ -549,8 +549,8 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
case PARAGRAPH_ID:
|
|
|
|
|
return getParagraphId();
|
|
|
|
|
|
|
|
|
|
case REPL_GROUP_NAME:
|
|
|
|
|
return getReplGroupName();
|
|
|
|
|
case REPL_NAME:
|
|
|
|
|
return getReplName();
|
|
|
|
|
|
|
|
|
|
case PARAGRAPH_TITLE:
|
|
|
|
|
return getParagraphTitle();
|
|
|
|
|
@ -585,8 +585,8 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
return isSetNoteId();
|
|
|
|
|
case PARAGRAPH_ID:
|
|
|
|
|
return isSetParagraphId();
|
|
|
|
|
case REPL_GROUP_NAME:
|
|
|
|
|
return isSetReplGroupName();
|
|
|
|
|
case REPL_NAME:
|
|
|
|
|
return isSetReplName();
|
|
|
|
|
case PARAGRAPH_TITLE:
|
|
|
|
|
return isSetParagraphTitle();
|
|
|
|
|
case PARAGRAPH_TEXT:
|
|
|
|
|
@ -634,12 +634,12 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
boolean this_present_replGroupName = true && this.isSetReplGroupName();
|
|
|
|
|
boolean that_present_replGroupName = true && that.isSetReplGroupName();
|
|
|
|
|
if (this_present_replGroupName || that_present_replGroupName) {
|
|
|
|
|
if (!(this_present_replGroupName && that_present_replGroupName))
|
|
|
|
|
boolean this_present_replName = true && this.isSetReplName();
|
|
|
|
|
boolean that_present_replName = true && that.isSetReplName();
|
|
|
|
|
if (this_present_replName || that_present_replName) {
|
|
|
|
|
if (!(this_present_replName && that_present_replName))
|
|
|
|
|
return false;
|
|
|
|
|
if (!this.replGroupName.equals(that.replGroupName))
|
|
|
|
|
if (!this.replName.equals(that.replName))
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -714,10 +714,10 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
if (present_paragraphId)
|
|
|
|
|
list.add(paragraphId);
|
|
|
|
|
|
|
|
|
|
boolean present_replGroupName = true && (isSetReplGroupName());
|
|
|
|
|
list.add(present_replGroupName);
|
|
|
|
|
if (present_replGroupName)
|
|
|
|
|
list.add(replGroupName);
|
|
|
|
|
boolean present_replName = true && (isSetReplName());
|
|
|
|
|
list.add(present_replName);
|
|
|
|
|
if (present_replName)
|
|
|
|
|
list.add(replName);
|
|
|
|
|
|
|
|
|
|
boolean present_paragraphTitle = true && (isSetParagraphTitle());
|
|
|
|
|
list.add(present_paragraphTitle);
|
|
|
|
|
@ -780,12 +780,12 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
return lastComparison;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
lastComparison = Boolean.valueOf(isSetReplGroupName()).compareTo(other.isSetReplGroupName());
|
|
|
|
|
lastComparison = Boolean.valueOf(isSetReplName()).compareTo(other.isSetReplName());
|
|
|
|
|
if (lastComparison != 0) {
|
|
|
|
|
return lastComparison;
|
|
|
|
|
}
|
|
|
|
|
if (isSetReplGroupName()) {
|
|
|
|
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replGroupName, other.replGroupName);
|
|
|
|
|
if (isSetReplName()) {
|
|
|
|
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replName, other.replName);
|
|
|
|
|
if (lastComparison != 0) {
|
|
|
|
|
return lastComparison;
|
|
|
|
|
}
|
|
|
|
|
@ -886,11 +886,11 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
}
|
|
|
|
|
first = false;
|
|
|
|
|
if (!first) sb.append(", ");
|
|
|
|
|
sb.append("replGroupName:");
|
|
|
|
|
if (this.replGroupName == null) {
|
|
|
|
|
sb.append("replName:");
|
|
|
|
|
if (this.replName == null) {
|
|
|
|
|
sb.append("null");
|
|
|
|
|
} else {
|
|
|
|
|
sb.append(this.replGroupName);
|
|
|
|
|
sb.append(this.replName);
|
|
|
|
|
}
|
|
|
|
|
first = false;
|
|
|
|
|
if (!first) sb.append(", ");
|
|
|
|
|
@ -1000,10 +1000,10 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 3: // REPL_GROUP_NAME
|
|
|
|
|
case 3: // REPL_NAME
|
|
|
|
|
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
|
|
struct.replGroupName = iprot.readString();
|
|
|
|
|
struct.setReplGroupNameIsSet(true);
|
|
|
|
|
struct.replName = iprot.readString();
|
|
|
|
|
struct.setReplNameIsSet(true);
|
|
|
|
|
} else {
|
|
|
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
|
|
|
}
|
|
|
|
|
@ -1081,9 +1081,9 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
oprot.writeString(struct.paragraphId);
|
|
|
|
|
oprot.writeFieldEnd();
|
|
|
|
|
}
|
|
|
|
|
if (struct.replGroupName != null) {
|
|
|
|
|
oprot.writeFieldBegin(REPL_GROUP_NAME_FIELD_DESC);
|
|
|
|
|
oprot.writeString(struct.replGroupName);
|
|
|
|
|
if (struct.replName != null) {
|
|
|
|
|
oprot.writeFieldBegin(REPL_NAME_FIELD_DESC);
|
|
|
|
|
oprot.writeString(struct.replName);
|
|
|
|
|
oprot.writeFieldEnd();
|
|
|
|
|
}
|
|
|
|
|
if (struct.paragraphTitle != null) {
|
|
|
|
|
@ -1140,7 +1140,7 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
if (struct.isSetParagraphId()) {
|
|
|
|
|
optionals.set(1);
|
|
|
|
|
}
|
|
|
|
|
if (struct.isSetReplGroupName()) {
|
|
|
|
|
if (struct.isSetReplName()) {
|
|
|
|
|
optionals.set(2);
|
|
|
|
|
}
|
|
|
|
|
if (struct.isSetParagraphTitle()) {
|
|
|
|
|
@ -1168,8 +1168,8 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
if (struct.isSetParagraphId()) {
|
|
|
|
|
oprot.writeString(struct.paragraphId);
|
|
|
|
|
}
|
|
|
|
|
if (struct.isSetReplGroupName()) {
|
|
|
|
|
oprot.writeString(struct.replGroupName);
|
|
|
|
|
if (struct.isSetReplName()) {
|
|
|
|
|
oprot.writeString(struct.replName);
|
|
|
|
|
}
|
|
|
|
|
if (struct.isSetParagraphTitle()) {
|
|
|
|
|
oprot.writeString(struct.paragraphTitle);
|
|
|
|
|
@ -1204,8 +1204,8 @@ public class RemoteInterpreterContext implements org.apache.thrift.TBase<RemoteI
|
|
|
|
|
struct.setParagraphIdIsSet(true);
|
|
|
|
|
}
|
|
|
|
|
if (incoming.get(2)) {
|
|
|
|
|
struct.replGroupName = iprot.readString();
|
|
|
|
|
struct.setReplGroupNameIsSet(true);
|
|
|
|
|
struct.replName = iprot.readString();
|
|
|
|
|
struct.setReplNameIsSet(true);
|
|
|
|
|
}
|
|
|
|
|
if (incoming.get(3)) {
|
|
|
|
|
struct.paragraphTitle = iprot.readString();
|
|
|
|
|
|