All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes Maven / Gradle / Ivy

There is a newer version: 1.24.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: temporal/api/history/v1/message.proto

package io.temporal.api.history.v1;

/**
 * Protobuf type {@code temporal.api.history.v1.WorkflowTaskScheduledEventAttributes}
 */
@javax.annotation.Generated(value="protoc", comments="annotations:WorkflowTaskScheduledEventAttributes.java.pb.meta")
public  final class WorkflowTaskScheduledEventAttributes extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:temporal.api.history.v1.WorkflowTaskScheduledEventAttributes)
    WorkflowTaskScheduledEventAttributesOrBuilder {
private static final long serialVersionUID = 0L;
  // Use WorkflowTaskScheduledEventAttributes.newBuilder() to construct.
  private WorkflowTaskScheduledEventAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private WorkflowTaskScheduledEventAttributes() {
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new WorkflowTaskScheduledEventAttributes();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private WorkflowTaskScheduledEventAttributes(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            io.temporal.api.taskqueue.v1.TaskQueue.Builder subBuilder = null;
            if (taskQueue_ != null) {
              subBuilder = taskQueue_.toBuilder();
            }
            taskQueue_ = input.readMessage(io.temporal.api.taskqueue.v1.TaskQueue.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(taskQueue_);
              taskQueue_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            com.google.protobuf.Duration.Builder subBuilder = null;
            if (startToCloseTimeout_ != null) {
              subBuilder = startToCloseTimeout_.toBuilder();
            }
            startToCloseTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(startToCloseTimeout_);
              startToCloseTimeout_ = subBuilder.buildPartial();
            }

            break;
          }
          case 24: {

            attempt_ = input.readInt32();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_WorkflowTaskScheduledEventAttributes_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_WorkflowTaskScheduledEventAttributes_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes.class, io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes.Builder.class);
  }

  public static final int TASK_QUEUE_FIELD_NUMBER = 1;
  private io.temporal.api.taskqueue.v1.TaskQueue taskQueue_;
  /**
   * 
   * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
   * 
* * .temporal.api.taskqueue.v1.TaskQueue task_queue = 1; * @return Whether the taskQueue field is set. */ public boolean hasTaskQueue() { return taskQueue_ != null; } /** *
   * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
   * 
* * .temporal.api.taskqueue.v1.TaskQueue task_queue = 1; * @return The taskQueue. */ public io.temporal.api.taskqueue.v1.TaskQueue getTaskQueue() { return taskQueue_ == null ? io.temporal.api.taskqueue.v1.TaskQueue.getDefaultInstance() : taskQueue_; } /** *
   * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
   * 
* * .temporal.api.taskqueue.v1.TaskQueue task_queue = 1; */ public io.temporal.api.taskqueue.v1.TaskQueueOrBuilder getTaskQueueOrBuilder() { return getTaskQueue(); } public static final int START_TO_CLOSE_TIMEOUT_FIELD_NUMBER = 2; private com.google.protobuf.Duration startToCloseTimeout_; /** *
   * How long the worker has to process this task once receiving it before it times out
   * (-- api-linter: core::0140::prepositions=disabled
   *     aip.dev/not-precedent: "to" is used to indicate interval. --)
   * 
* * .google.protobuf.Duration start_to_close_timeout = 2 [(.gogoproto.stdduration) = true]; * @return Whether the startToCloseTimeout field is set. */ public boolean hasStartToCloseTimeout() { return startToCloseTimeout_ != null; } /** *
   * How long the worker has to process this task once receiving it before it times out
   * (-- api-linter: core::0140::prepositions=disabled
   *     aip.dev/not-precedent: "to" is used to indicate interval. --)
   * 
* * .google.protobuf.Duration start_to_close_timeout = 2 [(.gogoproto.stdduration) = true]; * @return The startToCloseTimeout. */ public com.google.protobuf.Duration getStartToCloseTimeout() { return startToCloseTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startToCloseTimeout_; } /** *
   * How long the worker has to process this task once receiving it before it times out
   * (-- api-linter: core::0140::prepositions=disabled
   *     aip.dev/not-precedent: "to" is used to indicate interval. --)
   * 
* * .google.protobuf.Duration start_to_close_timeout = 2 [(.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getStartToCloseTimeoutOrBuilder() { return getStartToCloseTimeout(); } public static final int ATTEMPT_FIELD_NUMBER = 3; private int attempt_; /** *
   * Starting at 1, how many attempts there have been to complete this task
   * 
* * int32 attempt = 3; * @return The attempt. */ public int getAttempt() { return attempt_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (taskQueue_ != null) { output.writeMessage(1, getTaskQueue()); } if (startToCloseTimeout_ != null) { output.writeMessage(2, getStartToCloseTimeout()); } if (attempt_ != 0) { output.writeInt32(3, attempt_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (taskQueue_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTaskQueue()); } if (startToCloseTimeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStartToCloseTimeout()); } if (attempt_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, attempt_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes)) { return super.equals(obj); } io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes other = (io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes) obj; if (hasTaskQueue() != other.hasTaskQueue()) return false; if (hasTaskQueue()) { if (!getTaskQueue() .equals(other.getTaskQueue())) return false; } if (hasStartToCloseTimeout() != other.hasStartToCloseTimeout()) return false; if (hasStartToCloseTimeout()) { if (!getStartToCloseTimeout() .equals(other.getStartToCloseTimeout())) return false; } if (getAttempt() != other.getAttempt()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTaskQueue()) { hash = (37 * hash) + TASK_QUEUE_FIELD_NUMBER; hash = (53 * hash) + getTaskQueue().hashCode(); } if (hasStartToCloseTimeout()) { hash = (37 * hash) + START_TO_CLOSE_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getStartToCloseTimeout().hashCode(); } hash = (37 * hash) + ATTEMPT_FIELD_NUMBER; hash = (53 * hash) + getAttempt(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code temporal.api.history.v1.WorkflowTaskScheduledEventAttributes} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.history.v1.WorkflowTaskScheduledEventAttributes) io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_WorkflowTaskScheduledEventAttributes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_WorkflowTaskScheduledEventAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes.class, io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes.Builder.class); } // Construct using io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (taskQueueBuilder_ == null) { taskQueue_ = null; } else { taskQueue_ = null; taskQueueBuilder_ = null; } if (startToCloseTimeoutBuilder_ == null) { startToCloseTimeout_ = null; } else { startToCloseTimeout_ = null; startToCloseTimeoutBuilder_ = null; } attempt_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_WorkflowTaskScheduledEventAttributes_descriptor; } @java.lang.Override public io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes getDefaultInstanceForType() { return io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes.getDefaultInstance(); } @java.lang.Override public io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes build() { io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes buildPartial() { io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes result = new io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes(this); if (taskQueueBuilder_ == null) { result.taskQueue_ = taskQueue_; } else { result.taskQueue_ = taskQueueBuilder_.build(); } if (startToCloseTimeoutBuilder_ == null) { result.startToCloseTimeout_ = startToCloseTimeout_; } else { result.startToCloseTimeout_ = startToCloseTimeoutBuilder_.build(); } result.attempt_ = attempt_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes) { return mergeFrom((io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes other) { if (other == io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes.getDefaultInstance()) return this; if (other.hasTaskQueue()) { mergeTaskQueue(other.getTaskQueue()); } if (other.hasStartToCloseTimeout()) { mergeStartToCloseTimeout(other.getStartToCloseTimeout()); } if (other.getAttempt() != 0) { setAttempt(other.getAttempt()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.temporal.api.taskqueue.v1.TaskQueue taskQueue_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.taskqueue.v1.TaskQueue, io.temporal.api.taskqueue.v1.TaskQueue.Builder, io.temporal.api.taskqueue.v1.TaskQueueOrBuilder> taskQueueBuilder_; /** *
     * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
     * 
* * .temporal.api.taskqueue.v1.TaskQueue task_queue = 1; * @return Whether the taskQueue field is set. */ public boolean hasTaskQueue() { return taskQueueBuilder_ != null || taskQueue_ != null; } /** *
     * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
     * 
* * .temporal.api.taskqueue.v1.TaskQueue task_queue = 1; * @return The taskQueue. */ public io.temporal.api.taskqueue.v1.TaskQueue getTaskQueue() { if (taskQueueBuilder_ == null) { return taskQueue_ == null ? io.temporal.api.taskqueue.v1.TaskQueue.getDefaultInstance() : taskQueue_; } else { return taskQueueBuilder_.getMessage(); } } /** *
     * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
     * 
* * .temporal.api.taskqueue.v1.TaskQueue task_queue = 1; */ public Builder setTaskQueue(io.temporal.api.taskqueue.v1.TaskQueue value) { if (taskQueueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } taskQueue_ = value; onChanged(); } else { taskQueueBuilder_.setMessage(value); } return this; } /** *
     * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
     * 
* * .temporal.api.taskqueue.v1.TaskQueue task_queue = 1; */ public Builder setTaskQueue( io.temporal.api.taskqueue.v1.TaskQueue.Builder builderForValue) { if (taskQueueBuilder_ == null) { taskQueue_ = builderForValue.build(); onChanged(); } else { taskQueueBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
     * 
* * .temporal.api.taskqueue.v1.TaskQueue task_queue = 1; */ public Builder mergeTaskQueue(io.temporal.api.taskqueue.v1.TaskQueue value) { if (taskQueueBuilder_ == null) { if (taskQueue_ != null) { taskQueue_ = io.temporal.api.taskqueue.v1.TaskQueue.newBuilder(taskQueue_).mergeFrom(value).buildPartial(); } else { taskQueue_ = value; } onChanged(); } else { taskQueueBuilder_.mergeFrom(value); } return this; } /** *
     * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
     * 
* * .temporal.api.taskqueue.v1.TaskQueue task_queue = 1; */ public Builder clearTaskQueue() { if (taskQueueBuilder_ == null) { taskQueue_ = null; onChanged(); } else { taskQueue_ = null; taskQueueBuilder_ = null; } return this; } /** *
     * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
     * 
* * .temporal.api.taskqueue.v1.TaskQueue task_queue = 1; */ public io.temporal.api.taskqueue.v1.TaskQueue.Builder getTaskQueueBuilder() { onChanged(); return getTaskQueueFieldBuilder().getBuilder(); } /** *
     * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
     * 
* * .temporal.api.taskqueue.v1.TaskQueue task_queue = 1; */ public io.temporal.api.taskqueue.v1.TaskQueueOrBuilder getTaskQueueOrBuilder() { if (taskQueueBuilder_ != null) { return taskQueueBuilder_.getMessageOrBuilder(); } else { return taskQueue_ == null ? io.temporal.api.taskqueue.v1.TaskQueue.getDefaultInstance() : taskQueue_; } } /** *
     * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
     * 
* * .temporal.api.taskqueue.v1.TaskQueue task_queue = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.taskqueue.v1.TaskQueue, io.temporal.api.taskqueue.v1.TaskQueue.Builder, io.temporal.api.taskqueue.v1.TaskQueueOrBuilder> getTaskQueueFieldBuilder() { if (taskQueueBuilder_ == null) { taskQueueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.taskqueue.v1.TaskQueue, io.temporal.api.taskqueue.v1.TaskQueue.Builder, io.temporal.api.taskqueue.v1.TaskQueueOrBuilder>( getTaskQueue(), getParentForChildren(), isClean()); taskQueue_ = null; } return taskQueueBuilder_; } private com.google.protobuf.Duration startToCloseTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startToCloseTimeoutBuilder_; /** *
     * How long the worker has to process this task once receiving it before it times out
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration start_to_close_timeout = 2 [(.gogoproto.stdduration) = true]; * @return Whether the startToCloseTimeout field is set. */ public boolean hasStartToCloseTimeout() { return startToCloseTimeoutBuilder_ != null || startToCloseTimeout_ != null; } /** *
     * How long the worker has to process this task once receiving it before it times out
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration start_to_close_timeout = 2 [(.gogoproto.stdduration) = true]; * @return The startToCloseTimeout. */ public com.google.protobuf.Duration getStartToCloseTimeout() { if (startToCloseTimeoutBuilder_ == null) { return startToCloseTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startToCloseTimeout_; } else { return startToCloseTimeoutBuilder_.getMessage(); } } /** *
     * How long the worker has to process this task once receiving it before it times out
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration start_to_close_timeout = 2 [(.gogoproto.stdduration) = true]; */ public Builder setStartToCloseTimeout(com.google.protobuf.Duration value) { if (startToCloseTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startToCloseTimeout_ = value; onChanged(); } else { startToCloseTimeoutBuilder_.setMessage(value); } return this; } /** *
     * How long the worker has to process this task once receiving it before it times out
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration start_to_close_timeout = 2 [(.gogoproto.stdduration) = true]; */ public Builder setStartToCloseTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (startToCloseTimeoutBuilder_ == null) { startToCloseTimeout_ = builderForValue.build(); onChanged(); } else { startToCloseTimeoutBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * How long the worker has to process this task once receiving it before it times out
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration start_to_close_timeout = 2 [(.gogoproto.stdduration) = true]; */ public Builder mergeStartToCloseTimeout(com.google.protobuf.Duration value) { if (startToCloseTimeoutBuilder_ == null) { if (startToCloseTimeout_ != null) { startToCloseTimeout_ = com.google.protobuf.Duration.newBuilder(startToCloseTimeout_).mergeFrom(value).buildPartial(); } else { startToCloseTimeout_ = value; } onChanged(); } else { startToCloseTimeoutBuilder_.mergeFrom(value); } return this; } /** *
     * How long the worker has to process this task once receiving it before it times out
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration start_to_close_timeout = 2 [(.gogoproto.stdduration) = true]; */ public Builder clearStartToCloseTimeout() { if (startToCloseTimeoutBuilder_ == null) { startToCloseTimeout_ = null; onChanged(); } else { startToCloseTimeout_ = null; startToCloseTimeoutBuilder_ = null; } return this; } /** *
     * How long the worker has to process this task once receiving it before it times out
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration start_to_close_timeout = 2 [(.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration.Builder getStartToCloseTimeoutBuilder() { onChanged(); return getStartToCloseTimeoutFieldBuilder().getBuilder(); } /** *
     * How long the worker has to process this task once receiving it before it times out
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration start_to_close_timeout = 2 [(.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getStartToCloseTimeoutOrBuilder() { if (startToCloseTimeoutBuilder_ != null) { return startToCloseTimeoutBuilder_.getMessageOrBuilder(); } else { return startToCloseTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startToCloseTimeout_; } } /** *
     * How long the worker has to process this task once receiving it before it times out
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: "to" is used to indicate interval. --)
     * 
* * .google.protobuf.Duration start_to_close_timeout = 2 [(.gogoproto.stdduration) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getStartToCloseTimeoutFieldBuilder() { if (startToCloseTimeoutBuilder_ == null) { startToCloseTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getStartToCloseTimeout(), getParentForChildren(), isClean()); startToCloseTimeout_ = null; } return startToCloseTimeoutBuilder_; } private int attempt_ ; /** *
     * Starting at 1, how many attempts there have been to complete this task
     * 
* * int32 attempt = 3; * @return The attempt. */ public int getAttempt() { return attempt_; } /** *
     * Starting at 1, how many attempts there have been to complete this task
     * 
* * int32 attempt = 3; * @param value The attempt to set. * @return This builder for chaining. */ public Builder setAttempt(int value) { attempt_ = value; onChanged(); return this; } /** *
     * Starting at 1, how many attempts there have been to complete this task
     * 
* * int32 attempt = 3; * @return This builder for chaining. */ public Builder clearAttempt() { attempt_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:temporal.api.history.v1.WorkflowTaskScheduledEventAttributes) } // @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowTaskScheduledEventAttributes) private static final io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes(); } public static io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WorkflowTaskScheduledEventAttributes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WorkflowTaskScheduledEventAttributes(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.temporal.api.history.v1.WorkflowTaskScheduledEventAttributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy