Package io.temporal.api.schedule.v1
Class ScheduleState.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
-
- io.temporal.api.schedule.v1.ScheduleState.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ScheduleStateOrBuilder
,java.lang.Cloneable
- Enclosing class:
- ScheduleState
public static final class ScheduleState.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder> implements ScheduleStateOrBuilder
Protobuf typetemporal.api.schedule.v1.ScheduleState
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScheduleState.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ScheduleState
build()
ScheduleState
buildPartial()
ScheduleState.Builder
clear()
ScheduleState.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ScheduleState.Builder
clearLimitedActions()
If limited_actions is true, decrement remaining_actions after each action, and do not take any more scheduled actions if remaining_actions is zero.ScheduleState.Builder
clearNotes()
Informative human-readable message with contextual notes, e.g.ScheduleState.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ScheduleState.Builder
clearPaused()
If true, do not take any actions based on the schedule spec.ScheduleState.Builder
clearRemainingActions()
int64 remaining_actions = 4;
ScheduleState.Builder
clone()
ScheduleState
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getLimitedActions()
If limited_actions is true, decrement remaining_actions after each action, and do not take any more scheduled actions if remaining_actions is zero.java.lang.String
getNotes()
Informative human-readable message with contextual notes, e.g.com.google.protobuf.ByteString
getNotesBytes()
Informative human-readable message with contextual notes, e.g.boolean
getPaused()
If true, do not take any actions based on the schedule spec.long
getRemainingActions()
int64 remaining_actions = 4;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ScheduleState.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ScheduleState.Builder
mergeFrom(com.google.protobuf.Message other)
ScheduleState.Builder
mergeFrom(ScheduleState other)
ScheduleState.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ScheduleState.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ScheduleState.Builder
setLimitedActions(boolean value)
If limited_actions is true, decrement remaining_actions after each action, and do not take any more scheduled actions if remaining_actions is zero.ScheduleState.Builder
setNotes(java.lang.String value)
Informative human-readable message with contextual notes, e.g.ScheduleState.Builder
setNotesBytes(com.google.protobuf.ByteString value)
Informative human-readable message with contextual notes, e.g.ScheduleState.Builder
setPaused(boolean value)
If true, do not take any actions based on the schedule spec.ScheduleState.Builder
setRemainingActions(long value)
int64 remaining_actions = 4;
ScheduleState.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
ScheduleState.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
-
clear
public ScheduleState.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
-
getDefaultInstanceForType
public ScheduleState getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ScheduleState build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ScheduleState buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ScheduleState.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
-
setField
public ScheduleState.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
-
clearField
public ScheduleState.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
-
clearOneof
public ScheduleState.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
-
setRepeatedField
public ScheduleState.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
-
addRepeatedField
public ScheduleState.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
-
mergeFrom
public ScheduleState.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ScheduleState.Builder>
-
mergeFrom
public ScheduleState.Builder mergeFrom(ScheduleState other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
-
mergeFrom
public ScheduleState.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ScheduleState.Builder>
- Throws:
java.io.IOException
-
getNotes
public java.lang.String getNotes()
Informative human-readable message with contextual notes, e.g. the reason a schedule is paused. The system may overwrite this message on certain conditions, e.g. when pause-on-failure happens.
string notes = 1;
- Specified by:
getNotes
in interfaceScheduleStateOrBuilder
- Returns:
- The notes.
-
getNotesBytes
public com.google.protobuf.ByteString getNotesBytes()
Informative human-readable message with contextual notes, e.g. the reason a schedule is paused. The system may overwrite this message on certain conditions, e.g. when pause-on-failure happens.
string notes = 1;
- Specified by:
getNotesBytes
in interfaceScheduleStateOrBuilder
- Returns:
- The bytes for notes.
-
setNotes
public ScheduleState.Builder setNotes(java.lang.String value)
Informative human-readable message with contextual notes, e.g. the reason a schedule is paused. The system may overwrite this message on certain conditions, e.g. when pause-on-failure happens.
string notes = 1;
- Parameters:
value
- The notes to set.- Returns:
- This builder for chaining.
-
clearNotes
public ScheduleState.Builder clearNotes()
Informative human-readable message with contextual notes, e.g. the reason a schedule is paused. The system may overwrite this message on certain conditions, e.g. when pause-on-failure happens.
string notes = 1;
- Returns:
- This builder for chaining.
-
setNotesBytes
public ScheduleState.Builder setNotesBytes(com.google.protobuf.ByteString value)
Informative human-readable message with contextual notes, e.g. the reason a schedule is paused. The system may overwrite this message on certain conditions, e.g. when pause-on-failure happens.
string notes = 1;
- Parameters:
value
- The bytes for notes to set.- Returns:
- This builder for chaining.
-
getPaused
public boolean getPaused()
If true, do not take any actions based on the schedule spec.
bool paused = 2;
- Specified by:
getPaused
in interfaceScheduleStateOrBuilder
- Returns:
- The paused.
-
setPaused
public ScheduleState.Builder setPaused(boolean value)
If true, do not take any actions based on the schedule spec.
bool paused = 2;
- Parameters:
value
- The paused to set.- Returns:
- This builder for chaining.
-
clearPaused
public ScheduleState.Builder clearPaused()
If true, do not take any actions based on the schedule spec.
bool paused = 2;
- Returns:
- This builder for chaining.
-
getLimitedActions
public boolean getLimitedActions()
If limited_actions is true, decrement remaining_actions after each action, and do not take any more scheduled actions if remaining_actions is zero. Actions may still be taken by explicit request (i.e. trigger immediately or backfill). Skipped actions (due to overlap policy) do not count against remaining actions.
bool limited_actions = 3;
- Specified by:
getLimitedActions
in interfaceScheduleStateOrBuilder
- Returns:
- The limitedActions.
-
setLimitedActions
public ScheduleState.Builder setLimitedActions(boolean value)
If limited_actions is true, decrement remaining_actions after each action, and do not take any more scheduled actions if remaining_actions is zero. Actions may still be taken by explicit request (i.e. trigger immediately or backfill). Skipped actions (due to overlap policy) do not count against remaining actions.
bool limited_actions = 3;
- Parameters:
value
- The limitedActions to set.- Returns:
- This builder for chaining.
-
clearLimitedActions
public ScheduleState.Builder clearLimitedActions()
If limited_actions is true, decrement remaining_actions after each action, and do not take any more scheduled actions if remaining_actions is zero. Actions may still be taken by explicit request (i.e. trigger immediately or backfill). Skipped actions (due to overlap policy) do not count against remaining actions.
bool limited_actions = 3;
- Returns:
- This builder for chaining.
-
getRemainingActions
public long getRemainingActions()
int64 remaining_actions = 4;
- Specified by:
getRemainingActions
in interfaceScheduleStateOrBuilder
- Returns:
- The remainingActions.
-
setRemainingActions
public ScheduleState.Builder setRemainingActions(long value)
int64 remaining_actions = 4;
- Parameters:
value
- The remainingActions to set.- Returns:
- This builder for chaining.
-
clearRemainingActions
public ScheduleState.Builder clearRemainingActions()
int64 remaining_actions = 4;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ScheduleState.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
-
mergeUnknownFields
public final ScheduleState.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
-
-