Package io.temporal.api.sdk.v1
Class WorkflowTaskCompletedMetadata.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>
-
- io.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,WorkflowTaskCompletedMetadataOrBuilder
,java.lang.Cloneable
- Enclosing class:
- WorkflowTaskCompletedMetadata
public static final class WorkflowTaskCompletedMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder> implements WorkflowTaskCompletedMetadataOrBuilder
Protobuf typetemporal.api.sdk.v1.WorkflowTaskCompletedMetadata
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowTaskCompletedMetadata.Builder
addAllCoreUsedFlags(java.lang.Iterable<? extends java.lang.Integer> values)
Internal flags used by the core SDK.WorkflowTaskCompletedMetadata.Builder
addAllLangUsedFlags(java.lang.Iterable<? extends java.lang.Integer> values)
Flags used by the SDK lang.WorkflowTaskCompletedMetadata.Builder
addCoreUsedFlags(int value)
Internal flags used by the core SDK.WorkflowTaskCompletedMetadata.Builder
addLangUsedFlags(int value)
Flags used by the SDK lang.WorkflowTaskCompletedMetadata.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
WorkflowTaskCompletedMetadata
build()
WorkflowTaskCompletedMetadata
buildPartial()
WorkflowTaskCompletedMetadata.Builder
clear()
WorkflowTaskCompletedMetadata.Builder
clearCoreUsedFlags()
Internal flags used by the core SDK.WorkflowTaskCompletedMetadata.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
WorkflowTaskCompletedMetadata.Builder
clearLangUsedFlags()
Flags used by the SDK lang.WorkflowTaskCompletedMetadata.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
WorkflowTaskCompletedMetadata.Builder
clone()
int
getCoreUsedFlags(int index)
Internal flags used by the core SDK.int
getCoreUsedFlagsCount()
Internal flags used by the core SDK.java.util.List<java.lang.Integer>
getCoreUsedFlagsList()
Internal flags used by the core SDK.WorkflowTaskCompletedMetadata
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getLangUsedFlags(int index)
Flags used by the SDK lang.int
getLangUsedFlagsCount()
Flags used by the SDK lang.java.util.List<java.lang.Integer>
getLangUsedFlagsList()
Flags used by the SDK lang.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
WorkflowTaskCompletedMetadata.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
WorkflowTaskCompletedMetadata.Builder
mergeFrom(com.google.protobuf.Message other)
WorkflowTaskCompletedMetadata.Builder
mergeFrom(WorkflowTaskCompletedMetadata other)
WorkflowTaskCompletedMetadata.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
WorkflowTaskCompletedMetadata.Builder
setCoreUsedFlags(int index, int value)
Internal flags used by the core SDK.WorkflowTaskCompletedMetadata.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
WorkflowTaskCompletedMetadata.Builder
setLangUsedFlags(int index, int value)
Flags used by the SDK lang.WorkflowTaskCompletedMetadata.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
WorkflowTaskCompletedMetadata.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<WorkflowTaskCompletedMetadata.Builder>
-
clear
public WorkflowTaskCompletedMetadata.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<WorkflowTaskCompletedMetadata.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<WorkflowTaskCompletedMetadata.Builder>
-
getDefaultInstanceForType
public WorkflowTaskCompletedMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public WorkflowTaskCompletedMetadata build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public WorkflowTaskCompletedMetadata buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public WorkflowTaskCompletedMetadata.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<WorkflowTaskCompletedMetadata.Builder>
-
setField
public WorkflowTaskCompletedMetadata.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<WorkflowTaskCompletedMetadata.Builder>
-
clearField
public WorkflowTaskCompletedMetadata.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<WorkflowTaskCompletedMetadata.Builder>
-
clearOneof
public WorkflowTaskCompletedMetadata.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<WorkflowTaskCompletedMetadata.Builder>
-
setRepeatedField
public WorkflowTaskCompletedMetadata.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<WorkflowTaskCompletedMetadata.Builder>
-
addRepeatedField
public WorkflowTaskCompletedMetadata.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<WorkflowTaskCompletedMetadata.Builder>
-
mergeFrom
public WorkflowTaskCompletedMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<WorkflowTaskCompletedMetadata.Builder>
-
mergeFrom
public WorkflowTaskCompletedMetadata.Builder mergeFrom(WorkflowTaskCompletedMetadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>
-
mergeFrom
public WorkflowTaskCompletedMetadata.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<WorkflowTaskCompletedMetadata.Builder>
- Throws:
java.io.IOException
-
getCoreUsedFlagsList
public java.util.List<java.lang.Integer> getCoreUsedFlagsList()
Internal flags used by the core SDK. SDKs using flags must comply with the following behavior: During replay: * If a flag is not recognized (value is too high or not defined), it must fail the workflow task. * If a flag is recognized, it is stored in a set of used flags for the run. Code checks for that flag during and after this WFT are allowed to assume that the flag is present. * If a code check for a flag does not find the flag in the set of used flags, it must take the branch corresponding to the absence of that flag. During non-replay execution of new WFTs: * The SDK is free to use all flags it knows about. It must record any newly-used (IE: not previously recorded) flags when completing the WFT. SDKs which are too old to even know about this field at all are considered to produce undefined behavior if they replay workflows which used this mechanism. (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --)
repeated uint32 core_used_flags = 1;
- Specified by:
getCoreUsedFlagsList
in interfaceWorkflowTaskCompletedMetadataOrBuilder
- Returns:
- A list containing the coreUsedFlags.
-
getCoreUsedFlagsCount
public int getCoreUsedFlagsCount()
Internal flags used by the core SDK. SDKs using flags must comply with the following behavior: During replay: * If a flag is not recognized (value is too high or not defined), it must fail the workflow task. * If a flag is recognized, it is stored in a set of used flags for the run. Code checks for that flag during and after this WFT are allowed to assume that the flag is present. * If a code check for a flag does not find the flag in the set of used flags, it must take the branch corresponding to the absence of that flag. During non-replay execution of new WFTs: * The SDK is free to use all flags it knows about. It must record any newly-used (IE: not previously recorded) flags when completing the WFT. SDKs which are too old to even know about this field at all are considered to produce undefined behavior if they replay workflows which used this mechanism. (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --)
repeated uint32 core_used_flags = 1;
- Specified by:
getCoreUsedFlagsCount
in interfaceWorkflowTaskCompletedMetadataOrBuilder
- Returns:
- The count of coreUsedFlags.
-
getCoreUsedFlags
public int getCoreUsedFlags(int index)
Internal flags used by the core SDK. SDKs using flags must comply with the following behavior: During replay: * If a flag is not recognized (value is too high or not defined), it must fail the workflow task. * If a flag is recognized, it is stored in a set of used flags for the run. Code checks for that flag during and after this WFT are allowed to assume that the flag is present. * If a code check for a flag does not find the flag in the set of used flags, it must take the branch corresponding to the absence of that flag. During non-replay execution of new WFTs: * The SDK is free to use all flags it knows about. It must record any newly-used (IE: not previously recorded) flags when completing the WFT. SDKs which are too old to even know about this field at all are considered to produce undefined behavior if they replay workflows which used this mechanism. (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --)
repeated uint32 core_used_flags = 1;
- Specified by:
getCoreUsedFlags
in interfaceWorkflowTaskCompletedMetadataOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The coreUsedFlags at the given index.
-
setCoreUsedFlags
public WorkflowTaskCompletedMetadata.Builder setCoreUsedFlags(int index, int value)
Internal flags used by the core SDK. SDKs using flags must comply with the following behavior: During replay: * If a flag is not recognized (value is too high or not defined), it must fail the workflow task. * If a flag is recognized, it is stored in a set of used flags for the run. Code checks for that flag during and after this WFT are allowed to assume that the flag is present. * If a code check for a flag does not find the flag in the set of used flags, it must take the branch corresponding to the absence of that flag. During non-replay execution of new WFTs: * The SDK is free to use all flags it knows about. It must record any newly-used (IE: not previously recorded) flags when completing the WFT. SDKs which are too old to even know about this field at all are considered to produce undefined behavior if they replay workflows which used this mechanism. (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --)
repeated uint32 core_used_flags = 1;
- Parameters:
index
- The index to set the value at.value
- The coreUsedFlags to set.- Returns:
- This builder for chaining.
-
addCoreUsedFlags
public WorkflowTaskCompletedMetadata.Builder addCoreUsedFlags(int value)
Internal flags used by the core SDK. SDKs using flags must comply with the following behavior: During replay: * If a flag is not recognized (value is too high or not defined), it must fail the workflow task. * If a flag is recognized, it is stored in a set of used flags for the run. Code checks for that flag during and after this WFT are allowed to assume that the flag is present. * If a code check for a flag does not find the flag in the set of used flags, it must take the branch corresponding to the absence of that flag. During non-replay execution of new WFTs: * The SDK is free to use all flags it knows about. It must record any newly-used (IE: not previously recorded) flags when completing the WFT. SDKs which are too old to even know about this field at all are considered to produce undefined behavior if they replay workflows which used this mechanism. (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --)
repeated uint32 core_used_flags = 1;
- Parameters:
value
- The coreUsedFlags to add.- Returns:
- This builder for chaining.
-
addAllCoreUsedFlags
public WorkflowTaskCompletedMetadata.Builder addAllCoreUsedFlags(java.lang.Iterable<? extends java.lang.Integer> values)
Internal flags used by the core SDK. SDKs using flags must comply with the following behavior: During replay: * If a flag is not recognized (value is too high or not defined), it must fail the workflow task. * If a flag is recognized, it is stored in a set of used flags for the run. Code checks for that flag during and after this WFT are allowed to assume that the flag is present. * If a code check for a flag does not find the flag in the set of used flags, it must take the branch corresponding to the absence of that flag. During non-replay execution of new WFTs: * The SDK is free to use all flags it knows about. It must record any newly-used (IE: not previously recorded) flags when completing the WFT. SDKs which are too old to even know about this field at all are considered to produce undefined behavior if they replay workflows which used this mechanism. (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --)
repeated uint32 core_used_flags = 1;
- Parameters:
values
- The coreUsedFlags to add.- Returns:
- This builder for chaining.
-
clearCoreUsedFlags
public WorkflowTaskCompletedMetadata.Builder clearCoreUsedFlags()
Internal flags used by the core SDK. SDKs using flags must comply with the following behavior: During replay: * If a flag is not recognized (value is too high or not defined), it must fail the workflow task. * If a flag is recognized, it is stored in a set of used flags for the run. Code checks for that flag during and after this WFT are allowed to assume that the flag is present. * If a code check for a flag does not find the flag in the set of used flags, it must take the branch corresponding to the absence of that flag. During non-replay execution of new WFTs: * The SDK is free to use all flags it knows about. It must record any newly-used (IE: not previously recorded) flags when completing the WFT. SDKs which are too old to even know about this field at all are considered to produce undefined behavior if they replay workflows which used this mechanism. (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --)
repeated uint32 core_used_flags = 1;
- Returns:
- This builder for chaining.
-
getLangUsedFlagsList
public java.util.List<java.lang.Integer> getLangUsedFlagsList()
Flags used by the SDK lang. No attempt is made to distinguish between different SDK languages here as processing a workflow with a different language than the one which authored it is already undefined behavior. See `core_used_patches` for more. (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --)
repeated uint32 lang_used_flags = 2;
- Specified by:
getLangUsedFlagsList
in interfaceWorkflowTaskCompletedMetadataOrBuilder
- Returns:
- A list containing the langUsedFlags.
-
getLangUsedFlagsCount
public int getLangUsedFlagsCount()
Flags used by the SDK lang. No attempt is made to distinguish between different SDK languages here as processing a workflow with a different language than the one which authored it is already undefined behavior. See `core_used_patches` for more. (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --)
repeated uint32 lang_used_flags = 2;
- Specified by:
getLangUsedFlagsCount
in interfaceWorkflowTaskCompletedMetadataOrBuilder
- Returns:
- The count of langUsedFlags.
-
getLangUsedFlags
public int getLangUsedFlags(int index)
Flags used by the SDK lang. No attempt is made to distinguish between different SDK languages here as processing a workflow with a different language than the one which authored it is already undefined behavior. See `core_used_patches` for more. (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --)
repeated uint32 lang_used_flags = 2;
- Specified by:
getLangUsedFlags
in interfaceWorkflowTaskCompletedMetadataOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The langUsedFlags at the given index.
-
setLangUsedFlags
public WorkflowTaskCompletedMetadata.Builder setLangUsedFlags(int index, int value)
Flags used by the SDK lang. No attempt is made to distinguish between different SDK languages here as processing a workflow with a different language than the one which authored it is already undefined behavior. See `core_used_patches` for more. (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --)
repeated uint32 lang_used_flags = 2;
- Parameters:
index
- The index to set the value at.value
- The langUsedFlags to set.- Returns:
- This builder for chaining.
-
addLangUsedFlags
public WorkflowTaskCompletedMetadata.Builder addLangUsedFlags(int value)
Flags used by the SDK lang. No attempt is made to distinguish between different SDK languages here as processing a workflow with a different language than the one which authored it is already undefined behavior. See `core_used_patches` for more. (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --)
repeated uint32 lang_used_flags = 2;
- Parameters:
value
- The langUsedFlags to add.- Returns:
- This builder for chaining.
-
addAllLangUsedFlags
public WorkflowTaskCompletedMetadata.Builder addAllLangUsedFlags(java.lang.Iterable<? extends java.lang.Integer> values)
Flags used by the SDK lang. No attempt is made to distinguish between different SDK languages here as processing a workflow with a different language than the one which authored it is already undefined behavior. See `core_used_patches` for more. (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --)
repeated uint32 lang_used_flags = 2;
- Parameters:
values
- The langUsedFlags to add.- Returns:
- This builder for chaining.
-
clearLangUsedFlags
public WorkflowTaskCompletedMetadata.Builder clearLangUsedFlags()
Flags used by the SDK lang. No attempt is made to distinguish between different SDK languages here as processing a workflow with a different language than the one which authored it is already undefined behavior. See `core_used_patches` for more. (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --)
repeated uint32 lang_used_flags = 2;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final WorkflowTaskCompletedMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>
-
mergeUnknownFields
public final WorkflowTaskCompletedMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>
-
-