/** * * * <pre> * The maximum amount of time to wait before retrying a job after * it fails. * The default value of this field is 1 hour. * </pre> * * <code>.google.protobuf.Duration max_backoff_duration = 4;</code> */ public com.google.protobuf.DurationOrBuilder getMaxBackoffDurationOrBuilder() { return getMaxBackoffDuration(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (retryCount_ != 0) { output.writeInt32(1, retryCount_); } if (maxRetryDuration_ != null) { output.writeMessage(2, getMaxRetryDuration()); } if (minBackoffDuration_ != null) { output.writeMessage(3, getMinBackoffDuration()); } if (maxBackoffDuration_ != null) { output.writeMessage(4, getMaxBackoffDuration()); } if (maxDoublings_ != 0) { output.writeInt32(5, maxDoublings_); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (retryCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, retryCount_); } if (maxRetryDuration_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxRetryDuration()); } if (minBackoffDuration_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinBackoffDuration()); } if (maxBackoffDuration_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMaxBackoffDuration()); } if (maxDoublings_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxDoublings_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@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; }