Class WorkflowInteractionDefinition.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, WorkflowInteractionDefinitionOrBuilder, java.lang.Cloneable
    Enclosing class:
    WorkflowInteractionDefinition

    public static final class WorkflowInteractionDefinition.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<WorkflowInteractionDefinition.Builder>
    implements WorkflowInteractionDefinitionOrBuilder
     (-- api-linter: core::0123::resource-annotation=disabled
         aip.dev/not-precedent: The `name` field is optional. --)
     (-- api-linter: core::0203::optional=disabled --)
     
    Protobuf type temporal.api.sdk.v1.WorkflowInteractionDefinition
    • Method Detail

      • 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<WorkflowInteractionDefinition.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<WorkflowInteractionDefinition.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public WorkflowInteractionDefinition.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                      java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WorkflowInteractionDefinition.Builder>
      • isInitialized

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

        public WorkflowInteractionDefinition.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws java.io.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<WorkflowInteractionDefinition.Builder>
        Throws:
        java.io.IOException
      • getName

        public java.lang.String getName()
         An optional name for the handler. If missing, it represents
         a dynamic handler that processes any interactions not handled by others.
         There is at most one dynamic handler per workflow and interaction kind.
         
        string name = 1;
        Specified by:
        getName in interface WorkflowInteractionDefinitionOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         An optional name for the handler. If missing, it represents
         a dynamic handler that processes any interactions not handled by others.
         There is at most one dynamic handler per workflow and interaction kind.
         
        string name = 1;
        Specified by:
        getNameBytes in interface WorkflowInteractionDefinitionOrBuilder
        Returns:
        The bytes for name.
      • setName

        public WorkflowInteractionDefinition.Builder setName​(java.lang.String value)
         An optional name for the handler. If missing, it represents
         a dynamic handler that processes any interactions not handled by others.
         There is at most one dynamic handler per workflow and interaction kind.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public WorkflowInteractionDefinition.Builder clearName()
         An optional name for the handler. If missing, it represents
         a dynamic handler that processes any interactions not handled by others.
         There is at most one dynamic handler per workflow and interaction kind.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public WorkflowInteractionDefinition.Builder setNameBytes​(com.google.protobuf.ByteString value)
         An optional name for the handler. If missing, it represents
         a dynamic handler that processes any interactions not handled by others.
         There is at most one dynamic handler per workflow and interaction kind.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDescription

        public java.lang.String getDescription()
         An optional interaction description provided by the application.
         By convention, external tools may interpret its first part,
         i.e., ending with a line break, as a summary of the description.
         
        string description = 2;
        Specified by:
        getDescription in interface WorkflowInteractionDefinitionOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         An optional interaction description provided by the application.
         By convention, external tools may interpret its first part,
         i.e., ending with a line break, as a summary of the description.
         
        string description = 2;
        Specified by:
        getDescriptionBytes in interface WorkflowInteractionDefinitionOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public WorkflowInteractionDefinition.Builder setDescription​(java.lang.String value)
         An optional interaction description provided by the application.
         By convention, external tools may interpret its first part,
         i.e., ending with a line break, as a summary of the description.
         
        string description = 2;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public WorkflowInteractionDefinition.Builder clearDescription()
         An optional interaction description provided by the application.
         By convention, external tools may interpret its first part,
         i.e., ending with a line break, as a summary of the description.
         
        string description = 2;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public WorkflowInteractionDefinition.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         An optional interaction description provided by the application.
         By convention, external tools may interpret its first part,
         i.e., ending with a line break, as a summary of the description.
         
        string description = 2;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.