Class BatchOperationReset.Builder

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

    public static final class BatchOperationReset.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<BatchOperationReset.Builder>
    implements BatchOperationResetOrBuilder
     BatchOperationReset sends reset requests to batch workflows.
     Keep the parameter in sync with temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest.
     
    Protobuf type temporal.api.batch.v1.BatchOperationReset
    • 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<BatchOperationReset.Builder>
      • clear

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

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

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

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

        public BatchOperationReset.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<BatchOperationReset.Builder>
      • setField

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

        public BatchOperationReset.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<BatchOperationReset.Builder>
      • clearOneof

        public BatchOperationReset.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<BatchOperationReset.Builder>
      • setRepeatedField

        public BatchOperationReset.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<BatchOperationReset.Builder>
      • addRepeatedField

        public BatchOperationReset.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<BatchOperationReset.Builder>
      • mergeFrom

        public BatchOperationReset.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<BatchOperationReset.Builder>
      • isInitialized

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

        public BatchOperationReset.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<BatchOperationReset.Builder>
        Throws:
        java.io.IOException
      • getResetTypeValue

        public int getResetTypeValue()
         Reset type.
         
        .temporal.api.enums.v1.ResetType reset_type = 1;
        Specified by:
        getResetTypeValue in interface BatchOperationResetOrBuilder
        Returns:
        The enum numeric value on the wire for resetType.
      • setResetTypeValue

        public BatchOperationReset.Builder setResetTypeValue​(int value)
         Reset type.
         
        .temporal.api.enums.v1.ResetType reset_type = 1;
        Parameters:
        value - The enum numeric value on the wire for resetType to set.
        Returns:
        This builder for chaining.
      • setResetType

        public BatchOperationReset.Builder setResetType​(ResetType value)
         Reset type.
         
        .temporal.api.enums.v1.ResetType reset_type = 1;
        Parameters:
        value - The resetType to set.
        Returns:
        This builder for chaining.
      • clearResetType

        public BatchOperationReset.Builder clearResetType()
         Reset type.
         
        .temporal.api.enums.v1.ResetType reset_type = 1;
        Returns:
        This builder for chaining.
      • getResetReapplyTypeValue

        public int getResetReapplyTypeValue()
         History event reapply options.
         
        .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 2;
        Specified by:
        getResetReapplyTypeValue in interface BatchOperationResetOrBuilder
        Returns:
        The enum numeric value on the wire for resetReapplyType.
      • setResetReapplyTypeValue

        public BatchOperationReset.Builder setResetReapplyTypeValue​(int value)
         History event reapply options.
         
        .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 2;
        Parameters:
        value - The enum numeric value on the wire for resetReapplyType to set.
        Returns:
        This builder for chaining.
      • setResetReapplyType

        public BatchOperationReset.Builder setResetReapplyType​(ResetReapplyType value)
         History event reapply options.
         
        .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 2;
        Parameters:
        value - The resetReapplyType to set.
        Returns:
        This builder for chaining.
      • clearResetReapplyType

        public BatchOperationReset.Builder clearResetReapplyType()
         History event reapply options.
         
        .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 2;
        Returns:
        This builder for chaining.
      • getIdentity

        public java.lang.String getIdentity()
         The identity of the worker/client.
         
        string identity = 3;
        Specified by:
        getIdentity in interface BatchOperationResetOrBuilder
        Returns:
        The identity.
      • getIdentityBytes

        public com.google.protobuf.ByteString getIdentityBytes()
         The identity of the worker/client.
         
        string identity = 3;
        Specified by:
        getIdentityBytes in interface BatchOperationResetOrBuilder
        Returns:
        The bytes for identity.
      • setIdentity

        public BatchOperationReset.Builder setIdentity​(java.lang.String value)
         The identity of the worker/client.
         
        string identity = 3;
        Parameters:
        value - The identity to set.
        Returns:
        This builder for chaining.
      • clearIdentity

        public BatchOperationReset.Builder clearIdentity()
         The identity of the worker/client.
         
        string identity = 3;
        Returns:
        This builder for chaining.
      • setIdentityBytes

        public BatchOperationReset.Builder setIdentityBytes​(com.google.protobuf.ByteString value)
         The identity of the worker/client.
         
        string identity = 3;
        Parameters:
        value - The bytes for identity to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final BatchOperationReset.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<BatchOperationReset.Builder>
      • mergeUnknownFields

        public final BatchOperationReset.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<BatchOperationReset.Builder>