/** * * * <pre> * The Cloud Spanner timestamp at which the transaction committed. * </pre> * * <code>.google.protobuf.Timestamp commit_timestamp = 1;</code> */ public com.google.protobuf.TimestampOrBuilder getCommitTimestampOrBuilder() { return getCommitTimestamp(); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (commitTimestamp_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommitTimestamp()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (commitTimestamp_ != null) { output.writeMessage(1, getCommitTimestamp()); } unknownFields.writeTo(output); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.spanner.v1.CommitResponse)) { return super.equals(obj); } com.google.spanner.v1.CommitResponse other = (com.google.spanner.v1.CommitResponse) obj; boolean result = true; result = result && (hasCommitTimestamp() == other.hasCommitTimestamp()); if (hasCommitTimestamp()) { result = result && getCommitTimestamp().equals(other.getCommitTimestamp()); } 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(); if (hasCommitTimestamp()) { hash = (37 * hash) + COMMIT_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getCommitTimestamp().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.spanner.v1.CommitResponse other) { if (other == com.google.spanner.v1.CommitResponse.getDefaultInstance()) return this; if (other.hasCommitTimestamp()) { mergeCommitTimestamp(other.getCommitTimestamp()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
ErrorCode.INTERNAL, "Missing commitTimestamp:\n" + session.getName()); commitTimestamp = Timestamp.fromProto(commitResponse.getCommitTimestamp()); opSpan.end(); } catch (RuntimeException e) {
Timestamp t = Timestamp.fromProto(response.getCommitTimestamp()); span.end(); return t;
ErrorCode.INTERNAL, "Missing commitTimestamp:\n" + session.getName()); commitTimestamp = Timestamp.fromProto(commitResponse.getCommitTimestamp()); opSpan.end(); } catch (RuntimeException e) {
Timestamp t = Timestamp.fromProto(response.getCommitTimestamp()); span.end(); return t;