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

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

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private WorkflowTaskStartedEventAttributes(
      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: {

            scheduledEventId_ = input.readInt64();
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            identity_ = s;
            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();

            requestId_ = s;
            break;
          }
          case 32: {

            suggestContinueAsNew_ = input.readBool();
            break;
          }
          case 40: {

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

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_WorkflowTaskStartedEventAttributes_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes.class, io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes.Builder.class);
  }

  public static final int SCHEDULED_EVENT_ID_FIELD_NUMBER = 1;
  private long scheduledEventId_;
  /**
   * 
   * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
   * 
* * int64 scheduled_event_id = 1; * @return The scheduledEventId. */ public long getScheduledEventId() { return scheduledEventId_; } public static final int IDENTITY_FIELD_NUMBER = 2; private volatile java.lang.Object identity_; /** *
   * Identity of the worker who picked up this task
   * 
* * string identity = 2; * @return The identity. */ public java.lang.String getIdentity() { java.lang.Object ref = identity_; 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(); identity_ = s; return s; } } /** *
   * Identity of the worker who picked up this task
   * 
* * string identity = 2; * @return The bytes for identity. */ public com.google.protobuf.ByteString getIdentityBytes() { java.lang.Object ref = identity_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** *
   * TODO: ? Appears unused?
   * 
* * string request_id = 3; * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; } } /** *
   * TODO: ? Appears unused?
   * 
* * string request_id = 3; * @return The bytes for requestId. */ public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUGGEST_CONTINUE_AS_NEW_FIELD_NUMBER = 4; private boolean suggestContinueAsNew_; /** *
   * True if this workflow should continue-as-new soon because its history size (in
   * either event count or bytes) is getting large.
   * 
* * bool suggest_continue_as_new = 4; * @return The suggestContinueAsNew. */ public boolean getSuggestContinueAsNew() { return suggestContinueAsNew_; } public static final int HISTORY_SIZE_BYTES_FIELD_NUMBER = 5; private long historySizeBytes_; /** *
   * Total history size in bytes, which the workflow might use to decide when to
   * continue-as-new regardless of the suggestion. Note that history event count is
   * just the event id of this event, so we don't include it explicitly here.
   * 
* * int64 history_size_bytes = 5; * @return The historySizeBytes. */ public long getHistorySizeBytes() { return historySizeBytes_; } 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 (scheduledEventId_ != 0L) { output.writeInt64(1, scheduledEventId_); } if (!getIdentityBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, identity_); } if (!getRequestIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); } if (suggestContinueAsNew_ != false) { output.writeBool(4, suggestContinueAsNew_); } if (historySizeBytes_ != 0L) { output.writeInt64(5, historySizeBytes_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (scheduledEventId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, scheduledEventId_); } if (!getIdentityBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, identity_); } if (!getRequestIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); } if (suggestContinueAsNew_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, suggestContinueAsNew_); } if (historySizeBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, historySizeBytes_); } 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.WorkflowTaskStartedEventAttributes)) { return super.equals(obj); } io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes other = (io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes) obj; if (getScheduledEventId() != other.getScheduledEventId()) return false; if (!getIdentity() .equals(other.getIdentity())) return false; if (!getRequestId() .equals(other.getRequestId())) return false; if (getSuggestContinueAsNew() != other.getSuggestContinueAsNew()) return false; if (getHistorySizeBytes() != other.getHistorySizeBytes()) 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) + SCHEDULED_EVENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getScheduledEventId()); hash = (37 * hash) + IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getIdentity().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + SUGGEST_CONTINUE_AS_NEW_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSuggestContinueAsNew()); hash = (37 * hash) + HISTORY_SIZE_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHistorySizeBytes()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes 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.WorkflowTaskStartedEventAttributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes 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.WorkflowTaskStartedEventAttributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes 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.WorkflowTaskStartedEventAttributes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes 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.WorkflowTaskStartedEventAttributes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes 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.WorkflowTaskStartedEventAttributes 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.WorkflowTaskStartedEventAttributes 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.WorkflowTaskStartedEventAttributes 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.WorkflowTaskStartedEventAttributes} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.history.v1.WorkflowTaskStartedEventAttributes) io.temporal.api.history.v1.WorkflowTaskStartedEventAttributesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_WorkflowTaskStartedEventAttributes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.history.v1.MessageProto.internal_static_temporal_api_history_v1_WorkflowTaskStartedEventAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes.class, io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes.Builder.class); } // Construct using io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes.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(); scheduledEventId_ = 0L; identity_ = ""; requestId_ = ""; suggestContinueAsNew_ = false; historySizeBytes_ = 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_WorkflowTaskStartedEventAttributes_descriptor; } @java.lang.Override public io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes getDefaultInstanceForType() { return io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes.getDefaultInstance(); } @java.lang.Override public io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes build() { io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes buildPartial() { io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes result = new io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes(this); result.scheduledEventId_ = scheduledEventId_; result.identity_ = identity_; result.requestId_ = requestId_; result.suggestContinueAsNew_ = suggestContinueAsNew_; result.historySizeBytes_ = historySizeBytes_; 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.WorkflowTaskStartedEventAttributes) { return mergeFrom((io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes other) { if (other == io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes.getDefaultInstance()) return this; if (other.getScheduledEventId() != 0L) { setScheduledEventId(other.getScheduledEventId()); } if (!other.getIdentity().isEmpty()) { identity_ = other.identity_; onChanged(); } if (!other.getRequestId().isEmpty()) { requestId_ = other.requestId_; onChanged(); } if (other.getSuggestContinueAsNew() != false) { setSuggestContinueAsNew(other.getSuggestContinueAsNew()); } if (other.getHistorySizeBytes() != 0L) { setHistorySizeBytes(other.getHistorySizeBytes()); } 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.WorkflowTaskStartedEventAttributes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long scheduledEventId_ ; /** *
     * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
     * 
* * int64 scheduled_event_id = 1; * @return The scheduledEventId. */ public long getScheduledEventId() { return scheduledEventId_; } /** *
     * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
     * 
* * int64 scheduled_event_id = 1; * @param value The scheduledEventId to set. * @return This builder for chaining. */ public Builder setScheduledEventId(long value) { scheduledEventId_ = value; onChanged(); return this; } /** *
     * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
     * 
* * int64 scheduled_event_id = 1; * @return This builder for chaining. */ public Builder clearScheduledEventId() { scheduledEventId_ = 0L; onChanged(); return this; } private java.lang.Object identity_ = ""; /** *
     * Identity of the worker who picked up this task
     * 
* * string identity = 2; * @return The identity. */ public java.lang.String getIdentity() { java.lang.Object ref = identity_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identity_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Identity of the worker who picked up this task
     * 
* * string identity = 2; * @return The bytes for identity. */ public com.google.protobuf.ByteString getIdentityBytes() { java.lang.Object ref = identity_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Identity of the worker who picked up this task
     * 
* * string identity = 2; * @param value The identity to set. * @return This builder for chaining. */ public Builder setIdentity( java.lang.String value) { if (value == null) { throw new NullPointerException(); } identity_ = value; onChanged(); return this; } /** *
     * Identity of the worker who picked up this task
     * 
* * string identity = 2; * @return This builder for chaining. */ public Builder clearIdentity() { identity_ = getDefaultInstance().getIdentity(); onChanged(); return this; } /** *
     * Identity of the worker who picked up this task
     * 
* * string identity = 2; * @param value The bytes for identity to set. * @return This builder for chaining. */ public Builder setIdentityBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); identity_ = value; onChanged(); return this; } private java.lang.Object requestId_ = ""; /** *
     * TODO: ? Appears unused?
     * 
* * string request_id = 3; * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * TODO: ? Appears unused?
     * 
* * string request_id = 3; * @return The bytes for requestId. */ public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * TODO: ? Appears unused?
     * 
* * string request_id = 3; * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } requestId_ = value; onChanged(); return this; } /** *
     * TODO: ? Appears unused?
     * 
* * string request_id = 3; * @return This builder for chaining. */ public Builder clearRequestId() { requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** *
     * TODO: ? Appears unused?
     * 
* * string request_id = 3; * @param value The bytes for requestId to set. * @return This builder for chaining. */ public Builder setRequestIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; onChanged(); return this; } private boolean suggestContinueAsNew_ ; /** *
     * True if this workflow should continue-as-new soon because its history size (in
     * either event count or bytes) is getting large.
     * 
* * bool suggest_continue_as_new = 4; * @return The suggestContinueAsNew. */ public boolean getSuggestContinueAsNew() { return suggestContinueAsNew_; } /** *
     * True if this workflow should continue-as-new soon because its history size (in
     * either event count or bytes) is getting large.
     * 
* * bool suggest_continue_as_new = 4; * @param value The suggestContinueAsNew to set. * @return This builder for chaining. */ public Builder setSuggestContinueAsNew(boolean value) { suggestContinueAsNew_ = value; onChanged(); return this; } /** *
     * True if this workflow should continue-as-new soon because its history size (in
     * either event count or bytes) is getting large.
     * 
* * bool suggest_continue_as_new = 4; * @return This builder for chaining. */ public Builder clearSuggestContinueAsNew() { suggestContinueAsNew_ = false; onChanged(); return this; } private long historySizeBytes_ ; /** *
     * Total history size in bytes, which the workflow might use to decide when to
     * continue-as-new regardless of the suggestion. Note that history event count is
     * just the event id of this event, so we don't include it explicitly here.
     * 
* * int64 history_size_bytes = 5; * @return The historySizeBytes. */ public long getHistorySizeBytes() { return historySizeBytes_; } /** *
     * Total history size in bytes, which the workflow might use to decide when to
     * continue-as-new regardless of the suggestion. Note that history event count is
     * just the event id of this event, so we don't include it explicitly here.
     * 
* * int64 history_size_bytes = 5; * @param value The historySizeBytes to set. * @return This builder for chaining. */ public Builder setHistorySizeBytes(long value) { historySizeBytes_ = value; onChanged(); return this; } /** *
     * Total history size in bytes, which the workflow might use to decide when to
     * continue-as-new regardless of the suggestion. Note that history event count is
     * just the event id of this event, so we don't include it explicitly here.
     * 
* * int64 history_size_bytes = 5; * @return This builder for chaining. */ public Builder clearHistorySizeBytes() { historySizeBytes_ = 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.WorkflowTaskStartedEventAttributes) } // @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowTaskStartedEventAttributes) private static final io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes(); } public static io.temporal.api.history.v1.WorkflowTaskStartedEventAttributes getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WorkflowTaskStartedEventAttributes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WorkflowTaskStartedEventAttributes(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.WorkflowTaskStartedEventAttributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy