Class WorkflowTaskCompletedMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<WorkflowTaskCompletedMetadata.Builder>
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, Cloneable
Enclosing class:
WorkflowTaskCompletedMetadata

public static final class WorkflowTaskCompletedMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder> implements WorkflowTaskCompletedMetadataOrBuilder
Protobuf type temporal.api.sdk.v1.WorkflowTaskCompletedMetadata
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>
    • getDefaultInstanceForType

      public WorkflowTaskCompletedMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public WorkflowTaskCompletedMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>
    • setField

      public WorkflowTaskCompletedMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>
    • clearField

      public WorkflowTaskCompletedMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>
    • clearOneof

      public WorkflowTaskCompletedMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>
    • setRepeatedField

      public WorkflowTaskCompletedMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>
    • addRepeatedField

      public WorkflowTaskCompletedMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>
    • mergeFrom

      public WorkflowTaskCompletedMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WorkflowTaskCompletedMetadata.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>
    • mergeFrom

      public WorkflowTaskCompletedMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WorkflowTaskCompletedMetadata.Builder>
      Throws:
      IOException
    • getCoreUsedFlagsList

      public List<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 interface WorkflowTaskCompletedMetadataOrBuilder
      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 interface WorkflowTaskCompletedMetadataOrBuilder
      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 interface WorkflowTaskCompletedMetadataOrBuilder
      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(Iterable<? extends 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 List<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 interface WorkflowTaskCompletedMetadataOrBuilder
      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 interface WorkflowTaskCompletedMetadataOrBuilder
      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 interface WorkflowTaskCompletedMetadataOrBuilder
      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(Iterable<? extends 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.
    • getSdkName

      public String getSdkName()
       Name of the SDK that processed the task. This is usually something like "temporal-go" and is
       usually the same as client-name gRPC header. This should only be set if its value changed
       since the last time recorded on the workflow (or be set on the first task).
      
       (-- api-linter: core::0122::name-suffix=disabled
           aip.dev/not-precedent: We're ok with a name suffix here. --)
       
      string sdk_name = 3;
      Specified by:
      getSdkName in interface WorkflowTaskCompletedMetadataOrBuilder
      Returns:
      The sdkName.
    • getSdkNameBytes

      public com.google.protobuf.ByteString getSdkNameBytes()
       Name of the SDK that processed the task. This is usually something like "temporal-go" and is
       usually the same as client-name gRPC header. This should only be set if its value changed
       since the last time recorded on the workflow (or be set on the first task).
      
       (-- api-linter: core::0122::name-suffix=disabled
           aip.dev/not-precedent: We're ok with a name suffix here. --)
       
      string sdk_name = 3;
      Specified by:
      getSdkNameBytes in interface WorkflowTaskCompletedMetadataOrBuilder
      Returns:
      The bytes for sdkName.
    • setSdkName

      public WorkflowTaskCompletedMetadata.Builder setSdkName(String value)
       Name of the SDK that processed the task. This is usually something like "temporal-go" and is
       usually the same as client-name gRPC header. This should only be set if its value changed
       since the last time recorded on the workflow (or be set on the first task).
      
       (-- api-linter: core::0122::name-suffix=disabled
           aip.dev/not-precedent: We're ok with a name suffix here. --)
       
      string sdk_name = 3;
      Parameters:
      value - The sdkName to set.
      Returns:
      This builder for chaining.
    • clearSdkName

       Name of the SDK that processed the task. This is usually something like "temporal-go" and is
       usually the same as client-name gRPC header. This should only be set if its value changed
       since the last time recorded on the workflow (or be set on the first task).
      
       (-- api-linter: core::0122::name-suffix=disabled
           aip.dev/not-precedent: We're ok with a name suffix here. --)
       
      string sdk_name = 3;
      Returns:
      This builder for chaining.
    • setSdkNameBytes

      public WorkflowTaskCompletedMetadata.Builder setSdkNameBytes(com.google.protobuf.ByteString value)
       Name of the SDK that processed the task. This is usually something like "temporal-go" and is
       usually the same as client-name gRPC header. This should only be set if its value changed
       since the last time recorded on the workflow (or be set on the first task).
      
       (-- api-linter: core::0122::name-suffix=disabled
           aip.dev/not-precedent: We're ok with a name suffix here. --)
       
      string sdk_name = 3;
      Parameters:
      value - The bytes for sdkName to set.
      Returns:
      This builder for chaining.
    • getSdkVersion

      public String getSdkVersion()
       Version of the SDK that processed the task. This is usually something like "1.20.0" and is
       usually the same as client-version gRPC header. This should only be set if its value changed
       since the last time recorded on the workflow (or be set on the first task).
       
      string sdk_version = 4;
      Specified by:
      getSdkVersion in interface WorkflowTaskCompletedMetadataOrBuilder
      Returns:
      The sdkVersion.
    • getSdkVersionBytes

      public com.google.protobuf.ByteString getSdkVersionBytes()
       Version of the SDK that processed the task. This is usually something like "1.20.0" and is
       usually the same as client-version gRPC header. This should only be set if its value changed
       since the last time recorded on the workflow (or be set on the first task).
       
      string sdk_version = 4;
      Specified by:
      getSdkVersionBytes in interface WorkflowTaskCompletedMetadataOrBuilder
      Returns:
      The bytes for sdkVersion.
    • setSdkVersion

      public WorkflowTaskCompletedMetadata.Builder setSdkVersion(String value)
       Version of the SDK that processed the task. This is usually something like "1.20.0" and is
       usually the same as client-version gRPC header. This should only be set if its value changed
       since the last time recorded on the workflow (or be set on the first task).
       
      string sdk_version = 4;
      Parameters:
      value - The sdkVersion to set.
      Returns:
      This builder for chaining.
    • clearSdkVersion

      public WorkflowTaskCompletedMetadata.Builder clearSdkVersion()
       Version of the SDK that processed the task. This is usually something like "1.20.0" and is
       usually the same as client-version gRPC header. This should only be set if its value changed
       since the last time recorded on the workflow (or be set on the first task).
       
      string sdk_version = 4;
      Returns:
      This builder for chaining.
    • setSdkVersionBytes

      public WorkflowTaskCompletedMetadata.Builder setSdkVersionBytes(com.google.protobuf.ByteString value)
       Version of the SDK that processed the task. This is usually something like "1.20.0" and is
       usually the same as client-version gRPC header. This should only be set if its value changed
       since the last time recorded on the workflow (or be set on the first task).
       
      string sdk_version = 4;
      Parameters:
      value - The bytes for sdkVersion to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final WorkflowTaskCompletedMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>
    • mergeUnknownFields

      public final WorkflowTaskCompletedMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowTaskCompletedMetadata.Builder>