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

io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse 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/workflowservice/v1/request_response.proto

package io.temporal.api.workflowservice.v1;

/**
 * Protobuf type {@code temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse}
 */
@javax.annotation.Generated(value="protoc", comments="annotations:PollWorkflowTaskQueueResponse.java.pb.meta")
public  final class PollWorkflowTaskQueueResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse)
    PollWorkflowTaskQueueResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PollWorkflowTaskQueueResponse.newBuilder() to construct.
  private PollWorkflowTaskQueueResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private PollWorkflowTaskQueueResponse() {
    taskToken_ = com.google.protobuf.ByteString.EMPTY;
    nextPageToken_ = com.google.protobuf.ByteString.EMPTY;
    messages_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PollWorkflowTaskQueueResponse(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    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: {

            taskToken_ = input.readBytes();
            break;
          }
          case 18: {
            io.temporal.api.common.v1.WorkflowExecution.Builder subBuilder = null;
            if (workflowExecution_ != null) {
              subBuilder = workflowExecution_.toBuilder();
            }
            workflowExecution_ = input.readMessage(io.temporal.api.common.v1.WorkflowExecution.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(workflowExecution_);
              workflowExecution_ = subBuilder.buildPartial();
            }

            break;
          }
          case 26: {
            io.temporal.api.common.v1.WorkflowType.Builder subBuilder = null;
            if (workflowType_ != null) {
              subBuilder = workflowType_.toBuilder();
            }
            workflowType_ = input.readMessage(io.temporal.api.common.v1.WorkflowType.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(workflowType_);
              workflowType_ = subBuilder.buildPartial();
            }

            break;
          }
          case 32: {

            previousStartedEventId_ = input.readInt64();
            break;
          }
          case 40: {

            startedEventId_ = input.readInt64();
            break;
          }
          case 48: {

            attempt_ = input.readInt32();
            break;
          }
          case 56: {

            backlogCountHint_ = input.readInt64();
            break;
          }
          case 66: {
            io.temporal.api.history.v1.History.Builder subBuilder = null;
            if (history_ != null) {
              subBuilder = history_.toBuilder();
            }
            history_ = input.readMessage(io.temporal.api.history.v1.History.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(history_);
              history_ = subBuilder.buildPartial();
            }

            break;
          }
          case 74: {

            nextPageToken_ = input.readBytes();
            break;
          }
          case 82: {
            io.temporal.api.query.v1.WorkflowQuery.Builder subBuilder = null;
            if (query_ != null) {
              subBuilder = query_.toBuilder();
            }
            query_ = input.readMessage(io.temporal.api.query.v1.WorkflowQuery.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(query_);
              query_ = subBuilder.buildPartial();
            }

            break;
          }
          case 90: {
            io.temporal.api.taskqueue.v1.TaskQueue.Builder subBuilder = null;
            if (workflowExecutionTaskQueue_ != null) {
              subBuilder = workflowExecutionTaskQueue_.toBuilder();
            }
            workflowExecutionTaskQueue_ = input.readMessage(io.temporal.api.taskqueue.v1.TaskQueue.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(workflowExecutionTaskQueue_);
              workflowExecutionTaskQueue_ = subBuilder.buildPartial();
            }

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

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

            break;
          }
          case 114: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              queries_ = com.google.protobuf.MapField.newMapField(
                  QueriesDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry
            queries__ = input.readMessage(
                QueriesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            queries_.getMutableMap().put(
                queries__.getKey(), queries__.getValue());
            break;
          }
          case 122: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              messages_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            messages_.add(
                input.readMessage(io.temporal.api.protocol.v1.Message.parser(), extensionRegistry));
            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 {
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        messages_ = java.util.Collections.unmodifiableList(messages_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_PollWorkflowTaskQueueResponse_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 14:
        return internalGetQueries();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_PollWorkflowTaskQueueResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.class, io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.Builder.class);
  }

  public static final int TASK_TOKEN_FIELD_NUMBER = 1;
  private com.google.protobuf.ByteString taskToken_;
  /**
   * 
   * A unique identifier for this task
   * 
* * bytes task_token = 1; * @return The taskToken. */ public com.google.protobuf.ByteString getTaskToken() { return taskToken_; } public static final int WORKFLOW_EXECUTION_FIELD_NUMBER = 2; private io.temporal.api.common.v1.WorkflowExecution workflowExecution_; /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; * @return Whether the workflowExecution field is set. */ public boolean hasWorkflowExecution() { return workflowExecution_ != null; } /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; * @return The workflowExecution. */ public io.temporal.api.common.v1.WorkflowExecution getWorkflowExecution() { return workflowExecution_ == null ? io.temporal.api.common.v1.WorkflowExecution.getDefaultInstance() : workflowExecution_; } /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; */ public io.temporal.api.common.v1.WorkflowExecutionOrBuilder getWorkflowExecutionOrBuilder() { return getWorkflowExecution(); } public static final int WORKFLOW_TYPE_FIELD_NUMBER = 3; private io.temporal.api.common.v1.WorkflowType workflowType_; /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; * @return Whether the workflowType field is set. */ public boolean hasWorkflowType() { return workflowType_ != null; } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; * @return The workflowType. */ public io.temporal.api.common.v1.WorkflowType getWorkflowType() { return workflowType_ == null ? io.temporal.api.common.v1.WorkflowType.getDefaultInstance() : workflowType_; } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ public io.temporal.api.common.v1.WorkflowTypeOrBuilder getWorkflowTypeOrBuilder() { return getWorkflowType(); } public static final int PREVIOUS_STARTED_EVENT_ID_FIELD_NUMBER = 4; private long previousStartedEventId_; /** *
   * The last workflow task started event which was processed by some worker for this execution.
   * Will be zero if no task has ever started.
   * 
* * int64 previous_started_event_id = 4; * @return The previousStartedEventId. */ public long getPreviousStartedEventId() { return previousStartedEventId_; } public static final int STARTED_EVENT_ID_FIELD_NUMBER = 5; private long startedEventId_; /** *
   * The id of the most recent workflow task started event, which will have been generated as a
   * result of this poll request being served.
   * 
* * int64 started_event_id = 5; * @return The startedEventId. */ public long getStartedEventId() { return startedEventId_; } public static final int ATTEMPT_FIELD_NUMBER = 6; private int attempt_; /** *
   * Starting at 1, the number of attempts to complete this task by any worker.
   * 
* * int32 attempt = 6; * @return The attempt. */ public int getAttempt() { return attempt_; } public static final int BACKLOG_COUNT_HINT_FIELD_NUMBER = 7; private long backlogCountHint_; /** *
   * A hint that there are more tasks already present in this task queue. Can be used to
   * prioritize draining a sticky queue before polling from a normal queue.
   * 
* * int64 backlog_count_hint = 7; * @return The backlogCountHint. */ public long getBacklogCountHint() { return backlogCountHint_; } public static final int HISTORY_FIELD_NUMBER = 8; private io.temporal.api.history.v1.History history_; /** *
   * The history for this workflow, which will either be complete or partial. Partial histories
   * are sent to workers who have signaled that they are using a sticky queue when completing
   * a workflow task.
   * 
* * .temporal.api.history.v1.History history = 8; * @return Whether the history field is set. */ public boolean hasHistory() { return history_ != null; } /** *
   * The history for this workflow, which will either be complete or partial. Partial histories
   * are sent to workers who have signaled that they are using a sticky queue when completing
   * a workflow task.
   * 
* * .temporal.api.history.v1.History history = 8; * @return The history. */ public io.temporal.api.history.v1.History getHistory() { return history_ == null ? io.temporal.api.history.v1.History.getDefaultInstance() : history_; } /** *
   * The history for this workflow, which will either be complete or partial. Partial histories
   * are sent to workers who have signaled that they are using a sticky queue when completing
   * a workflow task.
   * 
* * .temporal.api.history.v1.History history = 8; */ public io.temporal.api.history.v1.HistoryOrBuilder getHistoryOrBuilder() { return getHistory(); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 9; private com.google.protobuf.ByteString nextPageToken_; /** *
   * Will be set if there are more history events than were included in this response. Such events
   * should be fetched via `GetWorkflowExecutionHistory`.
   * 
* * bytes next_page_token = 9; * @return The nextPageToken. */ public com.google.protobuf.ByteString getNextPageToken() { return nextPageToken_; } public static final int QUERY_FIELD_NUMBER = 10; private io.temporal.api.query.v1.WorkflowQuery query_; /** *
   * Legacy queries appear in this field. The query must be responded to via
   * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
   * closed workflows) then the `history` field will be populated with the entire history. It
   * may also be populated if this task originates on a non-sticky queue.
   * 
* * .temporal.api.query.v1.WorkflowQuery query = 10; * @return Whether the query field is set. */ public boolean hasQuery() { return query_ != null; } /** *
   * Legacy queries appear in this field. The query must be responded to via
   * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
   * closed workflows) then the `history` field will be populated with the entire history. It
   * may also be populated if this task originates on a non-sticky queue.
   * 
* * .temporal.api.query.v1.WorkflowQuery query = 10; * @return The query. */ public io.temporal.api.query.v1.WorkflowQuery getQuery() { return query_ == null ? io.temporal.api.query.v1.WorkflowQuery.getDefaultInstance() : query_; } /** *
   * Legacy queries appear in this field. The query must be responded to via
   * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
   * closed workflows) then the `history` field will be populated with the entire history. It
   * may also be populated if this task originates on a non-sticky queue.
   * 
* * .temporal.api.query.v1.WorkflowQuery query = 10; */ public io.temporal.api.query.v1.WorkflowQueryOrBuilder getQueryOrBuilder() { return getQuery(); } public static final int WORKFLOW_EXECUTION_TASK_QUEUE_FIELD_NUMBER = 11; private io.temporal.api.taskqueue.v1.TaskQueue workflowExecutionTaskQueue_; /** *
   * The task queue this task originated from, which will always be the original non-sticky name
   * for the queue, even if this response came from polling a sticky queue.
   * 
* * .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11; * @return Whether the workflowExecutionTaskQueue field is set. */ public boolean hasWorkflowExecutionTaskQueue() { return workflowExecutionTaskQueue_ != null; } /** *
   * The task queue this task originated from, which will always be the original non-sticky name
   * for the queue, even if this response came from polling a sticky queue.
   * 
* * .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11; * @return The workflowExecutionTaskQueue. */ public io.temporal.api.taskqueue.v1.TaskQueue getWorkflowExecutionTaskQueue() { return workflowExecutionTaskQueue_ == null ? io.temporal.api.taskqueue.v1.TaskQueue.getDefaultInstance() : workflowExecutionTaskQueue_; } /** *
   * The task queue this task originated from, which will always be the original non-sticky name
   * for the queue, even if this response came from polling a sticky queue.
   * 
* * .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11; */ public io.temporal.api.taskqueue.v1.TaskQueueOrBuilder getWorkflowExecutionTaskQueueOrBuilder() { return getWorkflowExecutionTaskQueue(); } public static final int SCHEDULED_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp scheduledTime_; /** *
   * When this task was scheduled by the server
   * 
* * .google.protobuf.Timestamp scheduled_time = 12 [(.gogoproto.stdtime) = true]; * @return Whether the scheduledTime field is set. */ public boolean hasScheduledTime() { return scheduledTime_ != null; } /** *
   * When this task was scheduled by the server
   * 
* * .google.protobuf.Timestamp scheduled_time = 12 [(.gogoproto.stdtime) = true]; * @return The scheduledTime. */ public com.google.protobuf.Timestamp getScheduledTime() { return scheduledTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledTime_; } /** *
   * When this task was scheduled by the server
   * 
* * .google.protobuf.Timestamp scheduled_time = 12 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getScheduledTimeOrBuilder() { return getScheduledTime(); } public static final int STARTED_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp startedTime_; /** *
   * When the current workflow task started event was generated, meaning the current attempt.
   * 
* * .google.protobuf.Timestamp started_time = 13 [(.gogoproto.stdtime) = true]; * @return Whether the startedTime field is set. */ public boolean hasStartedTime() { return startedTime_ != null; } /** *
   * When the current workflow task started event was generated, meaning the current attempt.
   * 
* * .google.protobuf.Timestamp started_time = 13 [(.gogoproto.stdtime) = true]; * @return The startedTime. */ public com.google.protobuf.Timestamp getStartedTime() { return startedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedTime_; } /** *
   * When the current workflow task started event was generated, meaning the current attempt.
   * 
* * .google.protobuf.Timestamp started_time = 13 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getStartedTimeOrBuilder() { return getStartedTime(); } public static final int QUERIES_FIELD_NUMBER = 14; private static final class QueriesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.temporal.api.query.v1.WorkflowQuery> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_PollWorkflowTaskQueueResponse_QueriesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.temporal.api.query.v1.WorkflowQuery.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.temporal.api.query.v1.WorkflowQuery> queries_; private com.google.protobuf.MapField internalGetQueries() { if (queries_ == null) { return com.google.protobuf.MapField.emptyMapField( QueriesDefaultEntryHolder.defaultEntry); } return queries_; } public int getQueriesCount() { return internalGetQueries().getMap().size(); } /** *
   * Queries that should be executed after applying the history in this task. Responses should be
   * attached to `RespondWorkflowTaskCompletedRequest::query_results`
   * 
* * map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14; */ public boolean containsQueries( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetQueries().getMap().containsKey(key); } /** * Use {@link #getQueriesMap()} instead. */ @java.lang.Deprecated public java.util.Map getQueries() { return getQueriesMap(); } /** *
   * Queries that should be executed after applying the history in this task. Responses should be
   * attached to `RespondWorkflowTaskCompletedRequest::query_results`
   * 
* * map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14; */ public java.util.Map getQueriesMap() { return internalGetQueries().getMap(); } /** *
   * Queries that should be executed after applying the history in this task. Responses should be
   * attached to `RespondWorkflowTaskCompletedRequest::query_results`
   * 
* * map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14; */ public io.temporal.api.query.v1.WorkflowQuery getQueriesOrDefault( java.lang.String key, io.temporal.api.query.v1.WorkflowQuery defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetQueries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * Queries that should be executed after applying the history in this task. Responses should be
   * attached to `RespondWorkflowTaskCompletedRequest::query_results`
   * 
* * map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14; */ public io.temporal.api.query.v1.WorkflowQuery getQueriesOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetQueries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MESSAGES_FIELD_NUMBER = 15; private java.util.List messages_; /** *
   * Protocol messages piggybacking on a WFT as a transport
   * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public java.util.List getMessagesList() { return messages_; } /** *
   * Protocol messages piggybacking on a WFT as a transport
   * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public java.util.List getMessagesOrBuilderList() { return messages_; } /** *
   * Protocol messages piggybacking on a WFT as a transport
   * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public int getMessagesCount() { return messages_.size(); } /** *
   * Protocol messages piggybacking on a WFT as a transport
   * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public io.temporal.api.protocol.v1.Message getMessages(int index) { return messages_.get(index); } /** *
   * Protocol messages piggybacking on a WFT as a transport
   * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public io.temporal.api.protocol.v1.MessageOrBuilder getMessagesOrBuilder( int index) { return messages_.get(index); } 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 (!taskToken_.isEmpty()) { output.writeBytes(1, taskToken_); } if (workflowExecution_ != null) { output.writeMessage(2, getWorkflowExecution()); } if (workflowType_ != null) { output.writeMessage(3, getWorkflowType()); } if (previousStartedEventId_ != 0L) { output.writeInt64(4, previousStartedEventId_); } if (startedEventId_ != 0L) { output.writeInt64(5, startedEventId_); } if (attempt_ != 0) { output.writeInt32(6, attempt_); } if (backlogCountHint_ != 0L) { output.writeInt64(7, backlogCountHint_); } if (history_ != null) { output.writeMessage(8, getHistory()); } if (!nextPageToken_.isEmpty()) { output.writeBytes(9, nextPageToken_); } if (query_ != null) { output.writeMessage(10, getQuery()); } if (workflowExecutionTaskQueue_ != null) { output.writeMessage(11, getWorkflowExecutionTaskQueue()); } if (scheduledTime_ != null) { output.writeMessage(12, getScheduledTime()); } if (startedTime_ != null) { output.writeMessage(13, getStartedTime()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetQueries(), QueriesDefaultEntryHolder.defaultEntry, 14); for (int i = 0; i < messages_.size(); i++) { output.writeMessage(15, messages_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!taskToken_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, taskToken_); } if (workflowExecution_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getWorkflowExecution()); } if (workflowType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getWorkflowType()); } if (previousStartedEventId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, previousStartedEventId_); } if (startedEventId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, startedEventId_); } if (attempt_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, attempt_); } if (backlogCountHint_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, backlogCountHint_); } if (history_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getHistory()); } if (!nextPageToken_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, nextPageToken_); } if (query_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getQuery()); } if (workflowExecutionTaskQueue_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getWorkflowExecutionTaskQueue()); } if (scheduledTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getScheduledTime()); } if (startedTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getStartedTime()); } for (java.util.Map.Entry entry : internalGetQueries().getMap().entrySet()) { com.google.protobuf.MapEntry queries__ = QueriesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, queries__); } for (int i = 0; i < messages_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, messages_.get(i)); } 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.workflowservice.v1.PollWorkflowTaskQueueResponse)) { return super.equals(obj); } io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse other = (io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse) obj; if (!getTaskToken() .equals(other.getTaskToken())) return false; if (hasWorkflowExecution() != other.hasWorkflowExecution()) return false; if (hasWorkflowExecution()) { if (!getWorkflowExecution() .equals(other.getWorkflowExecution())) return false; } if (hasWorkflowType() != other.hasWorkflowType()) return false; if (hasWorkflowType()) { if (!getWorkflowType() .equals(other.getWorkflowType())) return false; } if (getPreviousStartedEventId() != other.getPreviousStartedEventId()) return false; if (getStartedEventId() != other.getStartedEventId()) return false; if (getAttempt() != other.getAttempt()) return false; if (getBacklogCountHint() != other.getBacklogCountHint()) return false; if (hasHistory() != other.hasHistory()) return false; if (hasHistory()) { if (!getHistory() .equals(other.getHistory())) return false; } if (!getNextPageToken() .equals(other.getNextPageToken())) return false; if (hasQuery() != other.hasQuery()) return false; if (hasQuery()) { if (!getQuery() .equals(other.getQuery())) return false; } if (hasWorkflowExecutionTaskQueue() != other.hasWorkflowExecutionTaskQueue()) return false; if (hasWorkflowExecutionTaskQueue()) { if (!getWorkflowExecutionTaskQueue() .equals(other.getWorkflowExecutionTaskQueue())) return false; } if (hasScheduledTime() != other.hasScheduledTime()) return false; if (hasScheduledTime()) { if (!getScheduledTime() .equals(other.getScheduledTime())) return false; } if (hasStartedTime() != other.hasStartedTime()) return false; if (hasStartedTime()) { if (!getStartedTime() .equals(other.getStartedTime())) return false; } if (!internalGetQueries().equals( other.internalGetQueries())) return false; if (!getMessagesList() .equals(other.getMessagesList())) 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(); hash = (37 * hash) + TASK_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getTaskToken().hashCode(); if (hasWorkflowExecution()) { hash = (37 * hash) + WORKFLOW_EXECUTION_FIELD_NUMBER; hash = (53 * hash) + getWorkflowExecution().hashCode(); } if (hasWorkflowType()) { hash = (37 * hash) + WORKFLOW_TYPE_FIELD_NUMBER; hash = (53 * hash) + getWorkflowType().hashCode(); } hash = (37 * hash) + PREVIOUS_STARTED_EVENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPreviousStartedEventId()); hash = (37 * hash) + STARTED_EVENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartedEventId()); hash = (37 * hash) + ATTEMPT_FIELD_NUMBER; hash = (53 * hash) + getAttempt(); hash = (37 * hash) + BACKLOG_COUNT_HINT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBacklogCountHint()); if (hasHistory()) { hash = (37 * hash) + HISTORY_FIELD_NUMBER; hash = (53 * hash) + getHistory().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); if (hasQuery()) { hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); } if (hasWorkflowExecutionTaskQueue()) { hash = (37 * hash) + WORKFLOW_EXECUTION_TASK_QUEUE_FIELD_NUMBER; hash = (53 * hash) + getWorkflowExecutionTaskQueue().hashCode(); } if (hasScheduledTime()) { hash = (37 * hash) + SCHEDULED_TIME_FIELD_NUMBER; hash = (53 * hash) + getScheduledTime().hashCode(); } if (hasStartedTime()) { hash = (37 * hash) + STARTED_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartedTime().hashCode(); } if (!internalGetQueries().getMap().isEmpty()) { hash = (37 * hash) + QUERIES_FIELD_NUMBER; hash = (53 * hash) + internalGetQueries().hashCode(); } if (getMessagesCount() > 0) { hash = (37 * hash) + MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getMessagesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse 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.workflowservice.v1.PollWorkflowTaskQueueResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse 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.workflowservice.v1.PollWorkflowTaskQueueResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse 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.workflowservice.v1.PollWorkflowTaskQueueResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse 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.workflowservice.v1.PollWorkflowTaskQueueResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse 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.workflowservice.v1.PollWorkflowTaskQueueResponse 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.workflowservice.v1.PollWorkflowTaskQueueResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse) io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_PollWorkflowTaskQueueResponse_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 14: return internalGetQueries(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 14: return internalGetMutableQueries(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_PollWorkflowTaskQueueResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.class, io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.Builder.class); } // Construct using io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMessagesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); taskToken_ = com.google.protobuf.ByteString.EMPTY; if (workflowExecutionBuilder_ == null) { workflowExecution_ = null; } else { workflowExecution_ = null; workflowExecutionBuilder_ = null; } if (workflowTypeBuilder_ == null) { workflowType_ = null; } else { workflowType_ = null; workflowTypeBuilder_ = null; } previousStartedEventId_ = 0L; startedEventId_ = 0L; attempt_ = 0; backlogCountHint_ = 0L; if (historyBuilder_ == null) { history_ = null; } else { history_ = null; historyBuilder_ = null; } nextPageToken_ = com.google.protobuf.ByteString.EMPTY; if (queryBuilder_ == null) { query_ = null; } else { query_ = null; queryBuilder_ = null; } if (workflowExecutionTaskQueueBuilder_ == null) { workflowExecutionTaskQueue_ = null; } else { workflowExecutionTaskQueue_ = null; workflowExecutionTaskQueueBuilder_ = null; } if (scheduledTimeBuilder_ == null) { scheduledTime_ = null; } else { scheduledTime_ = null; scheduledTimeBuilder_ = null; } if (startedTimeBuilder_ == null) { startedTime_ = null; } else { startedTime_ = null; startedTimeBuilder_ = null; } internalGetMutableQueries().clear(); if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { messagesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_PollWorkflowTaskQueueResponse_descriptor; } @java.lang.Override public io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse getDefaultInstanceForType() { return io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.getDefaultInstance(); } @java.lang.Override public io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse build() { io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse buildPartial() { io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse result = new io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse(this); int from_bitField0_ = bitField0_; result.taskToken_ = taskToken_; if (workflowExecutionBuilder_ == null) { result.workflowExecution_ = workflowExecution_; } else { result.workflowExecution_ = workflowExecutionBuilder_.build(); } if (workflowTypeBuilder_ == null) { result.workflowType_ = workflowType_; } else { result.workflowType_ = workflowTypeBuilder_.build(); } result.previousStartedEventId_ = previousStartedEventId_; result.startedEventId_ = startedEventId_; result.attempt_ = attempt_; result.backlogCountHint_ = backlogCountHint_; if (historyBuilder_ == null) { result.history_ = history_; } else { result.history_ = historyBuilder_.build(); } result.nextPageToken_ = nextPageToken_; if (queryBuilder_ == null) { result.query_ = query_; } else { result.query_ = queryBuilder_.build(); } if (workflowExecutionTaskQueueBuilder_ == null) { result.workflowExecutionTaskQueue_ = workflowExecutionTaskQueue_; } else { result.workflowExecutionTaskQueue_ = workflowExecutionTaskQueueBuilder_.build(); } if (scheduledTimeBuilder_ == null) { result.scheduledTime_ = scheduledTime_; } else { result.scheduledTime_ = scheduledTimeBuilder_.build(); } if (startedTimeBuilder_ == null) { result.startedTime_ = startedTime_; } else { result.startedTime_ = startedTimeBuilder_.build(); } result.queries_ = internalGetQueries(); result.queries_.makeImmutable(); if (messagesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); bitField0_ = (bitField0_ & ~0x00000002); } result.messages_ = messages_; } else { result.messages_ = messagesBuilder_.build(); } 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.workflowservice.v1.PollWorkflowTaskQueueResponse) { return mergeFrom((io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse other) { if (other == io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.getDefaultInstance()) return this; if (other.getTaskToken() != com.google.protobuf.ByteString.EMPTY) { setTaskToken(other.getTaskToken()); } if (other.hasWorkflowExecution()) { mergeWorkflowExecution(other.getWorkflowExecution()); } if (other.hasWorkflowType()) { mergeWorkflowType(other.getWorkflowType()); } if (other.getPreviousStartedEventId() != 0L) { setPreviousStartedEventId(other.getPreviousStartedEventId()); } if (other.getStartedEventId() != 0L) { setStartedEventId(other.getStartedEventId()); } if (other.getAttempt() != 0) { setAttempt(other.getAttempt()); } if (other.getBacklogCountHint() != 0L) { setBacklogCountHint(other.getBacklogCountHint()); } if (other.hasHistory()) { mergeHistory(other.getHistory()); } if (other.getNextPageToken() != com.google.protobuf.ByteString.EMPTY) { setNextPageToken(other.getNextPageToken()); } if (other.hasQuery()) { mergeQuery(other.getQuery()); } if (other.hasWorkflowExecutionTaskQueue()) { mergeWorkflowExecutionTaskQueue(other.getWorkflowExecutionTaskQueue()); } if (other.hasScheduledTime()) { mergeScheduledTime(other.getScheduledTime()); } if (other.hasStartedTime()) { mergeStartedTime(other.getStartedTime()); } internalGetMutableQueries().mergeFrom( other.internalGetQueries()); if (messagesBuilder_ == null) { if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMessagesIsMutable(); messages_.addAll(other.messages_); } onChanged(); } } else { if (!other.messages_.isEmpty()) { if (messagesBuilder_.isEmpty()) { messagesBuilder_.dispose(); messagesBuilder_ = null; messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000002); messagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMessagesFieldBuilder() : null; } else { messagesBuilder_.addAllMessages(other.messages_); } } } 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.workflowservice.v1.PollWorkflowTaskQueueResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString taskToken_ = com.google.protobuf.ByteString.EMPTY; /** *
     * A unique identifier for this task
     * 
* * bytes task_token = 1; * @return The taskToken. */ public com.google.protobuf.ByteString getTaskToken() { return taskToken_; } /** *
     * A unique identifier for this task
     * 
* * bytes task_token = 1; * @param value The taskToken to set. * @return This builder for chaining. */ public Builder setTaskToken(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } taskToken_ = value; onChanged(); return this; } /** *
     * A unique identifier for this task
     * 
* * bytes task_token = 1; * @return This builder for chaining. */ public Builder clearTaskToken() { taskToken_ = getDefaultInstance().getTaskToken(); onChanged(); return this; } private io.temporal.api.common.v1.WorkflowExecution workflowExecution_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.WorkflowExecution, io.temporal.api.common.v1.WorkflowExecution.Builder, io.temporal.api.common.v1.WorkflowExecutionOrBuilder> workflowExecutionBuilder_; /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; * @return Whether the workflowExecution field is set. */ public boolean hasWorkflowExecution() { return workflowExecutionBuilder_ != null || workflowExecution_ != null; } /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; * @return The workflowExecution. */ public io.temporal.api.common.v1.WorkflowExecution getWorkflowExecution() { if (workflowExecutionBuilder_ == null) { return workflowExecution_ == null ? io.temporal.api.common.v1.WorkflowExecution.getDefaultInstance() : workflowExecution_; } else { return workflowExecutionBuilder_.getMessage(); } } /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; */ public Builder setWorkflowExecution(io.temporal.api.common.v1.WorkflowExecution value) { if (workflowExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } workflowExecution_ = value; onChanged(); } else { workflowExecutionBuilder_.setMessage(value); } return this; } /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; */ public Builder setWorkflowExecution( io.temporal.api.common.v1.WorkflowExecution.Builder builderForValue) { if (workflowExecutionBuilder_ == null) { workflowExecution_ = builderForValue.build(); onChanged(); } else { workflowExecutionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; */ public Builder mergeWorkflowExecution(io.temporal.api.common.v1.WorkflowExecution value) { if (workflowExecutionBuilder_ == null) { if (workflowExecution_ != null) { workflowExecution_ = io.temporal.api.common.v1.WorkflowExecution.newBuilder(workflowExecution_).mergeFrom(value).buildPartial(); } else { workflowExecution_ = value; } onChanged(); } else { workflowExecutionBuilder_.mergeFrom(value); } return this; } /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; */ public Builder clearWorkflowExecution() { if (workflowExecutionBuilder_ == null) { workflowExecution_ = null; onChanged(); } else { workflowExecution_ = null; workflowExecutionBuilder_ = null; } return this; } /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; */ public io.temporal.api.common.v1.WorkflowExecution.Builder getWorkflowExecutionBuilder() { onChanged(); return getWorkflowExecutionFieldBuilder().getBuilder(); } /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; */ public io.temporal.api.common.v1.WorkflowExecutionOrBuilder getWorkflowExecutionOrBuilder() { if (workflowExecutionBuilder_ != null) { return workflowExecutionBuilder_.getMessageOrBuilder(); } else { return workflowExecution_ == null ? io.temporal.api.common.v1.WorkflowExecution.getDefaultInstance() : workflowExecution_; } } /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.WorkflowExecution, io.temporal.api.common.v1.WorkflowExecution.Builder, io.temporal.api.common.v1.WorkflowExecutionOrBuilder> getWorkflowExecutionFieldBuilder() { if (workflowExecutionBuilder_ == null) { workflowExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.WorkflowExecution, io.temporal.api.common.v1.WorkflowExecution.Builder, io.temporal.api.common.v1.WorkflowExecutionOrBuilder>( getWorkflowExecution(), getParentForChildren(), isClean()); workflowExecution_ = null; } return workflowExecutionBuilder_; } private io.temporal.api.common.v1.WorkflowType workflowType_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.WorkflowType, io.temporal.api.common.v1.WorkflowType.Builder, io.temporal.api.common.v1.WorkflowTypeOrBuilder> workflowTypeBuilder_; /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; * @return Whether the workflowType field is set. */ public boolean hasWorkflowType() { return workflowTypeBuilder_ != null || workflowType_ != null; } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; * @return The workflowType. */ public io.temporal.api.common.v1.WorkflowType getWorkflowType() { if (workflowTypeBuilder_ == null) { return workflowType_ == null ? io.temporal.api.common.v1.WorkflowType.getDefaultInstance() : workflowType_; } else { return workflowTypeBuilder_.getMessage(); } } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ public Builder setWorkflowType(io.temporal.api.common.v1.WorkflowType value) { if (workflowTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } workflowType_ = value; onChanged(); } else { workflowTypeBuilder_.setMessage(value); } return this; } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ public Builder setWorkflowType( io.temporal.api.common.v1.WorkflowType.Builder builderForValue) { if (workflowTypeBuilder_ == null) { workflowType_ = builderForValue.build(); onChanged(); } else { workflowTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ public Builder mergeWorkflowType(io.temporal.api.common.v1.WorkflowType value) { if (workflowTypeBuilder_ == null) { if (workflowType_ != null) { workflowType_ = io.temporal.api.common.v1.WorkflowType.newBuilder(workflowType_).mergeFrom(value).buildPartial(); } else { workflowType_ = value; } onChanged(); } else { workflowTypeBuilder_.mergeFrom(value); } return this; } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ public Builder clearWorkflowType() { if (workflowTypeBuilder_ == null) { workflowType_ = null; onChanged(); } else { workflowType_ = null; workflowTypeBuilder_ = null; } return this; } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ public io.temporal.api.common.v1.WorkflowType.Builder getWorkflowTypeBuilder() { onChanged(); return getWorkflowTypeFieldBuilder().getBuilder(); } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ public io.temporal.api.common.v1.WorkflowTypeOrBuilder getWorkflowTypeOrBuilder() { if (workflowTypeBuilder_ != null) { return workflowTypeBuilder_.getMessageOrBuilder(); } else { return workflowType_ == null ? io.temporal.api.common.v1.WorkflowType.getDefaultInstance() : workflowType_; } } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.WorkflowType, io.temporal.api.common.v1.WorkflowType.Builder, io.temporal.api.common.v1.WorkflowTypeOrBuilder> getWorkflowTypeFieldBuilder() { if (workflowTypeBuilder_ == null) { workflowTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.WorkflowType, io.temporal.api.common.v1.WorkflowType.Builder, io.temporal.api.common.v1.WorkflowTypeOrBuilder>( getWorkflowType(), getParentForChildren(), isClean()); workflowType_ = null; } return workflowTypeBuilder_; } private long previousStartedEventId_ ; /** *
     * The last workflow task started event which was processed by some worker for this execution.
     * Will be zero if no task has ever started.
     * 
* * int64 previous_started_event_id = 4; * @return The previousStartedEventId. */ public long getPreviousStartedEventId() { return previousStartedEventId_; } /** *
     * The last workflow task started event which was processed by some worker for this execution.
     * Will be zero if no task has ever started.
     * 
* * int64 previous_started_event_id = 4; * @param value The previousStartedEventId to set. * @return This builder for chaining. */ public Builder setPreviousStartedEventId(long value) { previousStartedEventId_ = value; onChanged(); return this; } /** *
     * The last workflow task started event which was processed by some worker for this execution.
     * Will be zero if no task has ever started.
     * 
* * int64 previous_started_event_id = 4; * @return This builder for chaining. */ public Builder clearPreviousStartedEventId() { previousStartedEventId_ = 0L; onChanged(); return this; } private long startedEventId_ ; /** *
     * The id of the most recent workflow task started event, which will have been generated as a
     * result of this poll request being served.
     * 
* * int64 started_event_id = 5; * @return The startedEventId. */ public long getStartedEventId() { return startedEventId_; } /** *
     * The id of the most recent workflow task started event, which will have been generated as a
     * result of this poll request being served.
     * 
* * int64 started_event_id = 5; * @param value The startedEventId to set. * @return This builder for chaining. */ public Builder setStartedEventId(long value) { startedEventId_ = value; onChanged(); return this; } /** *
     * The id of the most recent workflow task started event, which will have been generated as a
     * result of this poll request being served.
     * 
* * int64 started_event_id = 5; * @return This builder for chaining. */ public Builder clearStartedEventId() { startedEventId_ = 0L; onChanged(); return this; } private int attempt_ ; /** *
     * Starting at 1, the number of attempts to complete this task by any worker.
     * 
* * int32 attempt = 6; * @return The attempt. */ public int getAttempt() { return attempt_; } /** *
     * Starting at 1, the number of attempts to complete this task by any worker.
     * 
* * int32 attempt = 6; * @param value The attempt to set. * @return This builder for chaining. */ public Builder setAttempt(int value) { attempt_ = value; onChanged(); return this; } /** *
     * Starting at 1, the number of attempts to complete this task by any worker.
     * 
* * int32 attempt = 6; * @return This builder for chaining. */ public Builder clearAttempt() { attempt_ = 0; onChanged(); return this; } private long backlogCountHint_ ; /** *
     * A hint that there are more tasks already present in this task queue. Can be used to
     * prioritize draining a sticky queue before polling from a normal queue.
     * 
* * int64 backlog_count_hint = 7; * @return The backlogCountHint. */ public long getBacklogCountHint() { return backlogCountHint_; } /** *
     * A hint that there are more tasks already present in this task queue. Can be used to
     * prioritize draining a sticky queue before polling from a normal queue.
     * 
* * int64 backlog_count_hint = 7; * @param value The backlogCountHint to set. * @return This builder for chaining. */ public Builder setBacklogCountHint(long value) { backlogCountHint_ = value; onChanged(); return this; } /** *
     * A hint that there are more tasks already present in this task queue. Can be used to
     * prioritize draining a sticky queue before polling from a normal queue.
     * 
* * int64 backlog_count_hint = 7; * @return This builder for chaining. */ public Builder clearBacklogCountHint() { backlogCountHint_ = 0L; onChanged(); return this; } private io.temporal.api.history.v1.History history_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.history.v1.History, io.temporal.api.history.v1.History.Builder, io.temporal.api.history.v1.HistoryOrBuilder> historyBuilder_; /** *
     * The history for this workflow, which will either be complete or partial. Partial histories
     * are sent to workers who have signaled that they are using a sticky queue when completing
     * a workflow task.
     * 
* * .temporal.api.history.v1.History history = 8; * @return Whether the history field is set. */ public boolean hasHistory() { return historyBuilder_ != null || history_ != null; } /** *
     * The history for this workflow, which will either be complete or partial. Partial histories
     * are sent to workers who have signaled that they are using a sticky queue when completing
     * a workflow task.
     * 
* * .temporal.api.history.v1.History history = 8; * @return The history. */ public io.temporal.api.history.v1.History getHistory() { if (historyBuilder_ == null) { return history_ == null ? io.temporal.api.history.v1.History.getDefaultInstance() : history_; } else { return historyBuilder_.getMessage(); } } /** *
     * The history for this workflow, which will either be complete or partial. Partial histories
     * are sent to workers who have signaled that they are using a sticky queue when completing
     * a workflow task.
     * 
* * .temporal.api.history.v1.History history = 8; */ public Builder setHistory(io.temporal.api.history.v1.History value) { if (historyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } history_ = value; onChanged(); } else { historyBuilder_.setMessage(value); } return this; } /** *
     * The history for this workflow, which will either be complete or partial. Partial histories
     * are sent to workers who have signaled that they are using a sticky queue when completing
     * a workflow task.
     * 
* * .temporal.api.history.v1.History history = 8; */ public Builder setHistory( io.temporal.api.history.v1.History.Builder builderForValue) { if (historyBuilder_ == null) { history_ = builderForValue.build(); onChanged(); } else { historyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The history for this workflow, which will either be complete or partial. Partial histories
     * are sent to workers who have signaled that they are using a sticky queue when completing
     * a workflow task.
     * 
* * .temporal.api.history.v1.History history = 8; */ public Builder mergeHistory(io.temporal.api.history.v1.History value) { if (historyBuilder_ == null) { if (history_ != null) { history_ = io.temporal.api.history.v1.History.newBuilder(history_).mergeFrom(value).buildPartial(); } else { history_ = value; } onChanged(); } else { historyBuilder_.mergeFrom(value); } return this; } /** *
     * The history for this workflow, which will either be complete or partial. Partial histories
     * are sent to workers who have signaled that they are using a sticky queue when completing
     * a workflow task.
     * 
* * .temporal.api.history.v1.History history = 8; */ public Builder clearHistory() { if (historyBuilder_ == null) { history_ = null; onChanged(); } else { history_ = null; historyBuilder_ = null; } return this; } /** *
     * The history for this workflow, which will either be complete or partial. Partial histories
     * are sent to workers who have signaled that they are using a sticky queue when completing
     * a workflow task.
     * 
* * .temporal.api.history.v1.History history = 8; */ public io.temporal.api.history.v1.History.Builder getHistoryBuilder() { onChanged(); return getHistoryFieldBuilder().getBuilder(); } /** *
     * The history for this workflow, which will either be complete or partial. Partial histories
     * are sent to workers who have signaled that they are using a sticky queue when completing
     * a workflow task.
     * 
* * .temporal.api.history.v1.History history = 8; */ public io.temporal.api.history.v1.HistoryOrBuilder getHistoryOrBuilder() { if (historyBuilder_ != null) { return historyBuilder_.getMessageOrBuilder(); } else { return history_ == null ? io.temporal.api.history.v1.History.getDefaultInstance() : history_; } } /** *
     * The history for this workflow, which will either be complete or partial. Partial histories
     * are sent to workers who have signaled that they are using a sticky queue when completing
     * a workflow task.
     * 
* * .temporal.api.history.v1.History history = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.history.v1.History, io.temporal.api.history.v1.History.Builder, io.temporal.api.history.v1.HistoryOrBuilder> getHistoryFieldBuilder() { if (historyBuilder_ == null) { historyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.history.v1.History, io.temporal.api.history.v1.History.Builder, io.temporal.api.history.v1.HistoryOrBuilder>( getHistory(), getParentForChildren(), isClean()); history_ = null; } return historyBuilder_; } private com.google.protobuf.ByteString nextPageToken_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Will be set if there are more history events than were included in this response. Such events
     * should be fetched via `GetWorkflowExecutionHistory`.
     * 
* * bytes next_page_token = 9; * @return The nextPageToken. */ public com.google.protobuf.ByteString getNextPageToken() { return nextPageToken_; } /** *
     * Will be set if there are more history events than were included in this response. Such events
     * should be fetched via `GetWorkflowExecutionHistory`.
     * 
* * bytes next_page_token = 9; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
     * Will be set if there are more history events than were included in this response. Such events
     * should be fetched via `GetWorkflowExecutionHistory`.
     * 
* * bytes next_page_token = 9; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } private io.temporal.api.query.v1.WorkflowQuery query_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.query.v1.WorkflowQuery, io.temporal.api.query.v1.WorkflowQuery.Builder, io.temporal.api.query.v1.WorkflowQueryOrBuilder> queryBuilder_; /** *
     * Legacy queries appear in this field. The query must be responded to via
     * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
     * closed workflows) then the `history` field will be populated with the entire history. It
     * may also be populated if this task originates on a non-sticky queue.
     * 
* * .temporal.api.query.v1.WorkflowQuery query = 10; * @return Whether the query field is set. */ public boolean hasQuery() { return queryBuilder_ != null || query_ != null; } /** *
     * Legacy queries appear in this field. The query must be responded to via
     * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
     * closed workflows) then the `history` field will be populated with the entire history. It
     * may also be populated if this task originates on a non-sticky queue.
     * 
* * .temporal.api.query.v1.WorkflowQuery query = 10; * @return The query. */ public io.temporal.api.query.v1.WorkflowQuery getQuery() { if (queryBuilder_ == null) { return query_ == null ? io.temporal.api.query.v1.WorkflowQuery.getDefaultInstance() : query_; } else { return queryBuilder_.getMessage(); } } /** *
     * Legacy queries appear in this field. The query must be responded to via
     * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
     * closed workflows) then the `history` field will be populated with the entire history. It
     * may also be populated if this task originates on a non-sticky queue.
     * 
* * .temporal.api.query.v1.WorkflowQuery query = 10; */ public Builder setQuery(io.temporal.api.query.v1.WorkflowQuery value) { if (queryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } query_ = value; onChanged(); } else { queryBuilder_.setMessage(value); } return this; } /** *
     * Legacy queries appear in this field. The query must be responded to via
     * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
     * closed workflows) then the `history` field will be populated with the entire history. It
     * may also be populated if this task originates on a non-sticky queue.
     * 
* * .temporal.api.query.v1.WorkflowQuery query = 10; */ public Builder setQuery( io.temporal.api.query.v1.WorkflowQuery.Builder builderForValue) { if (queryBuilder_ == null) { query_ = builderForValue.build(); onChanged(); } else { queryBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Legacy queries appear in this field. The query must be responded to via
     * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
     * closed workflows) then the `history` field will be populated with the entire history. It
     * may also be populated if this task originates on a non-sticky queue.
     * 
* * .temporal.api.query.v1.WorkflowQuery query = 10; */ public Builder mergeQuery(io.temporal.api.query.v1.WorkflowQuery value) { if (queryBuilder_ == null) { if (query_ != null) { query_ = io.temporal.api.query.v1.WorkflowQuery.newBuilder(query_).mergeFrom(value).buildPartial(); } else { query_ = value; } onChanged(); } else { queryBuilder_.mergeFrom(value); } return this; } /** *
     * Legacy queries appear in this field. The query must be responded to via
     * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
     * closed workflows) then the `history` field will be populated with the entire history. It
     * may also be populated if this task originates on a non-sticky queue.
     * 
* * .temporal.api.query.v1.WorkflowQuery query = 10; */ public Builder clearQuery() { if (queryBuilder_ == null) { query_ = null; onChanged(); } else { query_ = null; queryBuilder_ = null; } return this; } /** *
     * Legacy queries appear in this field. The query must be responded to via
     * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
     * closed workflows) then the `history` field will be populated with the entire history. It
     * may also be populated if this task originates on a non-sticky queue.
     * 
* * .temporal.api.query.v1.WorkflowQuery query = 10; */ public io.temporal.api.query.v1.WorkflowQuery.Builder getQueryBuilder() { onChanged(); return getQueryFieldBuilder().getBuilder(); } /** *
     * Legacy queries appear in this field. The query must be responded to via
     * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
     * closed workflows) then the `history` field will be populated with the entire history. It
     * may also be populated if this task originates on a non-sticky queue.
     * 
* * .temporal.api.query.v1.WorkflowQuery query = 10; */ public io.temporal.api.query.v1.WorkflowQueryOrBuilder getQueryOrBuilder() { if (queryBuilder_ != null) { return queryBuilder_.getMessageOrBuilder(); } else { return query_ == null ? io.temporal.api.query.v1.WorkflowQuery.getDefaultInstance() : query_; } } /** *
     * Legacy queries appear in this field. The query must be responded to via
     * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
     * closed workflows) then the `history` field will be populated with the entire history. It
     * may also be populated if this task originates on a non-sticky queue.
     * 
* * .temporal.api.query.v1.WorkflowQuery query = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.query.v1.WorkflowQuery, io.temporal.api.query.v1.WorkflowQuery.Builder, io.temporal.api.query.v1.WorkflowQueryOrBuilder> getQueryFieldBuilder() { if (queryBuilder_ == null) { queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.query.v1.WorkflowQuery, io.temporal.api.query.v1.WorkflowQuery.Builder, io.temporal.api.query.v1.WorkflowQueryOrBuilder>( getQuery(), getParentForChildren(), isClean()); query_ = null; } return queryBuilder_; } private io.temporal.api.taskqueue.v1.TaskQueue workflowExecutionTaskQueue_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.taskqueue.v1.TaskQueue, io.temporal.api.taskqueue.v1.TaskQueue.Builder, io.temporal.api.taskqueue.v1.TaskQueueOrBuilder> workflowExecutionTaskQueueBuilder_; /** *
     * The task queue this task originated from, which will always be the original non-sticky name
     * for the queue, even if this response came from polling a sticky queue.
     * 
* * .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11; * @return Whether the workflowExecutionTaskQueue field is set. */ public boolean hasWorkflowExecutionTaskQueue() { return workflowExecutionTaskQueueBuilder_ != null || workflowExecutionTaskQueue_ != null; } /** *
     * The task queue this task originated from, which will always be the original non-sticky name
     * for the queue, even if this response came from polling a sticky queue.
     * 
* * .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11; * @return The workflowExecutionTaskQueue. */ public io.temporal.api.taskqueue.v1.TaskQueue getWorkflowExecutionTaskQueue() { if (workflowExecutionTaskQueueBuilder_ == null) { return workflowExecutionTaskQueue_ == null ? io.temporal.api.taskqueue.v1.TaskQueue.getDefaultInstance() : workflowExecutionTaskQueue_; } else { return workflowExecutionTaskQueueBuilder_.getMessage(); } } /** *
     * The task queue this task originated from, which will always be the original non-sticky name
     * for the queue, even if this response came from polling a sticky queue.
     * 
* * .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11; */ public Builder setWorkflowExecutionTaskQueue(io.temporal.api.taskqueue.v1.TaskQueue value) { if (workflowExecutionTaskQueueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } workflowExecutionTaskQueue_ = value; onChanged(); } else { workflowExecutionTaskQueueBuilder_.setMessage(value); } return this; } /** *
     * The task queue this task originated from, which will always be the original non-sticky name
     * for the queue, even if this response came from polling a sticky queue.
     * 
* * .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11; */ public Builder setWorkflowExecutionTaskQueue( io.temporal.api.taskqueue.v1.TaskQueue.Builder builderForValue) { if (workflowExecutionTaskQueueBuilder_ == null) { workflowExecutionTaskQueue_ = builderForValue.build(); onChanged(); } else { workflowExecutionTaskQueueBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The task queue this task originated from, which will always be the original non-sticky name
     * for the queue, even if this response came from polling a sticky queue.
     * 
* * .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11; */ public Builder mergeWorkflowExecutionTaskQueue(io.temporal.api.taskqueue.v1.TaskQueue value) { if (workflowExecutionTaskQueueBuilder_ == null) { if (workflowExecutionTaskQueue_ != null) { workflowExecutionTaskQueue_ = io.temporal.api.taskqueue.v1.TaskQueue.newBuilder(workflowExecutionTaskQueue_).mergeFrom(value).buildPartial(); } else { workflowExecutionTaskQueue_ = value; } onChanged(); } else { workflowExecutionTaskQueueBuilder_.mergeFrom(value); } return this; } /** *
     * The task queue this task originated from, which will always be the original non-sticky name
     * for the queue, even if this response came from polling a sticky queue.
     * 
* * .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11; */ public Builder clearWorkflowExecutionTaskQueue() { if (workflowExecutionTaskQueueBuilder_ == null) { workflowExecutionTaskQueue_ = null; onChanged(); } else { workflowExecutionTaskQueue_ = null; workflowExecutionTaskQueueBuilder_ = null; } return this; } /** *
     * The task queue this task originated from, which will always be the original non-sticky name
     * for the queue, even if this response came from polling a sticky queue.
     * 
* * .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11; */ public io.temporal.api.taskqueue.v1.TaskQueue.Builder getWorkflowExecutionTaskQueueBuilder() { onChanged(); return getWorkflowExecutionTaskQueueFieldBuilder().getBuilder(); } /** *
     * The task queue this task originated from, which will always be the original non-sticky name
     * for the queue, even if this response came from polling a sticky queue.
     * 
* * .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11; */ public io.temporal.api.taskqueue.v1.TaskQueueOrBuilder getWorkflowExecutionTaskQueueOrBuilder() { if (workflowExecutionTaskQueueBuilder_ != null) { return workflowExecutionTaskQueueBuilder_.getMessageOrBuilder(); } else { return workflowExecutionTaskQueue_ == null ? io.temporal.api.taskqueue.v1.TaskQueue.getDefaultInstance() : workflowExecutionTaskQueue_; } } /** *
     * The task queue this task originated from, which will always be the original non-sticky name
     * for the queue, even if this response came from polling a sticky queue.
     * 
* * .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.taskqueue.v1.TaskQueue, io.temporal.api.taskqueue.v1.TaskQueue.Builder, io.temporal.api.taskqueue.v1.TaskQueueOrBuilder> getWorkflowExecutionTaskQueueFieldBuilder() { if (workflowExecutionTaskQueueBuilder_ == null) { workflowExecutionTaskQueueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.taskqueue.v1.TaskQueue, io.temporal.api.taskqueue.v1.TaskQueue.Builder, io.temporal.api.taskqueue.v1.TaskQueueOrBuilder>( getWorkflowExecutionTaskQueue(), getParentForChildren(), isClean()); workflowExecutionTaskQueue_ = null; } return workflowExecutionTaskQueueBuilder_; } private com.google.protobuf.Timestamp scheduledTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduledTimeBuilder_; /** *
     * When this task was scheduled by the server
     * 
* * .google.protobuf.Timestamp scheduled_time = 12 [(.gogoproto.stdtime) = true]; * @return Whether the scheduledTime field is set. */ public boolean hasScheduledTime() { return scheduledTimeBuilder_ != null || scheduledTime_ != null; } /** *
     * When this task was scheduled by the server
     * 
* * .google.protobuf.Timestamp scheduled_time = 12 [(.gogoproto.stdtime) = true]; * @return The scheduledTime. */ public com.google.protobuf.Timestamp getScheduledTime() { if (scheduledTimeBuilder_ == null) { return scheduledTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledTime_; } else { return scheduledTimeBuilder_.getMessage(); } } /** *
     * When this task was scheduled by the server
     * 
* * .google.protobuf.Timestamp scheduled_time = 12 [(.gogoproto.stdtime) = true]; */ public Builder setScheduledTime(com.google.protobuf.Timestamp value) { if (scheduledTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scheduledTime_ = value; onChanged(); } else { scheduledTimeBuilder_.setMessage(value); } return this; } /** *
     * When this task was scheduled by the server
     * 
* * .google.protobuf.Timestamp scheduled_time = 12 [(.gogoproto.stdtime) = true]; */ public Builder setScheduledTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (scheduledTimeBuilder_ == null) { scheduledTime_ = builderForValue.build(); onChanged(); } else { scheduledTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * When this task was scheduled by the server
     * 
* * .google.protobuf.Timestamp scheduled_time = 12 [(.gogoproto.stdtime) = true]; */ public Builder mergeScheduledTime(com.google.protobuf.Timestamp value) { if (scheduledTimeBuilder_ == null) { if (scheduledTime_ != null) { scheduledTime_ = com.google.protobuf.Timestamp.newBuilder(scheduledTime_).mergeFrom(value).buildPartial(); } else { scheduledTime_ = value; } onChanged(); } else { scheduledTimeBuilder_.mergeFrom(value); } return this; } /** *
     * When this task was scheduled by the server
     * 
* * .google.protobuf.Timestamp scheduled_time = 12 [(.gogoproto.stdtime) = true]; */ public Builder clearScheduledTime() { if (scheduledTimeBuilder_ == null) { scheduledTime_ = null; onChanged(); } else { scheduledTime_ = null; scheduledTimeBuilder_ = null; } return this; } /** *
     * When this task was scheduled by the server
     * 
* * .google.protobuf.Timestamp scheduled_time = 12 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getScheduledTimeBuilder() { onChanged(); return getScheduledTimeFieldBuilder().getBuilder(); } /** *
     * When this task was scheduled by the server
     * 
* * .google.protobuf.Timestamp scheduled_time = 12 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getScheduledTimeOrBuilder() { if (scheduledTimeBuilder_ != null) { return scheduledTimeBuilder_.getMessageOrBuilder(); } else { return scheduledTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledTime_; } } /** *
     * When this task was scheduled by the server
     * 
* * .google.protobuf.Timestamp scheduled_time = 12 [(.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getScheduledTimeFieldBuilder() { if (scheduledTimeBuilder_ == null) { scheduledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getScheduledTime(), getParentForChildren(), isClean()); scheduledTime_ = null; } return scheduledTimeBuilder_; } private com.google.protobuf.Timestamp startedTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedTimeBuilder_; /** *
     * When the current workflow task started event was generated, meaning the current attempt.
     * 
* * .google.protobuf.Timestamp started_time = 13 [(.gogoproto.stdtime) = true]; * @return Whether the startedTime field is set. */ public boolean hasStartedTime() { return startedTimeBuilder_ != null || startedTime_ != null; } /** *
     * When the current workflow task started event was generated, meaning the current attempt.
     * 
* * .google.protobuf.Timestamp started_time = 13 [(.gogoproto.stdtime) = true]; * @return The startedTime. */ public com.google.protobuf.Timestamp getStartedTime() { if (startedTimeBuilder_ == null) { return startedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedTime_; } else { return startedTimeBuilder_.getMessage(); } } /** *
     * When the current workflow task started event was generated, meaning the current attempt.
     * 
* * .google.protobuf.Timestamp started_time = 13 [(.gogoproto.stdtime) = true]; */ public Builder setStartedTime(com.google.protobuf.Timestamp value) { if (startedTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startedTime_ = value; onChanged(); } else { startedTimeBuilder_.setMessage(value); } return this; } /** *
     * When the current workflow task started event was generated, meaning the current attempt.
     * 
* * .google.protobuf.Timestamp started_time = 13 [(.gogoproto.stdtime) = true]; */ public Builder setStartedTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (startedTimeBuilder_ == null) { startedTime_ = builderForValue.build(); onChanged(); } else { startedTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * When the current workflow task started event was generated, meaning the current attempt.
     * 
* * .google.protobuf.Timestamp started_time = 13 [(.gogoproto.stdtime) = true]; */ public Builder mergeStartedTime(com.google.protobuf.Timestamp value) { if (startedTimeBuilder_ == null) { if (startedTime_ != null) { startedTime_ = com.google.protobuf.Timestamp.newBuilder(startedTime_).mergeFrom(value).buildPartial(); } else { startedTime_ = value; } onChanged(); } else { startedTimeBuilder_.mergeFrom(value); } return this; } /** *
     * When the current workflow task started event was generated, meaning the current attempt.
     * 
* * .google.protobuf.Timestamp started_time = 13 [(.gogoproto.stdtime) = true]; */ public Builder clearStartedTime() { if (startedTimeBuilder_ == null) { startedTime_ = null; onChanged(); } else { startedTime_ = null; startedTimeBuilder_ = null; } return this; } /** *
     * When the current workflow task started event was generated, meaning the current attempt.
     * 
* * .google.protobuf.Timestamp started_time = 13 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getStartedTimeBuilder() { onChanged(); return getStartedTimeFieldBuilder().getBuilder(); } /** *
     * When the current workflow task started event was generated, meaning the current attempt.
     * 
* * .google.protobuf.Timestamp started_time = 13 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getStartedTimeOrBuilder() { if (startedTimeBuilder_ != null) { return startedTimeBuilder_.getMessageOrBuilder(); } else { return startedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedTime_; } } /** *
     * When the current workflow task started event was generated, meaning the current attempt.
     * 
* * .google.protobuf.Timestamp started_time = 13 [(.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartedTimeFieldBuilder() { if (startedTimeBuilder_ == null) { startedTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartedTime(), getParentForChildren(), isClean()); startedTime_ = null; } return startedTimeBuilder_; } private com.google.protobuf.MapField< java.lang.String, io.temporal.api.query.v1.WorkflowQuery> queries_; private com.google.protobuf.MapField internalGetQueries() { if (queries_ == null) { return com.google.protobuf.MapField.emptyMapField( QueriesDefaultEntryHolder.defaultEntry); } return queries_; } private com.google.protobuf.MapField internalGetMutableQueries() { onChanged();; if (queries_ == null) { queries_ = com.google.protobuf.MapField.newMapField( QueriesDefaultEntryHolder.defaultEntry); } if (!queries_.isMutable()) { queries_ = queries_.copy(); } return queries_; } public int getQueriesCount() { return internalGetQueries().getMap().size(); } /** *
     * Queries that should be executed after applying the history in this task. Responses should be
     * attached to `RespondWorkflowTaskCompletedRequest::query_results`
     * 
* * map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14; */ public boolean containsQueries( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetQueries().getMap().containsKey(key); } /** * Use {@link #getQueriesMap()} instead. */ @java.lang.Deprecated public java.util.Map getQueries() { return getQueriesMap(); } /** *
     * Queries that should be executed after applying the history in this task. Responses should be
     * attached to `RespondWorkflowTaskCompletedRequest::query_results`
     * 
* * map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14; */ public java.util.Map getQueriesMap() { return internalGetQueries().getMap(); } /** *
     * Queries that should be executed after applying the history in this task. Responses should be
     * attached to `RespondWorkflowTaskCompletedRequest::query_results`
     * 
* * map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14; */ public io.temporal.api.query.v1.WorkflowQuery getQueriesOrDefault( java.lang.String key, io.temporal.api.query.v1.WorkflowQuery defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetQueries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Queries that should be executed after applying the history in this task. Responses should be
     * attached to `RespondWorkflowTaskCompletedRequest::query_results`
     * 
* * map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14; */ public io.temporal.api.query.v1.WorkflowQuery getQueriesOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetQueries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearQueries() { internalGetMutableQueries().getMutableMap() .clear(); return this; } /** *
     * Queries that should be executed after applying the history in this task. Responses should be
     * attached to `RespondWorkflowTaskCompletedRequest::query_results`
     * 
* * map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14; */ public Builder removeQueries( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableQueries().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableQueries() { return internalGetMutableQueries().getMutableMap(); } /** *
     * Queries that should be executed after applying the history in this task. Responses should be
     * attached to `RespondWorkflowTaskCompletedRequest::query_results`
     * 
* * map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14; */ public Builder putQueries( java.lang.String key, io.temporal.api.query.v1.WorkflowQuery value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableQueries().getMutableMap() .put(key, value); return this; } /** *
     * Queries that should be executed after applying the history in this task. Responses should be
     * attached to `RespondWorkflowTaskCompletedRequest::query_results`
     * 
* * map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14; */ public Builder putAllQueries( java.util.Map values) { internalGetMutableQueries().getMutableMap() .putAll(values); return this; } private java.util.List messages_ = java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { messages_ = new java.util.ArrayList(messages_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.protocol.v1.Message, io.temporal.api.protocol.v1.Message.Builder, io.temporal.api.protocol.v1.MessageOrBuilder> messagesBuilder_; /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public java.util.List getMessagesList() { if (messagesBuilder_ == null) { return java.util.Collections.unmodifiableList(messages_); } else { return messagesBuilder_.getMessageList(); } } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public int getMessagesCount() { if (messagesBuilder_ == null) { return messages_.size(); } else { return messagesBuilder_.getCount(); } } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public io.temporal.api.protocol.v1.Message getMessages(int index) { if (messagesBuilder_ == null) { return messages_.get(index); } else { return messagesBuilder_.getMessage(index); } } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public Builder setMessages( int index, io.temporal.api.protocol.v1.Message value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.set(index, value); onChanged(); } else { messagesBuilder_.setMessage(index, value); } return this; } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public Builder setMessages( int index, io.temporal.api.protocol.v1.Message.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.set(index, builderForValue.build()); onChanged(); } else { messagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public Builder addMessages(io.temporal.api.protocol.v1.Message value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.add(value); onChanged(); } else { messagesBuilder_.addMessage(value); } return this; } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public Builder addMessages( int index, io.temporal.api.protocol.v1.Message value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.add(index, value); onChanged(); } else { messagesBuilder_.addMessage(index, value); } return this; } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public Builder addMessages( io.temporal.api.protocol.v1.Message.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(builderForValue.build()); onChanged(); } else { messagesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public Builder addMessages( int index, io.temporal.api.protocol.v1.Message.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(index, builderForValue.build()); onChanged(); } else { messagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public Builder addAllMessages( java.lang.Iterable values) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, messages_); onChanged(); } else { messagesBuilder_.addAllMessages(values); } return this; } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public Builder clearMessages() { if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { messagesBuilder_.clear(); } return this; } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public Builder removeMessages(int index) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.remove(index); onChanged(); } else { messagesBuilder_.remove(index); } return this; } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public io.temporal.api.protocol.v1.Message.Builder getMessagesBuilder( int index) { return getMessagesFieldBuilder().getBuilder(index); } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public io.temporal.api.protocol.v1.MessageOrBuilder getMessagesOrBuilder( int index) { if (messagesBuilder_ == null) { return messages_.get(index); } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public java.util.List getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(messages_); } } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public io.temporal.api.protocol.v1.Message.Builder addMessagesBuilder() { return getMessagesFieldBuilder().addBuilder( io.temporal.api.protocol.v1.Message.getDefaultInstance()); } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public io.temporal.api.protocol.v1.Message.Builder addMessagesBuilder( int index) { return getMessagesFieldBuilder().addBuilder( index, io.temporal.api.protocol.v1.Message.getDefaultInstance()); } /** *
     * Protocol messages piggybacking on a WFT as a transport
     * 
* * repeated .temporal.api.protocol.v1.Message messages = 15; */ public java.util.List getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.protocol.v1.Message, io.temporal.api.protocol.v1.Message.Builder, io.temporal.api.protocol.v1.MessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.protocol.v1.Message, io.temporal.api.protocol.v1.Message.Builder, io.temporal.api.protocol.v1.MessageOrBuilder>( messages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); messages_ = null; } return messagesBuilder_; } @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.workflowservice.v1.PollWorkflowTaskQueueResponse) } // @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse) private static final io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse(); } public static io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PollWorkflowTaskQueueResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PollWorkflowTaskQueueResponse(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.workflowservice.v1.PollWorkflowTaskQueueResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy