io.temporal.api.schedule.v1.SchedulePolicies Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: temporal/api/schedule/v1/message.proto
package io.temporal.api.schedule.v1;
/**
* Protobuf type {@code temporal.api.schedule.v1.SchedulePolicies}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:SchedulePolicies.java.pb.meta")
public final class SchedulePolicies extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.schedule.v1.SchedulePolicies)
SchedulePoliciesOrBuilder {
private static final long serialVersionUID = 0L;
// Use SchedulePolicies.newBuilder() to construct.
private SchedulePolicies(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SchedulePolicies() {
overlapPolicy_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SchedulePolicies();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SchedulePolicies(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
overlapPolicy_ = rawValue;
break;
}
case 18: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (catchupWindow_ != null) {
subBuilder = catchupWindow_.toBuilder();
}
catchupWindow_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(catchupWindow_);
catchupWindow_ = subBuilder.buildPartial();
}
break;
}
case 24: {
pauseOnFailure_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_SchedulePolicies_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_SchedulePolicies_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.schedule.v1.SchedulePolicies.class, io.temporal.api.schedule.v1.SchedulePolicies.Builder.class);
}
public static final int OVERLAP_POLICY_FIELD_NUMBER = 1;
private int overlapPolicy_;
/**
*
* Policy for overlaps.
* Note that this can be changed after a schedule has taken some actions,
* and some changes might produce unintuitive results. In general, the later
* policy overrides the earlier policy.
*
*
* .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;
* @return The enum numeric value on the wire for overlapPolicy.
*/
public int getOverlapPolicyValue() {
return overlapPolicy_;
}
/**
*
* Policy for overlaps.
* Note that this can be changed after a schedule has taken some actions,
* and some changes might produce unintuitive results. In general, the later
* policy overrides the earlier policy.
*
*
* .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;
* @return The overlapPolicy.
*/
public io.temporal.api.enums.v1.ScheduleOverlapPolicy getOverlapPolicy() {
@SuppressWarnings("deprecation")
io.temporal.api.enums.v1.ScheduleOverlapPolicy result = io.temporal.api.enums.v1.ScheduleOverlapPolicy.valueOf(overlapPolicy_);
return result == null ? io.temporal.api.enums.v1.ScheduleOverlapPolicy.UNRECOGNIZED : result;
}
public static final int CATCHUP_WINDOW_FIELD_NUMBER = 2;
private com.google.protobuf.Duration catchupWindow_;
/**
*
* Policy for catchups:
* If the Temporal server misses an action due to one or more components
* being down, and comes back up, the action will be run if the scheduled
* time is within this window from the current time.
* This value defaults to 60 seconds, and can't be less than 10 seconds.
*
*
* .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
* @return Whether the catchupWindow field is set.
*/
public boolean hasCatchupWindow() {
return catchupWindow_ != null;
}
/**
*
* Policy for catchups:
* If the Temporal server misses an action due to one or more components
* being down, and comes back up, the action will be run if the scheduled
* time is within this window from the current time.
* This value defaults to 60 seconds, and can't be less than 10 seconds.
*
*
* .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
* @return The catchupWindow.
*/
public com.google.protobuf.Duration getCatchupWindow() {
return catchupWindow_ == null ? com.google.protobuf.Duration.getDefaultInstance() : catchupWindow_;
}
/**
*
* Policy for catchups:
* If the Temporal server misses an action due to one or more components
* being down, and comes back up, the action will be run if the scheduled
* time is within this window from the current time.
* This value defaults to 60 seconds, and can't be less than 10 seconds.
*
*
* .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.DurationOrBuilder getCatchupWindowOrBuilder() {
return getCatchupWindow();
}
public static final int PAUSE_ON_FAILURE_FIELD_NUMBER = 3;
private boolean pauseOnFailure_;
/**
*
* If true, and a workflow run fails or times out, turn on "paused".
* This applies after retry policies: the full chain of retries must fail to
* trigger a pause here.
*
*
* bool pause_on_failure = 3;
* @return The pauseOnFailure.
*/
public boolean getPauseOnFailure() {
return pauseOnFailure_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (overlapPolicy_ != io.temporal.api.enums.v1.ScheduleOverlapPolicy.SCHEDULE_OVERLAP_POLICY_UNSPECIFIED.getNumber()) {
output.writeEnum(1, overlapPolicy_);
}
if (catchupWindow_ != null) {
output.writeMessage(2, getCatchupWindow());
}
if (pauseOnFailure_ != false) {
output.writeBool(3, pauseOnFailure_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (overlapPolicy_ != io.temporal.api.enums.v1.ScheduleOverlapPolicy.SCHEDULE_OVERLAP_POLICY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, overlapPolicy_);
}
if (catchupWindow_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCatchupWindow());
}
if (pauseOnFailure_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, pauseOnFailure_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.temporal.api.schedule.v1.SchedulePolicies)) {
return super.equals(obj);
}
io.temporal.api.schedule.v1.SchedulePolicies other = (io.temporal.api.schedule.v1.SchedulePolicies) obj;
if (overlapPolicy_ != other.overlapPolicy_) return false;
if (hasCatchupWindow() != other.hasCatchupWindow()) return false;
if (hasCatchupWindow()) {
if (!getCatchupWindow()
.equals(other.getCatchupWindow())) return false;
}
if (getPauseOnFailure()
!= other.getPauseOnFailure()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + OVERLAP_POLICY_FIELD_NUMBER;
hash = (53 * hash) + overlapPolicy_;
if (hasCatchupWindow()) {
hash = (37 * hash) + CATCHUP_WINDOW_FIELD_NUMBER;
hash = (53 * hash) + getCatchupWindow().hashCode();
}
hash = (37 * hash) + PAUSE_ON_FAILURE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPauseOnFailure());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.schedule.v1.SchedulePolicies parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.schedule.v1.SchedulePolicies parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.schedule.v1.SchedulePolicies parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.schedule.v1.SchedulePolicies parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.schedule.v1.SchedulePolicies parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.schedule.v1.SchedulePolicies parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.schedule.v1.SchedulePolicies parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.schedule.v1.SchedulePolicies parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.temporal.api.schedule.v1.SchedulePolicies parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.schedule.v1.SchedulePolicies parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.temporal.api.schedule.v1.SchedulePolicies parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.schedule.v1.SchedulePolicies parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.temporal.api.schedule.v1.SchedulePolicies prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code temporal.api.schedule.v1.SchedulePolicies}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.schedule.v1.SchedulePolicies)
io.temporal.api.schedule.v1.SchedulePoliciesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_SchedulePolicies_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_SchedulePolicies_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.schedule.v1.SchedulePolicies.class, io.temporal.api.schedule.v1.SchedulePolicies.Builder.class);
}
// Construct using io.temporal.api.schedule.v1.SchedulePolicies.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
overlapPolicy_ = 0;
if (catchupWindowBuilder_ == null) {
catchupWindow_ = null;
} else {
catchupWindow_ = null;
catchupWindowBuilder_ = null;
}
pauseOnFailure_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_SchedulePolicies_descriptor;
}
@java.lang.Override
public io.temporal.api.schedule.v1.SchedulePolicies getDefaultInstanceForType() {
return io.temporal.api.schedule.v1.SchedulePolicies.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.schedule.v1.SchedulePolicies build() {
io.temporal.api.schedule.v1.SchedulePolicies result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.schedule.v1.SchedulePolicies buildPartial() {
io.temporal.api.schedule.v1.SchedulePolicies result = new io.temporal.api.schedule.v1.SchedulePolicies(this);
result.overlapPolicy_ = overlapPolicy_;
if (catchupWindowBuilder_ == null) {
result.catchupWindow_ = catchupWindow_;
} else {
result.catchupWindow_ = catchupWindowBuilder_.build();
}
result.pauseOnFailure_ = pauseOnFailure_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.temporal.api.schedule.v1.SchedulePolicies) {
return mergeFrom((io.temporal.api.schedule.v1.SchedulePolicies)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.schedule.v1.SchedulePolicies other) {
if (other == io.temporal.api.schedule.v1.SchedulePolicies.getDefaultInstance()) return this;
if (other.overlapPolicy_ != 0) {
setOverlapPolicyValue(other.getOverlapPolicyValue());
}
if (other.hasCatchupWindow()) {
mergeCatchupWindow(other.getCatchupWindow());
}
if (other.getPauseOnFailure() != false) {
setPauseOnFailure(other.getPauseOnFailure());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.temporal.api.schedule.v1.SchedulePolicies parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.schedule.v1.SchedulePolicies) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int overlapPolicy_ = 0;
/**
*
* Policy for overlaps.
* Note that this can be changed after a schedule has taken some actions,
* and some changes might produce unintuitive results. In general, the later
* policy overrides the earlier policy.
*
*
* .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;
* @return The enum numeric value on the wire for overlapPolicy.
*/
public int getOverlapPolicyValue() {
return overlapPolicy_;
}
/**
*
* Policy for overlaps.
* Note that this can be changed after a schedule has taken some actions,
* and some changes might produce unintuitive results. In general, the later
* policy overrides the earlier policy.
*
*
* .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;
* @param value The enum numeric value on the wire for overlapPolicy to set.
* @return This builder for chaining.
*/
public Builder setOverlapPolicyValue(int value) {
overlapPolicy_ = value;
onChanged();
return this;
}
/**
*
* Policy for overlaps.
* Note that this can be changed after a schedule has taken some actions,
* and some changes might produce unintuitive results. In general, the later
* policy overrides the earlier policy.
*
*
* .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;
* @return The overlapPolicy.
*/
public io.temporal.api.enums.v1.ScheduleOverlapPolicy getOverlapPolicy() {
@SuppressWarnings("deprecation")
io.temporal.api.enums.v1.ScheduleOverlapPolicy result = io.temporal.api.enums.v1.ScheduleOverlapPolicy.valueOf(overlapPolicy_);
return result == null ? io.temporal.api.enums.v1.ScheduleOverlapPolicy.UNRECOGNIZED : result;
}
/**
*
* Policy for overlaps.
* Note that this can be changed after a schedule has taken some actions,
* and some changes might produce unintuitive results. In general, the later
* policy overrides the earlier policy.
*
*
* .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;
* @param value The overlapPolicy to set.
* @return This builder for chaining.
*/
public Builder setOverlapPolicy(io.temporal.api.enums.v1.ScheduleOverlapPolicy value) {
if (value == null) {
throw new NullPointerException();
}
overlapPolicy_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Policy for overlaps.
* Note that this can be changed after a schedule has taken some actions,
* and some changes might produce unintuitive results. In general, the later
* policy overrides the earlier policy.
*
*
* .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;
* @return This builder for chaining.
*/
public Builder clearOverlapPolicy() {
overlapPolicy_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Duration catchupWindow_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> catchupWindowBuilder_;
/**
*
* Policy for catchups:
* If the Temporal server misses an action due to one or more components
* being down, and comes back up, the action will be run if the scheduled
* time is within this window from the current time.
* This value defaults to 60 seconds, and can't be less than 10 seconds.
*
*
* .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
* @return Whether the catchupWindow field is set.
*/
public boolean hasCatchupWindow() {
return catchupWindowBuilder_ != null || catchupWindow_ != null;
}
/**
*
* Policy for catchups:
* If the Temporal server misses an action due to one or more components
* being down, and comes back up, the action will be run if the scheduled
* time is within this window from the current time.
* This value defaults to 60 seconds, and can't be less than 10 seconds.
*
*
* .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
* @return The catchupWindow.
*/
public com.google.protobuf.Duration getCatchupWindow() {
if (catchupWindowBuilder_ == null) {
return catchupWindow_ == null ? com.google.protobuf.Duration.getDefaultInstance() : catchupWindow_;
} else {
return catchupWindowBuilder_.getMessage();
}
}
/**
*
* Policy for catchups:
* If the Temporal server misses an action due to one or more components
* being down, and comes back up, the action will be run if the scheduled
* time is within this window from the current time.
* This value defaults to 60 seconds, and can't be less than 10 seconds.
*
*
* .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
*/
public Builder setCatchupWindow(com.google.protobuf.Duration value) {
if (catchupWindowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
catchupWindow_ = value;
onChanged();
} else {
catchupWindowBuilder_.setMessage(value);
}
return this;
}
/**
*
* Policy for catchups:
* If the Temporal server misses an action due to one or more components
* being down, and comes back up, the action will be run if the scheduled
* time is within this window from the current time.
* This value defaults to 60 seconds, and can't be less than 10 seconds.
*
*
* .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
*/
public Builder setCatchupWindow(
com.google.protobuf.Duration.Builder builderForValue) {
if (catchupWindowBuilder_ == null) {
catchupWindow_ = builderForValue.build();
onChanged();
} else {
catchupWindowBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Policy for catchups:
* If the Temporal server misses an action due to one or more components
* being down, and comes back up, the action will be run if the scheduled
* time is within this window from the current time.
* This value defaults to 60 seconds, and can't be less than 10 seconds.
*
*
* .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
*/
public Builder mergeCatchupWindow(com.google.protobuf.Duration value) {
if (catchupWindowBuilder_ == null) {
if (catchupWindow_ != null) {
catchupWindow_ =
com.google.protobuf.Duration.newBuilder(catchupWindow_).mergeFrom(value).buildPartial();
} else {
catchupWindow_ = value;
}
onChanged();
} else {
catchupWindowBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Policy for catchups:
* If the Temporal server misses an action due to one or more components
* being down, and comes back up, the action will be run if the scheduled
* time is within this window from the current time.
* This value defaults to 60 seconds, and can't be less than 10 seconds.
*
*
* .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
*/
public Builder clearCatchupWindow() {
if (catchupWindowBuilder_ == null) {
catchupWindow_ = null;
onChanged();
} else {
catchupWindow_ = null;
catchupWindowBuilder_ = null;
}
return this;
}
/**
*
* Policy for catchups:
* If the Temporal server misses an action due to one or more components
* being down, and comes back up, the action will be run if the scheduled
* time is within this window from the current time.
* This value defaults to 60 seconds, and can't be less than 10 seconds.
*
*
* .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.Duration.Builder getCatchupWindowBuilder() {
onChanged();
return getCatchupWindowFieldBuilder().getBuilder();
}
/**
*
* Policy for catchups:
* If the Temporal server misses an action due to one or more components
* being down, and comes back up, the action will be run if the scheduled
* time is within this window from the current time.
* This value defaults to 60 seconds, and can't be less than 10 seconds.
*
*
* .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
*/
public com.google.protobuf.DurationOrBuilder getCatchupWindowOrBuilder() {
if (catchupWindowBuilder_ != null) {
return catchupWindowBuilder_.getMessageOrBuilder();
} else {
return catchupWindow_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : catchupWindow_;
}
}
/**
*
* Policy for catchups:
* If the Temporal server misses an action due to one or more components
* being down, and comes back up, the action will be run if the scheduled
* time is within this window from the current time.
* This value defaults to 60 seconds, and can't be less than 10 seconds.
*
*
* .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getCatchupWindowFieldBuilder() {
if (catchupWindowBuilder_ == null) {
catchupWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getCatchupWindow(),
getParentForChildren(),
isClean());
catchupWindow_ = null;
}
return catchupWindowBuilder_;
}
private boolean pauseOnFailure_ ;
/**
*
* If true, and a workflow run fails or times out, turn on "paused".
* This applies after retry policies: the full chain of retries must fail to
* trigger a pause here.
*
*
* bool pause_on_failure = 3;
* @return The pauseOnFailure.
*/
public boolean getPauseOnFailure() {
return pauseOnFailure_;
}
/**
*
* If true, and a workflow run fails or times out, turn on "paused".
* This applies after retry policies: the full chain of retries must fail to
* trigger a pause here.
*
*
* bool pause_on_failure = 3;
* @param value The pauseOnFailure to set.
* @return This builder for chaining.
*/
public Builder setPauseOnFailure(boolean value) {
pauseOnFailure_ = value;
onChanged();
return this;
}
/**
*
* If true, and a workflow run fails or times out, turn on "paused".
* This applies after retry policies: the full chain of retries must fail to
* trigger a pause here.
*
*
* bool pause_on_failure = 3;
* @return This builder for chaining.
*/
public Builder clearPauseOnFailure() {
pauseOnFailure_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:temporal.api.schedule.v1.SchedulePolicies)
}
// @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.SchedulePolicies)
private static final io.temporal.api.schedule.v1.SchedulePolicies DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.schedule.v1.SchedulePolicies();
}
public static io.temporal.api.schedule.v1.SchedulePolicies getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SchedulePolicies parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SchedulePolicies(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.temporal.api.schedule.v1.SchedulePolicies getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy