in src-gen/com/facebook/buck/artifact_cache/thrift/BuckCacheResponse.java [1577:1686]
public void write(org.apache.thrift.protocol.TProtocol oprot, BuckCacheResponse struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetWasSuccessful()) {
oprot.writeFieldBegin(WAS_SUCCESSFUL_FIELD_DESC);
oprot.writeBool(struct.wasSuccessful);
oprot.writeFieldEnd();
}
if (struct.errorMessage != null) {
if (struct.isSetErrorMessage()) {
oprot.writeFieldBegin(ERROR_MESSAGE_FIELD_DESC);
oprot.writeString(struct.errorMessage);
oprot.writeFieldEnd();
}
}
if (struct.type != null) {
if (struct.isSetType()) {
oprot.writeFieldBegin(TYPE_FIELD_DESC);
oprot.writeI32(struct.type.getValue());
oprot.writeFieldEnd();
}
}
if (struct.diagnosticServerInfo != null) {
if (struct.isSetDiagnosticServerInfo()) {
oprot.writeFieldBegin(DIAGNOSTIC_SERVER_INFO_FIELD_DESC);
oprot.writeString(struct.diagnosticServerInfo);
oprot.writeFieldEnd();
}
}
if (struct.payloads != null) {
if (struct.isSetPayloads()) {
oprot.writeFieldBegin(PAYLOADS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.payloads.size()));
for (PayloadInfo _iter117 : struct.payloads)
{
_iter117.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.fetchResponse != null) {
if (struct.isSetFetchResponse()) {
oprot.writeFieldBegin(FETCH_RESPONSE_FIELD_DESC);
struct.fetchResponse.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.storeResponse != null) {
if (struct.isSetStoreResponse()) {
oprot.writeFieldBegin(STORE_RESPONSE_FIELD_DESC);
struct.storeResponse.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.multiFetchResponse != null) {
if (struct.isSetMultiFetchResponse()) {
oprot.writeFieldBegin(MULTI_FETCH_RESPONSE_FIELD_DESC);
struct.multiFetchResponse.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.deleteResponse != null) {
if (struct.isSetDeleteResponse()) {
oprot.writeFieldBegin(DELETE_RESPONSE_FIELD_DESC);
struct.deleteResponse.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.multiContainsResponse != null) {
if (struct.isSetMultiContainsResponse()) {
oprot.writeFieldBegin(MULTI_CONTAINS_RESPONSE_FIELD_DESC);
struct.multiContainsResponse.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.manifestAppendResponse != null) {
if (struct.isSetManifestAppendResponse()) {
oprot.writeFieldBegin(MANIFEST_APPEND_RESPONSE_FIELD_DESC);
struct.manifestAppendResponse.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.manifestFetchResponse != null) {
if (struct.isSetManifestFetchResponse()) {
oprot.writeFieldBegin(MANIFEST_FETCH_RESPONSE_FIELD_DESC);
struct.manifestFetchResponse.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.manifestDeleteResponse != null) {
if (struct.isSetManifestDeleteResponse()) {
oprot.writeFieldBegin(MANIFEST_DELETE_RESPONSE_FIELD_DESC);
struct.manifestDeleteResponse.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.manifestSetResponse != null) {
if (struct.isSetManifestSetResponse()) {
oprot.writeFieldBegin(MANIFEST_SET_RESPONSE_FIELD_DESC);
struct.manifestSetResponse.write(oprot);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}