/** * * * <pre> * API version. * </pre> * * <code>string api_version = 7;</code> */ public Builder clearApiVersion() { apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } if (hasEndTime()) { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); hash = (37 * hash) + VERB_FIELD_NUMBER; hash = (53 * hash) + getVerb().hashCode(); hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); 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 com.google.cloud.redis.v1.OperationMetadata)) { return super.equals(obj); } com.google.cloud.redis.v1.OperationMetadata other = (com.google.cloud.redis.v1.OperationMetadata) obj; boolean result = true; result = result && (hasCreateTime() == other.hasCreateTime()); if (hasCreateTime()) { result = result && getCreateTime().equals(other.getCreateTime()); } result = result && (hasEndTime() == other.hasEndTime()); if (hasEndTime()) { result = result && getEndTime().equals(other.getEndTime()); } result = result && getTarget().equals(other.getTarget()); result = result && getVerb().equals(other.getVerb()); result = result && getStatusDetail().equals(other.getStatusDetail()); result = result && (getCancelRequested() == other.getCancelRequested()); result = result && getApiVersion().equals(other.getApiVersion()); result = result && unknownFields.equals(other.unknownFields); return result; }
setCancelRequested(other.getCancelRequested()); if (!other.getApiVersion().isEmpty()) { apiVersion_ = other.apiVersion_; onChanged();