@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStreamInfo()) { hash = (37 * hash) + STREAMINFO_FIELD_NUMBER; hash = (53 * hash) + getStreamInfo().hashCode(); } hash = (37 * hash) + LEASE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLease()); hash = (37 * hash) + SCALEGRACEPERIOD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getScaleGracePeriod()); 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 io.pravega.controller.stream.api.grpc.v1.Controller.CreateTxnRequest)) { return super.equals(obj); } io.pravega.controller.stream.api.grpc.v1.Controller.CreateTxnRequest other = (io.pravega.controller.stream.api.grpc.v1.Controller.CreateTxnRequest) obj; boolean result = true; result = result && (hasStreamInfo() == other.hasStreamInfo()); if (hasStreamInfo()) { result = result && getStreamInfo() .equals(other.getStreamInfo()); } result = result && (getLease() == other.getLease()); result = result && (getScaleGracePeriod() == other.getScaleGracePeriod()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(io.pravega.controller.stream.api.grpc.v1.Controller.CreateTxnRequest other) { if (other == io.pravega.controller.stream.api.grpc.v1.Controller.CreateTxnRequest.getDefaultInstance()) return this; if (other.hasStreamInfo()) { mergeStreamInfo(other.getStreamInfo()); } if (other.getLease() != 0L) { setLease(other.getLease()); } if (other.getScaleGracePeriod() != 0L) { setScaleGracePeriod(other.getScaleGracePeriod()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }