io.temporal.api.update.v1.Outcome 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;
/**
*
* The outcome of a workflow update - success or failure.
*
*
* Protobuf type {@code temporal.api.update.v1.Outcome}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:Outcome.java.pb.meta")
public final class Outcome extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.update.v1.Outcome)
OutcomeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Outcome.newBuilder() to construct.
private Outcome(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Outcome() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Outcome();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Outcome(
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: {
io.temporal.api.common.v1.Payloads.Builder subBuilder = null;
if (valueCase_ == 1) {
subBuilder = ((io.temporal.api.common.v1.Payloads) value_).toBuilder();
}
value_ =
input.readMessage(io.temporal.api.common.v1.Payloads.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.temporal.api.common.v1.Payloads) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 1;
break;
}
case 18: {
io.temporal.api.failure.v1.Failure.Builder subBuilder = null;
if (valueCase_ == 2) {
subBuilder = ((io.temporal.api.failure.v1.Failure) value_).toBuilder();
}
value_ =
input.readMessage(io.temporal.api.failure.v1.Failure.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.temporal.api.failure.v1.Failure) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 2;
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_Outcome_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.update.v1.MessageProto.internal_static_temporal_api_update_v1_Outcome_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.update.v1.Outcome.class, io.temporal.api.update.v1.Outcome.Builder.class);
}
private int valueCase_ = 0;
private java.lang.Object value_;
public enum ValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SUCCESS(1),
FAILURE(2),
VALUE_NOT_SET(0);
private final int value;
private ValueCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ValueCase valueOf(int value) {
return forNumber(value);
}
public static ValueCase forNumber(int value) {
switch (value) {
case 1: return SUCCESS;
case 2: return FAILURE;
case 0: return VALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public static final int SUCCESS_FIELD_NUMBER = 1;
/**
* .temporal.api.common.v1.Payloads success = 1;
* @return Whether the success field is set.
*/
public boolean hasSuccess() {
return valueCase_ == 1;
}
/**
* .temporal.api.common.v1.Payloads success = 1;
* @return The success.
*/
public io.temporal.api.common.v1.Payloads getSuccess() {
if (valueCase_ == 1) {
return (io.temporal.api.common.v1.Payloads) value_;
}
return io.temporal.api.common.v1.Payloads.getDefaultInstance();
}
/**
* .temporal.api.common.v1.Payloads success = 1;
*/
public io.temporal.api.common.v1.PayloadsOrBuilder getSuccessOrBuilder() {
if (valueCase_ == 1) {
return (io.temporal.api.common.v1.Payloads) value_;
}
return io.temporal.api.common.v1.Payloads.getDefaultInstance();
}
public static final int FAILURE_FIELD_NUMBER = 2;
/**
* .temporal.api.failure.v1.Failure failure = 2;
* @return Whether the failure field is set.
*/
public boolean hasFailure() {
return valueCase_ == 2;
}
/**
* .temporal.api.failure.v1.Failure failure = 2;
* @return The failure.
*/
public io.temporal.api.failure.v1.Failure getFailure() {
if (valueCase_ == 2) {
return (io.temporal.api.failure.v1.Failure) value_;
}
return io.temporal.api.failure.v1.Failure.getDefaultInstance();
}
/**
* .temporal.api.failure.v1.Failure failure = 2;
*/
public io.temporal.api.failure.v1.FailureOrBuilder getFailureOrBuilder() {
if (valueCase_ == 2) {
return (io.temporal.api.failure.v1.Failure) value_;
}
return io.temporal.api.failure.v1.Failure.getDefaultInstance();
}
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 (valueCase_ == 1) {
output.writeMessage(1, (io.temporal.api.common.v1.Payloads) value_);
}
if (valueCase_ == 2) {
output.writeMessage(2, (io.temporal.api.failure.v1.Failure) value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (valueCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.temporal.api.common.v1.Payloads) value_);
}
if (valueCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.temporal.api.failure.v1.Failure) value_);
}
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.Outcome)) {
return super.equals(obj);
}
io.temporal.api.update.v1.Outcome other = (io.temporal.api.update.v1.Outcome) obj;
if (!getValueCase().equals(other.getValueCase())) return false;
switch (valueCase_) {
case 1:
if (!getSuccess()
.equals(other.getSuccess())) return false;
break;
case 2:
if (!getFailure()
.equals(other.getFailure())) return false;
break;
case 0:
default:
}
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();
switch (valueCase_) {
case 1:
hash = (37 * hash) + SUCCESS_FIELD_NUMBER;
hash = (53 * hash) + getSuccess().hashCode();
break;
case 2:
hash = (37 * hash) + FAILURE_FIELD_NUMBER;
hash = (53 * hash) + getFailure().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.update.v1.Outcome parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.update.v1.Outcome 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.Outcome parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.update.v1.Outcome 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.Outcome parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.update.v1.Outcome 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.Outcome parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.update.v1.Outcome 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.Outcome parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.update.v1.Outcome 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.Outcome 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.Outcome 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.Outcome 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;
}
/**
*
* The outcome of a workflow update - success or failure.
*
*
* Protobuf type {@code temporal.api.update.v1.Outcome}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.update.v1.Outcome)
io.temporal.api.update.v1.OutcomeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.update.v1.MessageProto.internal_static_temporal_api_update_v1_Outcome_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.update.v1.MessageProto.internal_static_temporal_api_update_v1_Outcome_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.update.v1.Outcome.class, io.temporal.api.update.v1.Outcome.Builder.class);
}
// Construct using io.temporal.api.update.v1.Outcome.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();
valueCase_ = 0;
value_ = 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_Outcome_descriptor;
}
@java.lang.Override
public io.temporal.api.update.v1.Outcome getDefaultInstanceForType() {
return io.temporal.api.update.v1.Outcome.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.update.v1.Outcome build() {
io.temporal.api.update.v1.Outcome result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.update.v1.Outcome buildPartial() {
io.temporal.api.update.v1.Outcome result = new io.temporal.api.update.v1.Outcome(this);
if (valueCase_ == 1) {
if (successBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = successBuilder_.build();
}
}
if (valueCase_ == 2) {
if (failureBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = failureBuilder_.build();
}
}
result.valueCase_ = valueCase_;
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.Outcome) {
return mergeFrom((io.temporal.api.update.v1.Outcome)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.update.v1.Outcome other) {
if (other == io.temporal.api.update.v1.Outcome.getDefaultInstance()) return this;
switch (other.getValueCase()) {
case SUCCESS: {
mergeSuccess(other.getSuccess());
break;
}
case FAILURE: {
mergeFailure(other.getFailure());
break;
}
case VALUE_NOT_SET: {
break;
}
}
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.Outcome parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.update.v1.Outcome) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int valueCase_ = 0;
private java.lang.Object value_;
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public Builder clearValue() {
valueCase_ = 0;
value_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Payloads, io.temporal.api.common.v1.Payloads.Builder, io.temporal.api.common.v1.PayloadsOrBuilder> successBuilder_;
/**
* .temporal.api.common.v1.Payloads success = 1;
* @return Whether the success field is set.
*/
public boolean hasSuccess() {
return valueCase_ == 1;
}
/**
* .temporal.api.common.v1.Payloads success = 1;
* @return The success.
*/
public io.temporal.api.common.v1.Payloads getSuccess() {
if (successBuilder_ == null) {
if (valueCase_ == 1) {
return (io.temporal.api.common.v1.Payloads) value_;
}
return io.temporal.api.common.v1.Payloads.getDefaultInstance();
} else {
if (valueCase_ == 1) {
return successBuilder_.getMessage();
}
return io.temporal.api.common.v1.Payloads.getDefaultInstance();
}
}
/**
* .temporal.api.common.v1.Payloads success = 1;
*/
public Builder setSuccess(io.temporal.api.common.v1.Payloads value) {
if (successBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
successBuilder_.setMessage(value);
}
valueCase_ = 1;
return this;
}
/**
* .temporal.api.common.v1.Payloads success = 1;
*/
public Builder setSuccess(
io.temporal.api.common.v1.Payloads.Builder builderForValue) {
if (successBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
successBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 1;
return this;
}
/**
* .temporal.api.common.v1.Payloads success = 1;
*/
public Builder mergeSuccess(io.temporal.api.common.v1.Payloads value) {
if (successBuilder_ == null) {
if (valueCase_ == 1 &&
value_ != io.temporal.api.common.v1.Payloads.getDefaultInstance()) {
value_ = io.temporal.api.common.v1.Payloads.newBuilder((io.temporal.api.common.v1.Payloads) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 1) {
successBuilder_.mergeFrom(value);
}
successBuilder_.setMessage(value);
}
valueCase_ = 1;
return this;
}
/**
* .temporal.api.common.v1.Payloads success = 1;
*/
public Builder clearSuccess() {
if (successBuilder_ == null) {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
}
successBuilder_.clear();
}
return this;
}
/**
* .temporal.api.common.v1.Payloads success = 1;
*/
public io.temporal.api.common.v1.Payloads.Builder getSuccessBuilder() {
return getSuccessFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.Payloads success = 1;
*/
public io.temporal.api.common.v1.PayloadsOrBuilder getSuccessOrBuilder() {
if ((valueCase_ == 1) && (successBuilder_ != null)) {
return successBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 1) {
return (io.temporal.api.common.v1.Payloads) value_;
}
return io.temporal.api.common.v1.Payloads.getDefaultInstance();
}
}
/**
* .temporal.api.common.v1.Payloads success = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Payloads, io.temporal.api.common.v1.Payloads.Builder, io.temporal.api.common.v1.PayloadsOrBuilder>
getSuccessFieldBuilder() {
if (successBuilder_ == null) {
if (!(valueCase_ == 1)) {
value_ = io.temporal.api.common.v1.Payloads.getDefaultInstance();
}
successBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Payloads, io.temporal.api.common.v1.Payloads.Builder, io.temporal.api.common.v1.PayloadsOrBuilder>(
(io.temporal.api.common.v1.Payloads) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 1;
onChanged();;
return successBuilder_;
}
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 = 2;
* @return Whether the failure field is set.
*/
public boolean hasFailure() {
return valueCase_ == 2;
}
/**
* .temporal.api.failure.v1.Failure failure = 2;
* @return The failure.
*/
public io.temporal.api.failure.v1.Failure getFailure() {
if (failureBuilder_ == null) {
if (valueCase_ == 2) {
return (io.temporal.api.failure.v1.Failure) value_;
}
return io.temporal.api.failure.v1.Failure.getDefaultInstance();
} else {
if (valueCase_ == 2) {
return failureBuilder_.getMessage();
}
return io.temporal.api.failure.v1.Failure.getDefaultInstance();
}
}
/**
* .temporal.api.failure.v1.Failure failure = 2;
*/
public Builder setFailure(io.temporal.api.failure.v1.Failure value) {
if (failureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
failureBuilder_.setMessage(value);
}
valueCase_ = 2;
return this;
}
/**
* .temporal.api.failure.v1.Failure failure = 2;
*/
public Builder setFailure(
io.temporal.api.failure.v1.Failure.Builder builderForValue) {
if (failureBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
failureBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 2;
return this;
}
/**
* .temporal.api.failure.v1.Failure failure = 2;
*/
public Builder mergeFailure(io.temporal.api.failure.v1.Failure value) {
if (failureBuilder_ == null) {
if (valueCase_ == 2 &&
value_ != io.temporal.api.failure.v1.Failure.getDefaultInstance()) {
value_ = io.temporal.api.failure.v1.Failure.newBuilder((io.temporal.api.failure.v1.Failure) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 2) {
failureBuilder_.mergeFrom(value);
}
failureBuilder_.setMessage(value);
}
valueCase_ = 2;
return this;
}
/**
* .temporal.api.failure.v1.Failure failure = 2;
*/
public Builder clearFailure() {
if (failureBuilder_ == null) {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
}
failureBuilder_.clear();
}
return this;
}
/**
* .temporal.api.failure.v1.Failure failure = 2;
*/
public io.temporal.api.failure.v1.Failure.Builder getFailureBuilder() {
return getFailureFieldBuilder().getBuilder();
}
/**
* .temporal.api.failure.v1.Failure failure = 2;
*/
public io.temporal.api.failure.v1.FailureOrBuilder getFailureOrBuilder() {
if ((valueCase_ == 2) && (failureBuilder_ != null)) {
return failureBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 2) {
return (io.temporal.api.failure.v1.Failure) value_;
}
return io.temporal.api.failure.v1.Failure.getDefaultInstance();
}
}
/**
* .temporal.api.failure.v1.Failure failure = 2;
*/
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) {
if (!(valueCase_ == 2)) {
value_ = io.temporal.api.failure.v1.Failure.getDefaultInstance();
}
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>(
(io.temporal.api.failure.v1.Failure) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 2;
onChanged();;
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.Outcome)
}
// @@protoc_insertion_point(class_scope:temporal.api.update.v1.Outcome)
private static final io.temporal.api.update.v1.Outcome DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.update.v1.Outcome();
}
public static io.temporal.api.update.v1.Outcome getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Outcome parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Outcome(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.Outcome getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy