public boolean equals()

in src-gen/com/facebook/buck/artifact_cache/thrift/BuckCacheResponse.java [860:993]


  public boolean equals(BuckCacheResponse that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_wasSuccessful = true && this.isSetWasSuccessful();
    boolean that_present_wasSuccessful = true && that.isSetWasSuccessful();
    if (this_present_wasSuccessful || that_present_wasSuccessful) {
      if (!(this_present_wasSuccessful && that_present_wasSuccessful))
        return false;
      if (this.wasSuccessful != that.wasSuccessful)
        return false;
    }

    boolean this_present_errorMessage = true && this.isSetErrorMessage();
    boolean that_present_errorMessage = true && that.isSetErrorMessage();
    if (this_present_errorMessage || that_present_errorMessage) {
      if (!(this_present_errorMessage && that_present_errorMessage))
        return false;
      if (!this.errorMessage.equals(that.errorMessage))
        return false;
    }

    boolean this_present_type = true && this.isSetType();
    boolean that_present_type = true && that.isSetType();
    if (this_present_type || that_present_type) {
      if (!(this_present_type && that_present_type))
        return false;
      if (!this.type.equals(that.type))
        return false;
    }

    boolean this_present_diagnosticServerInfo = true && this.isSetDiagnosticServerInfo();
    boolean that_present_diagnosticServerInfo = true && that.isSetDiagnosticServerInfo();
    if (this_present_diagnosticServerInfo || that_present_diagnosticServerInfo) {
      if (!(this_present_diagnosticServerInfo && that_present_diagnosticServerInfo))
        return false;
      if (!this.diagnosticServerInfo.equals(that.diagnosticServerInfo))
        return false;
    }

    boolean this_present_payloads = true && this.isSetPayloads();
    boolean that_present_payloads = true && that.isSetPayloads();
    if (this_present_payloads || that_present_payloads) {
      if (!(this_present_payloads && that_present_payloads))
        return false;
      if (!this.payloads.equals(that.payloads))
        return false;
    }

    boolean this_present_fetchResponse = true && this.isSetFetchResponse();
    boolean that_present_fetchResponse = true && that.isSetFetchResponse();
    if (this_present_fetchResponse || that_present_fetchResponse) {
      if (!(this_present_fetchResponse && that_present_fetchResponse))
        return false;
      if (!this.fetchResponse.equals(that.fetchResponse))
        return false;
    }

    boolean this_present_storeResponse = true && this.isSetStoreResponse();
    boolean that_present_storeResponse = true && that.isSetStoreResponse();
    if (this_present_storeResponse || that_present_storeResponse) {
      if (!(this_present_storeResponse && that_present_storeResponse))
        return false;
      if (!this.storeResponse.equals(that.storeResponse))
        return false;
    }

    boolean this_present_multiFetchResponse = true && this.isSetMultiFetchResponse();
    boolean that_present_multiFetchResponse = true && that.isSetMultiFetchResponse();
    if (this_present_multiFetchResponse || that_present_multiFetchResponse) {
      if (!(this_present_multiFetchResponse && that_present_multiFetchResponse))
        return false;
      if (!this.multiFetchResponse.equals(that.multiFetchResponse))
        return false;
    }

    boolean this_present_deleteResponse = true && this.isSetDeleteResponse();
    boolean that_present_deleteResponse = true && that.isSetDeleteResponse();
    if (this_present_deleteResponse || that_present_deleteResponse) {
      if (!(this_present_deleteResponse && that_present_deleteResponse))
        return false;
      if (!this.deleteResponse.equals(that.deleteResponse))
        return false;
    }

    boolean this_present_multiContainsResponse = true && this.isSetMultiContainsResponse();
    boolean that_present_multiContainsResponse = true && that.isSetMultiContainsResponse();
    if (this_present_multiContainsResponse || that_present_multiContainsResponse) {
      if (!(this_present_multiContainsResponse && that_present_multiContainsResponse))
        return false;
      if (!this.multiContainsResponse.equals(that.multiContainsResponse))
        return false;
    }

    boolean this_present_manifestAppendResponse = true && this.isSetManifestAppendResponse();
    boolean that_present_manifestAppendResponse = true && that.isSetManifestAppendResponse();
    if (this_present_manifestAppendResponse || that_present_manifestAppendResponse) {
      if (!(this_present_manifestAppendResponse && that_present_manifestAppendResponse))
        return false;
      if (!this.manifestAppendResponse.equals(that.manifestAppendResponse))
        return false;
    }

    boolean this_present_manifestFetchResponse = true && this.isSetManifestFetchResponse();
    boolean that_present_manifestFetchResponse = true && that.isSetManifestFetchResponse();
    if (this_present_manifestFetchResponse || that_present_manifestFetchResponse) {
      if (!(this_present_manifestFetchResponse && that_present_manifestFetchResponse))
        return false;
      if (!this.manifestFetchResponse.equals(that.manifestFetchResponse))
        return false;
    }

    boolean this_present_manifestDeleteResponse = true && this.isSetManifestDeleteResponse();
    boolean that_present_manifestDeleteResponse = true && that.isSetManifestDeleteResponse();
    if (this_present_manifestDeleteResponse || that_present_manifestDeleteResponse) {
      if (!(this_present_manifestDeleteResponse && that_present_manifestDeleteResponse))
        return false;
      if (!this.manifestDeleteResponse.equals(that.manifestDeleteResponse))
        return false;
    }

    boolean this_present_manifestSetResponse = true && this.isSetManifestSetResponse();
    boolean that_present_manifestSetResponse = true && that.isSetManifestSetResponse();
    if (this_present_manifestSetResponse || that_present_manifestSetResponse) {
      if (!(this_present_manifestSetResponse && that_present_manifestSetResponse))
        return false;
      if (!this.manifestSetResponse.equals(that.manifestSetResponse))
        return false;
    }

    return true;
  }