Class AsyncOperation.Builder

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

public static final class AsyncOperation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AsyncOperation.Builder> implements AsyncOperationOrBuilder
Protobuf type temporal.api.cloud.operation.v1.AsyncOperation
  • 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<AsyncOperation.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public AsyncOperation.Builder mergeFrom(AsyncOperation other)
    • isInitialized

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

      public AsyncOperation.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<AsyncOperation.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       The operation id.
       
      string id = 1;
      Specified by:
      getId in interface AsyncOperationOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The operation id.
       
      string id = 1;
      Specified by:
      getIdBytes in interface AsyncOperationOrBuilder
      Returns:
      The bytes for id.
    • setId

      public AsyncOperation.Builder setId(String value)
       The operation id.
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public AsyncOperation.Builder clearId()
       The operation id.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public AsyncOperation.Builder setIdBytes(com.google.protobuf.ByteString value)
       The operation id.
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getStateDeprecated

      @Deprecated public String getStateDeprecated()
      Deprecated.
      temporal.api.cloud.operation.v1.AsyncOperation.state_deprecated is deprecated. See temporal/api/cloud/operation/v1/message.proto;l=22
       The current state of this operation.
       Possible values are: pending, in_progress, failed, cancelled, fulfilled.
       Deprecated: Not supported after v0.3.0 api version. Use state instead.
       temporal:versioning:max_version=v0.3.0
       
      string state_deprecated = 2 [deprecated = true];
      Specified by:
      getStateDeprecated in interface AsyncOperationOrBuilder
      Returns:
      The stateDeprecated.
    • getStateDeprecatedBytes

      @Deprecated public com.google.protobuf.ByteString getStateDeprecatedBytes()
      Deprecated.
      temporal.api.cloud.operation.v1.AsyncOperation.state_deprecated is deprecated. See temporal/api/cloud/operation/v1/message.proto;l=22
       The current state of this operation.
       Possible values are: pending, in_progress, failed, cancelled, fulfilled.
       Deprecated: Not supported after v0.3.0 api version. Use state instead.
       temporal:versioning:max_version=v0.3.0
       
      string state_deprecated = 2 [deprecated = true];
      Specified by:
      getStateDeprecatedBytes in interface AsyncOperationOrBuilder
      Returns:
      The bytes for stateDeprecated.
    • setStateDeprecated

      @Deprecated public AsyncOperation.Builder setStateDeprecated(String value)
      Deprecated.
      temporal.api.cloud.operation.v1.AsyncOperation.state_deprecated is deprecated. See temporal/api/cloud/operation/v1/message.proto;l=22
       The current state of this operation.
       Possible values are: pending, in_progress, failed, cancelled, fulfilled.
       Deprecated: Not supported after v0.3.0 api version. Use state instead.
       temporal:versioning:max_version=v0.3.0
       
      string state_deprecated = 2 [deprecated = true];
      Parameters:
      value - The stateDeprecated to set.
      Returns:
      This builder for chaining.
    • clearStateDeprecated

      @Deprecated public AsyncOperation.Builder clearStateDeprecated()
      Deprecated.
      temporal.api.cloud.operation.v1.AsyncOperation.state_deprecated is deprecated. See temporal/api/cloud/operation/v1/message.proto;l=22
       The current state of this operation.
       Possible values are: pending, in_progress, failed, cancelled, fulfilled.
       Deprecated: Not supported after v0.3.0 api version. Use state instead.
       temporal:versioning:max_version=v0.3.0
       
      string state_deprecated = 2 [deprecated = true];
      Returns:
      This builder for chaining.
    • setStateDeprecatedBytes

      @Deprecated public AsyncOperation.Builder setStateDeprecatedBytes(com.google.protobuf.ByteString value)
      Deprecated.
      temporal.api.cloud.operation.v1.AsyncOperation.state_deprecated is deprecated. See temporal/api/cloud/operation/v1/message.proto;l=22
       The current state of this operation.
       Possible values are: pending, in_progress, failed, cancelled, fulfilled.
       Deprecated: Not supported after v0.3.0 api version. Use state instead.
       temporal:versioning:max_version=v0.3.0
       
      string state_deprecated = 2 [deprecated = true];
      Parameters:
      value - The bytes for stateDeprecated to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       The current state of this operation.
       temporal:versioning:min_version=v0.3.0
       temporal:enums:replaces=state_deprecated
       
      .temporal.api.cloud.operation.v1.AsyncOperation.State state = 9;
      Specified by:
      getStateValue in interface AsyncOperationOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public AsyncOperation.Builder setStateValue(int value)
       The current state of this operation.
       temporal:versioning:min_version=v0.3.0
       temporal:enums:replaces=state_deprecated
       
      .temporal.api.cloud.operation.v1.AsyncOperation.State state = 9;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public AsyncOperation.State getState()
       The current state of this operation.
       temporal:versioning:min_version=v0.3.0
       temporal:enums:replaces=state_deprecated
       
      .temporal.api.cloud.operation.v1.AsyncOperation.State state = 9;
      Specified by:
      getState in interface AsyncOperationOrBuilder
      Returns:
      The state.
    • setState

       The current state of this operation.
       temporal:versioning:min_version=v0.3.0
       temporal:enums:replaces=state_deprecated
       
      .temporal.api.cloud.operation.v1.AsyncOperation.State state = 9;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public AsyncOperation.Builder clearState()
       The current state of this operation.
       temporal:versioning:min_version=v0.3.0
       temporal:enums:replaces=state_deprecated
       
      .temporal.api.cloud.operation.v1.AsyncOperation.State state = 9;
      Returns:
      This builder for chaining.
    • hasCheckDuration

      public boolean hasCheckDuration()
       The recommended duration to check back for an update in the operation's state.
       
      .google.protobuf.Duration check_duration = 3;
      Specified by:
      hasCheckDuration in interface AsyncOperationOrBuilder
      Returns:
      Whether the checkDuration field is set.
    • getCheckDuration

      public com.google.protobuf.Duration getCheckDuration()
       The recommended duration to check back for an update in the operation's state.
       
      .google.protobuf.Duration check_duration = 3;
      Specified by:
      getCheckDuration in interface AsyncOperationOrBuilder
      Returns:
      The checkDuration.
    • setCheckDuration

      public AsyncOperation.Builder setCheckDuration(com.google.protobuf.Duration value)
       The recommended duration to check back for an update in the operation's state.
       
      .google.protobuf.Duration check_duration = 3;
    • setCheckDuration

      public AsyncOperation.Builder setCheckDuration(com.google.protobuf.Duration.Builder builderForValue)
       The recommended duration to check back for an update in the operation's state.
       
      .google.protobuf.Duration check_duration = 3;
    • mergeCheckDuration

      public AsyncOperation.Builder mergeCheckDuration(com.google.protobuf.Duration value)
       The recommended duration to check back for an update in the operation's state.
       
      .google.protobuf.Duration check_duration = 3;
    • clearCheckDuration

      public AsyncOperation.Builder clearCheckDuration()
       The recommended duration to check back for an update in the operation's state.
       
      .google.protobuf.Duration check_duration = 3;
    • getCheckDurationBuilder

      public com.google.protobuf.Duration.Builder getCheckDurationBuilder()
       The recommended duration to check back for an update in the operation's state.
       
      .google.protobuf.Duration check_duration = 3;
    • getCheckDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getCheckDurationOrBuilder()
       The recommended duration to check back for an update in the operation's state.
       
      .google.protobuf.Duration check_duration = 3;
      Specified by:
      getCheckDurationOrBuilder in interface AsyncOperationOrBuilder
    • getOperationType

      public String getOperationType()
       The type of operation being performed.
       
      string operation_type = 4;
      Specified by:
      getOperationType in interface AsyncOperationOrBuilder
      Returns:
      The operationType.
    • getOperationTypeBytes

      public com.google.protobuf.ByteString getOperationTypeBytes()
       The type of operation being performed.
       
      string operation_type = 4;
      Specified by:
      getOperationTypeBytes in interface AsyncOperationOrBuilder
      Returns:
      The bytes for operationType.
    • setOperationType

      public AsyncOperation.Builder setOperationType(String value)
       The type of operation being performed.
       
      string operation_type = 4;
      Parameters:
      value - The operationType to set.
      Returns:
      This builder for chaining.
    • clearOperationType

      public AsyncOperation.Builder clearOperationType()
       The type of operation being performed.
       
      string operation_type = 4;
      Returns:
      This builder for chaining.
    • setOperationTypeBytes

      public AsyncOperation.Builder setOperationTypeBytes(com.google.protobuf.ByteString value)
       The type of operation being performed.
       
      string operation_type = 4;
      Parameters:
      value - The bytes for operationType to set.
      Returns:
      This builder for chaining.
    • hasOperationInput

      public boolean hasOperationInput()
       The input to the operation being performed.
      
       (-- api-linter: core::0146::any=disabled --)
       
      .google.protobuf.Any operation_input = 5;
      Specified by:
      hasOperationInput in interface AsyncOperationOrBuilder
      Returns:
      Whether the operationInput field is set.
    • getOperationInput

      public com.google.protobuf.Any getOperationInput()
       The input to the operation being performed.
      
       (-- api-linter: core::0146::any=disabled --)
       
      .google.protobuf.Any operation_input = 5;
      Specified by:
      getOperationInput in interface AsyncOperationOrBuilder
      Returns:
      The operationInput.
    • setOperationInput

      public AsyncOperation.Builder setOperationInput(com.google.protobuf.Any value)
       The input to the operation being performed.
      
       (-- api-linter: core::0146::any=disabled --)
       
      .google.protobuf.Any operation_input = 5;
    • setOperationInput

      public AsyncOperation.Builder setOperationInput(com.google.protobuf.Any.Builder builderForValue)
       The input to the operation being performed.
      
       (-- api-linter: core::0146::any=disabled --)
       
      .google.protobuf.Any operation_input = 5;
    • mergeOperationInput

      public AsyncOperation.Builder mergeOperationInput(com.google.protobuf.Any value)
       The input to the operation being performed.
      
       (-- api-linter: core::0146::any=disabled --)
       
      .google.protobuf.Any operation_input = 5;
    • clearOperationInput

      public AsyncOperation.Builder clearOperationInput()
       The input to the operation being performed.
      
       (-- api-linter: core::0146::any=disabled --)
       
      .google.protobuf.Any operation_input = 5;
    • getOperationInputBuilder

      public com.google.protobuf.Any.Builder getOperationInputBuilder()
       The input to the operation being performed.
      
       (-- api-linter: core::0146::any=disabled --)
       
      .google.protobuf.Any operation_input = 5;
    • getOperationInputOrBuilder

      public com.google.protobuf.AnyOrBuilder getOperationInputOrBuilder()
       The input to the operation being performed.
      
       (-- api-linter: core::0146::any=disabled --)
       
      .google.protobuf.Any operation_input = 5;
      Specified by:
      getOperationInputOrBuilder in interface AsyncOperationOrBuilder
    • getFailureReason

      public String getFailureReason()
       If the operation failed, the reason for the failure.
       
      string failure_reason = 6;
      Specified by:
      getFailureReason in interface AsyncOperationOrBuilder
      Returns:
      The failureReason.
    • getFailureReasonBytes

      public com.google.protobuf.ByteString getFailureReasonBytes()
       If the operation failed, the reason for the failure.
       
      string failure_reason = 6;
      Specified by:
      getFailureReasonBytes in interface AsyncOperationOrBuilder
      Returns:
      The bytes for failureReason.
    • setFailureReason

      public AsyncOperation.Builder setFailureReason(String value)
       If the operation failed, the reason for the failure.
       
      string failure_reason = 6;
      Parameters:
      value - The failureReason to set.
      Returns:
      This builder for chaining.
    • clearFailureReason

      public AsyncOperation.Builder clearFailureReason()
       If the operation failed, the reason for the failure.
       
      string failure_reason = 6;
      Returns:
      This builder for chaining.
    • setFailureReasonBytes

      public AsyncOperation.Builder setFailureReasonBytes(com.google.protobuf.ByteString value)
       If the operation failed, the reason for the failure.
       
      string failure_reason = 6;
      Parameters:
      value - The bytes for failureReason to set.
      Returns:
      This builder for chaining.
    • hasStartedTime

      public boolean hasStartedTime()
       The date and time when the operation initiated.
       
      .google.protobuf.Timestamp started_time = 7;
      Specified by:
      hasStartedTime in interface AsyncOperationOrBuilder
      Returns:
      Whether the startedTime field is set.
    • getStartedTime

      public com.google.protobuf.Timestamp getStartedTime()
       The date and time when the operation initiated.
       
      .google.protobuf.Timestamp started_time = 7;
      Specified by:
      getStartedTime in interface AsyncOperationOrBuilder
      Returns:
      The startedTime.
    • setStartedTime

      public AsyncOperation.Builder setStartedTime(com.google.protobuf.Timestamp value)
       The date and time when the operation initiated.
       
      .google.protobuf.Timestamp started_time = 7;
    • setStartedTime

      public AsyncOperation.Builder setStartedTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The date and time when the operation initiated.
       
      .google.protobuf.Timestamp started_time = 7;
    • mergeStartedTime

      public AsyncOperation.Builder mergeStartedTime(com.google.protobuf.Timestamp value)
       The date and time when the operation initiated.
       
      .google.protobuf.Timestamp started_time = 7;
    • clearStartedTime

      public AsyncOperation.Builder clearStartedTime()
       The date and time when the operation initiated.
       
      .google.protobuf.Timestamp started_time = 7;
    • getStartedTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartedTimeBuilder()
       The date and time when the operation initiated.
       
      .google.protobuf.Timestamp started_time = 7;
    • getStartedTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartedTimeOrBuilder()
       The date and time when the operation initiated.
       
      .google.protobuf.Timestamp started_time = 7;
      Specified by:
      getStartedTimeOrBuilder in interface AsyncOperationOrBuilder
    • hasFinishedTime

      public boolean hasFinishedTime()
       The date and time when the operation completed.
       
      .google.protobuf.Timestamp finished_time = 8;
      Specified by:
      hasFinishedTime in interface AsyncOperationOrBuilder
      Returns:
      Whether the finishedTime field is set.
    • getFinishedTime

      public com.google.protobuf.Timestamp getFinishedTime()
       The date and time when the operation completed.
       
      .google.protobuf.Timestamp finished_time = 8;
      Specified by:
      getFinishedTime in interface AsyncOperationOrBuilder
      Returns:
      The finishedTime.
    • setFinishedTime

      public AsyncOperation.Builder setFinishedTime(com.google.protobuf.Timestamp value)
       The date and time when the operation completed.
       
      .google.protobuf.Timestamp finished_time = 8;
    • setFinishedTime

      public AsyncOperation.Builder setFinishedTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The date and time when the operation completed.
       
      .google.protobuf.Timestamp finished_time = 8;
    • mergeFinishedTime

      public AsyncOperation.Builder mergeFinishedTime(com.google.protobuf.Timestamp value)
       The date and time when the operation completed.
       
      .google.protobuf.Timestamp finished_time = 8;
    • clearFinishedTime

      public AsyncOperation.Builder clearFinishedTime()
       The date and time when the operation completed.
       
      .google.protobuf.Timestamp finished_time = 8;
    • getFinishedTimeBuilder

      public com.google.protobuf.Timestamp.Builder getFinishedTimeBuilder()
       The date and time when the operation completed.
       
      .google.protobuf.Timestamp finished_time = 8;
    • getFinishedTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getFinishedTimeOrBuilder()
       The date and time when the operation completed.
       
      .google.protobuf.Timestamp finished_time = 8;
      Specified by:
      getFinishedTimeOrBuilder in interface AsyncOperationOrBuilder
    • setUnknownFields

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

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