Class BatchOperationCancelActivities.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BatchOperationCancelActivities.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<BatchOperationCancelActivities.Builder>
io.temporal.api.batch.v1.BatchOperationCancelActivities.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BatchOperationCancelActivitiesOrBuilder, Cloneable
Enclosing class:
BatchOperationCancelActivities

public static final class BatchOperationCancelActivities.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchOperationCancelActivities.Builder> implements BatchOperationCancelActivitiesOrBuilder
 BatchOperationCancelActivities sends cancel requests to a batch of activities.
 Keep the parameter in sync with temporal.api.workflowservice.v1.RequestCancelActivityExecutionRequest.
 
Protobuf type temporal.api.batch.v1.BatchOperationCancelActivities
  • 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<BatchOperationCancelActivities.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<BatchOperationCancelActivities.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<BatchOperationCancelActivities.Builder>
    • getDefaultInstanceForType

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

      public BatchOperationCancelActivities.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<BatchOperationCancelActivities.Builder>
    • clearField

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

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

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

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

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

      public BatchOperationCancelActivities.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<BatchOperationCancelActivities.Builder>
      Throws:
      IOException
    • getIdentity

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

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

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

       The identity of the worker/client
       
      string identity = 1;
      Returns:
      This builder for chaining.
    • setIdentityBytes

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

      public String getReason()
       Reason for requesting the cancellation, recorded and available via the PollActivityExecution API.
       Not propagated to a worker if an activity attempt is currently running.
       
      string reason = 2;
      Specified by:
      getReason in interface BatchOperationCancelActivitiesOrBuilder
      Returns:
      The reason.
    • getReasonBytes

      public com.google.protobuf.ByteString getReasonBytes()
       Reason for requesting the cancellation, recorded and available via the PollActivityExecution API.
       Not propagated to a worker if an activity attempt is currently running.
       
      string reason = 2;
      Specified by:
      getReasonBytes in interface BatchOperationCancelActivitiesOrBuilder
      Returns:
      The bytes for reason.
    • setReason

       Reason for requesting the cancellation, recorded and available via the PollActivityExecution API.
       Not propagated to a worker if an activity attempt is currently running.
       
      string reason = 2;
      Parameters:
      value - The reason to set.
      Returns:
      This builder for chaining.
    • clearReason

       Reason for requesting the cancellation, recorded and available via the PollActivityExecution API.
       Not propagated to a worker if an activity attempt is currently running.
       
      string reason = 2;
      Returns:
      This builder for chaining.
    • setReasonBytes

      public BatchOperationCancelActivities.Builder setReasonBytes(com.google.protobuf.ByteString value)
       Reason for requesting the cancellation, recorded and available via the PollActivityExecution API.
       Not propagated to a worker if an activity attempt is currently running.
       
      string reason = 2;
      Parameters:
      value - The bytes for reason to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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