@Override public Boolean apply(CheckAndMutateRowResponse checkAndMutateRowResponse) { return checkAndMutateRowResponse.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()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@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; }
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
@java.lang.Override public com.google.bigtable.v2.CheckAndMutateRowResponse getDefaultInstanceForType() { return com.google.bigtable.v2.CheckAndMutateRowResponse.getDefaultInstance(); }
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); }
@java.lang.Override public com.google.bigtable.v2.CheckAndMutateRowResponse buildPartial() { com.google.bigtable.v2.CheckAndMutateRowResponse result = new com.google.bigtable.v2.CheckAndMutateRowResponse(this); result.predicateMatched_ = predicateMatched_; onBuilt(); return result; }
@java.lang.Override public com.google.bigtable.v2.CheckAndMutateRowResponse build() { com.google.bigtable.v2.CheckAndMutateRowResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
@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; }
io.grpc.protobuf.ProtoUtils.marshaller( com.google.bigtable.v2.CheckAndMutateRowResponse .getDefaultInstance())) .setSchemaDescriptor( new BigtableMethodDescriptorSupplier("CheckAndMutateRow"))
public static Builder newBuilder(com.google.bigtable.v2.CheckAndMutateRowResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
public com.google.bigtable.v2.CheckAndMutateRowResponse buildPartial() { com.google.bigtable.v2.CheckAndMutateRowResponse result = new com.google.bigtable.v2.CheckAndMutateRowResponse(this); result.predicateMatched_ = predicateMatched_; onBuilt(); return result; }
public com.google.bigtable.v2.CheckAndMutateRowResponse build() { com.google.bigtable.v2.CheckAndMutateRowResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } 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; }
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; }
@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; }
@Test public void responseCorrectlyTransformed() throws Exception { ApiFuture<Boolean> result = callable.futureCall( ConditionalRowMutation.create("my-table", "row-key") .then(Mutation.create().deleteRow())); inner.response.set(CheckAndMutateRowResponse.newBuilder().setPredicateMatched(true).build()); assertThat(result.get(1, TimeUnit.SECONDS)).isEqualTo(true); }