@Override public Boolean apply(CheckAndMutateRowResponse checkAndMutateRowResponse) { return checkAndMutateRowResponse.getPredicateMatched(); } },
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.v2.CheckAndMutateRowResponse)) { return super.equals(obj); } com.google.bigtable.v2.CheckAndMutateRowResponse other = (com.google.bigtable.v2.CheckAndMutateRowResponse) obj; boolean result = true; result = result && (getPredicateMatched() == other.getPredicateMatched()); 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) + PREDICATE_MATCHED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPredicateMatched()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.bigtable.v2.CheckAndMutateRowResponse other) { if (other == com.google.bigtable.v2.CheckAndMutateRowResponse.getDefaultInstance()) return this; if (other.getPredicateMatched() != false) { setPredicateMatched(other.getPredicateMatched()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@Override public Boolean apply(CheckAndMutateRowResponse checkAndMutateRowResponse) { return checkAndMutateRowResponse.getPredicateMatched(); } },
@Override public Boolean apply(CheckAndMutateRowResponse checkAndMutateRowResponse) { return checkAndMutateRowResponse.getPredicateMatched(); } }, MoreExecutors.directExecutor());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.v2.CheckAndMutateRowResponse)) { return super.equals(obj); } com.google.bigtable.v2.CheckAndMutateRowResponse other = (com.google.bigtable.v2.CheckAndMutateRowResponse) obj; boolean result = true; result = result && (getPredicateMatched() == other.getPredicateMatched()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.v2.CheckAndMutateRowResponse)) { return super.equals(obj); } com.google.bigtable.v2.CheckAndMutateRowResponse other = (com.google.bigtable.v2.CheckAndMutateRowResponse) obj; boolean result = true; result = result && (getPredicateMatched() == other.getPredicateMatched()); 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) + PREDICATE_MATCHED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPredicateMatched()); 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) + PREDICATE_MATCHED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPredicateMatched()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <p>wasMutationApplied.</p> * * @param request a {@link com.google.bigtable.v2.CheckAndMutateRowRequest} object. * @param response a {@link com.google.bigtable.v2.CheckAndMutateRowResponse} object. * @return a boolean. */ public static boolean wasMutationApplied( CheckAndMutateRowRequest request, CheckAndMutateRowResponse response) { // If we have true mods, we want the predicate to have matched. // If we have false mods, we did not want the predicate to have matched. return (request.getTrueMutationsCount() > 0 && response.getPredicateMatched()) || (request.getFalseMutationsCount() > 0 && !response.getPredicateMatched()); }
/** * <p>wasMutationApplied.</p> * * @param request a {@link com.google.bigtable.v2.CheckAndMutateRowRequest} object. * @param response a {@link com.google.bigtable.v2.CheckAndMutateRowResponse} object. * @return a boolean. */ public static boolean wasMutationApplied( CheckAndMutateRowRequest request, CheckAndMutateRowResponse response) { // If we have true mods, we want the predicate to have matched. // If we have false mods, we did not want the predicate to have matched. return (request.getTrueMutationsCount() > 0 && response.getPredicateMatched()) || (request.getFalseMutationsCount() > 0 && !response.getPredicateMatched()); }
public Builder mergeFrom(com.google.bigtable.v2.CheckAndMutateRowResponse other) { if (other == com.google.bigtable.v2.CheckAndMutateRowResponse.getDefaultInstance()) return this; if (other.getPredicateMatched() != false) { setPredicateMatched(other.getPredicateMatched()); } onChanged(); return this; }
public Builder mergeFrom(com.google.bigtable.v2.CheckAndMutateRowResponse other) { if (other == com.google.bigtable.v2.CheckAndMutateRowResponse.getDefaultInstance()) return this; if (other.getPredicateMatched() != false) { setPredicateMatched(other.getPredicateMatched()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** {@inheritDoc} */ @Override public Boolean checkAndMutateRow(ConditionalRowMutation conditionalRowMutation) { CheckAndMutateRowResponse response = delegate.checkAndMutateRow(conditionalRowMutation.toProto(requestContext)); return response.getPredicateMatched(); }