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

cz.proto.Stage Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: job.proto

package cz.proto;

/**
 * Protobuf type {@code cz.proto.Stage}
 */
public final class Stage extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:cz.proto.Stage)
    StageOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Stage.newBuilder() to construct.
  private Stage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Stage() {
    id_ = "";
    operators_ = java.util.Collections.emptyList();
  }

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

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

            id_ = s;
            break;
          }
          case 16: {

            batchSize_ = input.readUInt64();
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              operators_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            operators_.add(
                input.readMessage(cz.proto.Operator.parser(), extensionRegistry));
            break;
          }
          case 32: {

            dop_ = input.readUInt64();
            break;
          }
          case 40: {

            cpuCore_ = input.readUInt64();
            break;
          }
          case 48: {

            memoryMb_ = input.readUInt64();
            break;
          }
          case 56: {

            enforcedDop_ = input.readBool();
            break;
          }
          case 64: {

            index_ = input.readUInt64();
            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)) {
        operators_ = java.util.Collections.unmodifiableList(operators_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return cz.proto.JobProto.internal_static_cz_proto_Stage_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return cz.proto.JobProto.internal_static_cz_proto_Stage_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            cz.proto.Stage.class, cz.proto.Stage.Builder.class);
  }

  public static final int ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object id_;
  /**
   * string id = 1;
   * @return The id.
   */
  @java.lang.Override
  public java.lang.String getId() {
    java.lang.Object ref = id_;
    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();
      id_ = s;
      return s;
    }
  }
  /**
   * string id = 1;
   * @return The bytes for id.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getIdBytes() {
    java.lang.Object ref = id_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      id_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BATCHSIZE_FIELD_NUMBER = 2;
  private long batchSize_;
  /**
   * uint64 batchSize = 2;
   * @return The batchSize.
   */
  @java.lang.Override
  public long getBatchSize() {
    return batchSize_;
  }

  public static final int OPERATORS_FIELD_NUMBER = 3;
  private java.util.List operators_;
  /**
   * repeated .cz.proto.Operator operators = 3;
   */
  @java.lang.Override
  public java.util.List getOperatorsList() {
    return operators_;
  }
  /**
   * repeated .cz.proto.Operator operators = 3;
   */
  @java.lang.Override
  public java.util.List 
      getOperatorsOrBuilderList() {
    return operators_;
  }
  /**
   * repeated .cz.proto.Operator operators = 3;
   */
  @java.lang.Override
  public int getOperatorsCount() {
    return operators_.size();
  }
  /**
   * repeated .cz.proto.Operator operators = 3;
   */
  @java.lang.Override
  public cz.proto.Operator getOperators(int index) {
    return operators_.get(index);
  }
  /**
   * repeated .cz.proto.Operator operators = 3;
   */
  @java.lang.Override
  public cz.proto.OperatorOrBuilder getOperatorsOrBuilder(
      int index) {
    return operators_.get(index);
  }

  public static final int DOP_FIELD_NUMBER = 4;
  private long dop_;
  /**
   * uint64 dop = 4;
   * @return The dop.
   */
  @java.lang.Override
  public long getDop() {
    return dop_;
  }

  public static final int CPU_CORE_FIELD_NUMBER = 5;
  private long cpuCore_;
  /**
   * uint64 cpu_core = 5;
   * @return The cpuCore.
   */
  @java.lang.Override
  public long getCpuCore() {
    return cpuCore_;
  }

  public static final int MEMORY_MB_FIELD_NUMBER = 6;
  private long memoryMb_;
  /**
   * uint64 memory_mb = 6;
   * @return The memoryMb.
   */
  @java.lang.Override
  public long getMemoryMb() {
    return memoryMb_;
  }

  public static final int ENFORCED_DOP_FIELD_NUMBER = 7;
  private boolean enforcedDop_;
  /**
   * bool enforced_dop = 7;
   * @return The enforcedDop.
   */
  @java.lang.Override
  public boolean getEnforcedDop() {
    return enforcedDop_;
  }

  public static final int INDEX_FIELD_NUMBER = 8;
  private long index_;
  /**
   * uint64 index = 8;
   * @return The index.
   */
  @java.lang.Override
  public long getIndex() {
    return index_;
  }

  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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
    }
    if (batchSize_ != 0L) {
      output.writeUInt64(2, batchSize_);
    }
    for (int i = 0; i < operators_.size(); i++) {
      output.writeMessage(3, operators_.get(i));
    }
    if (dop_ != 0L) {
      output.writeUInt64(4, dop_);
    }
    if (cpuCore_ != 0L) {
      output.writeUInt64(5, cpuCore_);
    }
    if (memoryMb_ != 0L) {
      output.writeUInt64(6, memoryMb_);
    }
    if (enforcedDop_ != false) {
      output.writeBool(7, enforcedDop_);
    }
    if (index_ != 0L) {
      output.writeUInt64(8, index_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
    }
    if (batchSize_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(2, batchSize_);
    }
    for (int i = 0; i < operators_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, operators_.get(i));
    }
    if (dop_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(4, dop_);
    }
    if (cpuCore_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(5, cpuCore_);
    }
    if (memoryMb_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(6, memoryMb_);
    }
    if (enforcedDop_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(7, enforcedDop_);
    }
    if (index_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(8, index_);
    }
    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 cz.proto.Stage)) {
      return super.equals(obj);
    }
    cz.proto.Stage other = (cz.proto.Stage) obj;

    if (!getId()
        .equals(other.getId())) return false;
    if (getBatchSize()
        != other.getBatchSize()) return false;
    if (!getOperatorsList()
        .equals(other.getOperatorsList())) return false;
    if (getDop()
        != other.getDop()) return false;
    if (getCpuCore()
        != other.getCpuCore()) return false;
    if (getMemoryMb()
        != other.getMemoryMb()) return false;
    if (getEnforcedDop()
        != other.getEnforcedDop()) return false;
    if (getIndex()
        != other.getIndex()) 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) + ID_FIELD_NUMBER;
    hash = (53 * hash) + getId().hashCode();
    hash = (37 * hash) + BATCHSIZE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getBatchSize());
    if (getOperatorsCount() > 0) {
      hash = (37 * hash) + OPERATORS_FIELD_NUMBER;
      hash = (53 * hash) + getOperatorsList().hashCode();
    }
    hash = (37 * hash) + DOP_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getDop());
    hash = (37 * hash) + CPU_CORE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCpuCore());
    hash = (37 * hash) + MEMORY_MB_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getMemoryMb());
    hash = (37 * hash) + ENFORCED_DOP_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getEnforcedDop());
    hash = (37 * hash) + INDEX_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getIndex());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static cz.proto.Stage parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.Stage parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.Stage parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.Stage parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.Stage parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.Stage parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.Stage parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static cz.proto.Stage 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 cz.proto.Stage parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static cz.proto.Stage 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 cz.proto.Stage parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static cz.proto.Stage 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(cz.proto.Stage 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 cz.proto.Stage}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:cz.proto.Stage)
      cz.proto.StageOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return cz.proto.JobProto.internal_static_cz_proto_Stage_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return cz.proto.JobProto.internal_static_cz_proto_Stage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              cz.proto.Stage.class, cz.proto.Stage.Builder.class);
    }

    // Construct using cz.proto.Stage.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getOperatorsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      id_ = "";

      batchSize_ = 0L;

      if (operatorsBuilder_ == null) {
        operators_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        operatorsBuilder_.clear();
      }
      dop_ = 0L;

      cpuCore_ = 0L;

      memoryMb_ = 0L;

      enforcedDop_ = false;

      index_ = 0L;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return cz.proto.JobProto.internal_static_cz_proto_Stage_descriptor;
    }

    @java.lang.Override
    public cz.proto.Stage getDefaultInstanceForType() {
      return cz.proto.Stage.getDefaultInstance();
    }

    @java.lang.Override
    public cz.proto.Stage build() {
      cz.proto.Stage result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public cz.proto.Stage buildPartial() {
      cz.proto.Stage result = new cz.proto.Stage(this);
      int from_bitField0_ = bitField0_;
      result.id_ = id_;
      result.batchSize_ = batchSize_;
      if (operatorsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          operators_ = java.util.Collections.unmodifiableList(operators_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.operators_ = operators_;
      } else {
        result.operators_ = operatorsBuilder_.build();
      }
      result.dop_ = dop_;
      result.cpuCore_ = cpuCore_;
      result.memoryMb_ = memoryMb_;
      result.enforcedDop_ = enforcedDop_;
      result.index_ = index_;
      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 cz.proto.Stage) {
        return mergeFrom((cz.proto.Stage)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(cz.proto.Stage other) {
      if (other == cz.proto.Stage.getDefaultInstance()) return this;
      if (!other.getId().isEmpty()) {
        id_ = other.id_;
        onChanged();
      }
      if (other.getBatchSize() != 0L) {
        setBatchSize(other.getBatchSize());
      }
      if (operatorsBuilder_ == null) {
        if (!other.operators_.isEmpty()) {
          if (operators_.isEmpty()) {
            operators_ = other.operators_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureOperatorsIsMutable();
            operators_.addAll(other.operators_);
          }
          onChanged();
        }
      } else {
        if (!other.operators_.isEmpty()) {
          if (operatorsBuilder_.isEmpty()) {
            operatorsBuilder_.dispose();
            operatorsBuilder_ = null;
            operators_ = other.operators_;
            bitField0_ = (bitField0_ & ~0x00000001);
            operatorsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getOperatorsFieldBuilder() : null;
          } else {
            operatorsBuilder_.addAllMessages(other.operators_);
          }
        }
      }
      if (other.getDop() != 0L) {
        setDop(other.getDop());
      }
      if (other.getCpuCore() != 0L) {
        setCpuCore(other.getCpuCore());
      }
      if (other.getMemoryMb() != 0L) {
        setMemoryMb(other.getMemoryMb());
      }
      if (other.getEnforcedDop() != false) {
        setEnforcedDop(other.getEnforcedDop());
      }
      if (other.getIndex() != 0L) {
        setIndex(other.getIndex());
      }
      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 {
      cz.proto.Stage parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (cz.proto.Stage) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object id_ = "";
    /**
     * string id = 1;
     * @return The id.
     */
    public java.lang.String getId() {
      java.lang.Object ref = id_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        id_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string id = 1;
     * @return The bytes for id.
     */
    public com.google.protobuf.ByteString
        getIdBytes() {
      java.lang.Object ref = id_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        id_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string id = 1;
     * @param value The id to set.
     * @return This builder for chaining.
     */
    public Builder setId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      id_ = value;
      onChanged();
      return this;
    }
    /**
     * string id = 1;
     * @return This builder for chaining.
     */
    public Builder clearId() {
      
      id_ = getDefaultInstance().getId();
      onChanged();
      return this;
    }
    /**
     * string id = 1;
     * @param value The bytes for id to set.
     * @return This builder for chaining.
     */
    public Builder setIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      id_ = value;
      onChanged();
      return this;
    }

    private long batchSize_ ;
    /**
     * uint64 batchSize = 2;
     * @return The batchSize.
     */
    @java.lang.Override
    public long getBatchSize() {
      return batchSize_;
    }
    /**
     * uint64 batchSize = 2;
     * @param value The batchSize to set.
     * @return This builder for chaining.
     */
    public Builder setBatchSize(long value) {
      
      batchSize_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 batchSize = 2;
     * @return This builder for chaining.
     */
    public Builder clearBatchSize() {
      
      batchSize_ = 0L;
      onChanged();
      return this;
    }

    private java.util.List operators_ =
      java.util.Collections.emptyList();
    private void ensureOperatorsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        operators_ = new java.util.ArrayList(operators_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.Operator, cz.proto.Operator.Builder, cz.proto.OperatorOrBuilder> operatorsBuilder_;

    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public java.util.List getOperatorsList() {
      if (operatorsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(operators_);
      } else {
        return operatorsBuilder_.getMessageList();
      }
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public int getOperatorsCount() {
      if (operatorsBuilder_ == null) {
        return operators_.size();
      } else {
        return operatorsBuilder_.getCount();
      }
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public cz.proto.Operator getOperators(int index) {
      if (operatorsBuilder_ == null) {
        return operators_.get(index);
      } else {
        return operatorsBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public Builder setOperators(
        int index, cz.proto.Operator value) {
      if (operatorsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOperatorsIsMutable();
        operators_.set(index, value);
        onChanged();
      } else {
        operatorsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public Builder setOperators(
        int index, cz.proto.Operator.Builder builderForValue) {
      if (operatorsBuilder_ == null) {
        ensureOperatorsIsMutable();
        operators_.set(index, builderForValue.build());
        onChanged();
      } else {
        operatorsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public Builder addOperators(cz.proto.Operator value) {
      if (operatorsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOperatorsIsMutable();
        operators_.add(value);
        onChanged();
      } else {
        operatorsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public Builder addOperators(
        int index, cz.proto.Operator value) {
      if (operatorsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOperatorsIsMutable();
        operators_.add(index, value);
        onChanged();
      } else {
        operatorsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public Builder addOperators(
        cz.proto.Operator.Builder builderForValue) {
      if (operatorsBuilder_ == null) {
        ensureOperatorsIsMutable();
        operators_.add(builderForValue.build());
        onChanged();
      } else {
        operatorsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public Builder addOperators(
        int index, cz.proto.Operator.Builder builderForValue) {
      if (operatorsBuilder_ == null) {
        ensureOperatorsIsMutable();
        operators_.add(index, builderForValue.build());
        onChanged();
      } else {
        operatorsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public Builder addAllOperators(
        java.lang.Iterable values) {
      if (operatorsBuilder_ == null) {
        ensureOperatorsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, operators_);
        onChanged();
      } else {
        operatorsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public Builder clearOperators() {
      if (operatorsBuilder_ == null) {
        operators_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        operatorsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public Builder removeOperators(int index) {
      if (operatorsBuilder_ == null) {
        ensureOperatorsIsMutable();
        operators_.remove(index);
        onChanged();
      } else {
        operatorsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public cz.proto.Operator.Builder getOperatorsBuilder(
        int index) {
      return getOperatorsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public cz.proto.OperatorOrBuilder getOperatorsOrBuilder(
        int index) {
      if (operatorsBuilder_ == null) {
        return operators_.get(index);  } else {
        return operatorsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public java.util.List 
         getOperatorsOrBuilderList() {
      if (operatorsBuilder_ != null) {
        return operatorsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(operators_);
      }
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public cz.proto.Operator.Builder addOperatorsBuilder() {
      return getOperatorsFieldBuilder().addBuilder(
          cz.proto.Operator.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public cz.proto.Operator.Builder addOperatorsBuilder(
        int index) {
      return getOperatorsFieldBuilder().addBuilder(
          index, cz.proto.Operator.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.Operator operators = 3;
     */
    public java.util.List 
         getOperatorsBuilderList() {
      return getOperatorsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.Operator, cz.proto.Operator.Builder, cz.proto.OperatorOrBuilder> 
        getOperatorsFieldBuilder() {
      if (operatorsBuilder_ == null) {
        operatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            cz.proto.Operator, cz.proto.Operator.Builder, cz.proto.OperatorOrBuilder>(
                operators_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        operators_ = null;
      }
      return operatorsBuilder_;
    }

    private long dop_ ;
    /**
     * uint64 dop = 4;
     * @return The dop.
     */
    @java.lang.Override
    public long getDop() {
      return dop_;
    }
    /**
     * uint64 dop = 4;
     * @param value The dop to set.
     * @return This builder for chaining.
     */
    public Builder setDop(long value) {
      
      dop_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 dop = 4;
     * @return This builder for chaining.
     */
    public Builder clearDop() {
      
      dop_ = 0L;
      onChanged();
      return this;
    }

    private long cpuCore_ ;
    /**
     * uint64 cpu_core = 5;
     * @return The cpuCore.
     */
    @java.lang.Override
    public long getCpuCore() {
      return cpuCore_;
    }
    /**
     * uint64 cpu_core = 5;
     * @param value The cpuCore to set.
     * @return This builder for chaining.
     */
    public Builder setCpuCore(long value) {
      
      cpuCore_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 cpu_core = 5;
     * @return This builder for chaining.
     */
    public Builder clearCpuCore() {
      
      cpuCore_ = 0L;
      onChanged();
      return this;
    }

    private long memoryMb_ ;
    /**
     * uint64 memory_mb = 6;
     * @return The memoryMb.
     */
    @java.lang.Override
    public long getMemoryMb() {
      return memoryMb_;
    }
    /**
     * uint64 memory_mb = 6;
     * @param value The memoryMb to set.
     * @return This builder for chaining.
     */
    public Builder setMemoryMb(long value) {
      
      memoryMb_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 memory_mb = 6;
     * @return This builder for chaining.
     */
    public Builder clearMemoryMb() {
      
      memoryMb_ = 0L;
      onChanged();
      return this;
    }

    private boolean enforcedDop_ ;
    /**
     * bool enforced_dop = 7;
     * @return The enforcedDop.
     */
    @java.lang.Override
    public boolean getEnforcedDop() {
      return enforcedDop_;
    }
    /**
     * bool enforced_dop = 7;
     * @param value The enforcedDop to set.
     * @return This builder for chaining.
     */
    public Builder setEnforcedDop(boolean value) {
      
      enforcedDop_ = value;
      onChanged();
      return this;
    }
    /**
     * bool enforced_dop = 7;
     * @return This builder for chaining.
     */
    public Builder clearEnforcedDop() {
      
      enforcedDop_ = false;
      onChanged();
      return this;
    }

    private long index_ ;
    /**
     * uint64 index = 8;
     * @return The index.
     */
    @java.lang.Override
    public long getIndex() {
      return index_;
    }
    /**
     * uint64 index = 8;
     * @param value The index to set.
     * @return This builder for chaining.
     */
    public Builder setIndex(long value) {
      
      index_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 index = 8;
     * @return This builder for chaining.
     */
    public Builder clearIndex() {
      
      index_ = 0L;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:cz.proto.Stage)
  }

  // @@protoc_insertion_point(class_scope:cz.proto.Stage)
  private static final cz.proto.Stage DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new cz.proto.Stage();
  }

  public static cz.proto.Stage getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy