/** * * * <pre> * The ID of the project against which to make the request. * </pre> * * <code>string project_id = 8;</code> */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /**
@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: } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.datastore.v1.CommitRequest other) { if (other == com.google.datastore.v1.CommitRequest.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged();
/** * <pre> * The ID of the project against which to make the request. * </pre> * * <code>optional string project_id = 8;</code> */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /**
/** * * * <pre> * The ID of the project against which to make the request. * </pre> * * <code>string project_id = 8;</code> */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /**
@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 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: } result = result && unknownFields.equals(other.unknownFields); return result; }
@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; }
public Builder mergeFrom(com.google.datastore.v1.CommitRequest other) { if (other == com.google.datastore.v1.CommitRequest.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged();
public Builder mergeFrom(com.google.datastore.v1.CommitRequest other) { if (other == com.google.datastore.v1.CommitRequest.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged();