@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.datastore.v1.CommitRequest)) { return super.equals(obj); } com.google.datastore.v1.CommitRequest other = (com.google.datastore.v1.CommitRequest) obj; boolean result = true; result = result && getProjectId().equals(other.getProjectId()); result = result && mode_ == other.mode_; result = result && getMutationsList().equals(other.getMutationsList()); result = result && getTransactionSelectorCase().equals(other.getTransactionSelectorCase()); if (!result) return false; switch (transactionSelectorCase_) { case 1: result = result && getTransaction().equals(other.getTransaction()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; if (getMutationsCount() > 0) { hash = (37 * hash) + MUTATIONS_FIELD_NUMBER; hash = (53 * hash) + getMutationsList().hashCode(); } switch (transactionSelectorCase_) { case 1: hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
case TRANSACTION: setTransaction(other.getTransaction()); break;
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; if (getMutationsCount() > 0) { hash = (37 * hash) + MUTATIONS_FIELD_NUMBER; hash = (53 * hash) + getMutationsList().hashCode(); } switch (transactionSelectorCase_) { case 1: hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.datastore.v1.CommitRequest)) { return super.equals(obj); } com.google.datastore.v1.CommitRequest other = (com.google.datastore.v1.CommitRequest) obj; boolean result = true; result = result && getProjectId().equals(other.getProjectId()); result = result && mode_ == other.mode_; result = result && getMutationsList().equals(other.getMutationsList()); result = result && getTransactionSelectorCase().equals(other.getTransactionSelectorCase()); if (!result) return false; switch (transactionSelectorCase_) { case 1: result = result && getTransaction().equals(other.getTransaction()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; if (getMutationsCount() > 0) { hash = (37 * hash) + MUTATIONS_FIELD_NUMBER; hash = (53 * hash) + getMutationsList().hashCode(); } switch (transactionSelectorCase_) { case 1: hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.datastore.v1.CommitRequest)) { return super.equals(obj); } com.google.datastore.v1.CommitRequest other = (com.google.datastore.v1.CommitRequest) obj; boolean result = true; result = result && getProjectId() .equals(other.getProjectId()); result = result && mode_ == other.mode_; result = result && getMutationsList() .equals(other.getMutationsList()); result = result && getTransactionSelectorCase().equals( other.getTransactionSelectorCase()); if (!result) return false; switch (transactionSelectorCase_) { case 1: result = result && getTransaction() .equals(other.getTransaction()); break; case 0: default: } return result; }
setTransaction(other.getTransaction()); break;
case TRANSACTION: setTransaction(other.getTransaction()); break;