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

io.temporal.api.schedule.v1.SchedulePatch 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.SchedulePatch}
 */
@javax.annotation.Generated(value="protoc", comments="annotations:SchedulePatch.java.pb.meta")
public  final class SchedulePatch extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:temporal.api.schedule.v1.SchedulePatch)
    SchedulePatchOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SchedulePatch.newBuilder() to construct.
  private SchedulePatch(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private SchedulePatch() {
    backfillRequest_ = java.util.Collections.emptyList();
    pause_ = "";
    unpause_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private SchedulePatch(
      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 10: {
            io.temporal.api.schedule.v1.TriggerImmediatelyRequest.Builder subBuilder = null;
            if (triggerImmediately_ != null) {
              subBuilder = triggerImmediately_.toBuilder();
            }
            triggerImmediately_ = input.readMessage(io.temporal.api.schedule.v1.TriggerImmediatelyRequest.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(triggerImmediately_);
              triggerImmediately_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              backfillRequest_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            backfillRequest_.add(
                input.readMessage(io.temporal.api.schedule.v1.BackfillRequest.parser(), extensionRegistry));
            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();

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

            unpause_ = s;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        backfillRequest_ = java.util.Collections.unmodifiableList(backfillRequest_);
      }
      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_SchedulePatch_descriptor;
  }

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

  public static final int TRIGGER_IMMEDIATELY_FIELD_NUMBER = 1;
  private io.temporal.api.schedule.v1.TriggerImmediatelyRequest triggerImmediately_;
  /**
   * 
   * If set, trigger one action immediately.
   * 
* * .temporal.api.schedule.v1.TriggerImmediatelyRequest trigger_immediately = 1; * @return Whether the triggerImmediately field is set. */ public boolean hasTriggerImmediately() { return triggerImmediately_ != null; } /** *
   * If set, trigger one action immediately.
   * 
* * .temporal.api.schedule.v1.TriggerImmediatelyRequest trigger_immediately = 1; * @return The triggerImmediately. */ public io.temporal.api.schedule.v1.TriggerImmediatelyRequest getTriggerImmediately() { return triggerImmediately_ == null ? io.temporal.api.schedule.v1.TriggerImmediatelyRequest.getDefaultInstance() : triggerImmediately_; } /** *
   * If set, trigger one action immediately.
   * 
* * .temporal.api.schedule.v1.TriggerImmediatelyRequest trigger_immediately = 1; */ public io.temporal.api.schedule.v1.TriggerImmediatelyRequestOrBuilder getTriggerImmediatelyOrBuilder() { return getTriggerImmediately(); } public static final int BACKFILL_REQUEST_FIELD_NUMBER = 2; private java.util.List backfillRequest_; /** *
   * If set, runs though the specified time period(s) and takes actions as if that time
   * passed by right now, all at once. The overlap policy can be overridden for the
   * scope of the backfill.
   * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public java.util.List getBackfillRequestList() { return backfillRequest_; } /** *
   * If set, runs though the specified time period(s) and takes actions as if that time
   * passed by right now, all at once. The overlap policy can be overridden for the
   * scope of the backfill.
   * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public java.util.List getBackfillRequestOrBuilderList() { return backfillRequest_; } /** *
   * If set, runs though the specified time period(s) and takes actions as if that time
   * passed by right now, all at once. The overlap policy can be overridden for the
   * scope of the backfill.
   * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public int getBackfillRequestCount() { return backfillRequest_.size(); } /** *
   * If set, runs though the specified time period(s) and takes actions as if that time
   * passed by right now, all at once. The overlap policy can be overridden for the
   * scope of the backfill.
   * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public io.temporal.api.schedule.v1.BackfillRequest getBackfillRequest(int index) { return backfillRequest_.get(index); } /** *
   * If set, runs though the specified time period(s) and takes actions as if that time
   * passed by right now, all at once. The overlap policy can be overridden for the
   * scope of the backfill.
   * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public io.temporal.api.schedule.v1.BackfillRequestOrBuilder getBackfillRequestOrBuilder( int index) { return backfillRequest_.get(index); } public static final int PAUSE_FIELD_NUMBER = 3; private volatile java.lang.Object pause_; /** *
   * If set, change the state to paused or unpaused (respectively) and set the
   * notes field to the value of the string.
   * 
* * string pause = 3; * @return The pause. */ public java.lang.String getPause() { java.lang.Object ref = pause_; 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(); pause_ = s; return s; } } /** *
   * If set, change the state to paused or unpaused (respectively) and set the
   * notes field to the value of the string.
   * 
* * string pause = 3; * @return The bytes for pause. */ public com.google.protobuf.ByteString getPauseBytes() { java.lang.Object ref = pause_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pause_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UNPAUSE_FIELD_NUMBER = 4; private volatile java.lang.Object unpause_; /** * string unpause = 4; * @return The unpause. */ public java.lang.String getUnpause() { java.lang.Object ref = unpause_; 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(); unpause_ = s; return s; } } /** * string unpause = 4; * @return The bytes for unpause. */ public com.google.protobuf.ByteString getUnpauseBytes() { java.lang.Object ref = unpause_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); unpause_ = 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 (triggerImmediately_ != null) { output.writeMessage(1, getTriggerImmediately()); } for (int i = 0; i < backfillRequest_.size(); i++) { output.writeMessage(2, backfillRequest_.get(i)); } if (!getPauseBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pause_); } if (!getUnpauseBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, unpause_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (triggerImmediately_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTriggerImmediately()); } for (int i = 0; i < backfillRequest_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, backfillRequest_.get(i)); } if (!getPauseBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pause_); } if (!getUnpauseBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, unpause_); } 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.SchedulePatch)) { return super.equals(obj); } io.temporal.api.schedule.v1.SchedulePatch other = (io.temporal.api.schedule.v1.SchedulePatch) obj; if (hasTriggerImmediately() != other.hasTriggerImmediately()) return false; if (hasTriggerImmediately()) { if (!getTriggerImmediately() .equals(other.getTriggerImmediately())) return false; } if (!getBackfillRequestList() .equals(other.getBackfillRequestList())) return false; if (!getPause() .equals(other.getPause())) return false; if (!getUnpause() .equals(other.getUnpause())) 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(); if (hasTriggerImmediately()) { hash = (37 * hash) + TRIGGER_IMMEDIATELY_FIELD_NUMBER; hash = (53 * hash) + getTriggerImmediately().hashCode(); } if (getBackfillRequestCount() > 0) { hash = (37 * hash) + BACKFILL_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getBackfillRequestList().hashCode(); } hash = (37 * hash) + PAUSE_FIELD_NUMBER; hash = (53 * hash) + getPause().hashCode(); hash = (37 * hash) + UNPAUSE_FIELD_NUMBER; hash = (53 * hash) + getUnpause().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.schedule.v1.SchedulePatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.schedule.v1.SchedulePatch 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.SchedulePatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.schedule.v1.SchedulePatch 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.SchedulePatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.schedule.v1.SchedulePatch 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.SchedulePatch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.schedule.v1.SchedulePatch 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.SchedulePatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.schedule.v1.SchedulePatch 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.SchedulePatch 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.SchedulePatch 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.SchedulePatch 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.SchedulePatch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.schedule.v1.SchedulePatch) io.temporal.api.schedule.v1.SchedulePatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_SchedulePatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_SchedulePatch_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.schedule.v1.SchedulePatch.class, io.temporal.api.schedule.v1.SchedulePatch.Builder.class); } // Construct using io.temporal.api.schedule.v1.SchedulePatch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBackfillRequestFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (triggerImmediatelyBuilder_ == null) { triggerImmediately_ = null; } else { triggerImmediately_ = null; triggerImmediatelyBuilder_ = null; } if (backfillRequestBuilder_ == null) { backfillRequest_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { backfillRequestBuilder_.clear(); } pause_ = ""; unpause_ = ""; 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_SchedulePatch_descriptor; } @java.lang.Override public io.temporal.api.schedule.v1.SchedulePatch getDefaultInstanceForType() { return io.temporal.api.schedule.v1.SchedulePatch.getDefaultInstance(); } @java.lang.Override public io.temporal.api.schedule.v1.SchedulePatch build() { io.temporal.api.schedule.v1.SchedulePatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.schedule.v1.SchedulePatch buildPartial() { io.temporal.api.schedule.v1.SchedulePatch result = new io.temporal.api.schedule.v1.SchedulePatch(this); int from_bitField0_ = bitField0_; if (triggerImmediatelyBuilder_ == null) { result.triggerImmediately_ = triggerImmediately_; } else { result.triggerImmediately_ = triggerImmediatelyBuilder_.build(); } if (backfillRequestBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { backfillRequest_ = java.util.Collections.unmodifiableList(backfillRequest_); bitField0_ = (bitField0_ & ~0x00000001); } result.backfillRequest_ = backfillRequest_; } else { result.backfillRequest_ = backfillRequestBuilder_.build(); } result.pause_ = pause_; result.unpause_ = unpause_; 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.SchedulePatch) { return mergeFrom((io.temporal.api.schedule.v1.SchedulePatch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.schedule.v1.SchedulePatch other) { if (other == io.temporal.api.schedule.v1.SchedulePatch.getDefaultInstance()) return this; if (other.hasTriggerImmediately()) { mergeTriggerImmediately(other.getTriggerImmediately()); } if (backfillRequestBuilder_ == null) { if (!other.backfillRequest_.isEmpty()) { if (backfillRequest_.isEmpty()) { backfillRequest_ = other.backfillRequest_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBackfillRequestIsMutable(); backfillRequest_.addAll(other.backfillRequest_); } onChanged(); } } else { if (!other.backfillRequest_.isEmpty()) { if (backfillRequestBuilder_.isEmpty()) { backfillRequestBuilder_.dispose(); backfillRequestBuilder_ = null; backfillRequest_ = other.backfillRequest_; bitField0_ = (bitField0_ & ~0x00000001); backfillRequestBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBackfillRequestFieldBuilder() : null; } else { backfillRequestBuilder_.addAllMessages(other.backfillRequest_); } } } if (!other.getPause().isEmpty()) { pause_ = other.pause_; onChanged(); } if (!other.getUnpause().isEmpty()) { unpause_ = other.unpause_; 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.SchedulePatch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.schedule.v1.SchedulePatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.temporal.api.schedule.v1.TriggerImmediatelyRequest triggerImmediately_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.schedule.v1.TriggerImmediatelyRequest, io.temporal.api.schedule.v1.TriggerImmediatelyRequest.Builder, io.temporal.api.schedule.v1.TriggerImmediatelyRequestOrBuilder> triggerImmediatelyBuilder_; /** *
     * If set, trigger one action immediately.
     * 
* * .temporal.api.schedule.v1.TriggerImmediatelyRequest trigger_immediately = 1; * @return Whether the triggerImmediately field is set. */ public boolean hasTriggerImmediately() { return triggerImmediatelyBuilder_ != null || triggerImmediately_ != null; } /** *
     * If set, trigger one action immediately.
     * 
* * .temporal.api.schedule.v1.TriggerImmediatelyRequest trigger_immediately = 1; * @return The triggerImmediately. */ public io.temporal.api.schedule.v1.TriggerImmediatelyRequest getTriggerImmediately() { if (triggerImmediatelyBuilder_ == null) { return triggerImmediately_ == null ? io.temporal.api.schedule.v1.TriggerImmediatelyRequest.getDefaultInstance() : triggerImmediately_; } else { return triggerImmediatelyBuilder_.getMessage(); } } /** *
     * If set, trigger one action immediately.
     * 
* * .temporal.api.schedule.v1.TriggerImmediatelyRequest trigger_immediately = 1; */ public Builder setTriggerImmediately(io.temporal.api.schedule.v1.TriggerImmediatelyRequest value) { if (triggerImmediatelyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } triggerImmediately_ = value; onChanged(); } else { triggerImmediatelyBuilder_.setMessage(value); } return this; } /** *
     * If set, trigger one action immediately.
     * 
* * .temporal.api.schedule.v1.TriggerImmediatelyRequest trigger_immediately = 1; */ public Builder setTriggerImmediately( io.temporal.api.schedule.v1.TriggerImmediatelyRequest.Builder builderForValue) { if (triggerImmediatelyBuilder_ == null) { triggerImmediately_ = builderForValue.build(); onChanged(); } else { triggerImmediatelyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * If set, trigger one action immediately.
     * 
* * .temporal.api.schedule.v1.TriggerImmediatelyRequest trigger_immediately = 1; */ public Builder mergeTriggerImmediately(io.temporal.api.schedule.v1.TriggerImmediatelyRequest value) { if (triggerImmediatelyBuilder_ == null) { if (triggerImmediately_ != null) { triggerImmediately_ = io.temporal.api.schedule.v1.TriggerImmediatelyRequest.newBuilder(triggerImmediately_).mergeFrom(value).buildPartial(); } else { triggerImmediately_ = value; } onChanged(); } else { triggerImmediatelyBuilder_.mergeFrom(value); } return this; } /** *
     * If set, trigger one action immediately.
     * 
* * .temporal.api.schedule.v1.TriggerImmediatelyRequest trigger_immediately = 1; */ public Builder clearTriggerImmediately() { if (triggerImmediatelyBuilder_ == null) { triggerImmediately_ = null; onChanged(); } else { triggerImmediately_ = null; triggerImmediatelyBuilder_ = null; } return this; } /** *
     * If set, trigger one action immediately.
     * 
* * .temporal.api.schedule.v1.TriggerImmediatelyRequest trigger_immediately = 1; */ public io.temporal.api.schedule.v1.TriggerImmediatelyRequest.Builder getTriggerImmediatelyBuilder() { onChanged(); return getTriggerImmediatelyFieldBuilder().getBuilder(); } /** *
     * If set, trigger one action immediately.
     * 
* * .temporal.api.schedule.v1.TriggerImmediatelyRequest trigger_immediately = 1; */ public io.temporal.api.schedule.v1.TriggerImmediatelyRequestOrBuilder getTriggerImmediatelyOrBuilder() { if (triggerImmediatelyBuilder_ != null) { return triggerImmediatelyBuilder_.getMessageOrBuilder(); } else { return triggerImmediately_ == null ? io.temporal.api.schedule.v1.TriggerImmediatelyRequest.getDefaultInstance() : triggerImmediately_; } } /** *
     * If set, trigger one action immediately.
     * 
* * .temporal.api.schedule.v1.TriggerImmediatelyRequest trigger_immediately = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.schedule.v1.TriggerImmediatelyRequest, io.temporal.api.schedule.v1.TriggerImmediatelyRequest.Builder, io.temporal.api.schedule.v1.TriggerImmediatelyRequestOrBuilder> getTriggerImmediatelyFieldBuilder() { if (triggerImmediatelyBuilder_ == null) { triggerImmediatelyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.schedule.v1.TriggerImmediatelyRequest, io.temporal.api.schedule.v1.TriggerImmediatelyRequest.Builder, io.temporal.api.schedule.v1.TriggerImmediatelyRequestOrBuilder>( getTriggerImmediately(), getParentForChildren(), isClean()); triggerImmediately_ = null; } return triggerImmediatelyBuilder_; } private java.util.List backfillRequest_ = java.util.Collections.emptyList(); private void ensureBackfillRequestIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { backfillRequest_ = new java.util.ArrayList(backfillRequest_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.BackfillRequest, io.temporal.api.schedule.v1.BackfillRequest.Builder, io.temporal.api.schedule.v1.BackfillRequestOrBuilder> backfillRequestBuilder_; /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public java.util.List getBackfillRequestList() { if (backfillRequestBuilder_ == null) { return java.util.Collections.unmodifiableList(backfillRequest_); } else { return backfillRequestBuilder_.getMessageList(); } } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public int getBackfillRequestCount() { if (backfillRequestBuilder_ == null) { return backfillRequest_.size(); } else { return backfillRequestBuilder_.getCount(); } } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public io.temporal.api.schedule.v1.BackfillRequest getBackfillRequest(int index) { if (backfillRequestBuilder_ == null) { return backfillRequest_.get(index); } else { return backfillRequestBuilder_.getMessage(index); } } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public Builder setBackfillRequest( int index, io.temporal.api.schedule.v1.BackfillRequest value) { if (backfillRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBackfillRequestIsMutable(); backfillRequest_.set(index, value); onChanged(); } else { backfillRequestBuilder_.setMessage(index, value); } return this; } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public Builder setBackfillRequest( int index, io.temporal.api.schedule.v1.BackfillRequest.Builder builderForValue) { if (backfillRequestBuilder_ == null) { ensureBackfillRequestIsMutable(); backfillRequest_.set(index, builderForValue.build()); onChanged(); } else { backfillRequestBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public Builder addBackfillRequest(io.temporal.api.schedule.v1.BackfillRequest value) { if (backfillRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBackfillRequestIsMutable(); backfillRequest_.add(value); onChanged(); } else { backfillRequestBuilder_.addMessage(value); } return this; } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public Builder addBackfillRequest( int index, io.temporal.api.schedule.v1.BackfillRequest value) { if (backfillRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBackfillRequestIsMutable(); backfillRequest_.add(index, value); onChanged(); } else { backfillRequestBuilder_.addMessage(index, value); } return this; } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public Builder addBackfillRequest( io.temporal.api.schedule.v1.BackfillRequest.Builder builderForValue) { if (backfillRequestBuilder_ == null) { ensureBackfillRequestIsMutable(); backfillRequest_.add(builderForValue.build()); onChanged(); } else { backfillRequestBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public Builder addBackfillRequest( int index, io.temporal.api.schedule.v1.BackfillRequest.Builder builderForValue) { if (backfillRequestBuilder_ == null) { ensureBackfillRequestIsMutable(); backfillRequest_.add(index, builderForValue.build()); onChanged(); } else { backfillRequestBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public Builder addAllBackfillRequest( java.lang.Iterable values) { if (backfillRequestBuilder_ == null) { ensureBackfillRequestIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, backfillRequest_); onChanged(); } else { backfillRequestBuilder_.addAllMessages(values); } return this; } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public Builder clearBackfillRequest() { if (backfillRequestBuilder_ == null) { backfillRequest_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { backfillRequestBuilder_.clear(); } return this; } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public Builder removeBackfillRequest(int index) { if (backfillRequestBuilder_ == null) { ensureBackfillRequestIsMutable(); backfillRequest_.remove(index); onChanged(); } else { backfillRequestBuilder_.remove(index); } return this; } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public io.temporal.api.schedule.v1.BackfillRequest.Builder getBackfillRequestBuilder( int index) { return getBackfillRequestFieldBuilder().getBuilder(index); } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public io.temporal.api.schedule.v1.BackfillRequestOrBuilder getBackfillRequestOrBuilder( int index) { if (backfillRequestBuilder_ == null) { return backfillRequest_.get(index); } else { return backfillRequestBuilder_.getMessageOrBuilder(index); } } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public java.util.List getBackfillRequestOrBuilderList() { if (backfillRequestBuilder_ != null) { return backfillRequestBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(backfillRequest_); } } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public io.temporal.api.schedule.v1.BackfillRequest.Builder addBackfillRequestBuilder() { return getBackfillRequestFieldBuilder().addBuilder( io.temporal.api.schedule.v1.BackfillRequest.getDefaultInstance()); } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public io.temporal.api.schedule.v1.BackfillRequest.Builder addBackfillRequestBuilder( int index) { return getBackfillRequestFieldBuilder().addBuilder( index, io.temporal.api.schedule.v1.BackfillRequest.getDefaultInstance()); } /** *
     * If set, runs though the specified time period(s) and takes actions as if that time
     * passed by right now, all at once. The overlap policy can be overridden for the
     * scope of the backfill.
     * 
* * repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2; */ public java.util.List getBackfillRequestBuilderList() { return getBackfillRequestFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.BackfillRequest, io.temporal.api.schedule.v1.BackfillRequest.Builder, io.temporal.api.schedule.v1.BackfillRequestOrBuilder> getBackfillRequestFieldBuilder() { if (backfillRequestBuilder_ == null) { backfillRequestBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.BackfillRequest, io.temporal.api.schedule.v1.BackfillRequest.Builder, io.temporal.api.schedule.v1.BackfillRequestOrBuilder>( backfillRequest_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); backfillRequest_ = null; } return backfillRequestBuilder_; } private java.lang.Object pause_ = ""; /** *
     * If set, change the state to paused or unpaused (respectively) and set the
     * notes field to the value of the string.
     * 
* * string pause = 3; * @return The pause. */ public java.lang.String getPause() { java.lang.Object ref = pause_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pause_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * If set, change the state to paused or unpaused (respectively) and set the
     * notes field to the value of the string.
     * 
* * string pause = 3; * @return The bytes for pause. */ public com.google.protobuf.ByteString getPauseBytes() { java.lang.Object ref = pause_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pause_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * If set, change the state to paused or unpaused (respectively) and set the
     * notes field to the value of the string.
     * 
* * string pause = 3; * @param value The pause to set. * @return This builder for chaining. */ public Builder setPause( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pause_ = value; onChanged(); return this; } /** *
     * If set, change the state to paused or unpaused (respectively) and set the
     * notes field to the value of the string.
     * 
* * string pause = 3; * @return This builder for chaining. */ public Builder clearPause() { pause_ = getDefaultInstance().getPause(); onChanged(); return this; } /** *
     * If set, change the state to paused or unpaused (respectively) and set the
     * notes field to the value of the string.
     * 
* * string pause = 3; * @param value The bytes for pause to set. * @return This builder for chaining. */ public Builder setPauseBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pause_ = value; onChanged(); return this; } private java.lang.Object unpause_ = ""; /** * string unpause = 4; * @return The unpause. */ public java.lang.String getUnpause() { java.lang.Object ref = unpause_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unpause_ = s; return s; } else { return (java.lang.String) ref; } } /** * string unpause = 4; * @return The bytes for unpause. */ public com.google.protobuf.ByteString getUnpauseBytes() { java.lang.Object ref = unpause_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); unpause_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string unpause = 4; * @param value The unpause to set. * @return This builder for chaining. */ public Builder setUnpause( java.lang.String value) { if (value == null) { throw new NullPointerException(); } unpause_ = value; onChanged(); return this; } /** * string unpause = 4; * @return This builder for chaining. */ public Builder clearUnpause() { unpause_ = getDefaultInstance().getUnpause(); onChanged(); return this; } /** * string unpause = 4; * @param value The bytes for unpause to set. * @return This builder for chaining. */ public Builder setUnpauseBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); unpause_ = 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.SchedulePatch) } // @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.SchedulePatch) private static final io.temporal.api.schedule.v1.SchedulePatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.schedule.v1.SchedulePatch(); } public static io.temporal.api.schedule.v1.SchedulePatch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SchedulePatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SchedulePatch(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.SchedulePatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy