Class DescribeActivityExecutionResponse.Builder

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

public static final class DescribeActivityExecutionResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DescribeActivityExecutionResponse.Builder> implements DescribeActivityExecutionResponseOrBuilder
Protobuf type temporal.api.workflowservice.v1.DescribeActivityExecutionResponse
  • 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<DescribeActivityExecutionResponse.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<DescribeActivityExecutionResponse.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<DescribeActivityExecutionResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

      public DescribeActivityExecutionResponse.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<DescribeActivityExecutionResponse.Builder>
      Throws:
      IOException
    • getRunId

      public String getRunId()
       The run ID of the activity, useful when run_id was not specified in the request.
       
      string run_id = 1;
      Specified by:
      getRunId in interface DescribeActivityExecutionResponseOrBuilder
      Returns:
      The runId.
    • getRunIdBytes

      public com.google.protobuf.ByteString getRunIdBytes()
       The run ID of the activity, useful when run_id was not specified in the request.
       
      string run_id = 1;
      Specified by:
      getRunIdBytes in interface DescribeActivityExecutionResponseOrBuilder
      Returns:
      The bytes for runId.
    • setRunId

       The run ID of the activity, useful when run_id was not specified in the request.
       
      string run_id = 1;
      Parameters:
      value - The runId to set.
      Returns:
      This builder for chaining.
    • clearRunId

       The run ID of the activity, useful when run_id was not specified in the request.
       
      string run_id = 1;
      Returns:
      This builder for chaining.
    • setRunIdBytes

      public DescribeActivityExecutionResponse.Builder setRunIdBytes(com.google.protobuf.ByteString value)
       The run ID of the activity, useful when run_id was not specified in the request.
       
      string run_id = 1;
      Parameters:
      value - The bytes for runId to set.
      Returns:
      This builder for chaining.
    • hasInfo

      public boolean hasInfo()
       Information about the activity execution. Fields heartbeat_details and last_failure are omitted unless
       the request has include_heartbeat_details or include_last_failure set to true, respectively.
       
      .temporal.api.activity.v1.ActivityExecutionInfo info = 2;
      Specified by:
      hasInfo in interface DescribeActivityExecutionResponseOrBuilder
      Returns:
      Whether the info field is set.
    • getInfo

      public ActivityExecutionInfo getInfo()
       Information about the activity execution. Fields heartbeat_details and last_failure are omitted unless
       the request has include_heartbeat_details or include_last_failure set to true, respectively.
       
      .temporal.api.activity.v1.ActivityExecutionInfo info = 2;
      Specified by:
      getInfo in interface DescribeActivityExecutionResponseOrBuilder
      Returns:
      The info.
    • setInfo

       Information about the activity execution. Fields heartbeat_details and last_failure are omitted unless
       the request has include_heartbeat_details or include_last_failure set to true, respectively.
       
      .temporal.api.activity.v1.ActivityExecutionInfo info = 2;
    • setInfo

       Information about the activity execution. Fields heartbeat_details and last_failure are omitted unless
       the request has include_heartbeat_details or include_last_failure set to true, respectively.
       
      .temporal.api.activity.v1.ActivityExecutionInfo info = 2;
    • mergeInfo

       Information about the activity execution. Fields heartbeat_details and last_failure are omitted unless
       the request has include_heartbeat_details or include_last_failure set to true, respectively.
       
      .temporal.api.activity.v1.ActivityExecutionInfo info = 2;
    • clearInfo

       Information about the activity execution. Fields heartbeat_details and last_failure are omitted unless
       the request has include_heartbeat_details or include_last_failure set to true, respectively.
       
      .temporal.api.activity.v1.ActivityExecutionInfo info = 2;
    • getInfoBuilder

      public ActivityExecutionInfo.Builder getInfoBuilder()
       Information about the activity execution. Fields heartbeat_details and last_failure are omitted unless
       the request has include_heartbeat_details or include_last_failure set to true, respectively.
       
      .temporal.api.activity.v1.ActivityExecutionInfo info = 2;
    • getInfoOrBuilder

      public ActivityExecutionInfoOrBuilder getInfoOrBuilder()
       Information about the activity execution. Fields heartbeat_details and last_failure are omitted unless
       the request has include_heartbeat_details or include_last_failure set to true, respectively.
       
      .temporal.api.activity.v1.ActivityExecutionInfo info = 2;
      Specified by:
      getInfoOrBuilder in interface DescribeActivityExecutionResponseOrBuilder
    • hasInput

      public boolean hasInput()
       Serialized activity input, passed as arguments to the activity function.
       Only set if include_input was true in the request.
       
      .temporal.api.common.v1.Payloads input = 3;
      Specified by:
      hasInput in interface DescribeActivityExecutionResponseOrBuilder
      Returns:
      Whether the input field is set.
    • getInput

      public Payloads getInput()
       Serialized activity input, passed as arguments to the activity function.
       Only set if include_input was true in the request.
       
      .temporal.api.common.v1.Payloads input = 3;
      Specified by:
      getInput in interface DescribeActivityExecutionResponseOrBuilder
      Returns:
      The input.
    • setInput

       Serialized activity input, passed as arguments to the activity function.
       Only set if include_input was true in the request.
       
      .temporal.api.common.v1.Payloads input = 3;
    • setInput

       Serialized activity input, passed as arguments to the activity function.
       Only set if include_input was true in the request.
       
      .temporal.api.common.v1.Payloads input = 3;
    • mergeInput

       Serialized activity input, passed as arguments to the activity function.
       Only set if include_input was true in the request.
       
      .temporal.api.common.v1.Payloads input = 3;
    • clearInput

       Serialized activity input, passed as arguments to the activity function.
       Only set if include_input was true in the request.
       
      .temporal.api.common.v1.Payloads input = 3;
    • getInputBuilder

      public Payloads.Builder getInputBuilder()
       Serialized activity input, passed as arguments to the activity function.
       Only set if include_input was true in the request.
       
      .temporal.api.common.v1.Payloads input = 3;
    • getInputOrBuilder

      public PayloadsOrBuilder getInputOrBuilder()
       Serialized activity input, passed as arguments to the activity function.
       Only set if include_input was true in the request.
       
      .temporal.api.common.v1.Payloads input = 3;
      Specified by:
      getInputOrBuilder in interface DescribeActivityExecutionResponseOrBuilder
    • hasOutcome

      public boolean hasOutcome()
       Only set if the activity is completed and include_outcome was true in the request.
       
      .temporal.api.activity.v1.ActivityExecutionOutcome outcome = 4;
      Specified by:
      hasOutcome in interface DescribeActivityExecutionResponseOrBuilder
      Returns:
      Whether the outcome field is set.
    • getOutcome

      public ActivityExecutionOutcome getOutcome()
       Only set if the activity is completed and include_outcome was true in the request.
       
      .temporal.api.activity.v1.ActivityExecutionOutcome outcome = 4;
      Specified by:
      getOutcome in interface DescribeActivityExecutionResponseOrBuilder
      Returns:
      The outcome.
    • setOutcome

       Only set if the activity is completed and include_outcome was true in the request.
       
      .temporal.api.activity.v1.ActivityExecutionOutcome outcome = 4;
    • setOutcome

       Only set if the activity is completed and include_outcome was true in the request.
       
      .temporal.api.activity.v1.ActivityExecutionOutcome outcome = 4;
    • mergeOutcome

       Only set if the activity is completed and include_outcome was true in the request.
       
      .temporal.api.activity.v1.ActivityExecutionOutcome outcome = 4;
    • clearOutcome

       Only set if the activity is completed and include_outcome was true in the request.
       
      .temporal.api.activity.v1.ActivityExecutionOutcome outcome = 4;
    • getOutcomeBuilder

      public ActivityExecutionOutcome.Builder getOutcomeBuilder()
       Only set if the activity is completed and include_outcome was true in the request.
       
      .temporal.api.activity.v1.ActivityExecutionOutcome outcome = 4;
    • getOutcomeOrBuilder

      public ActivityExecutionOutcomeOrBuilder getOutcomeOrBuilder()
       Only set if the activity is completed and include_outcome was true in the request.
       
      .temporal.api.activity.v1.ActivityExecutionOutcome outcome = 4;
      Specified by:
      getOutcomeOrBuilder in interface DescribeActivityExecutionResponseOrBuilder
    • getLongPollToken

      public com.google.protobuf.ByteString getLongPollToken()
       Token for follow-on long-poll requests. Absent only if the activity is complete.
       
      bytes long_poll_token = 5;
      Specified by:
      getLongPollToken in interface DescribeActivityExecutionResponseOrBuilder
      Returns:
      The longPollToken.
    • setLongPollToken

      public DescribeActivityExecutionResponse.Builder setLongPollToken(com.google.protobuf.ByteString value)
       Token for follow-on long-poll requests. Absent only if the activity is complete.
       
      bytes long_poll_token = 5;
      Parameters:
      value - The longPollToken to set.
      Returns:
      This builder for chaining.
    • clearLongPollToken

      public DescribeActivityExecutionResponse.Builder clearLongPollToken()
       Token for follow-on long-poll requests. Absent only if the activity is complete.
       
      bytes long_poll_token = 5;
      Returns:
      This builder for chaining.
    • getCallbacksList

      public List<CallbackInfo> getCallbacksList()
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
      Specified by:
      getCallbacksList in interface DescribeActivityExecutionResponseOrBuilder
    • getCallbacksCount

      public int getCallbacksCount()
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
      Specified by:
      getCallbacksCount in interface DescribeActivityExecutionResponseOrBuilder
    • getCallbacks

      public CallbackInfo getCallbacks(int index)
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
      Specified by:
      getCallbacks in interface DescribeActivityExecutionResponseOrBuilder
    • setCallbacks

      public DescribeActivityExecutionResponse.Builder setCallbacks(int index, CallbackInfo value)
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
    • setCallbacks

      public DescribeActivityExecutionResponse.Builder setCallbacks(int index, CallbackInfo.Builder builderForValue)
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
    • addCallbacks

       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
    • addCallbacks

      public DescribeActivityExecutionResponse.Builder addCallbacks(int index, CallbackInfo value)
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
    • addCallbacks

      public DescribeActivityExecutionResponse.Builder addCallbacks(CallbackInfo.Builder builderForValue)
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
    • addCallbacks

      public DescribeActivityExecutionResponse.Builder addCallbacks(int index, CallbackInfo.Builder builderForValue)
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
    • addAllCallbacks

      public DescribeActivityExecutionResponse.Builder addAllCallbacks(Iterable<? extends CallbackInfo> values)
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
    • clearCallbacks

       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
    • removeCallbacks

      public DescribeActivityExecutionResponse.Builder removeCallbacks(int index)
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
    • getCallbacksBuilder

      public CallbackInfo.Builder getCallbacksBuilder(int index)
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
    • getCallbacksOrBuilder

      public CallbackInfoOrBuilder getCallbacksOrBuilder(int index)
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
      Specified by:
      getCallbacksOrBuilder in interface DescribeActivityExecutionResponseOrBuilder
    • getCallbacksOrBuilderList

      public List<? extends CallbackInfoOrBuilder> getCallbacksOrBuilderList()
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
      Specified by:
      getCallbacksOrBuilderList in interface DescribeActivityExecutionResponseOrBuilder
    • addCallbacksBuilder

      public CallbackInfo.Builder addCallbacksBuilder()
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
    • addCallbacksBuilder

      public CallbackInfo.Builder addCallbacksBuilder(int index)
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
    • getCallbacksBuilderList

      public List<CallbackInfo.Builder> getCallbacksBuilderList()
       Callbacks attached to this activity execution and their current state.
       
      repeated .temporal.api.activity.v1.CallbackInfo callbacks = 6;
    • setUnknownFields

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

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