/**
* Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.facebook.buck.distributed.thrift;
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-04-10")
public class BuildJobStateFileHashEntry implements org.apache.thrift.TBase<BuildJobStateFileHashEntry, BuildJobStateFileHashEntry._Fields>, java.io.Serializable, Cloneable, Comparable<BuildJobStateFileHashEntry> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BuildJobStateFileHashEntry");
private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField ARCHIVE_MEMBER_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("archiveMemberPath", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.protocol.TField HASH_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("hashCode", org.apache.thrift.protocol.TType.STRING, (short)3);
private static final org.apache.thrift.protocol.TField IS_DIRECTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("isDirectory", org.apache.thrift.protocol.TType.BOOL, (short)4);
private static final org.apache.thrift.protocol.TField PATH_IS_ABSOLUTE_FIELD_DESC = new org.apache.thrift.protocol.TField("pathIsAbsolute", org.apache.thrift.protocol.TType.BOOL, (short)5);
private static final org.apache.thrift.protocol.TField CONTENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("contents", org.apache.thrift.protocol.TType.STRING, (short)6);
private static final org.apache.thrift.protocol.TField ROOT_SYM_LINK_FIELD_DESC = new org.apache.thrift.protocol.TField("rootSymLink", org.apache.thrift.protocol.TType.STRUCT, (short)7);
private static final org.apache.thrift.protocol.TField ROOT_SYM_LINK_TARGET_FIELD_DESC = new org.apache.thrift.protocol.TField("rootSymLinkTarget", org.apache.thrift.protocol.TType.STRUCT, (short)8);
private static final org.apache.thrift.protocol.TField CHILDREN_FIELD_DESC = new org.apache.thrift.protocol.TField("children", org.apache.thrift.protocol.TType.LIST, (short)9);
private static final org.apache.thrift.protocol.TField IS_EXECUTABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("isExecutable", org.apache.thrift.protocol.TType.BOOL, (short)10);
private static final org.apache.thrift.protocol.TField MATERIALIZE_DURING_PRELOADING_FIELD_DESC = new org.apache.thrift.protocol.TField("materializeDuringPreloading", org.apache.thrift.protocol.TType.BOOL, (short)11);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new BuildJobStateFileHashEntryStandardSchemeFactory());
schemes.put(TupleScheme.class, new BuildJobStateFileHashEntryTupleSchemeFactory());
}
public PathWithUnixSeparators path; // optional
public String archiveMemberPath; // optional
public String hashCode; // optional
public boolean isDirectory; // optional
public boolean pathIsAbsolute; // optional
public ByteBuffer contents; // optional
public PathWithUnixSeparators rootSymLink; // optional
public PathWithUnixSeparators rootSymLinkTarget; // optional
public List<PathWithUnixSeparators> children; // optional
public boolean isExecutable; // optional
public boolean materializeDuringPreloading; // 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 {
PATH((short)1, "path"),
ARCHIVE_MEMBER_PATH((short)2, "archiveMemberPath"),
HASH_CODE((short)3, "hashCode"),
IS_DIRECTORY((short)4, "isDirectory"),
PATH_IS_ABSOLUTE((short)5, "pathIsAbsolute"),
CONTENTS((short)6, "contents"),
ROOT_SYM_LINK((short)7, "rootSymLink"),
ROOT_SYM_LINK_TARGET((short)8, "rootSymLinkTarget"),
CHILDREN((short)9, "children"),
IS_EXECUTABLE((short)10, "isExecutable"),
MATERIALIZE_DURING_PRELOADING((short)11, "materializeDuringPreloading");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // PATH
return PATH;
case 2: // ARCHIVE_MEMBER_PATH
return ARCHIVE_MEMBER_PATH;
case 3: // HASH_CODE
return HASH_CODE;
case 4: // IS_DIRECTORY
return IS_DIRECTORY;
case 5: // PATH_IS_ABSOLUTE
return PATH_IS_ABSOLUTE;
case 6: // CONTENTS
return CONTENTS;
case 7: // ROOT_SYM_LINK
return ROOT_SYM_LINK;
case 8: // ROOT_SYM_LINK_TARGET
return ROOT_SYM_LINK_TARGET;
case 9: // CHILDREN
return CHILDREN;
case 10: // IS_EXECUTABLE
return IS_EXECUTABLE;
case 11: // MATERIALIZE_DURING_PRELOADING
return MATERIALIZE_DURING_PRELOADING;
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 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) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __ISDIRECTORY_ISSET_ID = 0;
private static final int __PATHISABSOLUTE_ISSET_ID = 1;
private static final int __ISEXECUTABLE_ISSET_ID = 2;
private static final int __MATERIALIZEDURINGPRELOADING_ISSET_ID = 3;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.PATH,_Fields.ARCHIVE_MEMBER_PATH,_Fields.HASH_CODE,_Fields.IS_DIRECTORY,_Fields.PATH_IS_ABSOLUTE,_Fields.CONTENTS,_Fields.ROOT_SYM_LINK,_Fields.ROOT_SYM_LINK_TARGET,_Fields.CHILDREN,_Fields.IS_EXECUTABLE,_Fields.MATERIALIZE_DURING_PRELOADING};
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);
tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PathWithUnixSeparators.class)));
tmpMap.put(_Fields.ARCHIVE_MEMBER_PATH, new org.apache.thrift.meta_data.FieldMetaData("archiveMemberPath", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.HASH_CODE, new org.apache.thrift.meta_data.FieldMetaData("hashCode", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.IS_DIRECTORY, new org.apache.thrift.meta_data.FieldMetaData("isDirectory", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
tmpMap.put(_Fields.PATH_IS_ABSOLUTE, new org.apache.thrift.meta_data.FieldMetaData("pathIsAbsolute", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
tmpMap.put(_Fields.CONTENTS, new org.apache.thrift.meta_data.FieldMetaData("contents", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
tmpMap.put(_Fields.ROOT_SYM_LINK, new org.apache.thrift.meta_data.FieldMetaData("rootSymLink", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PathWithUnixSeparators.class)));
tmpMap.put(_Fields.ROOT_SYM_LINK_TARGET, new org.apache.thrift.meta_data.FieldMetaData("rootSymLinkTarget", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PathWithUnixSeparators.class)));
tmpMap.put(_Fields.CHILDREN, new org.apache.thrift.meta_data.FieldMetaData("children", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PathWithUnixSeparators.class))));
tmpMap.put(_Fields.IS_EXECUTABLE, new org.apache.thrift.meta_data.FieldMetaData("isExecutable", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
tmpMap.put(_Fields.MATERIALIZE_DURING_PRELOADING, new org.apache.thrift.meta_data.FieldMetaData("materializeDuringPreloading", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(BuildJobStateFileHashEntry.class, metaDataMap);
}
public BuildJobStateFileHashEntry() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public BuildJobStateFileHashEntry(BuildJobStateFileHashEntry other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetPath()) {
this.path = new PathWithUnixSeparators(other.path);
}
if (other.isSetArchiveMemberPath()) {
this.archiveMemberPath = other.archiveMemberPath;
}
if (other.isSetHashCode()) {
this.hashCode = other.hashCode;
}
this.isDirectory = other.isDirectory;
this.pathIsAbsolute = other.pathIsAbsolute;
if (other.isSetContents()) {
this.contents = org.apache.thrift.TBaseHelper.copyBinary(other.contents);
}
if (other.isSetRootSymLink()) {
this.rootSymLink = new PathWithUnixSeparators(other.rootSymLink);
}
if (other.isSetRootSymLinkTarget()) {
this.rootSymLinkTarget = new PathWithUnixSeparators(other.rootSymLinkTarget);
}
if (other.isSetChildren()) {
List<PathWithUnixSeparators> __this__children = new ArrayList<PathWithUnixSeparators>(other.children.size());
for (PathWithUnixSeparators other_element : other.children) {
__this__children.add(new PathWithUnixSeparators(other_element));
}
this.children = __this__children;
}
this.isExecutable = other.isExecutable;
this.materializeDuringPreloading = other.materializeDuringPreloading;
}
public BuildJobStateFileHashEntry deepCopy() {
return new BuildJobStateFileHashEntry(this);
}
@Override
public void clear() {
this.path = null;
this.archiveMemberPath = null;
this.hashCode = null;
setIsDirectoryIsSet(false);
this.isDirectory = false;
setPathIsAbsoluteIsSet(false);
this.pathIsAbsolute = false;
this.contents = null;
this.rootSymLink = null;
this.rootSymLinkTarget = null;
this.children = null;
setIsExecutableIsSet(false);
this.isExecutable = false;
setMaterializeDuringPreloadingIsSet(false);
this.materializeDuringPreloading = false;
}
public PathWithUnixSeparators getPath() {
return this.path;
}
public BuildJobStateFileHashEntry setPath(PathWithUnixSeparators path) {
this.path = path;
return this;
}
public void unsetPath() {
this.path = null;
}
/** Returns true if field path is set (has been assigned a value) and false otherwise */
public boolean isSetPath() {
return this.path != null;
}
public void setPathIsSet(boolean value) {
if (!value) {
this.path = null;
}
}
public String getArchiveMemberPath() {
return this.archiveMemberPath;
}
public BuildJobStateFileHashEntry setArchiveMemberPath(String archiveMemberPath) {
this.archiveMemberPath = archiveMemberPath;
return this;
}
public void unsetArchiveMemberPath() {
this.archiveMemberPath = null;
}
/** Returns true if field archiveMemberPath is set (has been assigned a value) and false otherwise */
public boolean isSetArchiveMemberPath() {
return this.archiveMemberPath != null;
}
public void setArchiveMemberPathIsSet(boolean value) {
if (!value) {
this.archiveMemberPath = null;
}
}
public String getHashCode() {
return this.hashCode;
}
public BuildJobStateFileHashEntry setHashCode(String hashCode) {
this.hashCode = hashCode;
return this;
}
public void unsetHashCode() {
this.hashCode = null;
}
/** Returns true if field hashCode is set (has been assigned a value) and false otherwise */
public boolean isSetHashCode() {
return this.hashCode != null;
}
public void setHashCodeIsSet(boolean value) {
if (!value) {
this.hashCode = null;
}
}
public boolean isIsDirectory() {
return this.isDirectory;
}
public BuildJobStateFileHashEntry setIsDirectory(boolean isDirectory) {
this.isDirectory = isDirectory;
setIsDirectoryIsSet(true);
return this;
}
public void unsetIsDirectory() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISDIRECTORY_ISSET_ID);
}
/** Returns true if field isDirectory is set (has been assigned a value) and false otherwise */
public boolean isSetIsDirectory() {
return EncodingUtils.testBit(__isset_bitfield, __ISDIRECTORY_ISSET_ID);
}
public void setIsDirectoryIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISDIRECTORY_ISSET_ID, value);
}
public boolean isPathIsAbsolute() {
return this.pathIsAbsolute;
}
public BuildJobStateFileHashEntry setPathIsAbsolute(boolean pathIsAbsolute) {
this.pathIsAbsolute = pathIsAbsolute;
setPathIsAbsoluteIsSet(true);
return this;
}
public void unsetPathIsAbsolute() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PATHISABSOLUTE_ISSET_ID);
}
/** Returns true if field pathIsAbsolute is set (has been assigned a value) and false otherwise */
public boolean isSetPathIsAbsolute() {
return EncodingUtils.testBit(__isset_bitfield, __PATHISABSOLUTE_ISSET_ID);
}
public void setPathIsAbsoluteIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PATHISABSOLUTE_ISSET_ID, value);
}
public byte[] getContents() {
setContents(org.apache.thrift.TBaseHelper.rightSize(contents));
return contents == null ? null : contents.array();
}
public ByteBuffer bufferForContents() {
return org.apache.thrift.TBaseHelper.copyBinary(contents);
}
public BuildJobStateFileHashEntry setContents(byte[] contents) {
this.contents = contents == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(contents, contents.length));
return this;
}
public BuildJobStateFileHashEntry setContents(ByteBuffer contents) {
this.contents = org.apache.thrift.TBaseHelper.copyBinary(contents);
return this;
}
public void unsetContents() {
this.contents = null;
}
/** Returns true if field contents is set (has been assigned a value) and false otherwise */
public boolean isSetContents() {
return this.contents != null;
}
public void setContentsIsSet(boolean value) {
if (!value) {
this.contents = null;
}
}
public PathWithUnixSeparators getRootSymLink() {
return this.rootSymLink;
}
public BuildJobStateFileHashEntry setRootSymLink(PathWithUnixSeparators rootSymLink) {
this.rootSymLink = rootSymLink;
return this;
}
public void unsetRootSymLink() {
this.rootSymLink = null;
}
/** Returns true if field rootSymLink is set (has been assigned a value) and false otherwise */
public boolean isSetRootSymLink() {
return this.rootSymLink != null;
}
public void setRootSymLinkIsSet(boolean value) {
if (!value) {
this.rootSymLink = null;
}
}
public PathWithUnixSeparators getRootSymLinkTarget() {
return this.rootSymLinkTarget;
}
public BuildJobStateFileHashEntry setRootSymLinkTarget(PathWithUnixSeparators rootSymLinkTarget) {
this.rootSymLinkTarget = rootSymLinkTarget;
return this;
}
public void unsetRootSymLinkTarget() {
this.rootSymLinkTarget = null;
}
/** Returns true if field rootSymLinkTarget is set (has been assigned a value) and false otherwise */
public boolean isSetRootSymLinkTarget() {
return this.rootSymLinkTarget != null;
}
public void setRootSymLinkTargetIsSet(boolean value) {
if (!value) {
this.rootSymLinkTarget = null;
}
}
public int getChildrenSize() {
return (this.children == null) ? 0 : this.children.size();
}
public java.util.Iterator<PathWithUnixSeparators> getChildrenIterator() {
return (this.children == null) ? null : this.children.iterator();
}
public void addToChildren(PathWithUnixSeparators elem) {
if (this.children == null) {
this.children = new ArrayList<PathWithUnixSeparators>();
}
this.children.add(elem);
}
public List<PathWithUnixSeparators> getChildren() {
return this.children;
}
public BuildJobStateFileHashEntry setChildren(List<PathWithUnixSeparators> children) {
this.children = children;
return this;
}
public void unsetChildren() {
this.children = null;
}
/** Returns true if field children is set (has been assigned a value) and false otherwise */
public boolean isSetChildren() {
return this.children != null;
}
public void setChildrenIsSet(boolean value) {
if (!value) {
this.children = null;
}
}
public boolean isIsExecutable() {
return this.isExecutable;
}
public BuildJobStateFileHashEntry setIsExecutable(boolean isExecutable) {
this.isExecutable = isExecutable;
setIsExecutableIsSet(true);
return this;
}
public void unsetIsExecutable() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISEXECUTABLE_ISSET_ID);
}
/** Returns true if field isExecutable is set (has been assigned a value) and false otherwise */
public boolean isSetIsExecutable() {
return EncodingUtils.testBit(__isset_bitfield, __ISEXECUTABLE_ISSET_ID);
}
public void setIsExecutableIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISEXECUTABLE_ISSET_ID, value);
}
public boolean isMaterializeDuringPreloading() {
return this.materializeDuringPreloading;
}
public BuildJobStateFileHashEntry setMaterializeDuringPreloading(boolean materializeDuringPreloading) {
this.materializeDuringPreloading = materializeDuringPreloading;
setMaterializeDuringPreloadingIsSet(true);
return this;
}
public void unsetMaterializeDuringPreloading() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MATERIALIZEDURINGPRELOADING_ISSET_ID);
}
/** Returns true if field materializeDuringPreloading is set (has been assigned a value) and false otherwise */
public boolean isSetMaterializeDuringPreloading() {
return EncodingUtils.testBit(__isset_bitfield, __MATERIALIZEDURINGPRELOADING_ISSET_ID);
}
public void setMaterializeDuringPreloadingIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MATERIALIZEDURINGPRELOADING_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case PATH:
if (value == null) {
unsetPath();
} else {
setPath((PathWithUnixSeparators)value);
}
break;
case ARCHIVE_MEMBER_PATH:
if (value == null) {
unsetArchiveMemberPath();
} else {
setArchiveMemberPath((String)value);
}
break;
case HASH_CODE:
if (value == null) {
unsetHashCode();
} else {
setHashCode((String)value);
}
break;
case IS_DIRECTORY:
if (value == null) {
unsetIsDirectory();
} else {
setIsDirectory((Boolean)value);
}
break;
case PATH_IS_ABSOLUTE:
if (value == null) {
unsetPathIsAbsolute();
} else {
setPathIsAbsolute((Boolean)value);
}
break;
case CONTENTS:
if (value == null) {
unsetContents();
} else {
setContents((ByteBuffer)value);
}
break;
case ROOT_SYM_LINK:
if (value == null) {
unsetRootSymLink();
} else {
setRootSymLink((PathWithUnixSeparators)value);
}
break;
case ROOT_SYM_LINK_TARGET:
if (value == null) {
unsetRootSymLinkTarget();
} else {
setRootSymLinkTarget((PathWithUnixSeparators)value);
}
break;
case CHILDREN:
if (value == null) {
unsetChildren();
} else {
setChildren((List<PathWithUnixSeparators>)value);
}
break;
case IS_EXECUTABLE:
if (value == null) {
unsetIsExecutable();
} else {
setIsExecutable((Boolean)value);
}
break;
case MATERIALIZE_DURING_PRELOADING:
if (value == null) {
unsetMaterializeDuringPreloading();
} else {
setMaterializeDuringPreloading((Boolean)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case PATH:
return getPath();
case ARCHIVE_MEMBER_PATH:
return getArchiveMemberPath();
case HASH_CODE:
return getHashCode();
case IS_DIRECTORY:
return isIsDirectory();
case PATH_IS_ABSOLUTE:
return isPathIsAbsolute();
case CONTENTS:
return getContents();
case ROOT_SYM_LINK:
return getRootSymLink();
case ROOT_SYM_LINK_TARGET:
return getRootSymLinkTarget();
case CHILDREN:
return getChildren();
case IS_EXECUTABLE:
return isIsExecutable();
case MATERIALIZE_DURING_PRELOADING:
return isMaterializeDuringPreloading();
}
throw new 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();
}
switch (field) {
case PATH:
return isSetPath();
case ARCHIVE_MEMBER_PATH:
return isSetArchiveMemberPath();
case HASH_CODE:
return isSetHashCode();
case IS_DIRECTORY:
return isSetIsDirectory();
case PATH_IS_ABSOLUTE:
return isSetPathIsAbsolute();
case CONTENTS:
return isSetContents();
case ROOT_SYM_LINK:
return isSetRootSymLink();
case ROOT_SYM_LINK_TARGET:
return isSetRootSymLinkTarget();
case CHILDREN:
return isSetChildren();
case IS_EXECUTABLE:
return isSetIsExecutable();
case MATERIALIZE_DURING_PRELOADING:
return isSetMaterializeDuringPreloading();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof BuildJobStateFileHashEntry)
return this.equals((BuildJobStateFileHashEntry)that);
return false;
}
public boolean equals(BuildJobStateFileHashEntry that) {
if (that == null)
return false;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
if (this_present_path || that_present_path) {
if (!(this_present_path && that_present_path))
return false;
if (!this.path.equals(that.path))
return false;
}
boolean this_present_archiveMemberPath = true && this.isSetArchiveMemberPath();
boolean that_present_archiveMemberPath = true && that.isSetArchiveMemberPath();
if (this_present_archiveMemberPath || that_present_archiveMemberPath) {
if (!(this_present_archiveMemberPath && that_present_archiveMemberPath))
return false;
if (!this.archiveMemberPath.equals(that.archiveMemberPath))
return false;
}
boolean this_present_hashCode = true && this.isSetHashCode();
boolean that_present_hashCode = true && that.isSetHashCode();
if (this_present_hashCode || that_present_hashCode) {
if (!(this_present_hashCode && that_present_hashCode))
return false;
if (!this.hashCode.equals(that.hashCode))
return false;
}
boolean this_present_isDirectory = true && this.isSetIsDirectory();
boolean that_present_isDirectory = true && that.isSetIsDirectory();
if (this_present_isDirectory || that_present_isDirectory) {
if (!(this_present_isDirectory && that_present_isDirectory))
return false;
if (this.isDirectory != that.isDirectory)
return false;
}
boolean this_present_pathIsAbsolute = true && this.isSetPathIsAbsolute();
boolean that_present_pathIsAbsolute = true && that.isSetPathIsAbsolute();
if (this_present_pathIsAbsolute || that_present_pathIsAbsolute) {
if (!(this_present_pathIsAbsolute && that_present_pathIsAbsolute))
return false;
if (this.pathIsAbsolute != that.pathIsAbsolute)
return false;
}
boolean this_present_contents = true && this.isSetContents();
boolean that_present_contents = true && that.isSetContents();
if (this_present_contents || that_present_contents) {
if (!(this_present_contents && that_present_contents))
return false;
if (!this.contents.equals(that.contents))
return false;
}
boolean this_present_rootSymLink = true && this.isSetRootSymLink();
boolean that_present_rootSymLink = true && that.isSetRootSymLink();
if (this_present_rootSymLink || that_present_rootSymLink) {
if (!(this_present_rootSymLink && that_present_rootSymLink))
return false;
if (!this.rootSymLink.equals(that.rootSymLink))
return false;
}
boolean this_present_rootSymLinkTarget = true && this.isSetRootSymLinkTarget();
boolean that_present_rootSymLinkTarget = true && that.isSetRootSymLinkTarget();
if (this_present_rootSymLinkTarget || that_present_rootSymLinkTarget) {
if (!(this_present_rootSymLinkTarget && that_present_rootSymLinkTarget))
return false;
if (!this.rootSymLinkTarget.equals(that.rootSymLinkTarget))
return false;
}
boolean this_present_children = true && this.isSetChildren();
boolean that_present_children = true && that.isSetChildren();
if (this_present_children || that_present_children) {
if (!(this_present_children && that_present_children))
return false;
if (!this.children.equals(that.children))
return false;
}
boolean this_present_isExecutable = true && this.isSetIsExecutable();
boolean that_present_isExecutable = true && that.isSetIsExecutable();
if (this_present_isExecutable || that_present_isExecutable) {
if (!(this_present_isExecutable && that_present_isExecutable))
return false;
if (this.isExecutable != that.isExecutable)
return false;
}
boolean this_present_materializeDuringPreloading = true && this.isSetMaterializeDuringPreloading();
boolean that_present_materializeDuringPreloading = true && that.isSetMaterializeDuringPreloading();
if (this_present_materializeDuringPreloading || that_present_materializeDuringPreloading) {
if (!(this_present_materializeDuringPreloading && that_present_materializeDuringPreloading))
return false;
if (this.materializeDuringPreloading != that.materializeDuringPreloading)
return false;
}
return true;
}
@Override
public int hashCode() {
List<Object> list = new ArrayList<Object>();
boolean present_path = true && (isSetPath());
list.add(present_path);
if (present_path)
list.add(path);
boolean present_archiveMemberPath = true && (isSetArchiveMemberPath());
list.add(present_archiveMemberPath);
if (present_archiveMemberPath)
list.add(archiveMemberPath);
boolean present_hashCode = true && (isSetHashCode());
list.add(present_hashCode);
if (present_hashCode)
list.add(hashCode);
boolean present_isDirectory = true && (isSetIsDirectory());
list.add(present_isDirectory);
if (present_isDirectory)
list.add(isDirectory);
boolean present_pathIsAbsolute = true && (isSetPathIsAbsolute());
list.add(present_pathIsAbsolute);
if (present_pathIsAbsolute)
list.add(pathIsAbsolute);
boolean present_contents = true && (isSetContents());
list.add(present_contents);
if (present_contents)
list.add(contents);
boolean present_rootSymLink = true && (isSetRootSymLink());
list.add(present_rootSymLink);
if (present_rootSymLink)
list.add(rootSymLink);
boolean present_rootSymLinkTarget = true && (isSetRootSymLinkTarget());
list.add(present_rootSymLinkTarget);
if (present_rootSymLinkTarget)
list.add(rootSymLinkTarget);
boolean present_children = true && (isSetChildren());
list.add(present_children);
if (present_children)
list.add(children);
boolean present_isExecutable = true && (isSetIsExecutable());
list.add(present_isExecutable);
if (present_isExecutable)
list.add(isExecutable);
boolean present_materializeDuringPreloading = true && (isSetMaterializeDuringPreloading());
list.add(present_materializeDuringPreloading);
if (present_materializeDuringPreloading)
list.add(materializeDuringPreloading);
return list.hashCode();
}
@Override
public int compareTo(BuildJobStateFileHashEntry other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = Boolean.valueOf(isSetPath()).compareTo(other.isSetPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, other.path);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetArchiveMemberPath()).compareTo(other.isSetArchiveMemberPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetArchiveMemberPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.archiveMemberPath, other.archiveMemberPath);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetHashCode()).compareTo(other.isSetHashCode());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetHashCode()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hashCode, other.hashCode);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetIsDirectory()).compareTo(other.isSetIsDirectory());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetIsDirectory()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDirectory, other.isDirectory);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetPathIsAbsolute()).compareTo(other.isSetPathIsAbsolute());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPathIsAbsolute()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathIsAbsolute, other.pathIsAbsolute);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetContents()).compareTo(other.isSetContents());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetContents()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.contents, other.contents);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetRootSymLink()).compareTo(other.isSetRootSymLink());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRootSymLink()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rootSymLink, other.rootSymLink);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetRootSymLinkTarget()).compareTo(other.isSetRootSymLinkTarget());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRootSymLinkTarget()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rootSymLinkTarget, other.rootSymLinkTarget);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetChildren()).compareTo(other.isSetChildren());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetChildren()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.children, other.children);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetIsExecutable()).compareTo(other.isSetIsExecutable());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetIsExecutable()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isExecutable, other.isExecutable);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetMaterializeDuringPreloading()).compareTo(other.isSetMaterializeDuringPreloading());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetMaterializeDuringPreloading()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.materializeDuringPreloading, other.materializeDuringPreloading);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
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);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("BuildJobStateFileHashEntry(");
boolean first = true;
if (isSetPath()) {
sb.append("path:");
if (this.path == null) {
sb.append("null");
} else {
sb.append(this.path);
}
first = false;
}
if (isSetArchiveMemberPath()) {
if (!first) sb.append(", ");
sb.append("archiveMemberPath:");
if (this.archiveMemberPath == null) {
sb.append("null");
} else {
sb.append(this.archiveMemberPath);
}
first = false;
}
if (isSetHashCode()) {
if (!first) sb.append(", ");
sb.append("hashCode:");
if (this.hashCode == null) {
sb.append("null");
} else {
sb.append(this.hashCode);
}
first = false;
}
if (isSetIsDirectory()) {
if (!first) sb.append(", ");
sb.append("isDirectory:");
sb.append(this.isDirectory);
first = false;
}
if (isSetPathIsAbsolute()) {
if (!first) sb.append(", ");
sb.append("pathIsAbsolute:");
sb.append(this.pathIsAbsolute);
first = false;
}
if (isSetContents()) {
if (!first) sb.append(", ");
sb.append("contents:");
if (this.contents == null) {
sb.append("null");
} else {
org.apache.thrift.TBaseHelper.toString(this.contents, sb);
}
first = false;
}
if (isSetRootSymLink()) {
if (!first) sb.append(", ");
sb.append("rootSymLink:");
if (this.rootSymLink == null) {
sb.append("null");
} else {
sb.append(this.rootSymLink);
}
first = false;
}
if (isSetRootSymLinkTarget()) {
if (!first) sb.append(", ");
sb.append("rootSymLinkTarget:");
if (this.rootSymLinkTarget == null) {
sb.append("null");
} else {
sb.append(this.rootSymLinkTarget);
}
first = false;
}
if (isSetChildren()) {
if (!first) sb.append(", ");
sb.append("children:");
if (this.children == null) {
sb.append("null");
} else {
sb.append(this.children);
}
first = false;
}
if (isSetIsExecutable()) {
if (!first) sb.append(", ");
sb.append("isExecutable:");
sb.append(this.isExecutable);
first = false;
}
if (isSetMaterializeDuringPreloading()) {
if (!first) sb.append(", ");
sb.append("materializeDuringPreloading:");
sb.append(this.materializeDuringPreloading);
first = false;
}
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (path != null) {
path.validate();
}
if (rootSymLink != null) {
rootSymLink.validate();
}
if (rootSymLinkTarget != null) {
rootSymLinkTarget.validate();
}
}
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, 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);
}
}
private static class BuildJobStateFileHashEntryStandardSchemeFactory implements SchemeFactory {
public BuildJobStateFileHashEntryStandardScheme getScheme() {
return new BuildJobStateFileHashEntryStandardScheme();
}
}
private static class BuildJobStateFileHashEntryStandardScheme extends StandardScheme<BuildJobStateFileHashEntry> {
public void read(org.apache.thrift.protocol.TProtocol iprot, BuildJobStateFileHashEntry 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: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.path = new PathWithUnixSeparators();
struct.path.read(iprot);
struct.setPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // ARCHIVE_MEMBER_PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.archiveMemberPath = iprot.readString();
struct.setArchiveMemberPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // HASH_CODE
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.hashCode = iprot.readString();
struct.setHashCodeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // IS_DIRECTORY
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.isDirectory = iprot.readBool();
struct.setIsDirectoryIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // PATH_IS_ABSOLUTE
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.pathIsAbsolute = iprot.readBool();
struct.setPathIsAbsoluteIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // CONTENTS
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.contents = iprot.readBinary();
struct.setContentsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 7: // ROOT_SYM_LINK
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.rootSymLink = new PathWithUnixSeparators();
struct.rootSymLink.read(iprot);
struct.setRootSymLinkIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 8: // ROOT_SYM_LINK_TARGET
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.rootSymLinkTarget = new PathWithUnixSeparators();
struct.rootSymLinkTarget.read(iprot);
struct.setRootSymLinkTargetIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 9: // CHILDREN
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list46 = iprot.readListBegin();
struct.children = new ArrayList<PathWithUnixSeparators>(_list46.size);
PathWithUnixSeparators _elem47;
for (int _i48 = 0; _i48 < _list46.size; ++_i48)
{
_elem47 = new PathWithUnixSeparators();
_elem47.read(iprot);
struct.children.add(_elem47);
}
iprot.readListEnd();
}
struct.setChildrenIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 10: // IS_EXECUTABLE
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.isExecutable = iprot.readBool();
struct.setIsExecutableIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 11: // MATERIALIZE_DURING_PRELOADING
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.materializeDuringPreloading = iprot.readBool();
struct.setMaterializeDuringPreloadingIsSet(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, BuildJobStateFileHashEntry struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.path != null) {
if (struct.isSetPath()) {
oprot.writeFieldBegin(PATH_FIELD_DESC);
struct.path.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.archiveMemberPath != null) {
if (struct.isSetArchiveMemberPath()) {
oprot.writeFieldBegin(ARCHIVE_MEMBER_PATH_FIELD_DESC);
oprot.writeString(struct.archiveMemberPath);
oprot.writeFieldEnd();
}
}
if (struct.hashCode != null) {
if (struct.isSetHashCode()) {
oprot.writeFieldBegin(HASH_CODE_FIELD_DESC);
oprot.writeString(struct.hashCode);
oprot.writeFieldEnd();
}
}
if (struct.isSetIsDirectory()) {
oprot.writeFieldBegin(IS_DIRECTORY_FIELD_DESC);
oprot.writeBool(struct.isDirectory);
oprot.writeFieldEnd();
}
if (struct.isSetPathIsAbsolute()) {
oprot.writeFieldBegin(PATH_IS_ABSOLUTE_FIELD_DESC);
oprot.writeBool(struct.pathIsAbsolute);
oprot.writeFieldEnd();
}
if (struct.contents != null) {
if (struct.isSetContents()) {
oprot.writeFieldBegin(CONTENTS_FIELD_DESC);
oprot.writeBinary(struct.contents);
oprot.writeFieldEnd();
}
}
if (struct.rootSymLink != null) {
if (struct.isSetRootSymLink()) {
oprot.writeFieldBegin(ROOT_SYM_LINK_FIELD_DESC);
struct.rootSymLink.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.rootSymLinkTarget != null) {
if (struct.isSetRootSymLinkTarget()) {
oprot.writeFieldBegin(ROOT_SYM_LINK_TARGET_FIELD_DESC);
struct.rootSymLinkTarget.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.children != null) {
if (struct.isSetChildren()) {
oprot.writeFieldBegin(CHILDREN_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.children.size()));
for (PathWithUnixSeparators _iter49 : struct.children)
{
_iter49.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.isSetIsExecutable()) {
oprot.writeFieldBegin(IS_EXECUTABLE_FIELD_DESC);
oprot.writeBool(struct.isExecutable);
oprot.writeFieldEnd();
}
if (struct.isSetMaterializeDuringPreloading()) {
oprot.writeFieldBegin(MATERIALIZE_DURING_PRELOADING_FIELD_DESC);
oprot.writeBool(struct.materializeDuringPreloading);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class BuildJobStateFileHashEntryTupleSchemeFactory implements SchemeFactory {
public BuildJobStateFileHashEntryTupleScheme getScheme() {
return new BuildJobStateFileHashEntryTupleScheme();
}
}
private static class BuildJobStateFileHashEntryTupleScheme extends TupleScheme<BuildJobStateFileHashEntry> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, BuildJobStateFileHashEntry struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetPath()) {
optionals.set(0);
}
if (struct.isSetArchiveMemberPath()) {
optionals.set(1);
}
if (struct.isSetHashCode()) {
optionals.set(2);
}
if (struct.isSetIsDirectory()) {
optionals.set(3);
}
if (struct.isSetPathIsAbsolute()) {
optionals.set(4);
}
if (struct.isSetContents()) {
optionals.set(5);
}
if (struct.isSetRootSymLink()) {
optionals.set(6);
}
if (struct.isSetRootSymLinkTarget()) {
optionals.set(7);
}
if (struct.isSetChildren()) {
optionals.set(8);
}
if (struct.isSetIsExecutable()) {
optionals.set(9);
}
if (struct.isSetMaterializeDuringPreloading()) {
optionals.set(10);
}
oprot.writeBitSet(optionals, 11);
if (struct.isSetPath()) {
struct.path.write(oprot);
}
if (struct.isSetArchiveMemberPath()) {
oprot.writeString(struct.archiveMemberPath);
}
if (struct.isSetHashCode()) {
oprot.writeString(struct.hashCode);
}
if (struct.isSetIsDirectory()) {
oprot.writeBool(struct.isDirectory);
}
if (struct.isSetPathIsAbsolute()) {
oprot.writeBool(struct.pathIsAbsolute);
}
if (struct.isSetContents()) {
oprot.writeBinary(struct.contents);
}
if (struct.isSetRootSymLink()) {
struct.rootSymLink.write(oprot);
}
if (struct.isSetRootSymLinkTarget()) {
struct.rootSymLinkTarget.write(oprot);
}
if (struct.isSetChildren()) {
{
oprot.writeI32(struct.children.size());
for (PathWithUnixSeparators _iter50 : struct.children)
{
_iter50.write(oprot);
}
}
}
if (struct.isSetIsExecutable()) {
oprot.writeBool(struct.isExecutable);
}
if (struct.isSetMaterializeDuringPreloading()) {
oprot.writeBool(struct.materializeDuringPreloading);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, BuildJobStateFileHashEntry struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(11);
if (incoming.get(0)) {
struct.path = new PathWithUnixSeparators();
struct.path.read(iprot);
struct.setPathIsSet(true);
}
if (incoming.get(1)) {
struct.archiveMemberPath = iprot.readString();
struct.setArchiveMemberPathIsSet(true);
}
if (incoming.get(2)) {
struct.hashCode = iprot.readString();
struct.setHashCodeIsSet(true);
}
if (incoming.get(3)) {
struct.isDirectory = iprot.readBool();
struct.setIsDirectoryIsSet(true);
}
if (incoming.get(4)) {
struct.pathIsAbsolute = iprot.readBool();
struct.setPathIsAbsoluteIsSet(true);
}
if (incoming.get(5)) {
struct.contents = iprot.readBinary();
struct.setContentsIsSet(true);
}
if (incoming.get(6)) {
struct.rootSymLink = new PathWithUnixSeparators();
struct.rootSymLink.read(iprot);
struct.setRootSymLinkIsSet(true);
}
if (incoming.get(7)) {
struct.rootSymLinkTarget = new PathWithUnixSeparators();
struct.rootSymLinkTarget.read(iprot);
struct.setRootSymLinkTargetIsSet(true);
}
if (incoming.get(8)) {
{
org.apache.thrift.protocol.TList _list51 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.children = new ArrayList<PathWithUnixSeparators>(_list51.size);
PathWithUnixSeparators _elem52;
for (int _i53 = 0; _i53 < _list51.size; ++_i53)
{
_elem52 = new PathWithUnixSeparators();
_elem52.read(iprot);
struct.children.add(_elem52);
}
}
struct.setChildrenIsSet(true);
}
if (incoming.get(9)) {
struct.isExecutable = iprot.readBool();
struct.setIsExecutableIsSet(true);
}
if (incoming.get(10)) {
struct.materializeDuringPreloading = iprot.readBool();
struct.setMaterializeDuringPreloadingIsSet(true);
}
}
}
}