io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: temporal/api/workflowservice/v1/request_response.proto
package io.temporal.api.workflowservice.v1;
/**
*
* (-- api-linter: core::0134=disabled
* aip.dev/not-precedent: Update RPCs don't follow Google API format. --)
*
*
* Protobuf type {@code temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:UpdateWorkflowExecutionRequest.java.pb.meta")
public final class UpdateWorkflowExecutionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest)
UpdateWorkflowExecutionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateWorkflowExecutionRequest.newBuilder() to construct.
private UpdateWorkflowExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private UpdateWorkflowExecutionRequest() {
namespace_ = "";
firstExecutionRunId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateWorkflowExecutionRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateWorkflowExecutionRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
namespace_ = s;
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: {
java.lang.String s = input.readStringRequireUtf8();
firstExecutionRunId_ = s;
break;
}
case 34: {
io.temporal.api.update.v1.WaitPolicy.Builder subBuilder = null;
if (waitPolicy_ != null) {
subBuilder = waitPolicy_.toBuilder();
}
waitPolicy_ = input.readMessage(io.temporal.api.update.v1.WaitPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(waitPolicy_);
waitPolicy_ = subBuilder.buildPartial();
}
break;
}
case 42: {
io.temporal.api.update.v1.Request.Builder subBuilder = null;
if (request_ != null) {
subBuilder = request_.toBuilder();
}
request_ = input.readMessage(io.temporal.api.update.v1.Request.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(request_);
request_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_UpdateWorkflowExecutionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_UpdateWorkflowExecutionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest.class, io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest.Builder.class);
}
public static final int NAMESPACE_FIELD_NUMBER = 1;
private volatile java.lang.Object namespace_;
/**
*
* The namespace name of the target workflow
*
*
* string namespace = 1;
* @return The namespace.
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namespace_ = s;
return s;
}
}
/**
*
* The namespace name of the target workflow
*
*
* string namespace = 1;
* @return The bytes for namespace.
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WORKFLOW_EXECUTION_FIELD_NUMBER = 2;
private io.temporal.api.common.v1.WorkflowExecution workflowExecution_;
/**
*
* The target workflow id and (optionally) a specific run thereof
* (-- api-linter: core::0203::optional=disabled
* aip.dev/not-precedent: false positive triggered by the word "optional" --)
*
*
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
* @return Whether the workflowExecution field is set.
*/
public boolean hasWorkflowExecution() {
return workflowExecution_ != null;
}
/**
*
* The target workflow id and (optionally) a specific run thereof
* (-- api-linter: core::0203::optional=disabled
* aip.dev/not-precedent: false positive triggered by the word "optional" --)
*
*
* .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_;
}
/**
*
* The target workflow id and (optionally) a specific run thereof
* (-- api-linter: core::0203::optional=disabled
* aip.dev/not-precedent: false positive triggered by the word "optional" --)
*
*
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
*/
public io.temporal.api.common.v1.WorkflowExecutionOrBuilder getWorkflowExecutionOrBuilder() {
return getWorkflowExecution();
}
public static final int FIRST_EXECUTION_RUN_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object firstExecutionRunId_;
/**
*
* If set, this call will error if the most recent (if no run id is set on
* `workflow_execution`), or specified (if it is) workflow execution is not
* part of the same execution chain as this id.
*
*
* string first_execution_run_id = 3;
* @return The firstExecutionRunId.
*/
public java.lang.String getFirstExecutionRunId() {
java.lang.Object ref = firstExecutionRunId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
firstExecutionRunId_ = s;
return s;
}
}
/**
*
* If set, this call will error if the most recent (if no run id is set on
* `workflow_execution`), or specified (if it is) workflow execution is not
* part of the same execution chain as this id.
*
*
* string first_execution_run_id = 3;
* @return The bytes for firstExecutionRunId.
*/
public com.google.protobuf.ByteString
getFirstExecutionRunIdBytes() {
java.lang.Object ref = firstExecutionRunId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
firstExecutionRunId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WAIT_POLICY_FIELD_NUMBER = 4;
private io.temporal.api.update.v1.WaitPolicy waitPolicy_;
/**
*
* Describes when this request should return - basically whether the
* update is synchronous, asynchronous, or somewhere in between.
*
*
* .temporal.api.update.v1.WaitPolicy wait_policy = 4;
* @return Whether the waitPolicy field is set.
*/
public boolean hasWaitPolicy() {
return waitPolicy_ != null;
}
/**
*
* Describes when this request should return - basically whether the
* update is synchronous, asynchronous, or somewhere in between.
*
*
* .temporal.api.update.v1.WaitPolicy wait_policy = 4;
* @return The waitPolicy.
*/
public io.temporal.api.update.v1.WaitPolicy getWaitPolicy() {
return waitPolicy_ == null ? io.temporal.api.update.v1.WaitPolicy.getDefaultInstance() : waitPolicy_;
}
/**
*
* Describes when this request should return - basically whether the
* update is synchronous, asynchronous, or somewhere in between.
*
*
* .temporal.api.update.v1.WaitPolicy wait_policy = 4;
*/
public io.temporal.api.update.v1.WaitPolicyOrBuilder getWaitPolicyOrBuilder() {
return getWaitPolicy();
}
public static final int REQUEST_FIELD_NUMBER = 5;
private io.temporal.api.update.v1.Request request_;
/**
*
* The request information that will be delivered all the way down to the
* workflow execution.
*
*
* .temporal.api.update.v1.Request request = 5;
* @return Whether the request field is set.
*/
public boolean hasRequest() {
return request_ != null;
}
/**
*
* The request information that will be delivered all the way down to the
* workflow execution.
*
*
* .temporal.api.update.v1.Request request = 5;
* @return The request.
*/
public io.temporal.api.update.v1.Request getRequest() {
return request_ == null ? io.temporal.api.update.v1.Request.getDefaultInstance() : request_;
}
/**
*
* The request information that will be delivered all the way down to the
* workflow execution.
*
*
* .temporal.api.update.v1.Request request = 5;
*/
public io.temporal.api.update.v1.RequestOrBuilder getRequestOrBuilder() {
return getRequest();
}
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 (!getNamespaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_);
}
if (workflowExecution_ != null) {
output.writeMessage(2, getWorkflowExecution());
}
if (!getFirstExecutionRunIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, firstExecutionRunId_);
}
if (waitPolicy_ != null) {
output.writeMessage(4, getWaitPolicy());
}
if (request_ != null) {
output.writeMessage(5, getRequest());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNamespaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_);
}
if (workflowExecution_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getWorkflowExecution());
}
if (!getFirstExecutionRunIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, firstExecutionRunId_);
}
if (waitPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getWaitPolicy());
}
if (request_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getRequest());
}
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.UpdateWorkflowExecutionRequest)) {
return super.equals(obj);
}
io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest other = (io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest) obj;
if (!getNamespace()
.equals(other.getNamespace())) return false;
if (hasWorkflowExecution() != other.hasWorkflowExecution()) return false;
if (hasWorkflowExecution()) {
if (!getWorkflowExecution()
.equals(other.getWorkflowExecution())) return false;
}
if (!getFirstExecutionRunId()
.equals(other.getFirstExecutionRunId())) return false;
if (hasWaitPolicy() != other.hasWaitPolicy()) return false;
if (hasWaitPolicy()) {
if (!getWaitPolicy()
.equals(other.getWaitPolicy())) return false;
}
if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
if (!getRequest()
.equals(other.getRequest())) 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) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
if (hasWorkflowExecution()) {
hash = (37 * hash) + WORKFLOW_EXECUTION_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowExecution().hashCode();
}
hash = (37 * hash) + FIRST_EXECUTION_RUN_ID_FIELD_NUMBER;
hash = (53 * hash) + getFirstExecutionRunId().hashCode();
if (hasWaitPolicy()) {
hash = (37 * hash) + WAIT_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getWaitPolicy().hashCode();
}
if (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest 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.UpdateWorkflowExecutionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest 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.UpdateWorkflowExecutionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest 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.UpdateWorkflowExecutionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest 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.UpdateWorkflowExecutionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest 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.UpdateWorkflowExecutionRequest 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.UpdateWorkflowExecutionRequest 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.UpdateWorkflowExecutionRequest 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;
}
/**
*
* (-- api-linter: core::0134=disabled
* aip.dev/not-precedent: Update RPCs don't follow Google API format. --)
*
*
* Protobuf type {@code temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest)
io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_UpdateWorkflowExecutionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_UpdateWorkflowExecutionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest.class, io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest.Builder.class);
}
// Construct using io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
namespace_ = "";
if (workflowExecutionBuilder_ == null) {
workflowExecution_ = null;
} else {
workflowExecution_ = null;
workflowExecutionBuilder_ = null;
}
firstExecutionRunId_ = "";
if (waitPolicyBuilder_ == null) {
waitPolicy_ = null;
} else {
waitPolicy_ = null;
waitPolicyBuilder_ = null;
}
if (requestBuilder_ == null) {
request_ = null;
} else {
request_ = null;
requestBuilder_ = null;
}
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_UpdateWorkflowExecutionRequest_descriptor;
}
@java.lang.Override
public io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest getDefaultInstanceForType() {
return io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest build() {
io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest buildPartial() {
io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest result = new io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest(this);
result.namespace_ = namespace_;
if (workflowExecutionBuilder_ == null) {
result.workflowExecution_ = workflowExecution_;
} else {
result.workflowExecution_ = workflowExecutionBuilder_.build();
}
result.firstExecutionRunId_ = firstExecutionRunId_;
if (waitPolicyBuilder_ == null) {
result.waitPolicy_ = waitPolicy_;
} else {
result.waitPolicy_ = waitPolicyBuilder_.build();
}
if (requestBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = requestBuilder_.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.UpdateWorkflowExecutionRequest) {
return mergeFrom((io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest other) {
if (other == io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest.getDefaultInstance()) return this;
if (!other.getNamespace().isEmpty()) {
namespace_ = other.namespace_;
onChanged();
}
if (other.hasWorkflowExecution()) {
mergeWorkflowExecution(other.getWorkflowExecution());
}
if (!other.getFirstExecutionRunId().isEmpty()) {
firstExecutionRunId_ = other.firstExecutionRunId_;
onChanged();
}
if (other.hasWaitPolicy()) {
mergeWaitPolicy(other.getWaitPolicy());
}
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
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.UpdateWorkflowExecutionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object namespace_ = "";
/**
*
* The namespace name of the target workflow
*
*
* string namespace = 1;
* @return The namespace.
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The namespace name of the target workflow
*
*
* string namespace = 1;
* @return The bytes for namespace.
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The namespace name of the target workflow
*
*
* string namespace = 1;
* @param value The namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
namespace_ = value;
onChanged();
return this;
}
/**
*
* The namespace name of the target workflow
*
*
* string namespace = 1;
* @return This builder for chaining.
*/
public Builder clearNamespace() {
namespace_ = getDefaultInstance().getNamespace();
onChanged();
return this;
}
/**
*
* The namespace name of the target workflow
*
*
* string namespace = 1;
* @param value The bytes for namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
namespace_ = value;
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_;
/**
*
* The target workflow id and (optionally) a specific run thereof
* (-- api-linter: core::0203::optional=disabled
* aip.dev/not-precedent: false positive triggered by the word "optional" --)
*
*
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
* @return Whether the workflowExecution field is set.
*/
public boolean hasWorkflowExecution() {
return workflowExecutionBuilder_ != null || workflowExecution_ != null;
}
/**
*
* The target workflow id and (optionally) a specific run thereof
* (-- api-linter: core::0203::optional=disabled
* aip.dev/not-precedent: false positive triggered by the word "optional" --)
*
*
* .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();
}
}
/**
*
* The target workflow id and (optionally) a specific run thereof
* (-- api-linter: core::0203::optional=disabled
* aip.dev/not-precedent: false positive triggered by the word "optional" --)
*
*
* .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;
}
/**
*
* The target workflow id and (optionally) a specific run thereof
* (-- api-linter: core::0203::optional=disabled
* aip.dev/not-precedent: false positive triggered by the word "optional" --)
*
*
* .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;
}
/**
*
* The target workflow id and (optionally) a specific run thereof
* (-- api-linter: core::0203::optional=disabled
* aip.dev/not-precedent: false positive triggered by the word "optional" --)
*
*
* .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;
}
/**
*
* The target workflow id and (optionally) a specific run thereof
* (-- api-linter: core::0203::optional=disabled
* aip.dev/not-precedent: false positive triggered by the word "optional" --)
*
*
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
*/
public Builder clearWorkflowExecution() {
if (workflowExecutionBuilder_ == null) {
workflowExecution_ = null;
onChanged();
} else {
workflowExecution_ = null;
workflowExecutionBuilder_ = null;
}
return this;
}
/**
*
* The target workflow id and (optionally) a specific run thereof
* (-- api-linter: core::0203::optional=disabled
* aip.dev/not-precedent: false positive triggered by the word "optional" --)
*
*
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
*/
public io.temporal.api.common.v1.WorkflowExecution.Builder getWorkflowExecutionBuilder() {
onChanged();
return getWorkflowExecutionFieldBuilder().getBuilder();
}
/**
*
* The target workflow id and (optionally) a specific run thereof
* (-- api-linter: core::0203::optional=disabled
* aip.dev/not-precedent: false positive triggered by the word "optional" --)
*
*
* .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_;
}
}
/**
*
* The target workflow id and (optionally) a specific run thereof
* (-- api-linter: core::0203::optional=disabled
* aip.dev/not-precedent: false positive triggered by the word "optional" --)
*
*
* .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 java.lang.Object firstExecutionRunId_ = "";
/**
*
* If set, this call will error if the most recent (if no run id is set on
* `workflow_execution`), or specified (if it is) workflow execution is not
* part of the same execution chain as this id.
*
*
* string first_execution_run_id = 3;
* @return The firstExecutionRunId.
*/
public java.lang.String getFirstExecutionRunId() {
java.lang.Object ref = firstExecutionRunId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
firstExecutionRunId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If set, this call will error if the most recent (if no run id is set on
* `workflow_execution`), or specified (if it is) workflow execution is not
* part of the same execution chain as this id.
*
*
* string first_execution_run_id = 3;
* @return The bytes for firstExecutionRunId.
*/
public com.google.protobuf.ByteString
getFirstExecutionRunIdBytes() {
java.lang.Object ref = firstExecutionRunId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
firstExecutionRunId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If set, this call will error if the most recent (if no run id is set on
* `workflow_execution`), or specified (if it is) workflow execution is not
* part of the same execution chain as this id.
*
*
* string first_execution_run_id = 3;
* @param value The firstExecutionRunId to set.
* @return This builder for chaining.
*/
public Builder setFirstExecutionRunId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
firstExecutionRunId_ = value;
onChanged();
return this;
}
/**
*
* If set, this call will error if the most recent (if no run id is set on
* `workflow_execution`), or specified (if it is) workflow execution is not
* part of the same execution chain as this id.
*
*
* string first_execution_run_id = 3;
* @return This builder for chaining.
*/
public Builder clearFirstExecutionRunId() {
firstExecutionRunId_ = getDefaultInstance().getFirstExecutionRunId();
onChanged();
return this;
}
/**
*
* If set, this call will error if the most recent (if no run id is set on
* `workflow_execution`), or specified (if it is) workflow execution is not
* part of the same execution chain as this id.
*
*
* string first_execution_run_id = 3;
* @param value The bytes for firstExecutionRunId to set.
* @return This builder for chaining.
*/
public Builder setFirstExecutionRunIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
firstExecutionRunId_ = value;
onChanged();
return this;
}
private io.temporal.api.update.v1.WaitPolicy waitPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.update.v1.WaitPolicy, io.temporal.api.update.v1.WaitPolicy.Builder, io.temporal.api.update.v1.WaitPolicyOrBuilder> waitPolicyBuilder_;
/**
*
* Describes when this request should return - basically whether the
* update is synchronous, asynchronous, or somewhere in between.
*
*
* .temporal.api.update.v1.WaitPolicy wait_policy = 4;
* @return Whether the waitPolicy field is set.
*/
public boolean hasWaitPolicy() {
return waitPolicyBuilder_ != null || waitPolicy_ != null;
}
/**
*
* Describes when this request should return - basically whether the
* update is synchronous, asynchronous, or somewhere in between.
*
*
* .temporal.api.update.v1.WaitPolicy wait_policy = 4;
* @return The waitPolicy.
*/
public io.temporal.api.update.v1.WaitPolicy getWaitPolicy() {
if (waitPolicyBuilder_ == null) {
return waitPolicy_ == null ? io.temporal.api.update.v1.WaitPolicy.getDefaultInstance() : waitPolicy_;
} else {
return waitPolicyBuilder_.getMessage();
}
}
/**
*
* Describes when this request should return - basically whether the
* update is synchronous, asynchronous, or somewhere in between.
*
*
* .temporal.api.update.v1.WaitPolicy wait_policy = 4;
*/
public Builder setWaitPolicy(io.temporal.api.update.v1.WaitPolicy value) {
if (waitPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
waitPolicy_ = value;
onChanged();
} else {
waitPolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Describes when this request should return - basically whether the
* update is synchronous, asynchronous, or somewhere in between.
*
*
* .temporal.api.update.v1.WaitPolicy wait_policy = 4;
*/
public Builder setWaitPolicy(
io.temporal.api.update.v1.WaitPolicy.Builder builderForValue) {
if (waitPolicyBuilder_ == null) {
waitPolicy_ = builderForValue.build();
onChanged();
} else {
waitPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Describes when this request should return - basically whether the
* update is synchronous, asynchronous, or somewhere in between.
*
*
* .temporal.api.update.v1.WaitPolicy wait_policy = 4;
*/
public Builder mergeWaitPolicy(io.temporal.api.update.v1.WaitPolicy value) {
if (waitPolicyBuilder_ == null) {
if (waitPolicy_ != null) {
waitPolicy_ =
io.temporal.api.update.v1.WaitPolicy.newBuilder(waitPolicy_).mergeFrom(value).buildPartial();
} else {
waitPolicy_ = value;
}
onChanged();
} else {
waitPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Describes when this request should return - basically whether the
* update is synchronous, asynchronous, or somewhere in between.
*
*
* .temporal.api.update.v1.WaitPolicy wait_policy = 4;
*/
public Builder clearWaitPolicy() {
if (waitPolicyBuilder_ == null) {
waitPolicy_ = null;
onChanged();
} else {
waitPolicy_ = null;
waitPolicyBuilder_ = null;
}
return this;
}
/**
*
* Describes when this request should return - basically whether the
* update is synchronous, asynchronous, or somewhere in between.
*
*
* .temporal.api.update.v1.WaitPolicy wait_policy = 4;
*/
public io.temporal.api.update.v1.WaitPolicy.Builder getWaitPolicyBuilder() {
onChanged();
return getWaitPolicyFieldBuilder().getBuilder();
}
/**
*
* Describes when this request should return - basically whether the
* update is synchronous, asynchronous, or somewhere in between.
*
*
* .temporal.api.update.v1.WaitPolicy wait_policy = 4;
*/
public io.temporal.api.update.v1.WaitPolicyOrBuilder getWaitPolicyOrBuilder() {
if (waitPolicyBuilder_ != null) {
return waitPolicyBuilder_.getMessageOrBuilder();
} else {
return waitPolicy_ == null ?
io.temporal.api.update.v1.WaitPolicy.getDefaultInstance() : waitPolicy_;
}
}
/**
*
* Describes when this request should return - basically whether the
* update is synchronous, asynchronous, or somewhere in between.
*
*
* .temporal.api.update.v1.WaitPolicy wait_policy = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.update.v1.WaitPolicy, io.temporal.api.update.v1.WaitPolicy.Builder, io.temporal.api.update.v1.WaitPolicyOrBuilder>
getWaitPolicyFieldBuilder() {
if (waitPolicyBuilder_ == null) {
waitPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.update.v1.WaitPolicy, io.temporal.api.update.v1.WaitPolicy.Builder, io.temporal.api.update.v1.WaitPolicyOrBuilder>(
getWaitPolicy(),
getParentForChildren(),
isClean());
waitPolicy_ = null;
}
return waitPolicyBuilder_;
}
private io.temporal.api.update.v1.Request request_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.update.v1.Request, io.temporal.api.update.v1.Request.Builder, io.temporal.api.update.v1.RequestOrBuilder> requestBuilder_;
/**
*
* The request information that will be delivered all the way down to the
* workflow execution.
*
*
* .temporal.api.update.v1.Request request = 5;
* @return Whether the request field is set.
*/
public boolean hasRequest() {
return requestBuilder_ != null || request_ != null;
}
/**
*
* The request information that will be delivered all the way down to the
* workflow execution.
*
*
* .temporal.api.update.v1.Request request = 5;
* @return The request.
*/
public io.temporal.api.update.v1.Request getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? io.temporal.api.update.v1.Request.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
*
* The request information that will be delivered all the way down to the
* workflow execution.
*
*
* .temporal.api.update.v1.Request request = 5;
*/
public Builder setRequest(io.temporal.api.update.v1.Request value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
requestBuilder_.setMessage(value);
}
return this;
}
/**
*
* The request information that will be delivered all the way down to the
* workflow execution.
*
*
* .temporal.api.update.v1.Request request = 5;
*/
public Builder setRequest(
io.temporal.api.update.v1.Request.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The request information that will be delivered all the way down to the
* workflow execution.
*
*
* .temporal.api.update.v1.Request request = 5;
*/
public Builder mergeRequest(io.temporal.api.update.v1.Request value) {
if (requestBuilder_ == null) {
if (request_ != null) {
request_ =
io.temporal.api.update.v1.Request.newBuilder(request_).mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
requestBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The request information that will be delivered all the way down to the
* workflow execution.
*
*
* .temporal.api.update.v1.Request request = 5;
*/
public Builder clearRequest() {
if (requestBuilder_ == null) {
request_ = null;
onChanged();
} else {
request_ = null;
requestBuilder_ = null;
}
return this;
}
/**
*
* The request information that will be delivered all the way down to the
* workflow execution.
*
*
* .temporal.api.update.v1.Request request = 5;
*/
public io.temporal.api.update.v1.Request.Builder getRequestBuilder() {
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
*
* The request information that will be delivered all the way down to the
* workflow execution.
*
*
* .temporal.api.update.v1.Request request = 5;
*/
public io.temporal.api.update.v1.RequestOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
io.temporal.api.update.v1.Request.getDefaultInstance() : request_;
}
}
/**
*
* The request information that will be delivered all the way down to the
* workflow execution.
*
*
* .temporal.api.update.v1.Request request = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.update.v1.Request, io.temporal.api.update.v1.Request.Builder, io.temporal.api.update.v1.RequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.update.v1.Request, io.temporal.api.update.v1.Request.Builder, io.temporal.api.update.v1.RequestOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
@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.UpdateWorkflowExecutionRequest)
}
// @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest)
private static final io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest();
}
public static io.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateWorkflowExecutionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateWorkflowExecutionRequest(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.UpdateWorkflowExecutionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}