All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes Maven / Gradle / Ivy

There is a newer version: 1.24.1
Show newest version
// 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.ChildWorkflowExecutionTerminatedEventAttributes}
 */
@javax.annotation.Generated(value="protoc", comments="annotations:ChildWorkflowExecutionTerminatedEventAttributes.java.pb.meta")
public  final class ChildWorkflowExecutionTerminatedEventAttributes extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes)
    ChildWorkflowExecutionTerminatedEventAttributesOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ChildWorkflowExecutionTerminatedEventAttributes.newBuilder() to construct.
  private ChildWorkflowExecutionTerminatedEventAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ChildWorkflowExecutionTerminatedEventAttributes() {
    namespace_ = "";
    namespaceId_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new ChildWorkflowExecutionTerminatedEventAttributes();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ChildWorkflowExecutionTerminatedEventAttributes(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            namespace_ = s;
            break;
          }
          case 18: {
            io.temporal.api.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 26: {
            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 32: {

            initiatedEventId_ = input.readInt64();
            break;
          }
          case 40: {

            startedEventId_ = input.readInt64();
            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_ChildWorkflowExecutionTerminatedEventAttributes_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_ChildWorkflowExecutionTerminatedEventAttributes_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes.class, io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes.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 WORKFLOW_EXECUTION_FIELD_NUMBER = 2; private io.temporal.api.common.v1.WorkflowExecution workflowExecution_; /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; * @return Whether the workflowExecution field is set. */ public boolean hasWorkflowExecution() { return workflowExecution_ != null; } /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; * @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 = 2; */ public io.temporal.api.common.v1.WorkflowExecutionOrBuilder getWorkflowExecutionOrBuilder() { return getWorkflowExecution(); } public static final int WORKFLOW_TYPE_FIELD_NUMBER = 3; private io.temporal.api.common.v1.WorkflowType workflowType_; /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; * @return Whether the workflowType field is set. */ public boolean hasWorkflowType() { return workflowType_ != null; } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; * @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 = 3; */ public io.temporal.api.common.v1.WorkflowTypeOrBuilder getWorkflowTypeOrBuilder() { return getWorkflowType(); } public static final int INITIATED_EVENT_ID_FIELD_NUMBER = 4; private long initiatedEventId_; /** *
   * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
   * 
* * int64 initiated_event_id = 4; * @return The initiatedEventId. */ public long getInitiatedEventId() { return initiatedEventId_; } public static final int STARTED_EVENT_ID_FIELD_NUMBER = 5; private long startedEventId_; /** *
   * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
   * 
* * int64 started_event_id = 5; * @return The startedEventId. */ public long getStartedEventId() { return startedEventId_; } 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 (workflowExecution_ != null) { output.writeMessage(2, getWorkflowExecution()); } if (workflowType_ != null) { output.writeMessage(3, getWorkflowType()); } if (initiatedEventId_ != 0L) { output.writeInt64(4, initiatedEventId_); } if (startedEventId_ != 0L) { output.writeInt64(5, startedEventId_); } 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 (workflowExecution_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getWorkflowExecution()); } if (workflowType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getWorkflowType()); } if (initiatedEventId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, initiatedEventId_); } if (startedEventId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, startedEventId_); } 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.ChildWorkflowExecutionTerminatedEventAttributes)) { return super.equals(obj); } io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes other = (io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes) obj; if (!getNamespace() .equals(other.getNamespace())) return false; if (!getNamespaceId() .equals(other.getNamespaceId())) 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 (getInitiatedEventId() != other.getInitiatedEventId()) return false; if (getStartedEventId() != other.getStartedEventId()) 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(); 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(); } hash = (37 * hash) + INITIATED_EVENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInitiatedEventId()); hash = (37 * hash) + STARTED_EVENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartedEventId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes 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.ChildWorkflowExecutionTerminatedEventAttributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes 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.ChildWorkflowExecutionTerminatedEventAttributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes 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.ChildWorkflowExecutionTerminatedEventAttributes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes 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.ChildWorkflowExecutionTerminatedEventAttributes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes 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.ChildWorkflowExecutionTerminatedEventAttributes 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.ChildWorkflowExecutionTerminatedEventAttributes 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.ChildWorkflowExecutionTerminatedEventAttributes 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.ChildWorkflowExecutionTerminatedEventAttributes} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes) io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_ChildWorkflowExecutionTerminatedEventAttributes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_ChildWorkflowExecutionTerminatedEventAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes.class, io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes.Builder.class); } // Construct using io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes.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_ = ""; if (workflowExecutionBuilder_ == null) { workflowExecution_ = null; } else { workflowExecution_ = null; workflowExecutionBuilder_ = null; } if (workflowTypeBuilder_ == null) { workflowType_ = null; } else { workflowType_ = null; workflowTypeBuilder_ = null; } initiatedEventId_ = 0L; startedEventId_ = 0L; 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_ChildWorkflowExecutionTerminatedEventAttributes_descriptor; } @java.lang.Override public io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes getDefaultInstanceForType() { return io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes.getDefaultInstance(); } @java.lang.Override public io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes build() { io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes buildPartial() { io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes result = new io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes(this); result.namespace_ = namespace_; result.namespaceId_ = namespaceId_; if (workflowExecutionBuilder_ == null) { result.workflowExecution_ = workflowExecution_; } else { result.workflowExecution_ = workflowExecutionBuilder_.build(); } if (workflowTypeBuilder_ == null) { result.workflowType_ = workflowType_; } else { result.workflowType_ = workflowTypeBuilder_.build(); } result.initiatedEventId_ = initiatedEventId_; result.startedEventId_ = startedEventId_; 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.ChildWorkflowExecutionTerminatedEventAttributes) { return mergeFrom((io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes other) { if (other == io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes.getDefaultInstance()) return this; if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } if (!other.getNamespaceId().isEmpty()) { namespaceId_ = other.namespaceId_; onChanged(); } if (other.hasWorkflowExecution()) { mergeWorkflowExecution(other.getWorkflowExecution()); } if (other.hasWorkflowType()) { mergeWorkflowType(other.getWorkflowType()); } if (other.getInitiatedEventId() != 0L) { setInitiatedEventId(other.getInitiatedEventId()); } if (other.getStartedEventId() != 0L) { setStartedEventId(other.getStartedEventId()); } 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.ChildWorkflowExecutionTerminatedEventAttributes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes) 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 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 = 2; * @return Whether the workflowExecution field is set. */ public boolean hasWorkflowExecution() { return workflowExecutionBuilder_ != null || workflowExecution_ != null; } /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; * @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 = 2; */ 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 = 2; */ 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 = 2; */ 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 = 2; */ public Builder clearWorkflowExecution() { if (workflowExecutionBuilder_ == null) { workflowExecution_ = null; onChanged(); } else { workflowExecution_ = null; workflowExecutionBuilder_ = null; } return this; } /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; */ public io.temporal.api.common.v1.WorkflowExecution.Builder getWorkflowExecutionBuilder() { onChanged(); return getWorkflowExecutionFieldBuilder().getBuilder(); } /** * .temporal.api.common.v1.WorkflowExecution workflow_execution = 2; */ 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 = 2; */ 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 = 3; * @return Whether the workflowType field is set. */ public boolean hasWorkflowType() { return workflowTypeBuilder_ != null || workflowType_ != null; } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; * @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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearWorkflowType() { if (workflowTypeBuilder_ == null) { workflowType_ = null; onChanged(); } else { workflowType_ = null; workflowTypeBuilder_ = null; } return this; } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ public io.temporal.api.common.v1.WorkflowType.Builder getWorkflowTypeBuilder() { onChanged(); return getWorkflowTypeFieldBuilder().getBuilder(); } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ 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 = 3; */ 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 long initiatedEventId_ ; /** *
     * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
     * 
* * int64 initiated_event_id = 4; * @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 = 4; * @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 = 4; * @return This builder for chaining. */ public Builder clearInitiatedEventId() { initiatedEventId_ = 0L; onChanged(); return this; } private long startedEventId_ ; /** *
     * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
     * 
* * int64 started_event_id = 5; * @return The startedEventId. */ public long getStartedEventId() { return startedEventId_; } /** *
     * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
     * 
* * int64 started_event_id = 5; * @param value The startedEventId to set. * @return This builder for chaining. */ public Builder setStartedEventId(long value) { startedEventId_ = value; onChanged(); return this; } /** *
     * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
     * 
* * int64 started_event_id = 5; * @return This builder for chaining. */ public Builder clearStartedEventId() { startedEventId_ = 0L; 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.history.v1.ChildWorkflowExecutionTerminatedEventAttributes) } // @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes) private static final io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes(); } public static io.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChildWorkflowExecutionTerminatedEventAttributes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChildWorkflowExecutionTerminatedEventAttributes(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.ChildWorkflowExecutionTerminatedEventAttributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy