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

io.temporal.api.schedule.v1.ScheduleInfo Maven / Gradle / Ivy

There is a newer version: 1.27.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: temporal/api/schedule/v1/message.proto

package io.temporal.api.schedule.v1;

/**
 * Protobuf type {@code temporal.api.schedule.v1.ScheduleInfo}
 */
@javax.annotation.Generated(value="protoc", comments="annotations:ScheduleInfo.java.pb.meta")
public  final class ScheduleInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:temporal.api.schedule.v1.ScheduleInfo)
    ScheduleInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ScheduleInfo.newBuilder() to construct.
  private ScheduleInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ScheduleInfo() {
    runningWorkflows_ = java.util.Collections.emptyList();
    recentActions_ = java.util.Collections.emptyList();
    futureActionTimes_ = java.util.Collections.emptyList();
    invalidScheduleError_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ScheduleInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    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: {

            actionCount_ = input.readInt64();
            break;
          }
          case 16: {

            missedCatchupWindow_ = input.readInt64();
            break;
          }
          case 24: {

            overlapSkipped_ = input.readInt64();
            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              recentActions_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            recentActions_.add(
                input.readMessage(io.temporal.api.schedule.v1.ScheduleActionResult.parser(), extensionRegistry));
            break;
          }
          case 42: {
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              futureActionTimes_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000004;
            }
            futureActionTimes_.add(
                input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry));
            break;
          }
          case 50: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (createTime_ != null) {
              subBuilder = createTime_.toBuilder();
            }
            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(createTime_);
              createTime_ = subBuilder.buildPartial();
            }

            break;
          }
          case 58: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (updateTime_ != null) {
              subBuilder = updateTime_.toBuilder();
            }
            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(updateTime_);
              updateTime_ = subBuilder.buildPartial();
            }

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

            invalidScheduleError_ = s;
            break;
          }
          case 74: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              runningWorkflows_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            runningWorkflows_.add(
                input.readMessage(io.temporal.api.common.v1.WorkflowExecution.parser(), extensionRegistry));
            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 {
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        recentActions_ = java.util.Collections.unmodifiableList(recentActions_);
      }
      if (((mutable_bitField0_ & 0x00000004) != 0)) {
        futureActionTimes_ = java.util.Collections.unmodifiableList(futureActionTimes_);
      }
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        runningWorkflows_ = java.util.Collections.unmodifiableList(runningWorkflows_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_ScheduleInfo_descriptor;
  }

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

  public static final int ACTION_COUNT_FIELD_NUMBER = 1;
  private long actionCount_;
  /**
   * 
   * Number of actions taken so far.
   * 
* * int64 action_count = 1; * @return The actionCount. */ public long getActionCount() { return actionCount_; } public static final int MISSED_CATCHUP_WINDOW_FIELD_NUMBER = 2; private long missedCatchupWindow_; /** *
   * Number of times a scheduled action was skipped due to missing the catchup window.
   * 
* * int64 missed_catchup_window = 2; * @return The missedCatchupWindow. */ public long getMissedCatchupWindow() { return missedCatchupWindow_; } public static final int OVERLAP_SKIPPED_FIELD_NUMBER = 3; private long overlapSkipped_; /** *
   * Number of skipped actions due to overlap.
   * 
* * int64 overlap_skipped = 3; * @return The overlapSkipped. */ public long getOverlapSkipped() { return overlapSkipped_; } public static final int RUNNING_WORKFLOWS_FIELD_NUMBER = 9; private java.util.List runningWorkflows_; /** *
   * Currently-running workflows started by this schedule. (There might be
   * more than one if the overlap policy allows overlaps.)
   * Note that the run_ids in here are the original execution run ids as
   * started by the schedule. If the workflows retried, did continue-as-new,
   * or were reset, they might still be running but with a different run_id.
   * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public java.util.List getRunningWorkflowsList() { return runningWorkflows_; } /** *
   * Currently-running workflows started by this schedule. (There might be
   * more than one if the overlap policy allows overlaps.)
   * Note that the run_ids in here are the original execution run ids as
   * started by the schedule. If the workflows retried, did continue-as-new,
   * or were reset, they might still be running but with a different run_id.
   * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public java.util.List getRunningWorkflowsOrBuilderList() { return runningWorkflows_; } /** *
   * Currently-running workflows started by this schedule. (There might be
   * more than one if the overlap policy allows overlaps.)
   * Note that the run_ids in here are the original execution run ids as
   * started by the schedule. If the workflows retried, did continue-as-new,
   * or were reset, they might still be running but with a different run_id.
   * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public int getRunningWorkflowsCount() { return runningWorkflows_.size(); } /** *
   * Currently-running workflows started by this schedule. (There might be
   * more than one if the overlap policy allows overlaps.)
   * Note that the run_ids in here are the original execution run ids as
   * started by the schedule. If the workflows retried, did continue-as-new,
   * or were reset, they might still be running but with a different run_id.
   * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public io.temporal.api.common.v1.WorkflowExecution getRunningWorkflows(int index) { return runningWorkflows_.get(index); } /** *
   * Currently-running workflows started by this schedule. (There might be
   * more than one if the overlap policy allows overlaps.)
   * Note that the run_ids in here are the original execution run ids as
   * started by the schedule. If the workflows retried, did continue-as-new,
   * or were reset, they might still be running but with a different run_id.
   * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public io.temporal.api.common.v1.WorkflowExecutionOrBuilder getRunningWorkflowsOrBuilder( int index) { return runningWorkflows_.get(index); } public static final int RECENT_ACTIONS_FIELD_NUMBER = 4; private java.util.List recentActions_; /** *
   * Most recent ten actual action times (including manual triggers).
   * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public java.util.List getRecentActionsList() { return recentActions_; } /** *
   * Most recent ten actual action times (including manual triggers).
   * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public java.util.List getRecentActionsOrBuilderList() { return recentActions_; } /** *
   * Most recent ten actual action times (including manual triggers).
   * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public int getRecentActionsCount() { return recentActions_.size(); } /** *
   * Most recent ten actual action times (including manual triggers).
   * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public io.temporal.api.schedule.v1.ScheduleActionResult getRecentActions(int index) { return recentActions_.get(index); } /** *
   * Most recent ten actual action times (including manual triggers).
   * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public io.temporal.api.schedule.v1.ScheduleActionResultOrBuilder getRecentActionsOrBuilder( int index) { return recentActions_.get(index); } public static final int FUTURE_ACTION_TIMES_FIELD_NUMBER = 5; private java.util.List futureActionTimes_; /** *
   * Next ten scheduled action times.
   * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public java.util.List getFutureActionTimesList() { return futureActionTimes_; } /** *
   * Next ten scheduled action times.
   * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public java.util.List getFutureActionTimesOrBuilderList() { return futureActionTimes_; } /** *
   * Next ten scheduled action times.
   * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public int getFutureActionTimesCount() { return futureActionTimes_.size(); } /** *
   * Next ten scheduled action times.
   * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp getFutureActionTimes(int index) { return futureActionTimes_.get(index); } /** *
   * Next ten scheduled action times.
   * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getFutureActionTimesOrBuilder( int index) { return futureActionTimes_.get(index); } public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** *
   * Timestamps of schedule creation and last update.
   * 
* * .google.protobuf.Timestamp create_time = 6 [(.gogoproto.stdtime) = true]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTime_ != null; } /** *
   * Timestamps of schedule creation and last update.
   * 
* * .google.protobuf.Timestamp create_time = 6 [(.gogoproto.stdtime) = true]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** *
   * Timestamps of schedule creation and last update.
   * 
* * .google.protobuf.Timestamp create_time = 6 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); } public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** * .google.protobuf.Timestamp update_time = 7 [(.gogoproto.stdtime) = true]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTime_ != null; } /** * .google.protobuf.Timestamp update_time = 7 [(.gogoproto.stdtime) = true]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** * .google.protobuf.Timestamp update_time = 7 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return getUpdateTime(); } public static final int INVALID_SCHEDULE_ERROR_FIELD_NUMBER = 8; private volatile java.lang.Object invalidScheduleError_; /** * string invalid_schedule_error = 8 [deprecated = true]; * @return The invalidScheduleError. */ @java.lang.Deprecated public java.lang.String getInvalidScheduleError() { java.lang.Object ref = invalidScheduleError_; 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(); invalidScheduleError_ = s; return s; } } /** * string invalid_schedule_error = 8 [deprecated = true]; * @return The bytes for invalidScheduleError. */ @java.lang.Deprecated public com.google.protobuf.ByteString getInvalidScheduleErrorBytes() { java.lang.Object ref = invalidScheduleError_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); invalidScheduleError_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (actionCount_ != 0L) { output.writeInt64(1, actionCount_); } if (missedCatchupWindow_ != 0L) { output.writeInt64(2, missedCatchupWindow_); } if (overlapSkipped_ != 0L) { output.writeInt64(3, overlapSkipped_); } for (int i = 0; i < recentActions_.size(); i++) { output.writeMessage(4, recentActions_.get(i)); } for (int i = 0; i < futureActionTimes_.size(); i++) { output.writeMessage(5, futureActionTimes_.get(i)); } if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } if (updateTime_ != null) { output.writeMessage(7, getUpdateTime()); } if (!getInvalidScheduleErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, invalidScheduleError_); } for (int i = 0; i < runningWorkflows_.size(); i++) { output.writeMessage(9, runningWorkflows_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (actionCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, actionCount_); } if (missedCatchupWindow_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, missedCatchupWindow_); } if (overlapSkipped_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, overlapSkipped_); } for (int i = 0; i < recentActions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, recentActions_.get(i)); } for (int i = 0; i < futureActionTimes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, futureActionTimes_.get(i)); } if (createTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getUpdateTime()); } if (!getInvalidScheduleErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, invalidScheduleError_); } for (int i = 0; i < runningWorkflows_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, runningWorkflows_.get(i)); } 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.schedule.v1.ScheduleInfo)) { return super.equals(obj); } io.temporal.api.schedule.v1.ScheduleInfo other = (io.temporal.api.schedule.v1.ScheduleInfo) obj; if (getActionCount() != other.getActionCount()) return false; if (getMissedCatchupWindow() != other.getMissedCatchupWindow()) return false; if (getOverlapSkipped() != other.getOverlapSkipped()) return false; if (!getRunningWorkflowsList() .equals(other.getRunningWorkflowsList())) return false; if (!getRecentActionsList() .equals(other.getRecentActionsList())) return false; if (!getFutureActionTimesList() .equals(other.getFutureActionTimesList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime() .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime() .equals(other.getUpdateTime())) return false; } if (!getInvalidScheduleError() .equals(other.getInvalidScheduleError())) 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) + ACTION_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getActionCount()); hash = (37 * hash) + MISSED_CATCHUP_WINDOW_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMissedCatchupWindow()); hash = (37 * hash) + OVERLAP_SKIPPED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOverlapSkipped()); if (getRunningWorkflowsCount() > 0) { hash = (37 * hash) + RUNNING_WORKFLOWS_FIELD_NUMBER; hash = (53 * hash) + getRunningWorkflowsList().hashCode(); } if (getRecentActionsCount() > 0) { hash = (37 * hash) + RECENT_ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getRecentActionsList().hashCode(); } if (getFutureActionTimesCount() > 0) { hash = (37 * hash) + FUTURE_ACTION_TIMES_FIELD_NUMBER; hash = (53 * hash) + getFutureActionTimesList().hashCode(); } if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (37 * hash) + INVALID_SCHEDULE_ERROR_FIELD_NUMBER; hash = (53 * hash) + getInvalidScheduleError().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.schedule.v1.ScheduleInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.schedule.v1.ScheduleInfo 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.schedule.v1.ScheduleInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.schedule.v1.ScheduleInfo 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.schedule.v1.ScheduleInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.schedule.v1.ScheduleInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.schedule.v1.ScheduleInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.schedule.v1.ScheduleInfo 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.schedule.v1.ScheduleInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.schedule.v1.ScheduleInfo 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.schedule.v1.ScheduleInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.schedule.v1.ScheduleInfo 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.schedule.v1.ScheduleInfo 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.schedule.v1.ScheduleInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.schedule.v1.ScheduleInfo) io.temporal.api.schedule.v1.ScheduleInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_ScheduleInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_ScheduleInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.schedule.v1.ScheduleInfo.class, io.temporal.api.schedule.v1.ScheduleInfo.Builder.class); } // Construct using io.temporal.api.schedule.v1.ScheduleInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRunningWorkflowsFieldBuilder(); getRecentActionsFieldBuilder(); getFutureActionTimesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); actionCount_ = 0L; missedCatchupWindow_ = 0L; overlapSkipped_ = 0L; if (runningWorkflowsBuilder_ == null) { runningWorkflows_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { runningWorkflowsBuilder_.clear(); } if (recentActionsBuilder_ == null) { recentActions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { recentActionsBuilder_.clear(); } if (futureActionTimesBuilder_ == null) { futureActionTimes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { futureActionTimesBuilder_.clear(); } if (createTimeBuilder_ == null) { createTime_ = null; } else { createTime_ = null; createTimeBuilder_ = null; } if (updateTimeBuilder_ == null) { updateTime_ = null; } else { updateTime_ = null; updateTimeBuilder_ = null; } invalidScheduleError_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_ScheduleInfo_descriptor; } @java.lang.Override public io.temporal.api.schedule.v1.ScheduleInfo getDefaultInstanceForType() { return io.temporal.api.schedule.v1.ScheduleInfo.getDefaultInstance(); } @java.lang.Override public io.temporal.api.schedule.v1.ScheduleInfo build() { io.temporal.api.schedule.v1.ScheduleInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.schedule.v1.ScheduleInfo buildPartial() { io.temporal.api.schedule.v1.ScheduleInfo result = new io.temporal.api.schedule.v1.ScheduleInfo(this); int from_bitField0_ = bitField0_; result.actionCount_ = actionCount_; result.missedCatchupWindow_ = missedCatchupWindow_; result.overlapSkipped_ = overlapSkipped_; if (runningWorkflowsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { runningWorkflows_ = java.util.Collections.unmodifiableList(runningWorkflows_); bitField0_ = (bitField0_ & ~0x00000001); } result.runningWorkflows_ = runningWorkflows_; } else { result.runningWorkflows_ = runningWorkflowsBuilder_.build(); } if (recentActionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { recentActions_ = java.util.Collections.unmodifiableList(recentActions_); bitField0_ = (bitField0_ & ~0x00000002); } result.recentActions_ = recentActions_; } else { result.recentActions_ = recentActionsBuilder_.build(); } if (futureActionTimesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { futureActionTimes_ = java.util.Collections.unmodifiableList(futureActionTimes_); bitField0_ = (bitField0_ & ~0x00000004); } result.futureActionTimes_ = futureActionTimes_; } else { result.futureActionTimes_ = futureActionTimesBuilder_.build(); } if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { result.createTime_ = createTimeBuilder_.build(); } if (updateTimeBuilder_ == null) { result.updateTime_ = updateTime_; } else { result.updateTime_ = updateTimeBuilder_.build(); } result.invalidScheduleError_ = invalidScheduleError_; 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.schedule.v1.ScheduleInfo) { return mergeFrom((io.temporal.api.schedule.v1.ScheduleInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.schedule.v1.ScheduleInfo other) { if (other == io.temporal.api.schedule.v1.ScheduleInfo.getDefaultInstance()) return this; if (other.getActionCount() != 0L) { setActionCount(other.getActionCount()); } if (other.getMissedCatchupWindow() != 0L) { setMissedCatchupWindow(other.getMissedCatchupWindow()); } if (other.getOverlapSkipped() != 0L) { setOverlapSkipped(other.getOverlapSkipped()); } if (runningWorkflowsBuilder_ == null) { if (!other.runningWorkflows_.isEmpty()) { if (runningWorkflows_.isEmpty()) { runningWorkflows_ = other.runningWorkflows_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRunningWorkflowsIsMutable(); runningWorkflows_.addAll(other.runningWorkflows_); } onChanged(); } } else { if (!other.runningWorkflows_.isEmpty()) { if (runningWorkflowsBuilder_.isEmpty()) { runningWorkflowsBuilder_.dispose(); runningWorkflowsBuilder_ = null; runningWorkflows_ = other.runningWorkflows_; bitField0_ = (bitField0_ & ~0x00000001); runningWorkflowsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRunningWorkflowsFieldBuilder() : null; } else { runningWorkflowsBuilder_.addAllMessages(other.runningWorkflows_); } } } if (recentActionsBuilder_ == null) { if (!other.recentActions_.isEmpty()) { if (recentActions_.isEmpty()) { recentActions_ = other.recentActions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRecentActionsIsMutable(); recentActions_.addAll(other.recentActions_); } onChanged(); } } else { if (!other.recentActions_.isEmpty()) { if (recentActionsBuilder_.isEmpty()) { recentActionsBuilder_.dispose(); recentActionsBuilder_ = null; recentActions_ = other.recentActions_; bitField0_ = (bitField0_ & ~0x00000002); recentActionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRecentActionsFieldBuilder() : null; } else { recentActionsBuilder_.addAllMessages(other.recentActions_); } } } if (futureActionTimesBuilder_ == null) { if (!other.futureActionTimes_.isEmpty()) { if (futureActionTimes_.isEmpty()) { futureActionTimes_ = other.futureActionTimes_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFutureActionTimesIsMutable(); futureActionTimes_.addAll(other.futureActionTimes_); } onChanged(); } } else { if (!other.futureActionTimes_.isEmpty()) { if (futureActionTimesBuilder_.isEmpty()) { futureActionTimesBuilder_.dispose(); futureActionTimesBuilder_ = null; futureActionTimes_ = other.futureActionTimes_; bitField0_ = (bitField0_ & ~0x00000004); futureActionTimesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFutureActionTimesFieldBuilder() : null; } else { futureActionTimesBuilder_.addAllMessages(other.futureActionTimes_); } } } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } if (!other.getInvalidScheduleError().isEmpty()) { invalidScheduleError_ = other.invalidScheduleError_; onChanged(); } 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.schedule.v1.ScheduleInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.schedule.v1.ScheduleInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long actionCount_ ; /** *
     * Number of actions taken so far.
     * 
* * int64 action_count = 1; * @return The actionCount. */ public long getActionCount() { return actionCount_; } /** *
     * Number of actions taken so far.
     * 
* * int64 action_count = 1; * @param value The actionCount to set. * @return This builder for chaining. */ public Builder setActionCount(long value) { actionCount_ = value; onChanged(); return this; } /** *
     * Number of actions taken so far.
     * 
* * int64 action_count = 1; * @return This builder for chaining. */ public Builder clearActionCount() { actionCount_ = 0L; onChanged(); return this; } private long missedCatchupWindow_ ; /** *
     * Number of times a scheduled action was skipped due to missing the catchup window.
     * 
* * int64 missed_catchup_window = 2; * @return The missedCatchupWindow. */ public long getMissedCatchupWindow() { return missedCatchupWindow_; } /** *
     * Number of times a scheduled action was skipped due to missing the catchup window.
     * 
* * int64 missed_catchup_window = 2; * @param value The missedCatchupWindow to set. * @return This builder for chaining. */ public Builder setMissedCatchupWindow(long value) { missedCatchupWindow_ = value; onChanged(); return this; } /** *
     * Number of times a scheduled action was skipped due to missing the catchup window.
     * 
* * int64 missed_catchup_window = 2; * @return This builder for chaining. */ public Builder clearMissedCatchupWindow() { missedCatchupWindow_ = 0L; onChanged(); return this; } private long overlapSkipped_ ; /** *
     * Number of skipped actions due to overlap.
     * 
* * int64 overlap_skipped = 3; * @return The overlapSkipped. */ public long getOverlapSkipped() { return overlapSkipped_; } /** *
     * Number of skipped actions due to overlap.
     * 
* * int64 overlap_skipped = 3; * @param value The overlapSkipped to set. * @return This builder for chaining. */ public Builder setOverlapSkipped(long value) { overlapSkipped_ = value; onChanged(); return this; } /** *
     * Number of skipped actions due to overlap.
     * 
* * int64 overlap_skipped = 3; * @return This builder for chaining. */ public Builder clearOverlapSkipped() { overlapSkipped_ = 0L; onChanged(); return this; } private java.util.List runningWorkflows_ = java.util.Collections.emptyList(); private void ensureRunningWorkflowsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { runningWorkflows_ = new java.util.ArrayList(runningWorkflows_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.common.v1.WorkflowExecution, io.temporal.api.common.v1.WorkflowExecution.Builder, io.temporal.api.common.v1.WorkflowExecutionOrBuilder> runningWorkflowsBuilder_; /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public java.util.List getRunningWorkflowsList() { if (runningWorkflowsBuilder_ == null) { return java.util.Collections.unmodifiableList(runningWorkflows_); } else { return runningWorkflowsBuilder_.getMessageList(); } } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public int getRunningWorkflowsCount() { if (runningWorkflowsBuilder_ == null) { return runningWorkflows_.size(); } else { return runningWorkflowsBuilder_.getCount(); } } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public io.temporal.api.common.v1.WorkflowExecution getRunningWorkflows(int index) { if (runningWorkflowsBuilder_ == null) { return runningWorkflows_.get(index); } else { return runningWorkflowsBuilder_.getMessage(index); } } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public Builder setRunningWorkflows( int index, io.temporal.api.common.v1.WorkflowExecution value) { if (runningWorkflowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRunningWorkflowsIsMutable(); runningWorkflows_.set(index, value); onChanged(); } else { runningWorkflowsBuilder_.setMessage(index, value); } return this; } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public Builder setRunningWorkflows( int index, io.temporal.api.common.v1.WorkflowExecution.Builder builderForValue) { if (runningWorkflowsBuilder_ == null) { ensureRunningWorkflowsIsMutable(); runningWorkflows_.set(index, builderForValue.build()); onChanged(); } else { runningWorkflowsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public Builder addRunningWorkflows(io.temporal.api.common.v1.WorkflowExecution value) { if (runningWorkflowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRunningWorkflowsIsMutable(); runningWorkflows_.add(value); onChanged(); } else { runningWorkflowsBuilder_.addMessage(value); } return this; } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public Builder addRunningWorkflows( int index, io.temporal.api.common.v1.WorkflowExecution value) { if (runningWorkflowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRunningWorkflowsIsMutable(); runningWorkflows_.add(index, value); onChanged(); } else { runningWorkflowsBuilder_.addMessage(index, value); } return this; } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public Builder addRunningWorkflows( io.temporal.api.common.v1.WorkflowExecution.Builder builderForValue) { if (runningWorkflowsBuilder_ == null) { ensureRunningWorkflowsIsMutable(); runningWorkflows_.add(builderForValue.build()); onChanged(); } else { runningWorkflowsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public Builder addRunningWorkflows( int index, io.temporal.api.common.v1.WorkflowExecution.Builder builderForValue) { if (runningWorkflowsBuilder_ == null) { ensureRunningWorkflowsIsMutable(); runningWorkflows_.add(index, builderForValue.build()); onChanged(); } else { runningWorkflowsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public Builder addAllRunningWorkflows( java.lang.Iterable values) { if (runningWorkflowsBuilder_ == null) { ensureRunningWorkflowsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, runningWorkflows_); onChanged(); } else { runningWorkflowsBuilder_.addAllMessages(values); } return this; } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public Builder clearRunningWorkflows() { if (runningWorkflowsBuilder_ == null) { runningWorkflows_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { runningWorkflowsBuilder_.clear(); } return this; } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public Builder removeRunningWorkflows(int index) { if (runningWorkflowsBuilder_ == null) { ensureRunningWorkflowsIsMutable(); runningWorkflows_.remove(index); onChanged(); } else { runningWorkflowsBuilder_.remove(index); } return this; } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public io.temporal.api.common.v1.WorkflowExecution.Builder getRunningWorkflowsBuilder( int index) { return getRunningWorkflowsFieldBuilder().getBuilder(index); } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public io.temporal.api.common.v1.WorkflowExecutionOrBuilder getRunningWorkflowsOrBuilder( int index) { if (runningWorkflowsBuilder_ == null) { return runningWorkflows_.get(index); } else { return runningWorkflowsBuilder_.getMessageOrBuilder(index); } } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public java.util.List getRunningWorkflowsOrBuilderList() { if (runningWorkflowsBuilder_ != null) { return runningWorkflowsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(runningWorkflows_); } } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public io.temporal.api.common.v1.WorkflowExecution.Builder addRunningWorkflowsBuilder() { return getRunningWorkflowsFieldBuilder().addBuilder( io.temporal.api.common.v1.WorkflowExecution.getDefaultInstance()); } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public io.temporal.api.common.v1.WorkflowExecution.Builder addRunningWorkflowsBuilder( int index) { return getRunningWorkflowsFieldBuilder().addBuilder( index, io.temporal.api.common.v1.WorkflowExecution.getDefaultInstance()); } /** *
     * Currently-running workflows started by this schedule. (There might be
     * more than one if the overlap policy allows overlaps.)
     * Note that the run_ids in here are the original execution run ids as
     * started by the schedule. If the workflows retried, did continue-as-new,
     * or were reset, they might still be running but with a different run_id.
     * 
* * repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9; */ public java.util.List getRunningWorkflowsBuilderList() { return getRunningWorkflowsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.common.v1.WorkflowExecution, io.temporal.api.common.v1.WorkflowExecution.Builder, io.temporal.api.common.v1.WorkflowExecutionOrBuilder> getRunningWorkflowsFieldBuilder() { if (runningWorkflowsBuilder_ == null) { runningWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.common.v1.WorkflowExecution, io.temporal.api.common.v1.WorkflowExecution.Builder, io.temporal.api.common.v1.WorkflowExecutionOrBuilder>( runningWorkflows_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); runningWorkflows_ = null; } return runningWorkflowsBuilder_; } private java.util.List recentActions_ = java.util.Collections.emptyList(); private void ensureRecentActionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { recentActions_ = new java.util.ArrayList(recentActions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.ScheduleActionResult, io.temporal.api.schedule.v1.ScheduleActionResult.Builder, io.temporal.api.schedule.v1.ScheduleActionResultOrBuilder> recentActionsBuilder_; /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public java.util.List getRecentActionsList() { if (recentActionsBuilder_ == null) { return java.util.Collections.unmodifiableList(recentActions_); } else { return recentActionsBuilder_.getMessageList(); } } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public int getRecentActionsCount() { if (recentActionsBuilder_ == null) { return recentActions_.size(); } else { return recentActionsBuilder_.getCount(); } } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public io.temporal.api.schedule.v1.ScheduleActionResult getRecentActions(int index) { if (recentActionsBuilder_ == null) { return recentActions_.get(index); } else { return recentActionsBuilder_.getMessage(index); } } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public Builder setRecentActions( int index, io.temporal.api.schedule.v1.ScheduleActionResult value) { if (recentActionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecentActionsIsMutable(); recentActions_.set(index, value); onChanged(); } else { recentActionsBuilder_.setMessage(index, value); } return this; } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public Builder setRecentActions( int index, io.temporal.api.schedule.v1.ScheduleActionResult.Builder builderForValue) { if (recentActionsBuilder_ == null) { ensureRecentActionsIsMutable(); recentActions_.set(index, builderForValue.build()); onChanged(); } else { recentActionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public Builder addRecentActions(io.temporal.api.schedule.v1.ScheduleActionResult value) { if (recentActionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecentActionsIsMutable(); recentActions_.add(value); onChanged(); } else { recentActionsBuilder_.addMessage(value); } return this; } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public Builder addRecentActions( int index, io.temporal.api.schedule.v1.ScheduleActionResult value) { if (recentActionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecentActionsIsMutable(); recentActions_.add(index, value); onChanged(); } else { recentActionsBuilder_.addMessage(index, value); } return this; } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public Builder addRecentActions( io.temporal.api.schedule.v1.ScheduleActionResult.Builder builderForValue) { if (recentActionsBuilder_ == null) { ensureRecentActionsIsMutable(); recentActions_.add(builderForValue.build()); onChanged(); } else { recentActionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public Builder addRecentActions( int index, io.temporal.api.schedule.v1.ScheduleActionResult.Builder builderForValue) { if (recentActionsBuilder_ == null) { ensureRecentActionsIsMutable(); recentActions_.add(index, builderForValue.build()); onChanged(); } else { recentActionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public Builder addAllRecentActions( java.lang.Iterable values) { if (recentActionsBuilder_ == null) { ensureRecentActionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recentActions_); onChanged(); } else { recentActionsBuilder_.addAllMessages(values); } return this; } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public Builder clearRecentActions() { if (recentActionsBuilder_ == null) { recentActions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { recentActionsBuilder_.clear(); } return this; } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public Builder removeRecentActions(int index) { if (recentActionsBuilder_ == null) { ensureRecentActionsIsMutable(); recentActions_.remove(index); onChanged(); } else { recentActionsBuilder_.remove(index); } return this; } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public io.temporal.api.schedule.v1.ScheduleActionResult.Builder getRecentActionsBuilder( int index) { return getRecentActionsFieldBuilder().getBuilder(index); } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public io.temporal.api.schedule.v1.ScheduleActionResultOrBuilder getRecentActionsOrBuilder( int index) { if (recentActionsBuilder_ == null) { return recentActions_.get(index); } else { return recentActionsBuilder_.getMessageOrBuilder(index); } } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public java.util.List getRecentActionsOrBuilderList() { if (recentActionsBuilder_ != null) { return recentActionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(recentActions_); } } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public io.temporal.api.schedule.v1.ScheduleActionResult.Builder addRecentActionsBuilder() { return getRecentActionsFieldBuilder().addBuilder( io.temporal.api.schedule.v1.ScheduleActionResult.getDefaultInstance()); } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public io.temporal.api.schedule.v1.ScheduleActionResult.Builder addRecentActionsBuilder( int index) { return getRecentActionsFieldBuilder().addBuilder( index, io.temporal.api.schedule.v1.ScheduleActionResult.getDefaultInstance()); } /** *
     * Most recent ten actual action times (including manual triggers).
     * 
* * repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4; */ public java.util.List getRecentActionsBuilderList() { return getRecentActionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.ScheduleActionResult, io.temporal.api.schedule.v1.ScheduleActionResult.Builder, io.temporal.api.schedule.v1.ScheduleActionResultOrBuilder> getRecentActionsFieldBuilder() { if (recentActionsBuilder_ == null) { recentActionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.ScheduleActionResult, io.temporal.api.schedule.v1.ScheduleActionResult.Builder, io.temporal.api.schedule.v1.ScheduleActionResultOrBuilder>( recentActions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); recentActions_ = null; } return recentActionsBuilder_; } private java.util.List futureActionTimes_ = java.util.Collections.emptyList(); private void ensureFutureActionTimesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { futureActionTimes_ = new java.util.ArrayList(futureActionTimes_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> futureActionTimesBuilder_; /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public java.util.List getFutureActionTimesList() { if (futureActionTimesBuilder_ == null) { return java.util.Collections.unmodifiableList(futureActionTimes_); } else { return futureActionTimesBuilder_.getMessageList(); } } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public int getFutureActionTimesCount() { if (futureActionTimesBuilder_ == null) { return futureActionTimes_.size(); } else { return futureActionTimesBuilder_.getCount(); } } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp getFutureActionTimes(int index) { if (futureActionTimesBuilder_ == null) { return futureActionTimes_.get(index); } else { return futureActionTimesBuilder_.getMessage(index); } } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public Builder setFutureActionTimes( int index, com.google.protobuf.Timestamp value) { if (futureActionTimesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFutureActionTimesIsMutable(); futureActionTimes_.set(index, value); onChanged(); } else { futureActionTimesBuilder_.setMessage(index, value); } return this; } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public Builder setFutureActionTimes( int index, com.google.protobuf.Timestamp.Builder builderForValue) { if (futureActionTimesBuilder_ == null) { ensureFutureActionTimesIsMutable(); futureActionTimes_.set(index, builderForValue.build()); onChanged(); } else { futureActionTimesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public Builder addFutureActionTimes(com.google.protobuf.Timestamp value) { if (futureActionTimesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFutureActionTimesIsMutable(); futureActionTimes_.add(value); onChanged(); } else { futureActionTimesBuilder_.addMessage(value); } return this; } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public Builder addFutureActionTimes( int index, com.google.protobuf.Timestamp value) { if (futureActionTimesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFutureActionTimesIsMutable(); futureActionTimes_.add(index, value); onChanged(); } else { futureActionTimesBuilder_.addMessage(index, value); } return this; } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public Builder addFutureActionTimes( com.google.protobuf.Timestamp.Builder builderForValue) { if (futureActionTimesBuilder_ == null) { ensureFutureActionTimesIsMutable(); futureActionTimes_.add(builderForValue.build()); onChanged(); } else { futureActionTimesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public Builder addFutureActionTimes( int index, com.google.protobuf.Timestamp.Builder builderForValue) { if (futureActionTimesBuilder_ == null) { ensureFutureActionTimesIsMutable(); futureActionTimes_.add(index, builderForValue.build()); onChanged(); } else { futureActionTimesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public Builder addAllFutureActionTimes( java.lang.Iterable values) { if (futureActionTimesBuilder_ == null) { ensureFutureActionTimesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, futureActionTimes_); onChanged(); } else { futureActionTimesBuilder_.addAllMessages(values); } return this; } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public Builder clearFutureActionTimes() { if (futureActionTimesBuilder_ == null) { futureActionTimes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { futureActionTimesBuilder_.clear(); } return this; } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public Builder removeFutureActionTimes(int index) { if (futureActionTimesBuilder_ == null) { ensureFutureActionTimesIsMutable(); futureActionTimes_.remove(index); onChanged(); } else { futureActionTimesBuilder_.remove(index); } return this; } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getFutureActionTimesBuilder( int index) { return getFutureActionTimesFieldBuilder().getBuilder(index); } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getFutureActionTimesOrBuilder( int index) { if (futureActionTimesBuilder_ == null) { return futureActionTimes_.get(index); } else { return futureActionTimesBuilder_.getMessageOrBuilder(index); } } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public java.util.List getFutureActionTimesOrBuilderList() { if (futureActionTimesBuilder_ != null) { return futureActionTimesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(futureActionTimes_); } } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder addFutureActionTimesBuilder() { return getFutureActionTimesFieldBuilder().addBuilder( com.google.protobuf.Timestamp.getDefaultInstance()); } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder addFutureActionTimesBuilder( int index) { return getFutureActionTimesFieldBuilder().addBuilder( index, com.google.protobuf.Timestamp.getDefaultInstance()); } /** *
     * Next ten scheduled action times.
     * 
* * repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true]; */ public java.util.List getFutureActionTimesBuilderList() { return getFutureActionTimesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getFutureActionTimesFieldBuilder() { if (futureActionTimesBuilder_ == null) { futureActionTimesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( futureActionTimes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); futureActionTimes_ = null; } return futureActionTimesBuilder_; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** *
     * Timestamps of schedule creation and last update.
     * 
* * .google.protobuf.Timestamp create_time = 6 [(.gogoproto.stdtime) = true]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** *
     * Timestamps of schedule creation and last update.
     * 
* * .google.protobuf.Timestamp create_time = 6 [(.gogoproto.stdtime) = true]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** *
     * Timestamps of schedule creation and last update.
     * 
* * .google.protobuf.Timestamp create_time = 6 [(.gogoproto.stdtime) = true]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; onChanged(); } else { createTimeBuilder_.setMessage(value); } return this; } /** *
     * Timestamps of schedule creation and last update.
     * 
* * .google.protobuf.Timestamp create_time = 6 [(.gogoproto.stdtime) = true]; */ public Builder setCreateTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Timestamps of schedule creation and last update.
     * 
* * .google.protobuf.Timestamp create_time = 6 [(.gogoproto.stdtime) = true]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } onChanged(); } else { createTimeBuilder_.mergeFrom(value); } return this; } /** *
     * Timestamps of schedule creation and last update.
     * 
* * .google.protobuf.Timestamp create_time = 6 [(.gogoproto.stdtime) = true]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { createTime_ = null; onChanged(); } else { createTime_ = null; createTimeBuilder_ = null; } return this; } /** *
     * Timestamps of schedule creation and last update.
     * 
* * .google.protobuf.Timestamp create_time = 6 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** *
     * Timestamps of schedule creation and last update.
     * 
* * .google.protobuf.Timestamp create_time = 6 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** *
     * Timestamps of schedule creation and last update.
     * 
* * .google.protobuf.Timestamp create_time = 6 [(.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** * .google.protobuf.Timestamp update_time = 7 [(.gogoproto.stdtime) = true]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** * .google.protobuf.Timestamp update_time = 7 [(.gogoproto.stdtime) = true]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp update_time = 7 [(.gogoproto.stdtime) = true]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateTime_ = value; onChanged(); } else { updateTimeBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp update_time = 7 [(.gogoproto.stdtime) = true]; */ public Builder setUpdateTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp update_time = 7 [(.gogoproto.stdtime) = true]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp update_time = 7 [(.gogoproto.stdtime) = true]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { updateTime_ = null; onChanged(); } else { updateTime_ = null; updateTimeBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp update_time = 7 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp update_time = 7 [(.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** * .google.protobuf.Timestamp update_time = 7 [(.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } private java.lang.Object invalidScheduleError_ = ""; /** * string invalid_schedule_error = 8 [deprecated = true]; * @return The invalidScheduleError. */ @java.lang.Deprecated public java.lang.String getInvalidScheduleError() { java.lang.Object ref = invalidScheduleError_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); invalidScheduleError_ = s; return s; } else { return (java.lang.String) ref; } } /** * string invalid_schedule_error = 8 [deprecated = true]; * @return The bytes for invalidScheduleError. */ @java.lang.Deprecated public com.google.protobuf.ByteString getInvalidScheduleErrorBytes() { java.lang.Object ref = invalidScheduleError_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); invalidScheduleError_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string invalid_schedule_error = 8 [deprecated = true]; * @param value The invalidScheduleError to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setInvalidScheduleError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } invalidScheduleError_ = value; onChanged(); return this; } /** * string invalid_schedule_error = 8 [deprecated = true]; * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearInvalidScheduleError() { invalidScheduleError_ = getDefaultInstance().getInvalidScheduleError(); onChanged(); return this; } /** * string invalid_schedule_error = 8 [deprecated = true]; * @param value The bytes for invalidScheduleError to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setInvalidScheduleErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); invalidScheduleError_ = value; 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.schedule.v1.ScheduleInfo) } // @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleInfo) private static final io.temporal.api.schedule.v1.ScheduleInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.schedule.v1.ScheduleInfo(); } public static io.temporal.api.schedule.v1.ScheduleInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScheduleInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScheduleInfo(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.schedule.v1.ScheduleInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy