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

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Schedule(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            io.temporal.api.schedule.v1.ScheduleSpec.Builder subBuilder = null;
            if (spec_ != null) {
              subBuilder = spec_.toBuilder();
            }
            spec_ = input.readMessage(io.temporal.api.schedule.v1.ScheduleSpec.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(spec_);
              spec_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            io.temporal.api.schedule.v1.ScheduleAction.Builder subBuilder = null;
            if (action_ != null) {
              subBuilder = action_.toBuilder();
            }
            action_ = input.readMessage(io.temporal.api.schedule.v1.ScheduleAction.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(action_);
              action_ = subBuilder.buildPartial();
            }

            break;
          }
          case 26: {
            io.temporal.api.schedule.v1.SchedulePolicies.Builder subBuilder = null;
            if (policies_ != null) {
              subBuilder = policies_.toBuilder();
            }
            policies_ = input.readMessage(io.temporal.api.schedule.v1.SchedulePolicies.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(policies_);
              policies_ = subBuilder.buildPartial();
            }

            break;
          }
          case 34: {
            io.temporal.api.schedule.v1.ScheduleState.Builder subBuilder = null;
            if (state_ != null) {
              subBuilder = state_.toBuilder();
            }
            state_ = input.readMessage(io.temporal.api.schedule.v1.ScheduleState.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(state_);
              state_ = subBuilder.buildPartial();
            }

            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_Schedule_descriptor;
  }

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

  public static final int SPEC_FIELD_NUMBER = 1;
  private io.temporal.api.schedule.v1.ScheduleSpec spec_;
  /**
   * .temporal.api.schedule.v1.ScheduleSpec spec = 1;
   * @return Whether the spec field is set.
   */
  public boolean hasSpec() {
    return spec_ != null;
  }
  /**
   * .temporal.api.schedule.v1.ScheduleSpec spec = 1;
   * @return The spec.
   */
  public io.temporal.api.schedule.v1.ScheduleSpec getSpec() {
    return spec_ == null ? io.temporal.api.schedule.v1.ScheduleSpec.getDefaultInstance() : spec_;
  }
  /**
   * .temporal.api.schedule.v1.ScheduleSpec spec = 1;
   */
  public io.temporal.api.schedule.v1.ScheduleSpecOrBuilder getSpecOrBuilder() {
    return getSpec();
  }

  public static final int ACTION_FIELD_NUMBER = 2;
  private io.temporal.api.schedule.v1.ScheduleAction action_;
  /**
   * .temporal.api.schedule.v1.ScheduleAction action = 2;
   * @return Whether the action field is set.
   */
  public boolean hasAction() {
    return action_ != null;
  }
  /**
   * .temporal.api.schedule.v1.ScheduleAction action = 2;
   * @return The action.
   */
  public io.temporal.api.schedule.v1.ScheduleAction getAction() {
    return action_ == null ? io.temporal.api.schedule.v1.ScheduleAction.getDefaultInstance() : action_;
  }
  /**
   * .temporal.api.schedule.v1.ScheduleAction action = 2;
   */
  public io.temporal.api.schedule.v1.ScheduleActionOrBuilder getActionOrBuilder() {
    return getAction();
  }

  public static final int POLICIES_FIELD_NUMBER = 3;
  private io.temporal.api.schedule.v1.SchedulePolicies policies_;
  /**
   * .temporal.api.schedule.v1.SchedulePolicies policies = 3;
   * @return Whether the policies field is set.
   */
  public boolean hasPolicies() {
    return policies_ != null;
  }
  /**
   * .temporal.api.schedule.v1.SchedulePolicies policies = 3;
   * @return The policies.
   */
  public io.temporal.api.schedule.v1.SchedulePolicies getPolicies() {
    return policies_ == null ? io.temporal.api.schedule.v1.SchedulePolicies.getDefaultInstance() : policies_;
  }
  /**
   * .temporal.api.schedule.v1.SchedulePolicies policies = 3;
   */
  public io.temporal.api.schedule.v1.SchedulePoliciesOrBuilder getPoliciesOrBuilder() {
    return getPolicies();
  }

  public static final int STATE_FIELD_NUMBER = 4;
  private io.temporal.api.schedule.v1.ScheduleState state_;
  /**
   * .temporal.api.schedule.v1.ScheduleState state = 4;
   * @return Whether the state field is set.
   */
  public boolean hasState() {
    return state_ != null;
  }
  /**
   * .temporal.api.schedule.v1.ScheduleState state = 4;
   * @return The state.
   */
  public io.temporal.api.schedule.v1.ScheduleState getState() {
    return state_ == null ? io.temporal.api.schedule.v1.ScheduleState.getDefaultInstance() : state_;
  }
  /**
   * .temporal.api.schedule.v1.ScheduleState state = 4;
   */
  public io.temporal.api.schedule.v1.ScheduleStateOrBuilder getStateOrBuilder() {
    return getState();
  }

  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 (spec_ != null) {
      output.writeMessage(1, getSpec());
    }
    if (action_ != null) {
      output.writeMessage(2, getAction());
    }
    if (policies_ != null) {
      output.writeMessage(3, getPolicies());
    }
    if (state_ != null) {
      output.writeMessage(4, getState());
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (spec_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getSpec());
    }
    if (action_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getAction());
    }
    if (policies_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getPolicies());
    }
    if (state_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getState());
    }
    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.Schedule)) {
      return super.equals(obj);
    }
    io.temporal.api.schedule.v1.Schedule other = (io.temporal.api.schedule.v1.Schedule) obj;

    if (hasSpec() != other.hasSpec()) return false;
    if (hasSpec()) {
      if (!getSpec()
          .equals(other.getSpec())) return false;
    }
    if (hasAction() != other.hasAction()) return false;
    if (hasAction()) {
      if (!getAction()
          .equals(other.getAction())) return false;
    }
    if (hasPolicies() != other.hasPolicies()) return false;
    if (hasPolicies()) {
      if (!getPolicies()
          .equals(other.getPolicies())) return false;
    }
    if (hasState() != other.hasState()) return false;
    if (hasState()) {
      if (!getState()
          .equals(other.getState())) 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 (hasSpec()) {
      hash = (37 * hash) + SPEC_FIELD_NUMBER;
      hash = (53 * hash) + getSpec().hashCode();
    }
    if (hasAction()) {
      hash = (37 * hash) + ACTION_FIELD_NUMBER;
      hash = (53 * hash) + getAction().hashCode();
    }
    if (hasPolicies()) {
      hash = (37 * hash) + POLICIES_FIELD_NUMBER;
      hash = (53 * hash) + getPolicies().hashCode();
    }
    if (hasState()) {
      hash = (37 * hash) + STATE_FIELD_NUMBER;
      hash = (53 * hash) + getState().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.temporal.api.schedule.v1.Schedule parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.temporal.api.schedule.v1.Schedule 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.Schedule parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.temporal.api.schedule.v1.Schedule 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.Schedule parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.temporal.api.schedule.v1.Schedule 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.Schedule parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.temporal.api.schedule.v1.Schedule 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.Schedule parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.temporal.api.schedule.v1.Schedule 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.Schedule 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.Schedule 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.Schedule 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.Schedule}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:temporal.api.schedule.v1.Schedule)
      io.temporal.api.schedule.v1.ScheduleOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_Schedule_descriptor;
    }

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

    // Construct using io.temporal.api.schedule.v1.Schedule.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (specBuilder_ == null) {
        spec_ = null;
      } else {
        spec_ = null;
        specBuilder_ = null;
      }
      if (actionBuilder_ == null) {
        action_ = null;
      } else {
        action_ = null;
        actionBuilder_ = null;
      }
      if (policiesBuilder_ == null) {
        policies_ = null;
      } else {
        policies_ = null;
        policiesBuilder_ = null;
      }
      if (stateBuilder_ == null) {
        state_ = null;
      } else {
        state_ = null;
        stateBuilder_ = null;
      }
      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_Schedule_descriptor;
    }

    @java.lang.Override
    public io.temporal.api.schedule.v1.Schedule getDefaultInstanceForType() {
      return io.temporal.api.schedule.v1.Schedule.getDefaultInstance();
    }

    @java.lang.Override
    public io.temporal.api.schedule.v1.Schedule build() {
      io.temporal.api.schedule.v1.Schedule result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.temporal.api.schedule.v1.Schedule buildPartial() {
      io.temporal.api.schedule.v1.Schedule result = new io.temporal.api.schedule.v1.Schedule(this);
      if (specBuilder_ == null) {
        result.spec_ = spec_;
      } else {
        result.spec_ = specBuilder_.build();
      }
      if (actionBuilder_ == null) {
        result.action_ = action_;
      } else {
        result.action_ = actionBuilder_.build();
      }
      if (policiesBuilder_ == null) {
        result.policies_ = policies_;
      } else {
        result.policies_ = policiesBuilder_.build();
      }
      if (stateBuilder_ == null) {
        result.state_ = state_;
      } else {
        result.state_ = stateBuilder_.build();
      }
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof io.temporal.api.schedule.v1.Schedule) {
        return mergeFrom((io.temporal.api.schedule.v1.Schedule)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.temporal.api.schedule.v1.Schedule other) {
      if (other == io.temporal.api.schedule.v1.Schedule.getDefaultInstance()) return this;
      if (other.hasSpec()) {
        mergeSpec(other.getSpec());
      }
      if (other.hasAction()) {
        mergeAction(other.getAction());
      }
      if (other.hasPolicies()) {
        mergePolicies(other.getPolicies());
      }
      if (other.hasState()) {
        mergeState(other.getState());
      }
      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.Schedule parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.temporal.api.schedule.v1.Schedule) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private io.temporal.api.schedule.v1.ScheduleSpec spec_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.temporal.api.schedule.v1.ScheduleSpec, io.temporal.api.schedule.v1.ScheduleSpec.Builder, io.temporal.api.schedule.v1.ScheduleSpecOrBuilder> specBuilder_;
    /**
     * .temporal.api.schedule.v1.ScheduleSpec spec = 1;
     * @return Whether the spec field is set.
     */
    public boolean hasSpec() {
      return specBuilder_ != null || spec_ != null;
    }
    /**
     * .temporal.api.schedule.v1.ScheduleSpec spec = 1;
     * @return The spec.
     */
    public io.temporal.api.schedule.v1.ScheduleSpec getSpec() {
      if (specBuilder_ == null) {
        return spec_ == null ? io.temporal.api.schedule.v1.ScheduleSpec.getDefaultInstance() : spec_;
      } else {
        return specBuilder_.getMessage();
      }
    }
    /**
     * .temporal.api.schedule.v1.ScheduleSpec spec = 1;
     */
    public Builder setSpec(io.temporal.api.schedule.v1.ScheduleSpec value) {
      if (specBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        spec_ = value;
        onChanged();
      } else {
        specBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.ScheduleSpec spec = 1;
     */
    public Builder setSpec(
        io.temporal.api.schedule.v1.ScheduleSpec.Builder builderForValue) {
      if (specBuilder_ == null) {
        spec_ = builderForValue.build();
        onChanged();
      } else {
        specBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.ScheduleSpec spec = 1;
     */
    public Builder mergeSpec(io.temporal.api.schedule.v1.ScheduleSpec value) {
      if (specBuilder_ == null) {
        if (spec_ != null) {
          spec_ =
            io.temporal.api.schedule.v1.ScheduleSpec.newBuilder(spec_).mergeFrom(value).buildPartial();
        } else {
          spec_ = value;
        }
        onChanged();
      } else {
        specBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.ScheduleSpec spec = 1;
     */
    public Builder clearSpec() {
      if (specBuilder_ == null) {
        spec_ = null;
        onChanged();
      } else {
        spec_ = null;
        specBuilder_ = null;
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.ScheduleSpec spec = 1;
     */
    public io.temporal.api.schedule.v1.ScheduleSpec.Builder getSpecBuilder() {
      
      onChanged();
      return getSpecFieldBuilder().getBuilder();
    }
    /**
     * .temporal.api.schedule.v1.ScheduleSpec spec = 1;
     */
    public io.temporal.api.schedule.v1.ScheduleSpecOrBuilder getSpecOrBuilder() {
      if (specBuilder_ != null) {
        return specBuilder_.getMessageOrBuilder();
      } else {
        return spec_ == null ?
            io.temporal.api.schedule.v1.ScheduleSpec.getDefaultInstance() : spec_;
      }
    }
    /**
     * .temporal.api.schedule.v1.ScheduleSpec spec = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.temporal.api.schedule.v1.ScheduleSpec, io.temporal.api.schedule.v1.ScheduleSpec.Builder, io.temporal.api.schedule.v1.ScheduleSpecOrBuilder> 
        getSpecFieldBuilder() {
      if (specBuilder_ == null) {
        specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.temporal.api.schedule.v1.ScheduleSpec, io.temporal.api.schedule.v1.ScheduleSpec.Builder, io.temporal.api.schedule.v1.ScheduleSpecOrBuilder>(
                getSpec(),
                getParentForChildren(),
                isClean());
        spec_ = null;
      }
      return specBuilder_;
    }

    private io.temporal.api.schedule.v1.ScheduleAction action_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.temporal.api.schedule.v1.ScheduleAction, io.temporal.api.schedule.v1.ScheduleAction.Builder, io.temporal.api.schedule.v1.ScheduleActionOrBuilder> actionBuilder_;
    /**
     * .temporal.api.schedule.v1.ScheduleAction action = 2;
     * @return Whether the action field is set.
     */
    public boolean hasAction() {
      return actionBuilder_ != null || action_ != null;
    }
    /**
     * .temporal.api.schedule.v1.ScheduleAction action = 2;
     * @return The action.
     */
    public io.temporal.api.schedule.v1.ScheduleAction getAction() {
      if (actionBuilder_ == null) {
        return action_ == null ? io.temporal.api.schedule.v1.ScheduleAction.getDefaultInstance() : action_;
      } else {
        return actionBuilder_.getMessage();
      }
    }
    /**
     * .temporal.api.schedule.v1.ScheduleAction action = 2;
     */
    public Builder setAction(io.temporal.api.schedule.v1.ScheduleAction value) {
      if (actionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        action_ = value;
        onChanged();
      } else {
        actionBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.ScheduleAction action = 2;
     */
    public Builder setAction(
        io.temporal.api.schedule.v1.ScheduleAction.Builder builderForValue) {
      if (actionBuilder_ == null) {
        action_ = builderForValue.build();
        onChanged();
      } else {
        actionBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.ScheduleAction action = 2;
     */
    public Builder mergeAction(io.temporal.api.schedule.v1.ScheduleAction value) {
      if (actionBuilder_ == null) {
        if (action_ != null) {
          action_ =
            io.temporal.api.schedule.v1.ScheduleAction.newBuilder(action_).mergeFrom(value).buildPartial();
        } else {
          action_ = value;
        }
        onChanged();
      } else {
        actionBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.ScheduleAction action = 2;
     */
    public Builder clearAction() {
      if (actionBuilder_ == null) {
        action_ = null;
        onChanged();
      } else {
        action_ = null;
        actionBuilder_ = null;
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.ScheduleAction action = 2;
     */
    public io.temporal.api.schedule.v1.ScheduleAction.Builder getActionBuilder() {
      
      onChanged();
      return getActionFieldBuilder().getBuilder();
    }
    /**
     * .temporal.api.schedule.v1.ScheduleAction action = 2;
     */
    public io.temporal.api.schedule.v1.ScheduleActionOrBuilder getActionOrBuilder() {
      if (actionBuilder_ != null) {
        return actionBuilder_.getMessageOrBuilder();
      } else {
        return action_ == null ?
            io.temporal.api.schedule.v1.ScheduleAction.getDefaultInstance() : action_;
      }
    }
    /**
     * .temporal.api.schedule.v1.ScheduleAction action = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.temporal.api.schedule.v1.ScheduleAction, io.temporal.api.schedule.v1.ScheduleAction.Builder, io.temporal.api.schedule.v1.ScheduleActionOrBuilder> 
        getActionFieldBuilder() {
      if (actionBuilder_ == null) {
        actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.temporal.api.schedule.v1.ScheduleAction, io.temporal.api.schedule.v1.ScheduleAction.Builder, io.temporal.api.schedule.v1.ScheduleActionOrBuilder>(
                getAction(),
                getParentForChildren(),
                isClean());
        action_ = null;
      }
      return actionBuilder_;
    }

    private io.temporal.api.schedule.v1.SchedulePolicies policies_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.temporal.api.schedule.v1.SchedulePolicies, io.temporal.api.schedule.v1.SchedulePolicies.Builder, io.temporal.api.schedule.v1.SchedulePoliciesOrBuilder> policiesBuilder_;
    /**
     * .temporal.api.schedule.v1.SchedulePolicies policies = 3;
     * @return Whether the policies field is set.
     */
    public boolean hasPolicies() {
      return policiesBuilder_ != null || policies_ != null;
    }
    /**
     * .temporal.api.schedule.v1.SchedulePolicies policies = 3;
     * @return The policies.
     */
    public io.temporal.api.schedule.v1.SchedulePolicies getPolicies() {
      if (policiesBuilder_ == null) {
        return policies_ == null ? io.temporal.api.schedule.v1.SchedulePolicies.getDefaultInstance() : policies_;
      } else {
        return policiesBuilder_.getMessage();
      }
    }
    /**
     * .temporal.api.schedule.v1.SchedulePolicies policies = 3;
     */
    public Builder setPolicies(io.temporal.api.schedule.v1.SchedulePolicies value) {
      if (policiesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        policies_ = value;
        onChanged();
      } else {
        policiesBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.SchedulePolicies policies = 3;
     */
    public Builder setPolicies(
        io.temporal.api.schedule.v1.SchedulePolicies.Builder builderForValue) {
      if (policiesBuilder_ == null) {
        policies_ = builderForValue.build();
        onChanged();
      } else {
        policiesBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.SchedulePolicies policies = 3;
     */
    public Builder mergePolicies(io.temporal.api.schedule.v1.SchedulePolicies value) {
      if (policiesBuilder_ == null) {
        if (policies_ != null) {
          policies_ =
            io.temporal.api.schedule.v1.SchedulePolicies.newBuilder(policies_).mergeFrom(value).buildPartial();
        } else {
          policies_ = value;
        }
        onChanged();
      } else {
        policiesBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.SchedulePolicies policies = 3;
     */
    public Builder clearPolicies() {
      if (policiesBuilder_ == null) {
        policies_ = null;
        onChanged();
      } else {
        policies_ = null;
        policiesBuilder_ = null;
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.SchedulePolicies policies = 3;
     */
    public io.temporal.api.schedule.v1.SchedulePolicies.Builder getPoliciesBuilder() {
      
      onChanged();
      return getPoliciesFieldBuilder().getBuilder();
    }
    /**
     * .temporal.api.schedule.v1.SchedulePolicies policies = 3;
     */
    public io.temporal.api.schedule.v1.SchedulePoliciesOrBuilder getPoliciesOrBuilder() {
      if (policiesBuilder_ != null) {
        return policiesBuilder_.getMessageOrBuilder();
      } else {
        return policies_ == null ?
            io.temporal.api.schedule.v1.SchedulePolicies.getDefaultInstance() : policies_;
      }
    }
    /**
     * .temporal.api.schedule.v1.SchedulePolicies policies = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.temporal.api.schedule.v1.SchedulePolicies, io.temporal.api.schedule.v1.SchedulePolicies.Builder, io.temporal.api.schedule.v1.SchedulePoliciesOrBuilder> 
        getPoliciesFieldBuilder() {
      if (policiesBuilder_ == null) {
        policiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.temporal.api.schedule.v1.SchedulePolicies, io.temporal.api.schedule.v1.SchedulePolicies.Builder, io.temporal.api.schedule.v1.SchedulePoliciesOrBuilder>(
                getPolicies(),
                getParentForChildren(),
                isClean());
        policies_ = null;
      }
      return policiesBuilder_;
    }

    private io.temporal.api.schedule.v1.ScheduleState state_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.temporal.api.schedule.v1.ScheduleState, io.temporal.api.schedule.v1.ScheduleState.Builder, io.temporal.api.schedule.v1.ScheduleStateOrBuilder> stateBuilder_;
    /**
     * .temporal.api.schedule.v1.ScheduleState state = 4;
     * @return Whether the state field is set.
     */
    public boolean hasState() {
      return stateBuilder_ != null || state_ != null;
    }
    /**
     * .temporal.api.schedule.v1.ScheduleState state = 4;
     * @return The state.
     */
    public io.temporal.api.schedule.v1.ScheduleState getState() {
      if (stateBuilder_ == null) {
        return state_ == null ? io.temporal.api.schedule.v1.ScheduleState.getDefaultInstance() : state_;
      } else {
        return stateBuilder_.getMessage();
      }
    }
    /**
     * .temporal.api.schedule.v1.ScheduleState state = 4;
     */
    public Builder setState(io.temporal.api.schedule.v1.ScheduleState value) {
      if (stateBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        state_ = value;
        onChanged();
      } else {
        stateBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.ScheduleState state = 4;
     */
    public Builder setState(
        io.temporal.api.schedule.v1.ScheduleState.Builder builderForValue) {
      if (stateBuilder_ == null) {
        state_ = builderForValue.build();
        onChanged();
      } else {
        stateBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.ScheduleState state = 4;
     */
    public Builder mergeState(io.temporal.api.schedule.v1.ScheduleState value) {
      if (stateBuilder_ == null) {
        if (state_ != null) {
          state_ =
            io.temporal.api.schedule.v1.ScheduleState.newBuilder(state_).mergeFrom(value).buildPartial();
        } else {
          state_ = value;
        }
        onChanged();
      } else {
        stateBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.ScheduleState state = 4;
     */
    public Builder clearState() {
      if (stateBuilder_ == null) {
        state_ = null;
        onChanged();
      } else {
        state_ = null;
        stateBuilder_ = null;
      }

      return this;
    }
    /**
     * .temporal.api.schedule.v1.ScheduleState state = 4;
     */
    public io.temporal.api.schedule.v1.ScheduleState.Builder getStateBuilder() {
      
      onChanged();
      return getStateFieldBuilder().getBuilder();
    }
    /**
     * .temporal.api.schedule.v1.ScheduleState state = 4;
     */
    public io.temporal.api.schedule.v1.ScheduleStateOrBuilder getStateOrBuilder() {
      if (stateBuilder_ != null) {
        return stateBuilder_.getMessageOrBuilder();
      } else {
        return state_ == null ?
            io.temporal.api.schedule.v1.ScheduleState.getDefaultInstance() : state_;
      }
    }
    /**
     * .temporal.api.schedule.v1.ScheduleState state = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.temporal.api.schedule.v1.ScheduleState, io.temporal.api.schedule.v1.ScheduleState.Builder, io.temporal.api.schedule.v1.ScheduleStateOrBuilder> 
        getStateFieldBuilder() {
      if (stateBuilder_ == null) {
        stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.temporal.api.schedule.v1.ScheduleState, io.temporal.api.schedule.v1.ScheduleState.Builder, io.temporal.api.schedule.v1.ScheduleStateOrBuilder>(
                getState(),
                getParentForChildren(),
                isClean());
        state_ = null;
      }
      return stateBuilder_;
    }
    @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.Schedule)
  }

  // @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.Schedule)
  private static final io.temporal.api.schedule.v1.Schedule DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.temporal.api.schedule.v1.Schedule();
  }

  public static io.temporal.api.schedule.v1.Schedule getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public Schedule parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new Schedule(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.Schedule getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy