@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RETRY_COUNT_FIELD_NUMBER; hash = (53 * hash) + getRetryCount(); if (hasMaxRetryDuration()) { hash = (37 * hash) + MAX_RETRY_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMaxRetryDuration().hashCode(); } if (hasMinBackoffDuration()) { hash = (37 * hash) + MIN_BACKOFF_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMinBackoffDuration().hashCode(); } if (hasMaxBackoffDuration()) { hash = (37 * hash) + MAX_BACKOFF_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMaxBackoffDuration().hashCode(); } hash = (37 * hash) + MAX_DOUBLINGS_FIELD_NUMBER; hash = (53 * hash) + getMaxDoublings(); 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.scheduler.v1beta1.RetryConfig)) { return super.equals(obj); } com.google.cloud.scheduler.v1beta1.RetryConfig other = (com.google.cloud.scheduler.v1beta1.RetryConfig) obj; boolean result = true; result = result && (getRetryCount() == other.getRetryCount()); result = result && (hasMaxRetryDuration() == other.hasMaxRetryDuration()); if (hasMaxRetryDuration()) { result = result && getMaxRetryDuration().equals(other.getMaxRetryDuration()); } result = result && (hasMinBackoffDuration() == other.hasMinBackoffDuration()); if (hasMinBackoffDuration()) { result = result && getMinBackoffDuration().equals(other.getMinBackoffDuration()); } result = result && (hasMaxBackoffDuration() == other.hasMaxBackoffDuration()); if (hasMaxBackoffDuration()) { result = result && getMaxBackoffDuration().equals(other.getMaxBackoffDuration()); } result = result && (getMaxDoublings() == other.getMaxDoublings()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.cloud.scheduler.v1beta1.RetryConfig other) { if (other == com.google.cloud.scheduler.v1beta1.RetryConfig.getDefaultInstance()) return this; if (other.getRetryCount() != 0) { setRetryCount(other.getRetryCount()); } if (other.hasMaxRetryDuration()) { mergeMaxRetryDuration(other.getMaxRetryDuration()); } if (other.hasMinBackoffDuration()) { mergeMinBackoffDuration(other.getMinBackoffDuration()); } if (other.hasMaxBackoffDuration()) { mergeMaxBackoffDuration(other.getMaxBackoffDuration()); } if (other.getMaxDoublings() != 0) { setMaxDoublings(other.getMaxDoublings()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }