public boolean equals()

in src-gen/com/facebook/buck/artifact_cache/thrift/BuckCacheRequest.java [762:877]


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

    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_buckBuildId = true && this.isSetBuckBuildId();
    boolean that_present_buckBuildId = true && that.isSetBuckBuildId();
    if (this_present_buckBuildId || that_present_buckBuildId) {
      if (!(this_present_buckBuildId && that_present_buckBuildId))
        return false;
      if (!this.buckBuildId.equals(that.buckBuildId))
        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_fetchRequest = true && this.isSetFetchRequest();
    boolean that_present_fetchRequest = true && that.isSetFetchRequest();
    if (this_present_fetchRequest || that_present_fetchRequest) {
      if (!(this_present_fetchRequest && that_present_fetchRequest))
        return false;
      if (!this.fetchRequest.equals(that.fetchRequest))
        return false;
    }

    boolean this_present_storeRequest = true && this.isSetStoreRequest();
    boolean that_present_storeRequest = true && that.isSetStoreRequest();
    if (this_present_storeRequest || that_present_storeRequest) {
      if (!(this_present_storeRequest && that_present_storeRequest))
        return false;
      if (!this.storeRequest.equals(that.storeRequest))
        return false;
    }

    boolean this_present_multiFetchRequest = true && this.isSetMultiFetchRequest();
    boolean that_present_multiFetchRequest = true && that.isSetMultiFetchRequest();
    if (this_present_multiFetchRequest || that_present_multiFetchRequest) {
      if (!(this_present_multiFetchRequest && that_present_multiFetchRequest))
        return false;
      if (!this.multiFetchRequest.equals(that.multiFetchRequest))
        return false;
    }

    boolean this_present_deleteRequest = true && this.isSetDeleteRequest();
    boolean that_present_deleteRequest = true && that.isSetDeleteRequest();
    if (this_present_deleteRequest || that_present_deleteRequest) {
      if (!(this_present_deleteRequest && that_present_deleteRequest))
        return false;
      if (!this.deleteRequest.equals(that.deleteRequest))
        return false;
    }

    boolean this_present_multiContainsRequest = true && this.isSetMultiContainsRequest();
    boolean that_present_multiContainsRequest = true && that.isSetMultiContainsRequest();
    if (this_present_multiContainsRequest || that_present_multiContainsRequest) {
      if (!(this_present_multiContainsRequest && that_present_multiContainsRequest))
        return false;
      if (!this.multiContainsRequest.equals(that.multiContainsRequest))
        return false;
    }

    boolean this_present_manifestAppendRequest = true && this.isSetManifestAppendRequest();
    boolean that_present_manifestAppendRequest = true && that.isSetManifestAppendRequest();
    if (this_present_manifestAppendRequest || that_present_manifestAppendRequest) {
      if (!(this_present_manifestAppendRequest && that_present_manifestAppendRequest))
        return false;
      if (!this.manifestAppendRequest.equals(that.manifestAppendRequest))
        return false;
    }

    boolean this_present_manifestFetchRequest = true && this.isSetManifestFetchRequest();
    boolean that_present_manifestFetchRequest = true && that.isSetManifestFetchRequest();
    if (this_present_manifestFetchRequest || that_present_manifestFetchRequest) {
      if (!(this_present_manifestFetchRequest && that_present_manifestFetchRequest))
        return false;
      if (!this.manifestFetchRequest.equals(that.manifestFetchRequest))
        return false;
    }

    boolean this_present_manifestDeleteRequest = true && this.isSetManifestDeleteRequest();
    boolean that_present_manifestDeleteRequest = true && that.isSetManifestDeleteRequest();
    if (this_present_manifestDeleteRequest || that_present_manifestDeleteRequest) {
      if (!(this_present_manifestDeleteRequest && that_present_manifestDeleteRequest))
        return false;
      if (!this.manifestDeleteRequest.equals(that.manifestDeleteRequest))
        return false;
    }

    boolean this_present_manifestSetRequest = true && this.isSetManifestSetRequest();
    boolean that_present_manifestSetRequest = true && that.isSetManifestSetRequest();
    if (this_present_manifestSetRequest || that_present_manifestSetRequest) {
      if (!(this_present_manifestSetRequest && that_present_manifestSetRequest))
        return false;
      if (!this.manifestSetRequest.equals(that.manifestSetRequest))
        return false;
    }

    return true;
  }