Class UpdateActivityOptionsRequest.Builder

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

public static final class UpdateActivityOptionsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateActivityOptionsRequest.Builder> implements UpdateActivityOptionsRequestOrBuilder
 NOTE: keep in sync with temporal.api.batch.v1.BatchOperationUpdateActivityOptions
 Deprecated. Use `UpdateActivityExecutionOptionsRequest`.
 
Protobuf type temporal.api.workflowservice.v1.UpdateActivityOptionsRequest
  • 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<UpdateActivityOptionsRequest.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<UpdateActivityOptionsRequest.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<UpdateActivityOptionsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

      public UpdateActivityOptionsRequest.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<UpdateActivityOptionsRequest.Builder>
      Throws:
      IOException
    • getActivityCase

    • clearActivity

      public UpdateActivityOptionsRequest.Builder clearActivity()
    • getNamespace

      public String getNamespace()
       Namespace of the workflow which scheduled this activity
       
      string namespace = 1;
      Specified by:
      getNamespace in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      The namespace.
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
       Namespace of the workflow which scheduled this activity
       
      string namespace = 1;
      Specified by:
      getNamespaceBytes in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      The bytes for namespace.
    • setNamespace

      public UpdateActivityOptionsRequest.Builder setNamespace(String value)
       Namespace of the workflow which scheduled this activity
       
      string namespace = 1;
      Parameters:
      value - The namespace to set.
      Returns:
      This builder for chaining.
    • clearNamespace

      public UpdateActivityOptionsRequest.Builder clearNamespace()
       Namespace of the workflow which scheduled this activity
       
      string namespace = 1;
      Returns:
      This builder for chaining.
    • setNamespaceBytes

      public UpdateActivityOptionsRequest.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
       Namespace of the workflow which scheduled this activity
       
      string namespace = 1;
      Parameters:
      value - The bytes for namespace to set.
      Returns:
      This builder for chaining.
    • hasExecution

      public boolean hasExecution()
       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
      Specified by:
      hasExecution in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      Whether the execution field is set.
    • getExecution

      public WorkflowExecution getExecution()
       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
      Specified by:
      getExecution in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      The execution.
    • setExecution

       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
    • setExecution

      public UpdateActivityOptionsRequest.Builder setExecution(WorkflowExecution.Builder builderForValue)
       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
    • mergeExecution

       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
    • clearExecution

      public UpdateActivityOptionsRequest.Builder clearExecution()
       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
    • getExecutionBuilder

      public WorkflowExecution.Builder getExecutionBuilder()
       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
    • getExecutionOrBuilder

      public WorkflowExecutionOrBuilder getExecutionOrBuilder()
       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
      Specified by:
      getExecutionOrBuilder in interface UpdateActivityOptionsRequestOrBuilder
    • getIdentity

      public String getIdentity()
       The identity of the client who initiated this request
       
      string identity = 3;
      Specified by:
      getIdentity in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      The identity.
    • getIdentityBytes

      public com.google.protobuf.ByteString getIdentityBytes()
       The identity of the client who initiated this request
       
      string identity = 3;
      Specified by:
      getIdentityBytes in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      The bytes for identity.
    • setIdentity

      public UpdateActivityOptionsRequest.Builder setIdentity(String value)
       The identity of the client who initiated this request
       
      string identity = 3;
      Parameters:
      value - The identity to set.
      Returns:
      This builder for chaining.
    • clearIdentity

      public UpdateActivityOptionsRequest.Builder clearIdentity()
       The identity of the client who initiated this request
       
      string identity = 3;
      Returns:
      This builder for chaining.
    • setIdentityBytes

      public UpdateActivityOptionsRequest.Builder setIdentityBytes(com.google.protobuf.ByteString value)
       The identity of the client who initiated this request
       
      string identity = 3;
      Parameters:
      value - The bytes for identity to set.
      Returns:
      This builder for chaining.
    • hasActivityOptions

      public boolean hasActivityOptions()
       Activity options. Partial updates are accepted and controlled by update_mask
       
      .temporal.api.activity.v1.ActivityOptions activity_options = 4;
      Specified by:
      hasActivityOptions in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      Whether the activityOptions field is set.
    • getActivityOptions

      public ActivityOptions getActivityOptions()
       Activity options. Partial updates are accepted and controlled by update_mask
       
      .temporal.api.activity.v1.ActivityOptions activity_options = 4;
      Specified by:
      getActivityOptions in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      The activityOptions.
    • setActivityOptions

      public UpdateActivityOptionsRequest.Builder setActivityOptions(ActivityOptions value)
       Activity options. Partial updates are accepted and controlled by update_mask
       
      .temporal.api.activity.v1.ActivityOptions activity_options = 4;
    • setActivityOptions

      public UpdateActivityOptionsRequest.Builder setActivityOptions(ActivityOptions.Builder builderForValue)
       Activity options. Partial updates are accepted and controlled by update_mask
       
      .temporal.api.activity.v1.ActivityOptions activity_options = 4;
    • mergeActivityOptions

      public UpdateActivityOptionsRequest.Builder mergeActivityOptions(ActivityOptions value)
       Activity options. Partial updates are accepted and controlled by update_mask
       
      .temporal.api.activity.v1.ActivityOptions activity_options = 4;
    • clearActivityOptions

      public UpdateActivityOptionsRequest.Builder clearActivityOptions()
       Activity options. Partial updates are accepted and controlled by update_mask
       
      .temporal.api.activity.v1.ActivityOptions activity_options = 4;
    • getActivityOptionsBuilder

      public ActivityOptions.Builder getActivityOptionsBuilder()
       Activity options. Partial updates are accepted and controlled by update_mask
       
      .temporal.api.activity.v1.ActivityOptions activity_options = 4;
    • getActivityOptionsOrBuilder

      public ActivityOptionsOrBuilder getActivityOptionsOrBuilder()
       Activity options. Partial updates are accepted and controlled by update_mask
       
      .temporal.api.activity.v1.ActivityOptions activity_options = 4;
      Specified by:
      getActivityOptionsOrBuilder in interface UpdateActivityOptionsRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       Controls which fields from `activity_options` will be applied
       
      .google.protobuf.FieldMask update_mask = 5;
      Specified by:
      hasUpdateMask in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Controls which fields from `activity_options` will be applied
       
      .google.protobuf.FieldMask update_mask = 5;
      Specified by:
      getUpdateMask in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateActivityOptionsRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Controls which fields from `activity_options` will be applied
       
      .google.protobuf.FieldMask update_mask = 5;
    • setUpdateMask

      public UpdateActivityOptionsRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Controls which fields from `activity_options` will be applied
       
      .google.protobuf.FieldMask update_mask = 5;
    • mergeUpdateMask

      public UpdateActivityOptionsRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Controls which fields from `activity_options` will be applied
       
      .google.protobuf.FieldMask update_mask = 5;
    • clearUpdateMask

      public UpdateActivityOptionsRequest.Builder clearUpdateMask()
       Controls which fields from `activity_options` will be applied
       
      .google.protobuf.FieldMask update_mask = 5;
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Controls which fields from `activity_options` will be applied
       
      .google.protobuf.FieldMask update_mask = 5;
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Controls which fields from `activity_options` will be applied
       
      .google.protobuf.FieldMask update_mask = 5;
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateActivityOptionsRequestOrBuilder
    • hasId

      public boolean hasId()
       Only activity with this ID will be updated.
       
      string id = 6;
      Specified by:
      hasId in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public String getId()
       Only activity with this ID will be updated.
       
      string id = 6;
      Specified by:
      getId in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Only activity with this ID will be updated.
       
      string id = 6;
      Specified by:
      getIdBytes in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      The bytes for id.
    • setId

       Only activity with this ID will be updated.
       
      string id = 6;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

       Only activity with this ID will be updated.
       
      string id = 6;
      Returns:
      This builder for chaining.
    • setIdBytes

      public UpdateActivityOptionsRequest.Builder setIdBytes(com.google.protobuf.ByteString value)
       Only activity with this ID will be updated.
       
      string id = 6;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
       Update all running activities of this type.
       
      string type = 7;
      Specified by:
      hasType in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       Update all running activities of this type.
       
      string type = 7;
      Specified by:
      getType in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Update all running activities of this type.
       
      string type = 7;
      Specified by:
      getTypeBytes in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      The bytes for type.
    • setType

       Update all running activities of this type.
       
      string type = 7;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       Update all running activities of this type.
       
      string type = 7;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public UpdateActivityOptionsRequest.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Update all running activities of this type.
       
      string type = 7;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • hasMatchAll

      public boolean hasMatchAll()
       Update all running activities.
       
      bool match_all = 9;
      Specified by:
      hasMatchAll in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      Whether the matchAll field is set.
    • getMatchAll

      public boolean getMatchAll()
       Update all running activities.
       
      bool match_all = 9;
      Specified by:
      getMatchAll in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      The matchAll.
    • setMatchAll

      public UpdateActivityOptionsRequest.Builder setMatchAll(boolean value)
       Update all running activities.
       
      bool match_all = 9;
      Parameters:
      value - The matchAll to set.
      Returns:
      This builder for chaining.
    • clearMatchAll

      public UpdateActivityOptionsRequest.Builder clearMatchAll()
       Update all running activities.
       
      bool match_all = 9;
      Returns:
      This builder for chaining.
    • getRestoreOriginal

      public boolean getRestoreOriginal()
       If set, the activity options will be restored to the default.
       Default options are then options activity was created with.
       They are part of the first schedule event.
       This flag cannot be combined with any other option; if you supply
       restore_original together with other options, the request will be rejected.
       
      bool restore_original = 8;
      Specified by:
      getRestoreOriginal in interface UpdateActivityOptionsRequestOrBuilder
      Returns:
      The restoreOriginal.
    • setRestoreOriginal

      public UpdateActivityOptionsRequest.Builder setRestoreOriginal(boolean value)
       If set, the activity options will be restored to the default.
       Default options are then options activity was created with.
       They are part of the first schedule event.
       This flag cannot be combined with any other option; if you supply
       restore_original together with other options, the request will be rejected.
       
      bool restore_original = 8;
      Parameters:
      value - The restoreOriginal to set.
      Returns:
      This builder for chaining.
    • clearRestoreOriginal

      public UpdateActivityOptionsRequest.Builder clearRestoreOriginal()
       If set, the activity options will be restored to the default.
       Default options are then options activity was created with.
       They are part of the first schedule event.
       This flag cannot be combined with any other option; if you supply
       restore_original together with other options, the request will be rejected.
       
      bool restore_original = 8;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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