io.temporal.api.update.v1.Rejection Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: temporal/api/update/v1/message.proto
package io.temporal.api.update.v1;
/**
*
* An update protocol message indicating that a workflow execution update has
* been rejected.
*
*
* Protobuf type {@code temporal.api.update.v1.Rejection}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:Rejection.java.pb.meta")
public final class Rejection extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.update.v1.Rejection)
RejectionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Rejection.newBuilder() to construct.
private Rejection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Rejection() {
rejectedRequestMessageId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Rejection();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Rejection(
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();
rejectedRequestMessageId_ = s;
break;
}
case 16: {
rejectedRequestSequencingEventId_ = input.readInt64();
break;
}
case 26: {
io.temporal.api.update.v1.Request.Builder subBuilder = null;
if (rejectedRequest_ != null) {
subBuilder = rejectedRequest_.toBuilder();
}
rejectedRequest_ = input.readMessage(io.temporal.api.update.v1.Request.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rejectedRequest_);
rejectedRequest_ = subBuilder.buildPartial();
}
break;
}
case 34: {
io.temporal.api.failure.v1.Failure.Builder subBuilder = null;
if (failure_ != null) {
subBuilder = failure_.toBuilder();
}
failure_ = input.readMessage(io.temporal.api.failure.v1.Failure.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(failure_);
failure_ = 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.update.v1.MessageProto.internal_static_temporal_api_update_v1_Rejection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.update.v1.MessageProto.internal_static_temporal_api_update_v1_Rejection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.update.v1.Rejection.class, io.temporal.api.update.v1.Rejection.Builder.class);
}
public static final int REJECTED_REQUEST_MESSAGE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object rejectedRequestMessageId_;
/**
* string rejected_request_message_id = 1;
* @return The rejectedRequestMessageId.
*/
public java.lang.String getRejectedRequestMessageId() {
java.lang.Object ref = rejectedRequestMessageId_;
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();
rejectedRequestMessageId_ = s;
return s;
}
}
/**
* string rejected_request_message_id = 1;
* @return The bytes for rejectedRequestMessageId.
*/
public com.google.protobuf.ByteString
getRejectedRequestMessageIdBytes() {
java.lang.Object ref = rejectedRequestMessageId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rejectedRequestMessageId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REJECTED_REQUEST_SEQUENCING_EVENT_ID_FIELD_NUMBER = 2;
private long rejectedRequestSequencingEventId_;
/**
* int64 rejected_request_sequencing_event_id = 2;
* @return The rejectedRequestSequencingEventId.
*/
public long getRejectedRequestSequencingEventId() {
return rejectedRequestSequencingEventId_;
}
public static final int REJECTED_REQUEST_FIELD_NUMBER = 3;
private io.temporal.api.update.v1.Request rejectedRequest_;
/**
* .temporal.api.update.v1.Request rejected_request = 3;
* @return Whether the rejectedRequest field is set.
*/
public boolean hasRejectedRequest() {
return rejectedRequest_ != null;
}
/**
* .temporal.api.update.v1.Request rejected_request = 3;
* @return The rejectedRequest.
*/
public io.temporal.api.update.v1.Request getRejectedRequest() {
return rejectedRequest_ == null ? io.temporal.api.update.v1.Request.getDefaultInstance() : rejectedRequest_;
}
/**
* .temporal.api.update.v1.Request rejected_request = 3;
*/
public io.temporal.api.update.v1.RequestOrBuilder getRejectedRequestOrBuilder() {
return getRejectedRequest();
}
public static final int FAILURE_FIELD_NUMBER = 4;
private io.temporal.api.failure.v1.Failure failure_;
/**
* .temporal.api.failure.v1.Failure failure = 4;
* @return Whether the failure field is set.
*/
public boolean hasFailure() {
return failure_ != null;
}
/**
* .temporal.api.failure.v1.Failure failure = 4;
* @return The failure.
*/
public io.temporal.api.failure.v1.Failure getFailure() {
return failure_ == null ? io.temporal.api.failure.v1.Failure.getDefaultInstance() : failure_;
}
/**
* .temporal.api.failure.v1.Failure failure = 4;
*/
public io.temporal.api.failure.v1.FailureOrBuilder getFailureOrBuilder() {
return getFailure();
}
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 (!getRejectedRequestMessageIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rejectedRequestMessageId_);
}
if (rejectedRequestSequencingEventId_ != 0L) {
output.writeInt64(2, rejectedRequestSequencingEventId_);
}
if (rejectedRequest_ != null) {
output.writeMessage(3, getRejectedRequest());
}
if (failure_ != null) {
output.writeMessage(4, getFailure());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getRejectedRequestMessageIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rejectedRequestMessageId_);
}
if (rejectedRequestSequencingEventId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, rejectedRequestSequencingEventId_);
}
if (rejectedRequest_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getRejectedRequest());
}
if (failure_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getFailure());
}
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.update.v1.Rejection)) {
return super.equals(obj);
}
io.temporal.api.update.v1.Rejection other = (io.temporal.api.update.v1.Rejection) obj;
if (!getRejectedRequestMessageId()
.equals(other.getRejectedRequestMessageId())) return false;
if (getRejectedRequestSequencingEventId()
!= other.getRejectedRequestSequencingEventId()) return false;
if (hasRejectedRequest() != other.hasRejectedRequest()) return false;
if (hasRejectedRequest()) {
if (!getRejectedRequest()
.equals(other.getRejectedRequest())) return false;
}
if (hasFailure() != other.hasFailure()) return false;
if (hasFailure()) {
if (!getFailure()
.equals(other.getFailure())) 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) + REJECTED_REQUEST_MESSAGE_ID_FIELD_NUMBER;
hash = (53 * hash) + getRejectedRequestMessageId().hashCode();
hash = (37 * hash) + REJECTED_REQUEST_SEQUENCING_EVENT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRejectedRequestSequencingEventId());
if (hasRejectedRequest()) {
hash = (37 * hash) + REJECTED_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRejectedRequest().hashCode();
}
if (hasFailure()) {
hash = (37 * hash) + FAILURE_FIELD_NUMBER;
hash = (53 * hash) + getFailure().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.update.v1.Rejection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.update.v1.Rejection 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.update.v1.Rejection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.update.v1.Rejection 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.update.v1.Rejection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.update.v1.Rejection parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.update.v1.Rejection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.update.v1.Rejection 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.update.v1.Rejection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.update.v1.Rejection 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.update.v1.Rejection parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.update.v1.Rejection 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.update.v1.Rejection 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;
}
/**
*
* An update protocol message indicating that a workflow execution update has
* been rejected.
*
*
* Protobuf type {@code temporal.api.update.v1.Rejection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.update.v1.Rejection)
io.temporal.api.update.v1.RejectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.update.v1.MessageProto.internal_static_temporal_api_update_v1_Rejection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.update.v1.MessageProto.internal_static_temporal_api_update_v1_Rejection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.update.v1.Rejection.class, io.temporal.api.update.v1.Rejection.Builder.class);
}
// Construct using io.temporal.api.update.v1.Rejection.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();
rejectedRequestMessageId_ = "";
rejectedRequestSequencingEventId_ = 0L;
if (rejectedRequestBuilder_ == null) {
rejectedRequest_ = null;
} else {
rejectedRequest_ = null;
rejectedRequestBuilder_ = null;
}
if (failureBuilder_ == null) {
failure_ = null;
} else {
failure_ = null;
failureBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.temporal.api.update.v1.MessageProto.internal_static_temporal_api_update_v1_Rejection_descriptor;
}
@java.lang.Override
public io.temporal.api.update.v1.Rejection getDefaultInstanceForType() {
return io.temporal.api.update.v1.Rejection.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.update.v1.Rejection build() {
io.temporal.api.update.v1.Rejection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.update.v1.Rejection buildPartial() {
io.temporal.api.update.v1.Rejection result = new io.temporal.api.update.v1.Rejection(this);
result.rejectedRequestMessageId_ = rejectedRequestMessageId_;
result.rejectedRequestSequencingEventId_ = rejectedRequestSequencingEventId_;
if (rejectedRequestBuilder_ == null) {
result.rejectedRequest_ = rejectedRequest_;
} else {
result.rejectedRequest_ = rejectedRequestBuilder_.build();
}
if (failureBuilder_ == null) {
result.failure_ = failure_;
} else {
result.failure_ = failureBuilder_.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.update.v1.Rejection) {
return mergeFrom((io.temporal.api.update.v1.Rejection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.update.v1.Rejection other) {
if (other == io.temporal.api.update.v1.Rejection.getDefaultInstance()) return this;
if (!other.getRejectedRequestMessageId().isEmpty()) {
rejectedRequestMessageId_ = other.rejectedRequestMessageId_;
onChanged();
}
if (other.getRejectedRequestSequencingEventId() != 0L) {
setRejectedRequestSequencingEventId(other.getRejectedRequestSequencingEventId());
}
if (other.hasRejectedRequest()) {
mergeRejectedRequest(other.getRejectedRequest());
}
if (other.hasFailure()) {
mergeFailure(other.getFailure());
}
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.update.v1.Rejection parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.update.v1.Rejection) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object rejectedRequestMessageId_ = "";
/**
* string rejected_request_message_id = 1;
* @return The rejectedRequestMessageId.
*/
public java.lang.String getRejectedRequestMessageId() {
java.lang.Object ref = rejectedRequestMessageId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rejectedRequestMessageId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string rejected_request_message_id = 1;
* @return The bytes for rejectedRequestMessageId.
*/
public com.google.protobuf.ByteString
getRejectedRequestMessageIdBytes() {
java.lang.Object ref = rejectedRequestMessageId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rejectedRequestMessageId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string rejected_request_message_id = 1;
* @param value The rejectedRequestMessageId to set.
* @return This builder for chaining.
*/
public Builder setRejectedRequestMessageId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
rejectedRequestMessageId_ = value;
onChanged();
return this;
}
/**
* string rejected_request_message_id = 1;
* @return This builder for chaining.
*/
public Builder clearRejectedRequestMessageId() {
rejectedRequestMessageId_ = getDefaultInstance().getRejectedRequestMessageId();
onChanged();
return this;
}
/**
* string rejected_request_message_id = 1;
* @param value The bytes for rejectedRequestMessageId to set.
* @return This builder for chaining.
*/
public Builder setRejectedRequestMessageIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
rejectedRequestMessageId_ = value;
onChanged();
return this;
}
private long rejectedRequestSequencingEventId_ ;
/**
* int64 rejected_request_sequencing_event_id = 2;
* @return The rejectedRequestSequencingEventId.
*/
public long getRejectedRequestSequencingEventId() {
return rejectedRequestSequencingEventId_;
}
/**
* int64 rejected_request_sequencing_event_id = 2;
* @param value The rejectedRequestSequencingEventId to set.
* @return This builder for chaining.
*/
public Builder setRejectedRequestSequencingEventId(long value) {
rejectedRequestSequencingEventId_ = value;
onChanged();
return this;
}
/**
* int64 rejected_request_sequencing_event_id = 2;
* @return This builder for chaining.
*/
public Builder clearRejectedRequestSequencingEventId() {
rejectedRequestSequencingEventId_ = 0L;
onChanged();
return this;
}
private io.temporal.api.update.v1.Request rejectedRequest_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.update.v1.Request, io.temporal.api.update.v1.Request.Builder, io.temporal.api.update.v1.RequestOrBuilder> rejectedRequestBuilder_;
/**
* .temporal.api.update.v1.Request rejected_request = 3;
* @return Whether the rejectedRequest field is set.
*/
public boolean hasRejectedRequest() {
return rejectedRequestBuilder_ != null || rejectedRequest_ != null;
}
/**
* .temporal.api.update.v1.Request rejected_request = 3;
* @return The rejectedRequest.
*/
public io.temporal.api.update.v1.Request getRejectedRequest() {
if (rejectedRequestBuilder_ == null) {
return rejectedRequest_ == null ? io.temporal.api.update.v1.Request.getDefaultInstance() : rejectedRequest_;
} else {
return rejectedRequestBuilder_.getMessage();
}
}
/**
* .temporal.api.update.v1.Request rejected_request = 3;
*/
public Builder setRejectedRequest(io.temporal.api.update.v1.Request value) {
if (rejectedRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rejectedRequest_ = value;
onChanged();
} else {
rejectedRequestBuilder_.setMessage(value);
}
return this;
}
/**
* .temporal.api.update.v1.Request rejected_request = 3;
*/
public Builder setRejectedRequest(
io.temporal.api.update.v1.Request.Builder builderForValue) {
if (rejectedRequestBuilder_ == null) {
rejectedRequest_ = builderForValue.build();
onChanged();
} else {
rejectedRequestBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .temporal.api.update.v1.Request rejected_request = 3;
*/
public Builder mergeRejectedRequest(io.temporal.api.update.v1.Request value) {
if (rejectedRequestBuilder_ == null) {
if (rejectedRequest_ != null) {
rejectedRequest_ =
io.temporal.api.update.v1.Request.newBuilder(rejectedRequest_).mergeFrom(value).buildPartial();
} else {
rejectedRequest_ = value;
}
onChanged();
} else {
rejectedRequestBuilder_.mergeFrom(value);
}
return this;
}
/**
* .temporal.api.update.v1.Request rejected_request = 3;
*/
public Builder clearRejectedRequest() {
if (rejectedRequestBuilder_ == null) {
rejectedRequest_ = null;
onChanged();
} else {
rejectedRequest_ = null;
rejectedRequestBuilder_ = null;
}
return this;
}
/**
* .temporal.api.update.v1.Request rejected_request = 3;
*/
public io.temporal.api.update.v1.Request.Builder getRejectedRequestBuilder() {
onChanged();
return getRejectedRequestFieldBuilder().getBuilder();
}
/**
* .temporal.api.update.v1.Request rejected_request = 3;
*/
public io.temporal.api.update.v1.RequestOrBuilder getRejectedRequestOrBuilder() {
if (rejectedRequestBuilder_ != null) {
return rejectedRequestBuilder_.getMessageOrBuilder();
} else {
return rejectedRequest_ == null ?
io.temporal.api.update.v1.Request.getDefaultInstance() : rejectedRequest_;
}
}
/**
* .temporal.api.update.v1.Request rejected_request = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.update.v1.Request, io.temporal.api.update.v1.Request.Builder, io.temporal.api.update.v1.RequestOrBuilder>
getRejectedRequestFieldBuilder() {
if (rejectedRequestBuilder_ == null) {
rejectedRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.update.v1.Request, io.temporal.api.update.v1.Request.Builder, io.temporal.api.update.v1.RequestOrBuilder>(
getRejectedRequest(),
getParentForChildren(),
isClean());
rejectedRequest_ = null;
}
return rejectedRequestBuilder_;
}
private io.temporal.api.failure.v1.Failure failure_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder> failureBuilder_;
/**
* .temporal.api.failure.v1.Failure failure = 4;
* @return Whether the failure field is set.
*/
public boolean hasFailure() {
return failureBuilder_ != null || failure_ != null;
}
/**
* .temporal.api.failure.v1.Failure failure = 4;
* @return The failure.
*/
public io.temporal.api.failure.v1.Failure getFailure() {
if (failureBuilder_ == null) {
return failure_ == null ? io.temporal.api.failure.v1.Failure.getDefaultInstance() : failure_;
} else {
return failureBuilder_.getMessage();
}
}
/**
* .temporal.api.failure.v1.Failure failure = 4;
*/
public Builder setFailure(io.temporal.api.failure.v1.Failure value) {
if (failureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
failure_ = value;
onChanged();
} else {
failureBuilder_.setMessage(value);
}
return this;
}
/**
* .temporal.api.failure.v1.Failure failure = 4;
*/
public Builder setFailure(
io.temporal.api.failure.v1.Failure.Builder builderForValue) {
if (failureBuilder_ == null) {
failure_ = builderForValue.build();
onChanged();
} else {
failureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .temporal.api.failure.v1.Failure failure = 4;
*/
public Builder mergeFailure(io.temporal.api.failure.v1.Failure value) {
if (failureBuilder_ == null) {
if (failure_ != null) {
failure_ =
io.temporal.api.failure.v1.Failure.newBuilder(failure_).mergeFrom(value).buildPartial();
} else {
failure_ = value;
}
onChanged();
} else {
failureBuilder_.mergeFrom(value);
}
return this;
}
/**
* .temporal.api.failure.v1.Failure failure = 4;
*/
public Builder clearFailure() {
if (failureBuilder_ == null) {
failure_ = null;
onChanged();
} else {
failure_ = null;
failureBuilder_ = null;
}
return this;
}
/**
* .temporal.api.failure.v1.Failure failure = 4;
*/
public io.temporal.api.failure.v1.Failure.Builder getFailureBuilder() {
onChanged();
return getFailureFieldBuilder().getBuilder();
}
/**
* .temporal.api.failure.v1.Failure failure = 4;
*/
public io.temporal.api.failure.v1.FailureOrBuilder getFailureOrBuilder() {
if (failureBuilder_ != null) {
return failureBuilder_.getMessageOrBuilder();
} else {
return failure_ == null ?
io.temporal.api.failure.v1.Failure.getDefaultInstance() : failure_;
}
}
/**
* .temporal.api.failure.v1.Failure failure = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder>
getFailureFieldBuilder() {
if (failureBuilder_ == null) {
failureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder>(
getFailure(),
getParentForChildren(),
isClean());
failure_ = null;
}
return failureBuilder_;
}
@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.update.v1.Rejection)
}
// @@protoc_insertion_point(class_scope:temporal.api.update.v1.Rejection)
private static final io.temporal.api.update.v1.Rejection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.update.v1.Rejection();
}
public static io.temporal.api.update.v1.Rejection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Rejection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Rejection(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.update.v1.Rejection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy