Package io.temporal.api.history.v1
Class WorkflowTaskStartedEventAttributes.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskStartedEventAttributes.Builder>
-
- io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,WorkflowTaskStartedEventAttributesOrBuilder
,java.lang.Cloneable
- Enclosing class:
- WorkflowTaskStartedEventAttributes
public static final class WorkflowTaskStartedEventAttributes.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskStartedEventAttributes.Builder> implements WorkflowTaskStartedEventAttributesOrBuilder
Protobuf typetemporal.api.history.v1.WorkflowTaskStartedEventAttributes
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowTaskStartedEventAttributes.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
WorkflowTaskStartedEventAttributes
build()
WorkflowTaskStartedEventAttributes
buildPartial()
WorkflowTaskStartedEventAttributes.Builder
clear()
WorkflowTaskStartedEventAttributes.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
WorkflowTaskStartedEventAttributes.Builder
clearHistorySizeBytes()
Total history size in bytes, which the workflow might use to decide when to continue-as-new regardless of the suggestion.WorkflowTaskStartedEventAttributes.Builder
clearIdentity()
Identity of the worker who picked up this taskWorkflowTaskStartedEventAttributes.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
WorkflowTaskStartedEventAttributes.Builder
clearRequestId()
TODO: ? Appears unused?WorkflowTaskStartedEventAttributes.Builder
clearScheduledEventId()
The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds toWorkflowTaskStartedEventAttributes.Builder
clearSuggestContinueAsNew()
True if this workflow should continue-as-new soon because its history size (in either event count or bytes) is getting large.WorkflowTaskStartedEventAttributes.Builder
clone()
WorkflowTaskStartedEventAttributes
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getHistorySizeBytes()
Total history size in bytes, which the workflow might use to decide when to continue-as-new regardless of the suggestion.java.lang.String
getIdentity()
Identity of the worker who picked up this taskcom.google.protobuf.ByteString
getIdentityBytes()
Identity of the worker who picked up this taskjava.lang.String
getRequestId()
TODO: ? Appears unused?com.google.protobuf.ByteString
getRequestIdBytes()
TODO: ? Appears unused?long
getScheduledEventId()
The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds toboolean
getSuggestContinueAsNew()
True if this workflow should continue-as-new soon because its history size (in either event count or bytes) is getting large.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
WorkflowTaskStartedEventAttributes.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
WorkflowTaskStartedEventAttributes.Builder
mergeFrom(com.google.protobuf.Message other)
WorkflowTaskStartedEventAttributes.Builder
mergeFrom(WorkflowTaskStartedEventAttributes other)
WorkflowTaskStartedEventAttributes.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
WorkflowTaskStartedEventAttributes.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
WorkflowTaskStartedEventAttributes.Builder
setHistorySizeBytes(long value)
Total history size in bytes, which the workflow might use to decide when to continue-as-new regardless of the suggestion.WorkflowTaskStartedEventAttributes.Builder
setIdentity(java.lang.String value)
Identity of the worker who picked up this taskWorkflowTaskStartedEventAttributes.Builder
setIdentityBytes(com.google.protobuf.ByteString value)
Identity of the worker who picked up this taskWorkflowTaskStartedEventAttributes.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
WorkflowTaskStartedEventAttributes.Builder
setRequestId(java.lang.String value)
TODO: ? Appears unused?WorkflowTaskStartedEventAttributes.Builder
setRequestIdBytes(com.google.protobuf.ByteString value)
TODO: ? Appears unused?WorkflowTaskStartedEventAttributes.Builder
setScheduledEventId(long value)
The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds toWorkflowTaskStartedEventAttributes.Builder
setSuggestContinueAsNew(boolean value)
True if this workflow should continue-as-new soon because its history size (in either event count or bytes) is getting large.WorkflowTaskStartedEventAttributes.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<WorkflowTaskStartedEventAttributes.Builder>
-
clear
public WorkflowTaskStartedEventAttributes.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<WorkflowTaskStartedEventAttributes.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<WorkflowTaskStartedEventAttributes.Builder>
-
getDefaultInstanceForType
public WorkflowTaskStartedEventAttributes getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public WorkflowTaskStartedEventAttributes build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public WorkflowTaskStartedEventAttributes buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public WorkflowTaskStartedEventAttributes.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<WorkflowTaskStartedEventAttributes.Builder>
-
setField
public WorkflowTaskStartedEventAttributes.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<WorkflowTaskStartedEventAttributes.Builder>
-
clearField
public WorkflowTaskStartedEventAttributes.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<WorkflowTaskStartedEventAttributes.Builder>
-
clearOneof
public WorkflowTaskStartedEventAttributes.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<WorkflowTaskStartedEventAttributes.Builder>
-
setRepeatedField
public WorkflowTaskStartedEventAttributes.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<WorkflowTaskStartedEventAttributes.Builder>
-
addRepeatedField
public WorkflowTaskStartedEventAttributes.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<WorkflowTaskStartedEventAttributes.Builder>
-
mergeFrom
public WorkflowTaskStartedEventAttributes.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<WorkflowTaskStartedEventAttributes.Builder>
-
mergeFrom
public WorkflowTaskStartedEventAttributes.Builder mergeFrom(WorkflowTaskStartedEventAttributes other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskStartedEventAttributes.Builder>
-
mergeFrom
public WorkflowTaskStartedEventAttributes.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<WorkflowTaskStartedEventAttributes.Builder>
- Throws:
java.io.IOException
-
getScheduledEventId
public long getScheduledEventId()
The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
int64 scheduled_event_id = 1;
- Specified by:
getScheduledEventId
in interfaceWorkflowTaskStartedEventAttributesOrBuilder
- Returns:
- The scheduledEventId.
-
setScheduledEventId
public WorkflowTaskStartedEventAttributes.Builder setScheduledEventId(long value)
The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
int64 scheduled_event_id = 1;
- Parameters:
value
- The scheduledEventId to set.- Returns:
- This builder for chaining.
-
clearScheduledEventId
public WorkflowTaskStartedEventAttributes.Builder clearScheduledEventId()
The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
int64 scheduled_event_id = 1;
- Returns:
- This builder for chaining.
-
getIdentity
public java.lang.String getIdentity()
Identity of the worker who picked up this task
string identity = 2;
- Specified by:
getIdentity
in interfaceWorkflowTaskStartedEventAttributesOrBuilder
- Returns:
- The identity.
-
getIdentityBytes
public com.google.protobuf.ByteString getIdentityBytes()
Identity of the worker who picked up this task
string identity = 2;
- Specified by:
getIdentityBytes
in interfaceWorkflowTaskStartedEventAttributesOrBuilder
- Returns:
- The bytes for identity.
-
setIdentity
public WorkflowTaskStartedEventAttributes.Builder setIdentity(java.lang.String value)
Identity of the worker who picked up this task
string identity = 2;
- Parameters:
value
- The identity to set.- Returns:
- This builder for chaining.
-
clearIdentity
public WorkflowTaskStartedEventAttributes.Builder clearIdentity()
Identity of the worker who picked up this task
string identity = 2;
- Returns:
- This builder for chaining.
-
setIdentityBytes
public WorkflowTaskStartedEventAttributes.Builder setIdentityBytes(com.google.protobuf.ByteString value)
Identity of the worker who picked up this task
string identity = 2;
- Parameters:
value
- The bytes for identity to set.- Returns:
- This builder for chaining.
-
getRequestId
public java.lang.String getRequestId()
TODO: ? Appears unused?
string request_id = 3;
- Specified by:
getRequestId
in interfaceWorkflowTaskStartedEventAttributesOrBuilder
- Returns:
- The requestId.
-
getRequestIdBytes
public com.google.protobuf.ByteString getRequestIdBytes()
TODO: ? Appears unused?
string request_id = 3;
- Specified by:
getRequestIdBytes
in interfaceWorkflowTaskStartedEventAttributesOrBuilder
- Returns:
- The bytes for requestId.
-
setRequestId
public WorkflowTaskStartedEventAttributes.Builder setRequestId(java.lang.String value)
TODO: ? Appears unused?
string request_id = 3;
- Parameters:
value
- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
public WorkflowTaskStartedEventAttributes.Builder clearRequestId()
TODO: ? Appears unused?
string request_id = 3;
- Returns:
- This builder for chaining.
-
setRequestIdBytes
public WorkflowTaskStartedEventAttributes.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
TODO: ? Appears unused?
string request_id = 3;
- Parameters:
value
- The bytes for requestId to set.- Returns:
- This builder for chaining.
-
getSuggestContinueAsNew
public boolean getSuggestContinueAsNew()
True if this workflow should continue-as-new soon because its history size (in either event count or bytes) is getting large.
bool suggest_continue_as_new = 4;
- Specified by:
getSuggestContinueAsNew
in interfaceWorkflowTaskStartedEventAttributesOrBuilder
- Returns:
- The suggestContinueAsNew.
-
setSuggestContinueAsNew
public WorkflowTaskStartedEventAttributes.Builder setSuggestContinueAsNew(boolean value)
True if this workflow should continue-as-new soon because its history size (in either event count or bytes) is getting large.
bool suggest_continue_as_new = 4;
- Parameters:
value
- The suggestContinueAsNew to set.- Returns:
- This builder for chaining.
-
clearSuggestContinueAsNew
public WorkflowTaskStartedEventAttributes.Builder clearSuggestContinueAsNew()
True if this workflow should continue-as-new soon because its history size (in either event count or bytes) is getting large.
bool suggest_continue_as_new = 4;
- Returns:
- This builder for chaining.
-
getHistorySizeBytes
public long getHistorySizeBytes()
Total history size in bytes, which the workflow might use to decide when to continue-as-new regardless of the suggestion. Note that history event count is just the event id of this event, so we don't include it explicitly here.
int64 history_size_bytes = 5;
- Specified by:
getHistorySizeBytes
in interfaceWorkflowTaskStartedEventAttributesOrBuilder
- Returns:
- The historySizeBytes.
-
setHistorySizeBytes
public WorkflowTaskStartedEventAttributes.Builder setHistorySizeBytes(long value)
Total history size in bytes, which the workflow might use to decide when to continue-as-new regardless of the suggestion. Note that history event count is just the event id of this event, so we don't include it explicitly here.
int64 history_size_bytes = 5;
- Parameters:
value
- The historySizeBytes to set.- Returns:
- This builder for chaining.
-
clearHistorySizeBytes
public WorkflowTaskStartedEventAttributes.Builder clearHistorySizeBytes()
Total history size in bytes, which the workflow might use to decide when to continue-as-new regardless of the suggestion. Note that history event count is just the event id of this event, so we don't include it explicitly here.
int64 history_size_bytes = 5;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final WorkflowTaskStartedEventAttributes.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskStartedEventAttributes.Builder>
-
mergeUnknownFields
public final WorkflowTaskStartedEventAttributes.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskStartedEventAttributes.Builder>
-
-