
org.apache.iotdb.cluster.rpc.thrift.GetAllPathsResult Maven / Gradle / Ivy
/**
* Autogenerated by Thrift Compiler (0.14.1)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.iotdb.cluster.rpc.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.14.1)", date = "2022-07-31")
public class GetAllPathsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetAllPathsResult");
private static final org.apache.thrift.protocol.TField PATHS_FIELD_DESC = new org.apache.thrift.protocol.TField("paths", org.apache.thrift.protocol.TType.LIST, (short)1);
private static final org.apache.thrift.protocol.TField DATA_TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("dataTypes", org.apache.thrift.protocol.TType.LIST, (short)2);
private static final org.apache.thrift.protocol.TField ALIAS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("aliasList", org.apache.thrift.protocol.TType.LIST, (short)3);
private static final org.apache.thrift.protocol.TField UNDER_ALIGNED_ENTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("underAlignedEntity", org.apache.thrift.protocol.TType.LIST, (short)4);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new GetAllPathsResultStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new GetAllPathsResultTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable java.util.List paths; // required
public @org.apache.thrift.annotation.Nullable java.util.List dataTypes; // required
public @org.apache.thrift.annotation.Nullable java.util.List aliasList; // optional
public @org.apache.thrift.annotation.Nullable java.util.List underAlignedEntity; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
PATHS((short)1, "paths"),
DATA_TYPES((short)2, "dataTypes"),
ALIAS_LIST((short)3, "aliasList"),
UNDER_ALIGNED_ENTITY((short)4, "underAlignedEntity");
private static final java.util.Map byName = new java.util.HashMap();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* 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: // PATHS
return PATHS;
case 2: // DATA_TYPES
return DATA_TYPES;
case 3: // ALIAS_LIST
return ALIAS_LIST;
case 4: // UNDER_ALIGNED_ENTITY
return UNDER_ALIGNED_ENTITY;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
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.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final _Fields optionals[] = {_Fields.ALIAS_LIST};
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
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.PATHS, new org.apache.thrift.meta_data.FieldMetaData("paths", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.DATA_TYPES, new org.apache.thrift.meta_data.FieldMetaData("dataTypes", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE))));
tmpMap.put(_Fields.ALIAS_LIST, new org.apache.thrift.meta_data.FieldMetaData("aliasList", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.UNDER_ALIGNED_ENTITY, new org.apache.thrift.meta_data.FieldMetaData("underAlignedEntity", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetAllPathsResult.class, metaDataMap);
}
public GetAllPathsResult() {
}
public GetAllPathsResult(
java.util.List paths,
java.util.List dataTypes,
java.util.List underAlignedEntity)
{
this();
this.paths = paths;
this.dataTypes = dataTypes;
this.underAlignedEntity = underAlignedEntity;
}
/**
* Performs a deep copy on other.
*/
public GetAllPathsResult(GetAllPathsResult other) {
if (other.isSetPaths()) {
java.util.List __this__paths = new java.util.ArrayList(other.paths);
this.paths = __this__paths;
}
if (other.isSetDataTypes()) {
java.util.List __this__dataTypes = new java.util.ArrayList(other.dataTypes);
this.dataTypes = __this__dataTypes;
}
if (other.isSetAliasList()) {
java.util.List __this__aliasList = new java.util.ArrayList(other.aliasList);
this.aliasList = __this__aliasList;
}
if (other.isSetUnderAlignedEntity()) {
java.util.List __this__underAlignedEntity = new java.util.ArrayList(other.underAlignedEntity);
this.underAlignedEntity = __this__underAlignedEntity;
}
}
public GetAllPathsResult deepCopy() {
return new GetAllPathsResult(this);
}
@Override
public void clear() {
this.paths = null;
this.dataTypes = null;
this.aliasList = null;
this.underAlignedEntity = null;
}
public int getPathsSize() {
return (this.paths == null) ? 0 : this.paths.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator getPathsIterator() {
return (this.paths == null) ? null : this.paths.iterator();
}
public void addToPaths(java.lang.String elem) {
if (this.paths == null) {
this.paths = new java.util.ArrayList();
}
this.paths.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List getPaths() {
return this.paths;
}
public GetAllPathsResult setPaths(@org.apache.thrift.annotation.Nullable java.util.List paths) {
this.paths = paths;
return this;
}
public void unsetPaths() {
this.paths = null;
}
/** Returns true if field paths is set (has been assigned a value) and false otherwise */
public boolean isSetPaths() {
return this.paths != null;
}
public void setPathsIsSet(boolean value) {
if (!value) {
this.paths = null;
}
}
public int getDataTypesSize() {
return (this.dataTypes == null) ? 0 : this.dataTypes.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator getDataTypesIterator() {
return (this.dataTypes == null) ? null : this.dataTypes.iterator();
}
public void addToDataTypes(byte elem) {
if (this.dataTypes == null) {
this.dataTypes = new java.util.ArrayList();
}
this.dataTypes.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List getDataTypes() {
return this.dataTypes;
}
public GetAllPathsResult setDataTypes(@org.apache.thrift.annotation.Nullable java.util.List dataTypes) {
this.dataTypes = dataTypes;
return this;
}
public void unsetDataTypes() {
this.dataTypes = null;
}
/** Returns true if field dataTypes is set (has been assigned a value) and false otherwise */
public boolean isSetDataTypes() {
return this.dataTypes != null;
}
public void setDataTypesIsSet(boolean value) {
if (!value) {
this.dataTypes = null;
}
}
public int getAliasListSize() {
return (this.aliasList == null) ? 0 : this.aliasList.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator getAliasListIterator() {
return (this.aliasList == null) ? null : this.aliasList.iterator();
}
public void addToAliasList(java.lang.String elem) {
if (this.aliasList == null) {
this.aliasList = new java.util.ArrayList();
}
this.aliasList.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List getAliasList() {
return this.aliasList;
}
public GetAllPathsResult setAliasList(@org.apache.thrift.annotation.Nullable java.util.List aliasList) {
this.aliasList = aliasList;
return this;
}
public void unsetAliasList() {
this.aliasList = null;
}
/** Returns true if field aliasList is set (has been assigned a value) and false otherwise */
public boolean isSetAliasList() {
return this.aliasList != null;
}
public void setAliasListIsSet(boolean value) {
if (!value) {
this.aliasList = null;
}
}
public int getUnderAlignedEntitySize() {
return (this.underAlignedEntity == null) ? 0 : this.underAlignedEntity.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator getUnderAlignedEntityIterator() {
return (this.underAlignedEntity == null) ? null : this.underAlignedEntity.iterator();
}
public void addToUnderAlignedEntity(boolean elem) {
if (this.underAlignedEntity == null) {
this.underAlignedEntity = new java.util.ArrayList();
}
this.underAlignedEntity.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List getUnderAlignedEntity() {
return this.underAlignedEntity;
}
public GetAllPathsResult setUnderAlignedEntity(@org.apache.thrift.annotation.Nullable java.util.List underAlignedEntity) {
this.underAlignedEntity = underAlignedEntity;
return this;
}
public void unsetUnderAlignedEntity() {
this.underAlignedEntity = null;
}
/** Returns true if field underAlignedEntity is set (has been assigned a value) and false otherwise */
public boolean isSetUnderAlignedEntity() {
return this.underAlignedEntity != null;
}
public void setUnderAlignedEntityIsSet(boolean value) {
if (!value) {
this.underAlignedEntity = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case PATHS:
if (value == null) {
unsetPaths();
} else {
setPaths((java.util.List)value);
}
break;
case DATA_TYPES:
if (value == null) {
unsetDataTypes();
} else {
setDataTypes((java.util.List)value);
}
break;
case ALIAS_LIST:
if (value == null) {
unsetAliasList();
} else {
setAliasList((java.util.List)value);
}
break;
case UNDER_ALIGNED_ENTITY:
if (value == null) {
unsetUnderAlignedEntity();
} else {
setUnderAlignedEntity((java.util.List)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case PATHS:
return getPaths();
case DATA_TYPES:
return getDataTypes();
case ALIAS_LIST:
return getAliasList();
case UNDER_ALIGNED_ENTITY:
return getUnderAlignedEntity();
}
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 java.lang.IllegalArgumentException();
}
switch (field) {
case PATHS:
return isSetPaths();
case DATA_TYPES:
return isSetDataTypes();
case ALIAS_LIST:
return isSetAliasList();
case UNDER_ALIGNED_ENTITY:
return isSetUnderAlignedEntity();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof GetAllPathsResult)
return this.equals((GetAllPathsResult)that);
return false;
}
public boolean equals(GetAllPathsResult that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_paths = true && this.isSetPaths();
boolean that_present_paths = true && that.isSetPaths();
if (this_present_paths || that_present_paths) {
if (!(this_present_paths && that_present_paths))
return false;
if (!this.paths.equals(that.paths))
return false;
}
boolean this_present_dataTypes = true && this.isSetDataTypes();
boolean that_present_dataTypes = true && that.isSetDataTypes();
if (this_present_dataTypes || that_present_dataTypes) {
if (!(this_present_dataTypes && that_present_dataTypes))
return false;
if (!this.dataTypes.equals(that.dataTypes))
return false;
}
boolean this_present_aliasList = true && this.isSetAliasList();
boolean that_present_aliasList = true && that.isSetAliasList();
if (this_present_aliasList || that_present_aliasList) {
if (!(this_present_aliasList && that_present_aliasList))
return false;
if (!this.aliasList.equals(that.aliasList))
return false;
}
boolean this_present_underAlignedEntity = true && this.isSetUnderAlignedEntity();
boolean that_present_underAlignedEntity = true && that.isSetUnderAlignedEntity();
if (this_present_underAlignedEntity || that_present_underAlignedEntity) {
if (!(this_present_underAlignedEntity && that_present_underAlignedEntity))
return false;
if (!this.underAlignedEntity.equals(that.underAlignedEntity))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetPaths()) ? 131071 : 524287);
if (isSetPaths())
hashCode = hashCode * 8191 + paths.hashCode();
hashCode = hashCode * 8191 + ((isSetDataTypes()) ? 131071 : 524287);
if (isSetDataTypes())
hashCode = hashCode * 8191 + dataTypes.hashCode();
hashCode = hashCode * 8191 + ((isSetAliasList()) ? 131071 : 524287);
if (isSetAliasList())
hashCode = hashCode * 8191 + aliasList.hashCode();
hashCode = hashCode * 8191 + ((isSetUnderAlignedEntity()) ? 131071 : 524287);
if (isSetUnderAlignedEntity())
hashCode = hashCode * 8191 + underAlignedEntity.hashCode();
return hashCode;
}
@Override
public int compareTo(GetAllPathsResult other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetPaths(), other.isSetPaths());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPaths()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paths, other.paths);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetDataTypes(), other.isSetDataTypes());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDataTypes()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataTypes, other.dataTypes);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetAliasList(), other.isSetAliasList());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetAliasList()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aliasList, other.aliasList);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetUnderAlignedEntity(), other.isSetUnderAlignedEntity());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetUnderAlignedEntity()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.underAlignedEntity, other.underAlignedEntity);
if (lastComparison != 0) {
return lastComparison;
}
}
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 {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("GetAllPathsResult(");
boolean first = true;
sb.append("paths:");
if (this.paths == null) {
sb.append("null");
} else {
sb.append(this.paths);
}
first = false;
if (!first) sb.append(", ");
sb.append("dataTypes:");
if (this.dataTypes == null) {
sb.append("null");
} else {
sb.append(this.dataTypes);
}
first = false;
if (isSetAliasList()) {
if (!first) sb.append(", ");
sb.append("aliasList:");
if (this.aliasList == null) {
sb.append("null");
} else {
sb.append(this.aliasList);
}
first = false;
}
if (!first) sb.append(", ");
sb.append("underAlignedEntity:");
if (this.underAlignedEntity == null) {
sb.append("null");
} else {
sb.append(this.underAlignedEntity);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
if (paths == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'paths' was not present! Struct: " + toString());
}
if (dataTypes == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'dataTypes' was not present! Struct: " + toString());
}
if (underAlignedEntity == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'underAlignedEntity' was not present! Struct: " + toString());
}
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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);
}
}
private static class GetAllPathsResultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public GetAllPathsResultStandardScheme getScheme() {
return new GetAllPathsResultStandardScheme();
}
}
private static class GetAllPathsResultStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, GetAllPathsResult struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // PATHS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list166 = iprot.readListBegin();
struct.paths = new java.util.ArrayList(_list166.size);
@org.apache.thrift.annotation.Nullable java.lang.String _elem167;
for (int _i168 = 0; _i168 < _list166.size; ++_i168)
{
_elem167 = iprot.readString();
struct.paths.add(_elem167);
}
iprot.readListEnd();
}
struct.setPathsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // DATA_TYPES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list169 = iprot.readListBegin();
struct.dataTypes = new java.util.ArrayList(_list169.size);
byte _elem170;
for (int _i171 = 0; _i171 < _list169.size; ++_i171)
{
_elem170 = iprot.readByte();
struct.dataTypes.add(_elem170);
}
iprot.readListEnd();
}
struct.setDataTypesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // ALIAS_LIST
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list172 = iprot.readListBegin();
struct.aliasList = new java.util.ArrayList(_list172.size);
@org.apache.thrift.annotation.Nullable java.lang.String _elem173;
for (int _i174 = 0; _i174 < _list172.size; ++_i174)
{
_elem173 = iprot.readString();
struct.aliasList.add(_elem173);
}
iprot.readListEnd();
}
struct.setAliasListIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // UNDER_ALIGNED_ENTITY
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list175 = iprot.readListBegin();
struct.underAlignedEntity = new java.util.ArrayList(_list175.size);
boolean _elem176;
for (int _i177 = 0; _i177 < _list175.size; ++_i177)
{
_elem176 = iprot.readBool();
struct.underAlignedEntity.add(_elem176);
}
iprot.readListEnd();
}
struct.setUnderAlignedEntityIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, GetAllPathsResult struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.paths != null) {
oprot.writeFieldBegin(PATHS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.paths.size()));
for (java.lang.String _iter178 : struct.paths)
{
oprot.writeString(_iter178);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.dataTypes != null) {
oprot.writeFieldBegin(DATA_TYPES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BYTE, struct.dataTypes.size()));
for (byte _iter179 : struct.dataTypes)
{
oprot.writeByte(_iter179);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.aliasList != null) {
if (struct.isSetAliasList()) {
oprot.writeFieldBegin(ALIAS_LIST_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.aliasList.size()));
for (java.lang.String _iter180 : struct.aliasList)
{
oprot.writeString(_iter180);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.underAlignedEntity != null) {
oprot.writeFieldBegin(UNDER_ALIGNED_ENTITY_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BOOL, struct.underAlignedEntity.size()));
for (boolean _iter181 : struct.underAlignedEntity)
{
oprot.writeBool(_iter181);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class GetAllPathsResultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public GetAllPathsResultTupleScheme getScheme() {
return new GetAllPathsResultTupleScheme();
}
}
private static class GetAllPathsResultTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, GetAllPathsResult struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
{
oprot.writeI32(struct.paths.size());
for (java.lang.String _iter182 : struct.paths)
{
oprot.writeString(_iter182);
}
}
{
oprot.writeI32(struct.dataTypes.size());
for (byte _iter183 : struct.dataTypes)
{
oprot.writeByte(_iter183);
}
}
{
oprot.writeI32(struct.underAlignedEntity.size());
for (boolean _iter184 : struct.underAlignedEntity)
{
oprot.writeBool(_iter184);
}
}
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetAliasList()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetAliasList()) {
{
oprot.writeI32(struct.aliasList.size());
for (java.lang.String _iter185 : struct.aliasList)
{
oprot.writeString(_iter185);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, GetAllPathsResult struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
{
org.apache.thrift.protocol.TList _list186 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
struct.paths = new java.util.ArrayList(_list186.size);
@org.apache.thrift.annotation.Nullable java.lang.String _elem187;
for (int _i188 = 0; _i188 < _list186.size; ++_i188)
{
_elem187 = iprot.readString();
struct.paths.add(_elem187);
}
}
struct.setPathsIsSet(true);
{
org.apache.thrift.protocol.TList _list189 = iprot.readListBegin(org.apache.thrift.protocol.TType.BYTE);
struct.dataTypes = new java.util.ArrayList(_list189.size);
byte _elem190;
for (int _i191 = 0; _i191 < _list189.size; ++_i191)
{
_elem190 = iprot.readByte();
struct.dataTypes.add(_elem190);
}
}
struct.setDataTypesIsSet(true);
{
org.apache.thrift.protocol.TList _list192 = iprot.readListBegin(org.apache.thrift.protocol.TType.BOOL);
struct.underAlignedEntity = new java.util.ArrayList(_list192.size);
boolean _elem193;
for (int _i194 = 0; _i194 < _list192.size; ++_i194)
{
_elem193 = iprot.readBool();
struct.underAlignedEntity.add(_elem193);
}
}
struct.setUnderAlignedEntityIsSet(true);
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list195 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
struct.aliasList = new java.util.ArrayList(_list195.size);
@org.apache.thrift.annotation.Nullable java.lang.String _elem196;
for (int _i197 = 0; _i197 < _list195.size; ++_i197)
{
_elem196 = iprot.readString();
struct.aliasList.add(_elem196);
}
}
struct.setAliasListIsSet(true);
}
}
}
private static 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();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy