@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTableName().hashCode(); hash = (37 * hash) + APP_PROFILE_ID_FIELD_NUMBER; hash = (53 * hash) + getAppProfileId().hashCode(); hash = (37 * hash) + ROW_KEY_FIELD_NUMBER; hash = (53 * hash) + getRowKey().hashCode(); if (hasPredicateFilter()) { hash = (37 * hash) + PREDICATE_FILTER_FIELD_NUMBER; hash = (53 * hash) + getPredicateFilter().hashCode(); } if (getTrueMutationsCount() > 0) { hash = (37 * hash) + TRUE_MUTATIONS_FIELD_NUMBER; hash = (53 * hash) + getTrueMutationsList().hashCode(); } if (getFalseMutationsCount() > 0) { hash = (37 * hash) + FALSE_MUTATIONS_FIELD_NUMBER; hash = (53 * hash) + getFalseMutationsList().hashCode(); } 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()); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTableName().hashCode(); hash = (37 * hash) + ROW_KEY_FIELD_NUMBER; hash = (53 * hash) + getRowKey().hashCode(); if (hasPredicateFilter()) { hash = (37 * hash) + PREDICATE_FILTER_FIELD_NUMBER; hash = (53 * hash) + getPredicateFilter().hashCode(); } if (getTrueMutationsCount() > 0) { hash = (37 * hash) + TRUE_MUTATIONS_FIELD_NUMBER; hash = (53 * hash) + getTrueMutationsList().hashCode(); } if (getFalseMutationsCount() > 0) { hash = (37 * hash) + FALSE_MUTATIONS_FIELD_NUMBER; hash = (53 * hash) + getFalseMutationsList().hashCode(); } 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) + TABLE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTableName().hashCode(); hash = (37 * hash) + APP_PROFILE_ID_FIELD_NUMBER; hash = (53 * hash) + getAppProfileId().hashCode(); hash = (37 * hash) + ROW_KEY_FIELD_NUMBER; hash = (53 * hash) + getRowKey().hashCode(); if (hasPredicateFilter()) { hash = (37 * hash) + PREDICATE_FILTER_FIELD_NUMBER; hash = (53 * hash) + getPredicateFilter().hashCode(); } if (getTrueMutationsCount() > 0) { hash = (37 * hash) + TRUE_MUTATIONS_FIELD_NUMBER; hash = (53 * hash) + getTrueMutationsList().hashCode(); } if (getFalseMutationsCount() > 0) { hash = (37 * hash) + FALSE_MUTATIONS_FIELD_NUMBER; hash = (53 * hash) + getFalseMutationsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }