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;
}
}