@java.lang.Override public com.google.cloud.scheduler.v1beta1.RetryConfig getDefaultInstanceForType() { return com.google.cloud.scheduler.v1beta1.RetryConfig.getDefaultInstance(); }
/** * * * <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(); }
/** * * * <pre> * The time limit for retrying a failed job, measured from time when an * execution was first attempted. If specified with * [retry_count][google.cloud.scheduler.v1beta1.RetryConfig.retry_count], the job will be retried until both limits are * reached. * The default value for max_retry_duration is zero, which means retry * duration is unlimited. * </pre> * * <code>.google.protobuf.Duration max_retry_duration = 2;</code> */ public com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder() { return getMaxRetryDuration(); }
@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; }
@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); }
/** * * * <pre> * The minimum amount of time to wait before retrying a job after * it fails. * The default value of this field is 5 seconds. * </pre> * * <code>.google.protobuf.Duration min_backoff_duration = 3;</code> */ public com.google.protobuf.DurationOrBuilder getMinBackoffDurationOrBuilder() { return getMinBackoffDuration(); }
@java.lang.Override public com.google.cloud.scheduler.v1beta1.RetryConfig buildPartial() { com.google.cloud.scheduler.v1beta1.RetryConfig result = new com.google.cloud.scheduler.v1beta1.RetryConfig(this); result.retryCount_ = retryCount_; if (maxRetryDurationBuilder_ == null) { result.maxRetryDuration_ = maxRetryDuration_; } else { result.maxRetryDuration_ = maxRetryDurationBuilder_.build(); } if (minBackoffDurationBuilder_ == null) { result.minBackoffDuration_ = minBackoffDuration_; } else { result.minBackoffDuration_ = minBackoffDurationBuilder_.build(); } if (maxBackoffDurationBuilder_ == null) { result.maxBackoffDuration_ = maxBackoffDuration_; } else { result.maxBackoffDuration_ = maxBackoffDurationBuilder_.build(); } result.maxDoublings_ = maxDoublings_; onBuilt(); return result; }
result = result && getRetryConfig().equals(other.getRetryConfig());
@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 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; }
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; }
/** * * * <pre> * Settings that determine the retry behavior. * </pre> * * <code>.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;</code> */ public com.google.cloud.scheduler.v1beta1.RetryConfig getRetryConfig() { return retryConfig_ == null ? com.google.cloud.scheduler.v1beta1.RetryConfig.getDefaultInstance() : retryConfig_; } /**
/** * * * <pre> * Settings that determine the retry behavior. * </pre> * * <code>.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;</code> */ public com.google.cloud.scheduler.v1beta1.RetryConfig getRetryConfig() { if (retryConfigBuilder_ == null) { return retryConfig_ == null ? com.google.cloud.scheduler.v1beta1.RetryConfig.getDefaultInstance() : retryConfig_; } else { return retryConfigBuilder_.getMessage(); } } /**
/** * * * <pre> * Settings that determine the retry behavior. * </pre> * * <code>.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;</code> */ public com.google.cloud.scheduler.v1beta1.RetryConfigOrBuilder getRetryConfigOrBuilder() { if (retryConfigBuilder_ != null) { return retryConfigBuilder_.getMessageOrBuilder(); } else { return retryConfig_ == null ? com.google.cloud.scheduler.v1beta1.RetryConfig.getDefaultInstance() : retryConfig_; } } /**