io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest 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;
/**
* Protobuf type {@code temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:PollWorkflowExecutionUpdateRequest.java.pb.meta")
public final class PollWorkflowExecutionUpdateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest)
PollWorkflowExecutionUpdateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PollWorkflowExecutionUpdateRequest.newBuilder() to construct.
private PollWorkflowExecutionUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PollWorkflowExecutionUpdateRequest() {
namespace_ = "";
identity_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PollWorkflowExecutionUpdateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PollWorkflowExecutionUpdateRequest(
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.update.v1.UpdateRef.Builder subBuilder = null;
if (updateRef_ != null) {
subBuilder = updateRef_.toBuilder();
}
updateRef_ = input.readMessage(io.temporal.api.update.v1.UpdateRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateRef_);
updateRef_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
identity_ = 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;
}
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_PollWorkflowExecutionUpdateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_PollWorkflowExecutionUpdateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest.class, io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest.Builder.class);
}
public static final int NAMESPACE_FIELD_NUMBER = 1;
private volatile java.lang.Object namespace_;
/**
*
* The namespace of the workflow execution to which the update was
* originally issued.
*
*
* 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 of the workflow execution to which the update was
* originally issued.
*
*
* 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 UPDATE_REF_FIELD_NUMBER = 2;
private io.temporal.api.update.v1.UpdateRef updateRef_;
/**
*
* The update reference returned in the initial
* UpdateWorkflowExecutionResponse
*
*
* .temporal.api.update.v1.UpdateRef update_ref = 2;
* @return Whether the updateRef field is set.
*/
public boolean hasUpdateRef() {
return updateRef_ != null;
}
/**
*
* The update reference returned in the initial
* UpdateWorkflowExecutionResponse
*
*
* .temporal.api.update.v1.UpdateRef update_ref = 2;
* @return The updateRef.
*/
public io.temporal.api.update.v1.UpdateRef getUpdateRef() {
return updateRef_ == null ? io.temporal.api.update.v1.UpdateRef.getDefaultInstance() : updateRef_;
}
/**
*
* The update reference returned in the initial
* UpdateWorkflowExecutionResponse
*
*
* .temporal.api.update.v1.UpdateRef update_ref = 2;
*/
public io.temporal.api.update.v1.UpdateRefOrBuilder getUpdateRefOrBuilder() {
return getUpdateRef();
}
public static final int IDENTITY_FIELD_NUMBER = 3;
private volatile java.lang.Object identity_;
/**
*
* The identity of the worker/client who is polling this update outcome
*
*
* string identity = 3;
* @return The identity.
*/
public java.lang.String getIdentity() {
java.lang.Object ref = identity_;
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();
identity_ = s;
return s;
}
}
/**
*
* The identity of the worker/client who is polling this update outcome
*
*
* string identity = 3;
* @return The bytes for identity.
*/
public com.google.protobuf.ByteString
getIdentityBytes() {
java.lang.Object ref = identity_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
identity_ = 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 poll request should return a response
*
*
* .temporal.api.update.v1.WaitPolicy wait_policy = 4;
* @return Whether the waitPolicy field is set.
*/
public boolean hasWaitPolicy() {
return waitPolicy_ != null;
}
/**
*
* Describes when this poll request should return a response
*
*
* .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 poll request should return a response
*
*
* .temporal.api.update.v1.WaitPolicy wait_policy = 4;
*/
public io.temporal.api.update.v1.WaitPolicyOrBuilder getWaitPolicyOrBuilder() {
return getWaitPolicy();
}
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 (updateRef_ != null) {
output.writeMessage(2, getUpdateRef());
}
if (!getIdentityBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, identity_);
}
if (waitPolicy_ != null) {
output.writeMessage(4, getWaitPolicy());
}
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 (updateRef_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUpdateRef());
}
if (!getIdentityBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, identity_);
}
if (waitPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getWaitPolicy());
}
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.PollWorkflowExecutionUpdateRequest)) {
return super.equals(obj);
}
io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest other = (io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest) obj;
if (!getNamespace()
.equals(other.getNamespace())) return false;
if (hasUpdateRef() != other.hasUpdateRef()) return false;
if (hasUpdateRef()) {
if (!getUpdateRef()
.equals(other.getUpdateRef())) return false;
}
if (!getIdentity()
.equals(other.getIdentity())) return false;
if (hasWaitPolicy() != other.hasWaitPolicy()) return false;
if (hasWaitPolicy()) {
if (!getWaitPolicy()
.equals(other.getWaitPolicy())) 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 (hasUpdateRef()) {
hash = (37 * hash) + UPDATE_REF_FIELD_NUMBER;
hash = (53 * hash) + getUpdateRef().hashCode();
}
hash = (37 * hash) + IDENTITY_FIELD_NUMBER;
hash = (53 * hash) + getIdentity().hashCode();
if (hasWaitPolicy()) {
hash = (37 * hash) + WAIT_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getWaitPolicy().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest 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.PollWorkflowExecutionUpdateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest 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.PollWorkflowExecutionUpdateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest 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.PollWorkflowExecutionUpdateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest 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.PollWorkflowExecutionUpdateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest 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.PollWorkflowExecutionUpdateRequest 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.PollWorkflowExecutionUpdateRequest 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.PollWorkflowExecutionUpdateRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest)
io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_PollWorkflowExecutionUpdateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_PollWorkflowExecutionUpdateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest.class, io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest.Builder.class);
}
// Construct using io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest.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 (updateRefBuilder_ == null) {
updateRef_ = null;
} else {
updateRef_ = null;
updateRefBuilder_ = null;
}
identity_ = "";
if (waitPolicyBuilder_ == null) {
waitPolicy_ = null;
} else {
waitPolicy_ = null;
waitPolicyBuilder_ = 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_PollWorkflowExecutionUpdateRequest_descriptor;
}
@java.lang.Override
public io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest getDefaultInstanceForType() {
return io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest build() {
io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest buildPartial() {
io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest result = new io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest(this);
result.namespace_ = namespace_;
if (updateRefBuilder_ == null) {
result.updateRef_ = updateRef_;
} else {
result.updateRef_ = updateRefBuilder_.build();
}
result.identity_ = identity_;
if (waitPolicyBuilder_ == null) {
result.waitPolicy_ = waitPolicy_;
} else {
result.waitPolicy_ = waitPolicyBuilder_.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.PollWorkflowExecutionUpdateRequest) {
return mergeFrom((io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest other) {
if (other == io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest.getDefaultInstance()) return this;
if (!other.getNamespace().isEmpty()) {
namespace_ = other.namespace_;
onChanged();
}
if (other.hasUpdateRef()) {
mergeUpdateRef(other.getUpdateRef());
}
if (!other.getIdentity().isEmpty()) {
identity_ = other.identity_;
onChanged();
}
if (other.hasWaitPolicy()) {
mergeWaitPolicy(other.getWaitPolicy());
}
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.PollWorkflowExecutionUpdateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object namespace_ = "";
/**
*
* The namespace of the workflow execution to which the update was
* originally issued.
*
*
* 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 of the workflow execution to which the update was
* originally issued.
*
*
* 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 of the workflow execution to which the update was
* originally issued.
*
*
* 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 of the workflow execution to which the update was
* originally issued.
*
*
* string namespace = 1;
* @return This builder for chaining.
*/
public Builder clearNamespace() {
namespace_ = getDefaultInstance().getNamespace();
onChanged();
return this;
}
/**
*
* The namespace of the workflow execution to which the update was
* originally issued.
*
*
* 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.update.v1.UpdateRef updateRef_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.update.v1.UpdateRef, io.temporal.api.update.v1.UpdateRef.Builder, io.temporal.api.update.v1.UpdateRefOrBuilder> updateRefBuilder_;
/**
*
* The update reference returned in the initial
* UpdateWorkflowExecutionResponse
*
*
* .temporal.api.update.v1.UpdateRef update_ref = 2;
* @return Whether the updateRef field is set.
*/
public boolean hasUpdateRef() {
return updateRefBuilder_ != null || updateRef_ != null;
}
/**
*
* The update reference returned in the initial
* UpdateWorkflowExecutionResponse
*
*
* .temporal.api.update.v1.UpdateRef update_ref = 2;
* @return The updateRef.
*/
public io.temporal.api.update.v1.UpdateRef getUpdateRef() {
if (updateRefBuilder_ == null) {
return updateRef_ == null ? io.temporal.api.update.v1.UpdateRef.getDefaultInstance() : updateRef_;
} else {
return updateRefBuilder_.getMessage();
}
}
/**
*
* The update reference returned in the initial
* UpdateWorkflowExecutionResponse
*
*
* .temporal.api.update.v1.UpdateRef update_ref = 2;
*/
public Builder setUpdateRef(io.temporal.api.update.v1.UpdateRef value) {
if (updateRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateRef_ = value;
onChanged();
} else {
updateRefBuilder_.setMessage(value);
}
return this;
}
/**
*
* The update reference returned in the initial
* UpdateWorkflowExecutionResponse
*
*
* .temporal.api.update.v1.UpdateRef update_ref = 2;
*/
public Builder setUpdateRef(
io.temporal.api.update.v1.UpdateRef.Builder builderForValue) {
if (updateRefBuilder_ == null) {
updateRef_ = builderForValue.build();
onChanged();
} else {
updateRefBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The update reference returned in the initial
* UpdateWorkflowExecutionResponse
*
*
* .temporal.api.update.v1.UpdateRef update_ref = 2;
*/
public Builder mergeUpdateRef(io.temporal.api.update.v1.UpdateRef value) {
if (updateRefBuilder_ == null) {
if (updateRef_ != null) {
updateRef_ =
io.temporal.api.update.v1.UpdateRef.newBuilder(updateRef_).mergeFrom(value).buildPartial();
} else {
updateRef_ = value;
}
onChanged();
} else {
updateRefBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The update reference returned in the initial
* UpdateWorkflowExecutionResponse
*
*
* .temporal.api.update.v1.UpdateRef update_ref = 2;
*/
public Builder clearUpdateRef() {
if (updateRefBuilder_ == null) {
updateRef_ = null;
onChanged();
} else {
updateRef_ = null;
updateRefBuilder_ = null;
}
return this;
}
/**
*
* The update reference returned in the initial
* UpdateWorkflowExecutionResponse
*
*
* .temporal.api.update.v1.UpdateRef update_ref = 2;
*/
public io.temporal.api.update.v1.UpdateRef.Builder getUpdateRefBuilder() {
onChanged();
return getUpdateRefFieldBuilder().getBuilder();
}
/**
*
* The update reference returned in the initial
* UpdateWorkflowExecutionResponse
*
*
* .temporal.api.update.v1.UpdateRef update_ref = 2;
*/
public io.temporal.api.update.v1.UpdateRefOrBuilder getUpdateRefOrBuilder() {
if (updateRefBuilder_ != null) {
return updateRefBuilder_.getMessageOrBuilder();
} else {
return updateRef_ == null ?
io.temporal.api.update.v1.UpdateRef.getDefaultInstance() : updateRef_;
}
}
/**
*
* The update reference returned in the initial
* UpdateWorkflowExecutionResponse
*
*
* .temporal.api.update.v1.UpdateRef update_ref = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.update.v1.UpdateRef, io.temporal.api.update.v1.UpdateRef.Builder, io.temporal.api.update.v1.UpdateRefOrBuilder>
getUpdateRefFieldBuilder() {
if (updateRefBuilder_ == null) {
updateRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.update.v1.UpdateRef, io.temporal.api.update.v1.UpdateRef.Builder, io.temporal.api.update.v1.UpdateRefOrBuilder>(
getUpdateRef(),
getParentForChildren(),
isClean());
updateRef_ = null;
}
return updateRefBuilder_;
}
private java.lang.Object identity_ = "";
/**
*
* The identity of the worker/client who is polling this update outcome
*
*
* string identity = 3;
* @return The identity.
*/
public java.lang.String getIdentity() {
java.lang.Object ref = identity_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
identity_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The identity of the worker/client who is polling this update outcome
*
*
* string identity = 3;
* @return The bytes for identity.
*/
public com.google.protobuf.ByteString
getIdentityBytes() {
java.lang.Object ref = identity_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
identity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The identity of the worker/client who is polling this update outcome
*
*
* string identity = 3;
* @param value The identity to set.
* @return This builder for chaining.
*/
public Builder setIdentity(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
identity_ = value;
onChanged();
return this;
}
/**
*
* The identity of the worker/client who is polling this update outcome
*
*
* string identity = 3;
* @return This builder for chaining.
*/
public Builder clearIdentity() {
identity_ = getDefaultInstance().getIdentity();
onChanged();
return this;
}
/**
*
* The identity of the worker/client who is polling this update outcome
*
*
* string identity = 3;
* @param value The bytes for identity to set.
* @return This builder for chaining.
*/
public Builder setIdentityBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
identity_ = 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 poll request should return a response
*
*
* .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 poll request should return a response
*
*
* .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 poll request should return a response
*
*
* .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 poll request should return a response
*
*
* .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 poll request should return a response
*
*
* .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 poll request should return a response
*
*
* .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 poll request should return a response
*
*
* .temporal.api.update.v1.WaitPolicy wait_policy = 4;
*/
public io.temporal.api.update.v1.WaitPolicy.Builder getWaitPolicyBuilder() {
onChanged();
return getWaitPolicyFieldBuilder().getBuilder();
}
/**
*
* Describes when this poll request should return a response
*
*
* .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 poll request should return a response
*
*
* .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_;
}
@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.PollWorkflowExecutionUpdateRequest)
}
// @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest)
private static final io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest();
}
public static io.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PollWorkflowExecutionUpdateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PollWorkflowExecutionUpdateRequest(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.PollWorkflowExecutionUpdateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}