io.temporal.api.common.v1.Link Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: temporal/api/common/v1/message.proto
package io.temporal.api.common.v1;
/**
*
* Link can be associated with history events. It might contain information about an external entity
* related to the history event. For example, workflow A makes a Nexus call that starts workflow B:
* in this case, a history event in workflow A could contain a Link to the workflow started event in
* workflow B, and vice-versa.
*
*
* Protobuf type {@code temporal.api.common.v1.Link}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:Link.java.pb.meta")
public final class Link extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.common.v1.Link)
LinkOrBuilder {
private static final long serialVersionUID = 0L;
// Use Link.newBuilder() to construct.
private Link(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Link() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Link();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Link(
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.Link.WorkflowEvent.Builder subBuilder = null;
if (variantCase_ == 1) {
subBuilder = ((io.temporal.api.common.v1.Link.WorkflowEvent) variant_).toBuilder();
}
variant_ =
input.readMessage(io.temporal.api.common.v1.Link.WorkflowEvent.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.temporal.api.common.v1.Link.WorkflowEvent) variant_);
variant_ = subBuilder.buildPartial();
}
variantCase_ = 1;
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.common.v1.MessageProto.internal_static_temporal_api_common_v1_Link_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.common.v1.MessageProto.internal_static_temporal_api_common_v1_Link_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.common.v1.Link.class, io.temporal.api.common.v1.Link.Builder.class);
}
public interface WorkflowEventOrBuilder extends
// @@protoc_insertion_point(interface_extends:temporal.api.common.v1.Link.WorkflowEvent)
com.google.protobuf.MessageOrBuilder {
/**
* string namespace = 1;
* @return The namespace.
*/
java.lang.String getNamespace();
/**
* string namespace = 1;
* @return The bytes for namespace.
*/
com.google.protobuf.ByteString
getNamespaceBytes();
/**
* string workflow_id = 2;
* @return The workflowId.
*/
java.lang.String getWorkflowId();
/**
* string workflow_id = 2;
* @return The bytes for workflowId.
*/
com.google.protobuf.ByteString
getWorkflowIdBytes();
/**
* string run_id = 3;
* @return The runId.
*/
java.lang.String getRunId();
/**
* string run_id = 3;
* @return The bytes for runId.
*/
com.google.protobuf.ByteString
getRunIdBytes();
/**
* .temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
* @return Whether the eventRef field is set.
*/
boolean hasEventRef();
/**
* .temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
* @return The eventRef.
*/
io.temporal.api.common.v1.Link.WorkflowEvent.EventReference getEventRef();
/**
* .temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
*/
io.temporal.api.common.v1.Link.WorkflowEvent.EventReferenceOrBuilder getEventRefOrBuilder();
public io.temporal.api.common.v1.Link.WorkflowEvent.ReferenceCase getReferenceCase();
}
/**
* Protobuf type {@code temporal.api.common.v1.Link.WorkflowEvent}
*/
public static final class WorkflowEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.common.v1.Link.WorkflowEvent)
WorkflowEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use WorkflowEvent.newBuilder() to construct.
private WorkflowEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WorkflowEvent() {
namespace_ = "";
workflowId_ = "";
runId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WorkflowEvent();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WorkflowEvent(
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: {
java.lang.String s = input.readStringRequireUtf8();
workflowId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
runId_ = s;
break;
}
case 802: {
io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.Builder subBuilder = null;
if (referenceCase_ == 100) {
subBuilder = ((io.temporal.api.common.v1.Link.WorkflowEvent.EventReference) reference_).toBuilder();
}
reference_ =
input.readMessage(io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.temporal.api.common.v1.Link.WorkflowEvent.EventReference) reference_);
reference_ = subBuilder.buildPartial();
}
referenceCase_ = 100;
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.common.v1.MessageProto.internal_static_temporal_api_common_v1_Link_WorkflowEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.common.v1.MessageProto.internal_static_temporal_api_common_v1_Link_WorkflowEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.common.v1.Link.WorkflowEvent.class, io.temporal.api.common.v1.Link.WorkflowEvent.Builder.class);
}
public interface EventReferenceOrBuilder extends
// @@protoc_insertion_point(interface_extends:temporal.api.common.v1.Link.WorkflowEvent.EventReference)
com.google.protobuf.MessageOrBuilder {
/**
* int64 event_id = 1;
* @return The eventId.
*/
long getEventId();
/**
* .temporal.api.enums.v1.EventType event_type = 2;
* @return The enum numeric value on the wire for eventType.
*/
int getEventTypeValue();
/**
* .temporal.api.enums.v1.EventType event_type = 2;
* @return The eventType.
*/
io.temporal.api.enums.v1.EventType getEventType();
}
/**
* Protobuf type {@code temporal.api.common.v1.Link.WorkflowEvent.EventReference}
*/
public static final class EventReference extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.common.v1.Link.WorkflowEvent.EventReference)
EventReferenceOrBuilder {
private static final long serialVersionUID = 0L;
// Use EventReference.newBuilder() to construct.
private EventReference(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EventReference() {
eventType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EventReference();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EventReference(
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 8: {
eventId_ = input.readInt64();
break;
}
case 16: {
int rawValue = input.readEnum();
eventType_ = rawValue;
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.common.v1.MessageProto.internal_static_temporal_api_common_v1_Link_WorkflowEvent_EventReference_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.common.v1.MessageProto.internal_static_temporal_api_common_v1_Link_WorkflowEvent_EventReference_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.class, io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.Builder.class);
}
public static final int EVENT_ID_FIELD_NUMBER = 1;
private long eventId_;
/**
* int64 event_id = 1;
* @return The eventId.
*/
public long getEventId() {
return eventId_;
}
public static final int EVENT_TYPE_FIELD_NUMBER = 2;
private int eventType_;
/**
* .temporal.api.enums.v1.EventType event_type = 2;
* @return The enum numeric value on the wire for eventType.
*/
public int getEventTypeValue() {
return eventType_;
}
/**
* .temporal.api.enums.v1.EventType event_type = 2;
* @return The eventType.
*/
public io.temporal.api.enums.v1.EventType getEventType() {
@SuppressWarnings("deprecation")
io.temporal.api.enums.v1.EventType result = io.temporal.api.enums.v1.EventType.valueOf(eventType_);
return result == null ? io.temporal.api.enums.v1.EventType.UNRECOGNIZED : result;
}
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 (eventId_ != 0L) {
output.writeInt64(1, eventId_);
}
if (eventType_ != io.temporal.api.enums.v1.EventType.EVENT_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, eventType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (eventId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, eventId_);
}
if (eventType_ != io.temporal.api.enums.v1.EventType.EVENT_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, eventType_);
}
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.common.v1.Link.WorkflowEvent.EventReference)) {
return super.equals(obj);
}
io.temporal.api.common.v1.Link.WorkflowEvent.EventReference other = (io.temporal.api.common.v1.Link.WorkflowEvent.EventReference) obj;
if (getEventId()
!= other.getEventId()) return false;
if (eventType_ != other.eventType_) 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) + EVENT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEventId());
hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + eventType_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.common.v1.Link.WorkflowEvent.EventReference parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.common.v1.Link.WorkflowEvent.EventReference 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.common.v1.Link.WorkflowEvent.EventReference parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.common.v1.Link.WorkflowEvent.EventReference 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.common.v1.Link.WorkflowEvent.EventReference parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.common.v1.Link.WorkflowEvent.EventReference parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.common.v1.Link.WorkflowEvent.EventReference parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.common.v1.Link.WorkflowEvent.EventReference 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.common.v1.Link.WorkflowEvent.EventReference parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.common.v1.Link.WorkflowEvent.EventReference 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.common.v1.Link.WorkflowEvent.EventReference parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.common.v1.Link.WorkflowEvent.EventReference 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.common.v1.Link.WorkflowEvent.EventReference 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.common.v1.Link.WorkflowEvent.EventReference}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.common.v1.Link.WorkflowEvent.EventReference)
io.temporal.api.common.v1.Link.WorkflowEvent.EventReferenceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.common.v1.MessageProto.internal_static_temporal_api_common_v1_Link_WorkflowEvent_EventReference_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.common.v1.MessageProto.internal_static_temporal_api_common_v1_Link_WorkflowEvent_EventReference_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.class, io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.Builder.class);
}
// Construct using io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.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();
eventId_ = 0L;
eventType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.temporal.api.common.v1.MessageProto.internal_static_temporal_api_common_v1_Link_WorkflowEvent_EventReference_descriptor;
}
@java.lang.Override
public io.temporal.api.common.v1.Link.WorkflowEvent.EventReference getDefaultInstanceForType() {
return io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.common.v1.Link.WorkflowEvent.EventReference build() {
io.temporal.api.common.v1.Link.WorkflowEvent.EventReference result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.common.v1.Link.WorkflowEvent.EventReference buildPartial() {
io.temporal.api.common.v1.Link.WorkflowEvent.EventReference result = new io.temporal.api.common.v1.Link.WorkflowEvent.EventReference(this);
result.eventId_ = eventId_;
result.eventType_ = eventType_;
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.common.v1.Link.WorkflowEvent.EventReference) {
return mergeFrom((io.temporal.api.common.v1.Link.WorkflowEvent.EventReference)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.common.v1.Link.WorkflowEvent.EventReference other) {
if (other == io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.getDefaultInstance()) return this;
if (other.getEventId() != 0L) {
setEventId(other.getEventId());
}
if (other.eventType_ != 0) {
setEventTypeValue(other.getEventTypeValue());
}
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.common.v1.Link.WorkflowEvent.EventReference parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.common.v1.Link.WorkflowEvent.EventReference) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long eventId_ ;
/**
* int64 event_id = 1;
* @return The eventId.
*/
public long getEventId() {
return eventId_;
}
/**
* int64 event_id = 1;
* @param value The eventId to set.
* @return This builder for chaining.
*/
public Builder setEventId(long value) {
eventId_ = value;
onChanged();
return this;
}
/**
* int64 event_id = 1;
* @return This builder for chaining.
*/
public Builder clearEventId() {
eventId_ = 0L;
onChanged();
return this;
}
private int eventType_ = 0;
/**
* .temporal.api.enums.v1.EventType event_type = 2;
* @return The enum numeric value on the wire for eventType.
*/
public int getEventTypeValue() {
return eventType_;
}
/**
* .temporal.api.enums.v1.EventType event_type = 2;
* @param value The enum numeric value on the wire for eventType to set.
* @return This builder for chaining.
*/
public Builder setEventTypeValue(int value) {
eventType_ = value;
onChanged();
return this;
}
/**
* .temporal.api.enums.v1.EventType event_type = 2;
* @return The eventType.
*/
public io.temporal.api.enums.v1.EventType getEventType() {
@SuppressWarnings("deprecation")
io.temporal.api.enums.v1.EventType result = io.temporal.api.enums.v1.EventType.valueOf(eventType_);
return result == null ? io.temporal.api.enums.v1.EventType.UNRECOGNIZED : result;
}
/**
* .temporal.api.enums.v1.EventType event_type = 2;
* @param value The eventType to set.
* @return This builder for chaining.
*/
public Builder setEventType(io.temporal.api.enums.v1.EventType value) {
if (value == null) {
throw new NullPointerException();
}
eventType_ = value.getNumber();
onChanged();
return this;
}
/**
* .temporal.api.enums.v1.EventType event_type = 2;
* @return This builder for chaining.
*/
public Builder clearEventType() {
eventType_ = 0;
onChanged();
return this;
}
@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.common.v1.Link.WorkflowEvent.EventReference)
}
// @@protoc_insertion_point(class_scope:temporal.api.common.v1.Link.WorkflowEvent.EventReference)
private static final io.temporal.api.common.v1.Link.WorkflowEvent.EventReference DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.common.v1.Link.WorkflowEvent.EventReference();
}
public static io.temporal.api.common.v1.Link.WorkflowEvent.EventReference getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EventReference parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EventReference(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.common.v1.Link.WorkflowEvent.EventReference getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int referenceCase_ = 0;
private java.lang.Object reference_;
public enum ReferenceCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
EVENT_REF(100),
REFERENCE_NOT_SET(0);
private final int value;
private ReferenceCase(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 ReferenceCase valueOf(int value) {
return forNumber(value);
}
public static ReferenceCase forNumber(int value) {
switch (value) {
case 100: return EVENT_REF;
case 0: return REFERENCE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ReferenceCase
getReferenceCase() {
return ReferenceCase.forNumber(
referenceCase_);
}
public static final int NAMESPACE_FIELD_NUMBER = 1;
private volatile java.lang.Object namespace_;
/**
* 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;
}
}
/**
* 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_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object workflowId_;
/**
* string workflow_id = 2;
* @return The workflowId.
*/
public java.lang.String getWorkflowId() {
java.lang.Object ref = workflowId_;
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();
workflowId_ = s;
return s;
}
}
/**
* string workflow_id = 2;
* @return The bytes for workflowId.
*/
public com.google.protobuf.ByteString
getWorkflowIdBytes() {
java.lang.Object ref = workflowId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workflowId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RUN_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object runId_;
/**
* string run_id = 3;
* @return The runId.
*/
public java.lang.String getRunId() {
java.lang.Object ref = runId_;
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();
runId_ = s;
return s;
}
}
/**
* string run_id = 3;
* @return The bytes for runId.
*/
public com.google.protobuf.ByteString
getRunIdBytes() {
java.lang.Object ref = runId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
runId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EVENT_REF_FIELD_NUMBER = 100;
/**
* .temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
* @return Whether the eventRef field is set.
*/
public boolean hasEventRef() {
return referenceCase_ == 100;
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
* @return The eventRef.
*/
public io.temporal.api.common.v1.Link.WorkflowEvent.EventReference getEventRef() {
if (referenceCase_ == 100) {
return (io.temporal.api.common.v1.Link.WorkflowEvent.EventReference) reference_;
}
return io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.getDefaultInstance();
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
*/
public io.temporal.api.common.v1.Link.WorkflowEvent.EventReferenceOrBuilder getEventRefOrBuilder() {
if (referenceCase_ == 100) {
return (io.temporal.api.common.v1.Link.WorkflowEvent.EventReference) reference_;
}
return io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.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 (!getNamespaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_);
}
if (!getWorkflowIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workflowId_);
}
if (!getRunIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, runId_);
}
if (referenceCase_ == 100) {
output.writeMessage(100, (io.temporal.api.common.v1.Link.WorkflowEvent.EventReference) reference_);
}
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 (!getWorkflowIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workflowId_);
}
if (!getRunIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, runId_);
}
if (referenceCase_ == 100) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(100, (io.temporal.api.common.v1.Link.WorkflowEvent.EventReference) reference_);
}
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.common.v1.Link.WorkflowEvent)) {
return super.equals(obj);
}
io.temporal.api.common.v1.Link.WorkflowEvent other = (io.temporal.api.common.v1.Link.WorkflowEvent) obj;
if (!getNamespace()
.equals(other.getNamespace())) return false;
if (!getWorkflowId()
.equals(other.getWorkflowId())) return false;
if (!getRunId()
.equals(other.getRunId())) return false;
if (!getReferenceCase().equals(other.getReferenceCase())) return false;
switch (referenceCase_) {
case 100:
if (!getEventRef()
.equals(other.getEventRef())) 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();
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowId().hashCode();
hash = (37 * hash) + RUN_ID_FIELD_NUMBER;
hash = (53 * hash) + getRunId().hashCode();
switch (referenceCase_) {
case 100:
hash = (37 * hash) + EVENT_REF_FIELD_NUMBER;
hash = (53 * hash) + getEventRef().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.common.v1.Link.WorkflowEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.common.v1.Link.WorkflowEvent 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.common.v1.Link.WorkflowEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.common.v1.Link.WorkflowEvent 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.common.v1.Link.WorkflowEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.common.v1.Link.WorkflowEvent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.common.v1.Link.WorkflowEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.common.v1.Link.WorkflowEvent 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.common.v1.Link.WorkflowEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.common.v1.Link.WorkflowEvent 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.common.v1.Link.WorkflowEvent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.common.v1.Link.WorkflowEvent 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.common.v1.Link.WorkflowEvent 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.common.v1.Link.WorkflowEvent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.common.v1.Link.WorkflowEvent)
io.temporal.api.common.v1.Link.WorkflowEventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.common.v1.MessageProto.internal_static_temporal_api_common_v1_Link_WorkflowEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.common.v1.MessageProto.internal_static_temporal_api_common_v1_Link_WorkflowEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.common.v1.Link.WorkflowEvent.class, io.temporal.api.common.v1.Link.WorkflowEvent.Builder.class);
}
// Construct using io.temporal.api.common.v1.Link.WorkflowEvent.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_ = "";
workflowId_ = "";
runId_ = "";
referenceCase_ = 0;
reference_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.temporal.api.common.v1.MessageProto.internal_static_temporal_api_common_v1_Link_WorkflowEvent_descriptor;
}
@java.lang.Override
public io.temporal.api.common.v1.Link.WorkflowEvent getDefaultInstanceForType() {
return io.temporal.api.common.v1.Link.WorkflowEvent.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.common.v1.Link.WorkflowEvent build() {
io.temporal.api.common.v1.Link.WorkflowEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.common.v1.Link.WorkflowEvent buildPartial() {
io.temporal.api.common.v1.Link.WorkflowEvent result = new io.temporal.api.common.v1.Link.WorkflowEvent(this);
result.namespace_ = namespace_;
result.workflowId_ = workflowId_;
result.runId_ = runId_;
if (referenceCase_ == 100) {
if (eventRefBuilder_ == null) {
result.reference_ = reference_;
} else {
result.reference_ = eventRefBuilder_.build();
}
}
result.referenceCase_ = referenceCase_;
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.common.v1.Link.WorkflowEvent) {
return mergeFrom((io.temporal.api.common.v1.Link.WorkflowEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.common.v1.Link.WorkflowEvent other) {
if (other == io.temporal.api.common.v1.Link.WorkflowEvent.getDefaultInstance()) return this;
if (!other.getNamespace().isEmpty()) {
namespace_ = other.namespace_;
onChanged();
}
if (!other.getWorkflowId().isEmpty()) {
workflowId_ = other.workflowId_;
onChanged();
}
if (!other.getRunId().isEmpty()) {
runId_ = other.runId_;
onChanged();
}
switch (other.getReferenceCase()) {
case EVENT_REF: {
mergeEventRef(other.getEventRef());
break;
}
case REFERENCE_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.common.v1.Link.WorkflowEvent parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.common.v1.Link.WorkflowEvent) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int referenceCase_ = 0;
private java.lang.Object reference_;
public ReferenceCase
getReferenceCase() {
return ReferenceCase.forNumber(
referenceCase_);
}
public Builder clearReference() {
referenceCase_ = 0;
reference_ = null;
onChanged();
return this;
}
private java.lang.Object namespace_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string namespace = 1;
* @return This builder for chaining.
*/
public Builder clearNamespace() {
namespace_ = getDefaultInstance().getNamespace();
onChanged();
return this;
}
/**
* 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 java.lang.Object workflowId_ = "";
/**
* string workflow_id = 2;
* @return The workflowId.
*/
public java.lang.String getWorkflowId() {
java.lang.Object ref = workflowId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
workflowId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string workflow_id = 2;
* @return The bytes for workflowId.
*/
public com.google.protobuf.ByteString
getWorkflowIdBytes() {
java.lang.Object ref = workflowId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workflowId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string workflow_id = 2;
* @param value The workflowId to set.
* @return This builder for chaining.
*/
public Builder setWorkflowId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
workflowId_ = value;
onChanged();
return this;
}
/**
* string workflow_id = 2;
* @return This builder for chaining.
*/
public Builder clearWorkflowId() {
workflowId_ = getDefaultInstance().getWorkflowId();
onChanged();
return this;
}
/**
* string workflow_id = 2;
* @param value The bytes for workflowId to set.
* @return This builder for chaining.
*/
public Builder setWorkflowIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
workflowId_ = value;
onChanged();
return this;
}
private java.lang.Object runId_ = "";
/**
* string run_id = 3;
* @return The runId.
*/
public java.lang.String getRunId() {
java.lang.Object ref = runId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
runId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string run_id = 3;
* @return The bytes for runId.
*/
public com.google.protobuf.ByteString
getRunIdBytes() {
java.lang.Object ref = runId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
runId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string run_id = 3;
* @param value The runId to set.
* @return This builder for chaining.
*/
public Builder setRunId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
runId_ = value;
onChanged();
return this;
}
/**
* string run_id = 3;
* @return This builder for chaining.
*/
public Builder clearRunId() {
runId_ = getDefaultInstance().getRunId();
onChanged();
return this;
}
/**
* string run_id = 3;
* @param value The bytes for runId to set.
* @return This builder for chaining.
*/
public Builder setRunIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
runId_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Link.WorkflowEvent.EventReference, io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.Builder, io.temporal.api.common.v1.Link.WorkflowEvent.EventReferenceOrBuilder> eventRefBuilder_;
/**
* .temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
* @return Whether the eventRef field is set.
*/
public boolean hasEventRef() {
return referenceCase_ == 100;
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
* @return The eventRef.
*/
public io.temporal.api.common.v1.Link.WorkflowEvent.EventReference getEventRef() {
if (eventRefBuilder_ == null) {
if (referenceCase_ == 100) {
return (io.temporal.api.common.v1.Link.WorkflowEvent.EventReference) reference_;
}
return io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.getDefaultInstance();
} else {
if (referenceCase_ == 100) {
return eventRefBuilder_.getMessage();
}
return io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.getDefaultInstance();
}
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
*/
public Builder setEventRef(io.temporal.api.common.v1.Link.WorkflowEvent.EventReference value) {
if (eventRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
reference_ = value;
onChanged();
} else {
eventRefBuilder_.setMessage(value);
}
referenceCase_ = 100;
return this;
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
*/
public Builder setEventRef(
io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.Builder builderForValue) {
if (eventRefBuilder_ == null) {
reference_ = builderForValue.build();
onChanged();
} else {
eventRefBuilder_.setMessage(builderForValue.build());
}
referenceCase_ = 100;
return this;
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
*/
public Builder mergeEventRef(io.temporal.api.common.v1.Link.WorkflowEvent.EventReference value) {
if (eventRefBuilder_ == null) {
if (referenceCase_ == 100 &&
reference_ != io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.getDefaultInstance()) {
reference_ = io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.newBuilder((io.temporal.api.common.v1.Link.WorkflowEvent.EventReference) reference_)
.mergeFrom(value).buildPartial();
} else {
reference_ = value;
}
onChanged();
} else {
if (referenceCase_ == 100) {
eventRefBuilder_.mergeFrom(value);
}
eventRefBuilder_.setMessage(value);
}
referenceCase_ = 100;
return this;
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
*/
public Builder clearEventRef() {
if (eventRefBuilder_ == null) {
if (referenceCase_ == 100) {
referenceCase_ = 0;
reference_ = null;
onChanged();
}
} else {
if (referenceCase_ == 100) {
referenceCase_ = 0;
reference_ = null;
}
eventRefBuilder_.clear();
}
return this;
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
*/
public io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.Builder getEventRefBuilder() {
return getEventRefFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
*/
public io.temporal.api.common.v1.Link.WorkflowEvent.EventReferenceOrBuilder getEventRefOrBuilder() {
if ((referenceCase_ == 100) && (eventRefBuilder_ != null)) {
return eventRefBuilder_.getMessageOrBuilder();
} else {
if (referenceCase_ == 100) {
return (io.temporal.api.common.v1.Link.WorkflowEvent.EventReference) reference_;
}
return io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.getDefaultInstance();
}
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Link.WorkflowEvent.EventReference, io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.Builder, io.temporal.api.common.v1.Link.WorkflowEvent.EventReferenceOrBuilder>
getEventRefFieldBuilder() {
if (eventRefBuilder_ == null) {
if (!(referenceCase_ == 100)) {
reference_ = io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.getDefaultInstance();
}
eventRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Link.WorkflowEvent.EventReference, io.temporal.api.common.v1.Link.WorkflowEvent.EventReference.Builder, io.temporal.api.common.v1.Link.WorkflowEvent.EventReferenceOrBuilder>(
(io.temporal.api.common.v1.Link.WorkflowEvent.EventReference) reference_,
getParentForChildren(),
isClean());
reference_ = null;
}
referenceCase_ = 100;
onChanged();;
return eventRefBuilder_;
}
@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.common.v1.Link.WorkflowEvent)
}
// @@protoc_insertion_point(class_scope:temporal.api.common.v1.Link.WorkflowEvent)
private static final io.temporal.api.common.v1.Link.WorkflowEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.common.v1.Link.WorkflowEvent();
}
public static io.temporal.api.common.v1.Link.WorkflowEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WorkflowEvent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WorkflowEvent(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.common.v1.Link.WorkflowEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int variantCase_ = 0;
private java.lang.Object variant_;
public enum VariantCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
WORKFLOW_EVENT(1),
VARIANT_NOT_SET(0);
private final int value;
private VariantCase(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 VariantCase valueOf(int value) {
return forNumber(value);
}
public static VariantCase forNumber(int value) {
switch (value) {
case 1: return WORKFLOW_EVENT;
case 0: return VARIANT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public VariantCase
getVariantCase() {
return VariantCase.forNumber(
variantCase_);
}
public static final int WORKFLOW_EVENT_FIELD_NUMBER = 1;
/**
* .temporal.api.common.v1.Link.WorkflowEvent workflow_event = 1;
* @return Whether the workflowEvent field is set.
*/
public boolean hasWorkflowEvent() {
return variantCase_ == 1;
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent workflow_event = 1;
* @return The workflowEvent.
*/
public io.temporal.api.common.v1.Link.WorkflowEvent getWorkflowEvent() {
if (variantCase_ == 1) {
return (io.temporal.api.common.v1.Link.WorkflowEvent) variant_;
}
return io.temporal.api.common.v1.Link.WorkflowEvent.getDefaultInstance();
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent workflow_event = 1;
*/
public io.temporal.api.common.v1.Link.WorkflowEventOrBuilder getWorkflowEventOrBuilder() {
if (variantCase_ == 1) {
return (io.temporal.api.common.v1.Link.WorkflowEvent) variant_;
}
return io.temporal.api.common.v1.Link.WorkflowEvent.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 (variantCase_ == 1) {
output.writeMessage(1, (io.temporal.api.common.v1.Link.WorkflowEvent) variant_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (variantCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.temporal.api.common.v1.Link.WorkflowEvent) variant_);
}
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.common.v1.Link)) {
return super.equals(obj);
}
io.temporal.api.common.v1.Link other = (io.temporal.api.common.v1.Link) obj;
if (!getVariantCase().equals(other.getVariantCase())) return false;
switch (variantCase_) {
case 1:
if (!getWorkflowEvent()
.equals(other.getWorkflowEvent())) 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 (variantCase_) {
case 1:
hash = (37 * hash) + WORKFLOW_EVENT_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowEvent().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.common.v1.Link parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.common.v1.Link 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.common.v1.Link parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.common.v1.Link 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.common.v1.Link parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.common.v1.Link parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.common.v1.Link parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.common.v1.Link 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.common.v1.Link parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.common.v1.Link 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.common.v1.Link parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.common.v1.Link 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.common.v1.Link 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;
}
/**
*
* Link can be associated with history events. It might contain information about an external entity
* related to the history event. For example, workflow A makes a Nexus call that starts workflow B:
* in this case, a history event in workflow A could contain a Link to the workflow started event in
* workflow B, and vice-versa.
*
*
* Protobuf type {@code temporal.api.common.v1.Link}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.common.v1.Link)
io.temporal.api.common.v1.LinkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.common.v1.MessageProto.internal_static_temporal_api_common_v1_Link_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.common.v1.MessageProto.internal_static_temporal_api_common_v1_Link_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.common.v1.Link.class, io.temporal.api.common.v1.Link.Builder.class);
}
// Construct using io.temporal.api.common.v1.Link.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();
variantCase_ = 0;
variant_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.temporal.api.common.v1.MessageProto.internal_static_temporal_api_common_v1_Link_descriptor;
}
@java.lang.Override
public io.temporal.api.common.v1.Link getDefaultInstanceForType() {
return io.temporal.api.common.v1.Link.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.common.v1.Link build() {
io.temporal.api.common.v1.Link result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.common.v1.Link buildPartial() {
io.temporal.api.common.v1.Link result = new io.temporal.api.common.v1.Link(this);
if (variantCase_ == 1) {
if (workflowEventBuilder_ == null) {
result.variant_ = variant_;
} else {
result.variant_ = workflowEventBuilder_.build();
}
}
result.variantCase_ = variantCase_;
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.common.v1.Link) {
return mergeFrom((io.temporal.api.common.v1.Link)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.common.v1.Link other) {
if (other == io.temporal.api.common.v1.Link.getDefaultInstance()) return this;
switch (other.getVariantCase()) {
case WORKFLOW_EVENT: {
mergeWorkflowEvent(other.getWorkflowEvent());
break;
}
case VARIANT_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.common.v1.Link parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.common.v1.Link) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int variantCase_ = 0;
private java.lang.Object variant_;
public VariantCase
getVariantCase() {
return VariantCase.forNumber(
variantCase_);
}
public Builder clearVariant() {
variantCase_ = 0;
variant_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Link.WorkflowEvent, io.temporal.api.common.v1.Link.WorkflowEvent.Builder, io.temporal.api.common.v1.Link.WorkflowEventOrBuilder> workflowEventBuilder_;
/**
* .temporal.api.common.v1.Link.WorkflowEvent workflow_event = 1;
* @return Whether the workflowEvent field is set.
*/
public boolean hasWorkflowEvent() {
return variantCase_ == 1;
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent workflow_event = 1;
* @return The workflowEvent.
*/
public io.temporal.api.common.v1.Link.WorkflowEvent getWorkflowEvent() {
if (workflowEventBuilder_ == null) {
if (variantCase_ == 1) {
return (io.temporal.api.common.v1.Link.WorkflowEvent) variant_;
}
return io.temporal.api.common.v1.Link.WorkflowEvent.getDefaultInstance();
} else {
if (variantCase_ == 1) {
return workflowEventBuilder_.getMessage();
}
return io.temporal.api.common.v1.Link.WorkflowEvent.getDefaultInstance();
}
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent workflow_event = 1;
*/
public Builder setWorkflowEvent(io.temporal.api.common.v1.Link.WorkflowEvent value) {
if (workflowEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
variant_ = value;
onChanged();
} else {
workflowEventBuilder_.setMessage(value);
}
variantCase_ = 1;
return this;
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent workflow_event = 1;
*/
public Builder setWorkflowEvent(
io.temporal.api.common.v1.Link.WorkflowEvent.Builder builderForValue) {
if (workflowEventBuilder_ == null) {
variant_ = builderForValue.build();
onChanged();
} else {
workflowEventBuilder_.setMessage(builderForValue.build());
}
variantCase_ = 1;
return this;
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent workflow_event = 1;
*/
public Builder mergeWorkflowEvent(io.temporal.api.common.v1.Link.WorkflowEvent value) {
if (workflowEventBuilder_ == null) {
if (variantCase_ == 1 &&
variant_ != io.temporal.api.common.v1.Link.WorkflowEvent.getDefaultInstance()) {
variant_ = io.temporal.api.common.v1.Link.WorkflowEvent.newBuilder((io.temporal.api.common.v1.Link.WorkflowEvent) variant_)
.mergeFrom(value).buildPartial();
} else {
variant_ = value;
}
onChanged();
} else {
if (variantCase_ == 1) {
workflowEventBuilder_.mergeFrom(value);
}
workflowEventBuilder_.setMessage(value);
}
variantCase_ = 1;
return this;
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent workflow_event = 1;
*/
public Builder clearWorkflowEvent() {
if (workflowEventBuilder_ == null) {
if (variantCase_ == 1) {
variantCase_ = 0;
variant_ = null;
onChanged();
}
} else {
if (variantCase_ == 1) {
variantCase_ = 0;
variant_ = null;
}
workflowEventBuilder_.clear();
}
return this;
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent workflow_event = 1;
*/
public io.temporal.api.common.v1.Link.WorkflowEvent.Builder getWorkflowEventBuilder() {
return getWorkflowEventFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent workflow_event = 1;
*/
public io.temporal.api.common.v1.Link.WorkflowEventOrBuilder getWorkflowEventOrBuilder() {
if ((variantCase_ == 1) && (workflowEventBuilder_ != null)) {
return workflowEventBuilder_.getMessageOrBuilder();
} else {
if (variantCase_ == 1) {
return (io.temporal.api.common.v1.Link.WorkflowEvent) variant_;
}
return io.temporal.api.common.v1.Link.WorkflowEvent.getDefaultInstance();
}
}
/**
* .temporal.api.common.v1.Link.WorkflowEvent workflow_event = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Link.WorkflowEvent, io.temporal.api.common.v1.Link.WorkflowEvent.Builder, io.temporal.api.common.v1.Link.WorkflowEventOrBuilder>
getWorkflowEventFieldBuilder() {
if (workflowEventBuilder_ == null) {
if (!(variantCase_ == 1)) {
variant_ = io.temporal.api.common.v1.Link.WorkflowEvent.getDefaultInstance();
}
workflowEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Link.WorkflowEvent, io.temporal.api.common.v1.Link.WorkflowEvent.Builder, io.temporal.api.common.v1.Link.WorkflowEventOrBuilder>(
(io.temporal.api.common.v1.Link.WorkflowEvent) variant_,
getParentForChildren(),
isClean());
variant_ = null;
}
variantCase_ = 1;
onChanged();;
return workflowEventBuilder_;
}
@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.common.v1.Link)
}
// @@protoc_insertion_point(class_scope:temporal.api.common.v1.Link)
private static final io.temporal.api.common.v1.Link DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.common.v1.Link();
}
public static io.temporal.api.common.v1.Link getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Link parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Link(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.common.v1.Link getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy