Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: temporal/api/history/v1/message.proto
package io.temporal.api.history.v1;
/**
* Protobuf type {@code temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:ChildWorkflowExecutionStartedEventAttributes.java.pb.meta")
public final class ChildWorkflowExecutionStartedEventAttributes extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes)
ChildWorkflowExecutionStartedEventAttributesOrBuilder {
private static final long serialVersionUID = 0L;
// Use ChildWorkflowExecutionStartedEventAttributes.newBuilder() to construct.
private ChildWorkflowExecutionStartedEventAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ChildWorkflowExecutionStartedEventAttributes() {
namespace_ = "";
namespaceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ChildWorkflowExecutionStartedEventAttributes();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ChildWorkflowExecutionStartedEventAttributes(
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 16: {
initiatedEventId_ = input.readInt64();
break;
}
case 26: {
io.temporal.api.common.v1.WorkflowExecution.Builder subBuilder = null;
if (workflowExecution_ != null) {
subBuilder = workflowExecution_.toBuilder();
}
workflowExecution_ = input.readMessage(io.temporal.api.common.v1.WorkflowExecution.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(workflowExecution_);
workflowExecution_ = subBuilder.buildPartial();
}
break;
}
case 34: {
io.temporal.api.common.v1.WorkflowType.Builder subBuilder = null;
if (workflowType_ != null) {
subBuilder = workflowType_.toBuilder();
}
workflowType_ = input.readMessage(io.temporal.api.common.v1.WorkflowType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(workflowType_);
workflowType_ = subBuilder.buildPartial();
}
break;
}
case 42: {
io.temporal.api.common.v1.Header.Builder subBuilder = null;
if (header_ != null) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(io.temporal.api.common.v1.Header.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
namespaceId_ = s;
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.history.v1.MessageProto.internal_static_temporal_api_history_v1_ChildWorkflowExecutionStartedEventAttributes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_ChildWorkflowExecutionStartedEventAttributes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes.class, io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes.Builder.class);
}
public static final int NAMESPACE_FIELD_NUMBER = 1;
private volatile java.lang.Object namespace_;
/**
*
* Namespace of the child workflow.
* SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
*
*
* 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;
}
}
/**
*
* Namespace of the child workflow.
* SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
*
*
* 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 NAMESPACE_ID_FIELD_NUMBER = 6;
private volatile java.lang.Object namespaceId_;
/**
* string namespace_id = 6;
* @return The namespaceId.
*/
public java.lang.String getNamespaceId() {
java.lang.Object ref = namespaceId_;
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();
namespaceId_ = s;
return s;
}
}
/**
* string namespace_id = 6;
* @return The bytes for namespaceId.
*/
public com.google.protobuf.ByteString
getNamespaceIdBytes() {
java.lang.Object ref = namespaceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespaceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INITIATED_EVENT_ID_FIELD_NUMBER = 2;
private long initiatedEventId_;
/**
*
* Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
*
*
* int64 initiated_event_id = 2;
* @return The initiatedEventId.
*/
public long getInitiatedEventId() {
return initiatedEventId_;
}
public static final int WORKFLOW_EXECUTION_FIELD_NUMBER = 3;
private io.temporal.api.common.v1.WorkflowExecution workflowExecution_;
/**
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
* @return Whether the workflowExecution field is set.
*/
public boolean hasWorkflowExecution() {
return workflowExecution_ != null;
}
/**
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
* @return The workflowExecution.
*/
public io.temporal.api.common.v1.WorkflowExecution getWorkflowExecution() {
return workflowExecution_ == null ? io.temporal.api.common.v1.WorkflowExecution.getDefaultInstance() : workflowExecution_;
}
/**
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
*/
public io.temporal.api.common.v1.WorkflowExecutionOrBuilder getWorkflowExecutionOrBuilder() {
return getWorkflowExecution();
}
public static final int WORKFLOW_TYPE_FIELD_NUMBER = 4;
private io.temporal.api.common.v1.WorkflowType workflowType_;
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 4;
* @return Whether the workflowType field is set.
*/
public boolean hasWorkflowType() {
return workflowType_ != null;
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 4;
* @return The workflowType.
*/
public io.temporal.api.common.v1.WorkflowType getWorkflowType() {
return workflowType_ == null ? io.temporal.api.common.v1.WorkflowType.getDefaultInstance() : workflowType_;
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 4;
*/
public io.temporal.api.common.v1.WorkflowTypeOrBuilder getWorkflowTypeOrBuilder() {
return getWorkflowType();
}
public static final int HEADER_FIELD_NUMBER = 5;
private io.temporal.api.common.v1.Header header_;
/**
* .temporal.api.common.v1.Header header = 5;
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return header_ != null;
}
/**
* .temporal.api.common.v1.Header header = 5;
* @return The header.
*/
public io.temporal.api.common.v1.Header getHeader() {
return header_ == null ? io.temporal.api.common.v1.Header.getDefaultInstance() : header_;
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
public io.temporal.api.common.v1.HeaderOrBuilder getHeaderOrBuilder() {
return getHeader();
}
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 (initiatedEventId_ != 0L) {
output.writeInt64(2, initiatedEventId_);
}
if (workflowExecution_ != null) {
output.writeMessage(3, getWorkflowExecution());
}
if (workflowType_ != null) {
output.writeMessage(4, getWorkflowType());
}
if (header_ != null) {
output.writeMessage(5, getHeader());
}
if (!getNamespaceIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, namespaceId_);
}
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 (initiatedEventId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, initiatedEventId_);
}
if (workflowExecution_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getWorkflowExecution());
}
if (workflowType_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getWorkflowType());
}
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getHeader());
}
if (!getNamespaceIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, namespaceId_);
}
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.history.v1.ChildWorkflowExecutionStartedEventAttributes)) {
return super.equals(obj);
}
io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes other = (io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes) obj;
if (!getNamespace()
.equals(other.getNamespace())) return false;
if (!getNamespaceId()
.equals(other.getNamespaceId())) return false;
if (getInitiatedEventId()
!= other.getInitiatedEventId()) return false;
if (hasWorkflowExecution() != other.hasWorkflowExecution()) return false;
if (hasWorkflowExecution()) {
if (!getWorkflowExecution()
.equals(other.getWorkflowExecution())) return false;
}
if (hasWorkflowType() != other.hasWorkflowType()) return false;
if (hasWorkflowType()) {
if (!getWorkflowType()
.equals(other.getWorkflowType())) return false;
}
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
hash = (37 * hash) + NAMESPACE_ID_FIELD_NUMBER;
hash = (53 * hash) + getNamespaceId().hashCode();
hash = (37 * hash) + INITIATED_EVENT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInitiatedEventId());
if (hasWorkflowExecution()) {
hash = (37 * hash) + WORKFLOW_EXECUTION_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowExecution().hashCode();
}
if (hasWorkflowType()) {
hash = (37 * hash) + WORKFLOW_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowType().hashCode();
}
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes 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.history.v1.ChildWorkflowExecutionStartedEventAttributes parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes 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.history.v1.ChildWorkflowExecutionStartedEventAttributes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes 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.history.v1.ChildWorkflowExecutionStartedEventAttributes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes 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.history.v1.ChildWorkflowExecutionStartedEventAttributes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes 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.history.v1.ChildWorkflowExecutionStartedEventAttributes 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.history.v1.ChildWorkflowExecutionStartedEventAttributes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes)
io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_ChildWorkflowExecutionStartedEventAttributes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_ChildWorkflowExecutionStartedEventAttributes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes.class, io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes.Builder.class);
}
// Construct using io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes.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_ = "";
namespaceId_ = "";
initiatedEventId_ = 0L;
if (workflowExecutionBuilder_ == null) {
workflowExecution_ = null;
} else {
workflowExecution_ = null;
workflowExecutionBuilder_ = null;
}
if (workflowTypeBuilder_ == null) {
workflowType_ = null;
} else {
workflowType_ = null;
workflowTypeBuilder_ = null;
}
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_ChildWorkflowExecutionStartedEventAttributes_descriptor;
}
@java.lang.Override
public io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes getDefaultInstanceForType() {
return io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes build() {
io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes buildPartial() {
io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes result = new io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes(this);
result.namespace_ = namespace_;
result.namespaceId_ = namespaceId_;
result.initiatedEventId_ = initiatedEventId_;
if (workflowExecutionBuilder_ == null) {
result.workflowExecution_ = workflowExecution_;
} else {
result.workflowExecution_ = workflowExecutionBuilder_.build();
}
if (workflowTypeBuilder_ == null) {
result.workflowType_ = workflowType_;
} else {
result.workflowType_ = workflowTypeBuilder_.build();
}
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes) {
return mergeFrom((io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes other) {
if (other == io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes.getDefaultInstance()) return this;
if (!other.getNamespace().isEmpty()) {
namespace_ = other.namespace_;
onChanged();
}
if (!other.getNamespaceId().isEmpty()) {
namespaceId_ = other.namespaceId_;
onChanged();
}
if (other.getInitiatedEventId() != 0L) {
setInitiatedEventId(other.getInitiatedEventId());
}
if (other.hasWorkflowExecution()) {
mergeWorkflowExecution(other.getWorkflowExecution());
}
if (other.hasWorkflowType()) {
mergeWorkflowType(other.getWorkflowType());
}
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
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.history.v1.ChildWorkflowExecutionStartedEventAttributes parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object namespace_ = "";
/**
*
* Namespace of the child workflow.
* SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
*
*
* 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;
}
}
/**
*
* Namespace of the child workflow.
* SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
*
*
* 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;
}
}
/**
*
* Namespace of the child workflow.
* SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
*
*
* 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;
}
/**
*
* Namespace of the child workflow.
* SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
*
*
* string namespace = 1;
* @return This builder for chaining.
*/
public Builder clearNamespace() {
namespace_ = getDefaultInstance().getNamespace();
onChanged();
return this;
}
/**
*
* Namespace of the child workflow.
* SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
*
*
* 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 namespaceId_ = "";
/**
* string namespace_id = 6;
* @return The namespaceId.
*/
public java.lang.String getNamespaceId() {
java.lang.Object ref = namespaceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namespaceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string namespace_id = 6;
* @return The bytes for namespaceId.
*/
public com.google.protobuf.ByteString
getNamespaceIdBytes() {
java.lang.Object ref = namespaceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespaceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string namespace_id = 6;
* @param value The namespaceId to set.
* @return This builder for chaining.
*/
public Builder setNamespaceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
namespaceId_ = value;
onChanged();
return this;
}
/**
* string namespace_id = 6;
* @return This builder for chaining.
*/
public Builder clearNamespaceId() {
namespaceId_ = getDefaultInstance().getNamespaceId();
onChanged();
return this;
}
/**
* string namespace_id = 6;
* @param value The bytes for namespaceId to set.
* @return This builder for chaining.
*/
public Builder setNamespaceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
namespaceId_ = value;
onChanged();
return this;
}
private long initiatedEventId_ ;
/**
*
* Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
*
*
* int64 initiated_event_id = 2;
* @return The initiatedEventId.
*/
public long getInitiatedEventId() {
return initiatedEventId_;
}
/**
*
* Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
*
*
* int64 initiated_event_id = 2;
* @param value The initiatedEventId to set.
* @return This builder for chaining.
*/
public Builder setInitiatedEventId(long value) {
initiatedEventId_ = value;
onChanged();
return this;
}
/**
*
* Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
*
*
* int64 initiated_event_id = 2;
* @return This builder for chaining.
*/
public Builder clearInitiatedEventId() {
initiatedEventId_ = 0L;
onChanged();
return this;
}
private io.temporal.api.common.v1.WorkflowExecution workflowExecution_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.WorkflowExecution, io.temporal.api.common.v1.WorkflowExecution.Builder, io.temporal.api.common.v1.WorkflowExecutionOrBuilder> workflowExecutionBuilder_;
/**
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
* @return Whether the workflowExecution field is set.
*/
public boolean hasWorkflowExecution() {
return workflowExecutionBuilder_ != null || workflowExecution_ != null;
}
/**
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
* @return The workflowExecution.
*/
public io.temporal.api.common.v1.WorkflowExecution getWorkflowExecution() {
if (workflowExecutionBuilder_ == null) {
return workflowExecution_ == null ? io.temporal.api.common.v1.WorkflowExecution.getDefaultInstance() : workflowExecution_;
} else {
return workflowExecutionBuilder_.getMessage();
}
}
/**
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
*/
public Builder setWorkflowExecution(io.temporal.api.common.v1.WorkflowExecution value) {
if (workflowExecutionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
workflowExecution_ = value;
onChanged();
} else {
workflowExecutionBuilder_.setMessage(value);
}
return this;
}
/**
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
*/
public Builder setWorkflowExecution(
io.temporal.api.common.v1.WorkflowExecution.Builder builderForValue) {
if (workflowExecutionBuilder_ == null) {
workflowExecution_ = builderForValue.build();
onChanged();
} else {
workflowExecutionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
*/
public Builder mergeWorkflowExecution(io.temporal.api.common.v1.WorkflowExecution value) {
if (workflowExecutionBuilder_ == null) {
if (workflowExecution_ != null) {
workflowExecution_ =
io.temporal.api.common.v1.WorkflowExecution.newBuilder(workflowExecution_).mergeFrom(value).buildPartial();
} else {
workflowExecution_ = value;
}
onChanged();
} else {
workflowExecutionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
*/
public Builder clearWorkflowExecution() {
if (workflowExecutionBuilder_ == null) {
workflowExecution_ = null;
onChanged();
} else {
workflowExecution_ = null;
workflowExecutionBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
*/
public io.temporal.api.common.v1.WorkflowExecution.Builder getWorkflowExecutionBuilder() {
onChanged();
return getWorkflowExecutionFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
*/
public io.temporal.api.common.v1.WorkflowExecutionOrBuilder getWorkflowExecutionOrBuilder() {
if (workflowExecutionBuilder_ != null) {
return workflowExecutionBuilder_.getMessageOrBuilder();
} else {
return workflowExecution_ == null ?
io.temporal.api.common.v1.WorkflowExecution.getDefaultInstance() : workflowExecution_;
}
}
/**
* .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.WorkflowExecution, io.temporal.api.common.v1.WorkflowExecution.Builder, io.temporal.api.common.v1.WorkflowExecutionOrBuilder>
getWorkflowExecutionFieldBuilder() {
if (workflowExecutionBuilder_ == null) {
workflowExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.WorkflowExecution, io.temporal.api.common.v1.WorkflowExecution.Builder, io.temporal.api.common.v1.WorkflowExecutionOrBuilder>(
getWorkflowExecution(),
getParentForChildren(),
isClean());
workflowExecution_ = null;
}
return workflowExecutionBuilder_;
}
private io.temporal.api.common.v1.WorkflowType workflowType_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.WorkflowType, io.temporal.api.common.v1.WorkflowType.Builder, io.temporal.api.common.v1.WorkflowTypeOrBuilder> workflowTypeBuilder_;
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 4;
* @return Whether the workflowType field is set.
*/
public boolean hasWorkflowType() {
return workflowTypeBuilder_ != null || workflowType_ != null;
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 4;
* @return The workflowType.
*/
public io.temporal.api.common.v1.WorkflowType getWorkflowType() {
if (workflowTypeBuilder_ == null) {
return workflowType_ == null ? io.temporal.api.common.v1.WorkflowType.getDefaultInstance() : workflowType_;
} else {
return workflowTypeBuilder_.getMessage();
}
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 4;
*/
public Builder setWorkflowType(io.temporal.api.common.v1.WorkflowType value) {
if (workflowTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
workflowType_ = value;
onChanged();
} else {
workflowTypeBuilder_.setMessage(value);
}
return this;
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 4;
*/
public Builder setWorkflowType(
io.temporal.api.common.v1.WorkflowType.Builder builderForValue) {
if (workflowTypeBuilder_ == null) {
workflowType_ = builderForValue.build();
onChanged();
} else {
workflowTypeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 4;
*/
public Builder mergeWorkflowType(io.temporal.api.common.v1.WorkflowType value) {
if (workflowTypeBuilder_ == null) {
if (workflowType_ != null) {
workflowType_ =
io.temporal.api.common.v1.WorkflowType.newBuilder(workflowType_).mergeFrom(value).buildPartial();
} else {
workflowType_ = value;
}
onChanged();
} else {
workflowTypeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 4;
*/
public Builder clearWorkflowType() {
if (workflowTypeBuilder_ == null) {
workflowType_ = null;
onChanged();
} else {
workflowType_ = null;
workflowTypeBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 4;
*/
public io.temporal.api.common.v1.WorkflowType.Builder getWorkflowTypeBuilder() {
onChanged();
return getWorkflowTypeFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 4;
*/
public io.temporal.api.common.v1.WorkflowTypeOrBuilder getWorkflowTypeOrBuilder() {
if (workflowTypeBuilder_ != null) {
return workflowTypeBuilder_.getMessageOrBuilder();
} else {
return workflowType_ == null ?
io.temporal.api.common.v1.WorkflowType.getDefaultInstance() : workflowType_;
}
}
/**
* .temporal.api.common.v1.WorkflowType workflow_type = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.WorkflowType, io.temporal.api.common.v1.WorkflowType.Builder, io.temporal.api.common.v1.WorkflowTypeOrBuilder>
getWorkflowTypeFieldBuilder() {
if (workflowTypeBuilder_ == null) {
workflowTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.WorkflowType, io.temporal.api.common.v1.WorkflowType.Builder, io.temporal.api.common.v1.WorkflowTypeOrBuilder>(
getWorkflowType(),
getParentForChildren(),
isClean());
workflowType_ = null;
}
return workflowTypeBuilder_;
}
private io.temporal.api.common.v1.Header header_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Header, io.temporal.api.common.v1.Header.Builder, io.temporal.api.common.v1.HeaderOrBuilder> headerBuilder_;
/**
* .temporal.api.common.v1.Header header = 5;
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
* .temporal.api.common.v1.Header header = 5;
* @return The header.
*/
public io.temporal.api.common.v1.Header getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? io.temporal.api.common.v1.Header.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
public Builder setHeader(io.temporal.api.common.v1.Header value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
return this;
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
public Builder setHeader(
io.temporal.api.common.v1.Header.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
public Builder mergeHeader(io.temporal.api.common.v1.Header value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
io.temporal.api.common.v1.Header.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
public io.temporal.api.common.v1.Header.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
public io.temporal.api.common.v1.HeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
io.temporal.api.common.v1.Header.getDefaultInstance() : header_;
}
}
/**
* .temporal.api.common.v1.Header header = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Header, io.temporal.api.common.v1.Header.Builder, io.temporal.api.common.v1.HeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.Header, io.temporal.api.common.v1.Header.Builder, io.temporal.api.common.v1.HeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
@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.history.v1.ChildWorkflowExecutionStartedEventAttributes)
}
// @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes)
private static final io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes();
}
public static io.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ChildWorkflowExecutionStartedEventAttributes parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ChildWorkflowExecutionStartedEventAttributes(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.history.v1.ChildWorkflowExecutionStartedEventAttributes getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}