in src-gen/com/facebook/buck/artifact_cache/thrift/BuckCacheResponse.java [1699:1793]
public void write(org.apache.thrift.protocol.TProtocol prot, BuckCacheResponse struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetWasSuccessful()) {
optionals.set(0);
}
if (struct.isSetErrorMessage()) {
optionals.set(1);
}
if (struct.isSetType()) {
optionals.set(2);
}
if (struct.isSetDiagnosticServerInfo()) {
optionals.set(3);
}
if (struct.isSetPayloads()) {
optionals.set(4);
}
if (struct.isSetFetchResponse()) {
optionals.set(5);
}
if (struct.isSetStoreResponse()) {
optionals.set(6);
}
if (struct.isSetMultiFetchResponse()) {
optionals.set(7);
}
if (struct.isSetDeleteResponse()) {
optionals.set(8);
}
if (struct.isSetMultiContainsResponse()) {
optionals.set(9);
}
if (struct.isSetManifestAppendResponse()) {
optionals.set(10);
}
if (struct.isSetManifestFetchResponse()) {
optionals.set(11);
}
if (struct.isSetManifestDeleteResponse()) {
optionals.set(12);
}
if (struct.isSetManifestSetResponse()) {
optionals.set(13);
}
oprot.writeBitSet(optionals, 14);
if (struct.isSetWasSuccessful()) {
oprot.writeBool(struct.wasSuccessful);
}
if (struct.isSetErrorMessage()) {
oprot.writeString(struct.errorMessage);
}
if (struct.isSetType()) {
oprot.writeI32(struct.type.getValue());
}
if (struct.isSetDiagnosticServerInfo()) {
oprot.writeString(struct.diagnosticServerInfo);
}
if (struct.isSetPayloads()) {
{
oprot.writeI32(struct.payloads.size());
for (PayloadInfo _iter118 : struct.payloads)
{
_iter118.write(oprot);
}
}
}
if (struct.isSetFetchResponse()) {
struct.fetchResponse.write(oprot);
}
if (struct.isSetStoreResponse()) {
struct.storeResponse.write(oprot);
}
if (struct.isSetMultiFetchResponse()) {
struct.multiFetchResponse.write(oprot);
}
if (struct.isSetDeleteResponse()) {
struct.deleteResponse.write(oprot);
}
if (struct.isSetMultiContainsResponse()) {
struct.multiContainsResponse.write(oprot);
}
if (struct.isSetManifestAppendResponse()) {
struct.manifestAppendResponse.write(oprot);
}
if (struct.isSetManifestFetchResponse()) {
struct.manifestFetchResponse.write(oprot);
}
if (struct.isSetManifestDeleteResponse()) {
struct.manifestDeleteResponse.write(oprot);
}
if (struct.isSetManifestSetResponse()) {
struct.manifestSetResponse.write(oprot);
}
}