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

cz.proto.SimplifyDag 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.SimplifyDag}
 */
public final class SimplifyDag extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:cz.proto.SimplifyDag)
    SimplifyDagOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SimplifyDag.newBuilder() to construct.
  private SimplifyDag(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private SimplifyDag() {
    stages_ = java.util.Collections.emptyList();
    inputTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    outputTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private SimplifyDag(
      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: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              stages_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            stages_.add(
                input.readMessage(cz.proto.SimplifyDagVertex.parser(), extensionRegistry));
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              inputTables_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            inputTables_.add(s);
            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              outputTables_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000004;
            }
            outputTables_.add(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)) {
        stages_ = java.util.Collections.unmodifiableList(stages_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        inputTables_ = inputTables_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000004) != 0)) {
        outputTables_ = outputTables_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return cz.proto.JobProto.internal_static_cz_proto_SimplifyDag_descriptor;
  }

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

  public static final int STAGES_FIELD_NUMBER = 1;
  private java.util.List stages_;
  /**
   * repeated .cz.proto.SimplifyDagVertex stages = 1;
   */
  @java.lang.Override
  public java.util.List getStagesList() {
    return stages_;
  }
  /**
   * repeated .cz.proto.SimplifyDagVertex stages = 1;
   */
  @java.lang.Override
  public java.util.List 
      getStagesOrBuilderList() {
    return stages_;
  }
  /**
   * repeated .cz.proto.SimplifyDagVertex stages = 1;
   */
  @java.lang.Override
  public int getStagesCount() {
    return stages_.size();
  }
  /**
   * repeated .cz.proto.SimplifyDagVertex stages = 1;
   */
  @java.lang.Override
  public cz.proto.SimplifyDagVertex getStages(int index) {
    return stages_.get(index);
  }
  /**
   * repeated .cz.proto.SimplifyDagVertex stages = 1;
   */
  @java.lang.Override
  public cz.proto.SimplifyDagVertexOrBuilder getStagesOrBuilder(
      int index) {
    return stages_.get(index);
  }

  public static final int INPUT_TABLES_FIELD_NUMBER = 2;
  private com.google.protobuf.LazyStringList inputTables_;
  /**
   * repeated string input_tables = 2;
   * @return A list containing the inputTables.
   */
  public com.google.protobuf.ProtocolStringList
      getInputTablesList() {
    return inputTables_;
  }
  /**
   * repeated string input_tables = 2;
   * @return The count of inputTables.
   */
  public int getInputTablesCount() {
    return inputTables_.size();
  }
  /**
   * repeated string input_tables = 2;
   * @param index The index of the element to return.
   * @return The inputTables at the given index.
   */
  public java.lang.String getInputTables(int index) {
    return inputTables_.get(index);
  }
  /**
   * repeated string input_tables = 2;
   * @param index The index of the value to return.
   * @return The bytes of the inputTables at the given index.
   */
  public com.google.protobuf.ByteString
      getInputTablesBytes(int index) {
    return inputTables_.getByteString(index);
  }

  public static final int OUTPUT_TABLES_FIELD_NUMBER = 3;
  private com.google.protobuf.LazyStringList outputTables_;
  /**
   * repeated string output_tables = 3;
   * @return A list containing the outputTables.
   */
  public com.google.protobuf.ProtocolStringList
      getOutputTablesList() {
    return outputTables_;
  }
  /**
   * repeated string output_tables = 3;
   * @return The count of outputTables.
   */
  public int getOutputTablesCount() {
    return outputTables_.size();
  }
  /**
   * repeated string output_tables = 3;
   * @param index The index of the element to return.
   * @return The outputTables at the given index.
   */
  public java.lang.String getOutputTables(int index) {
    return outputTables_.get(index);
  }
  /**
   * repeated string output_tables = 3;
   * @param index The index of the value to return.
   * @return The bytes of the outputTables at the given index.
   */
  public com.google.protobuf.ByteString
      getOutputTablesBytes(int index) {
    return outputTables_.getByteString(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 {
    for (int i = 0; i < stages_.size(); i++) {
      output.writeMessage(1, stages_.get(i));
    }
    for (int i = 0; i < inputTables_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputTables_.getRaw(i));
    }
    for (int i = 0; i < outputTables_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputTables_.getRaw(i));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < stages_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, stages_.get(i));
    }
    {
      int dataSize = 0;
      for (int i = 0; i < inputTables_.size(); i++) {
        dataSize += computeStringSizeNoTag(inputTables_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getInputTablesList().size();
    }
    {
      int dataSize = 0;
      for (int i = 0; i < outputTables_.size(); i++) {
        dataSize += computeStringSizeNoTag(outputTables_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getOutputTablesList().size();
    }
    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.SimplifyDag)) {
      return super.equals(obj);
    }
    cz.proto.SimplifyDag other = (cz.proto.SimplifyDag) obj;

    if (!getStagesList()
        .equals(other.getStagesList())) return false;
    if (!getInputTablesList()
        .equals(other.getInputTablesList())) return false;
    if (!getOutputTablesList()
        .equals(other.getOutputTablesList())) 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 (getStagesCount() > 0) {
      hash = (37 * hash) + STAGES_FIELD_NUMBER;
      hash = (53 * hash) + getStagesList().hashCode();
    }
    if (getInputTablesCount() > 0) {
      hash = (37 * hash) + INPUT_TABLES_FIELD_NUMBER;
      hash = (53 * hash) + getInputTablesList().hashCode();
    }
    if (getOutputTablesCount() > 0) {
      hash = (37 * hash) + OUTPUT_TABLES_FIELD_NUMBER;
      hash = (53 * hash) + getOutputTablesList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getStagesFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (stagesBuilder_ == null) {
        stages_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        stagesBuilder_.clear();
      }
      inputTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000002);
      outputTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000004);
      return this;
    }

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

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

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

    @java.lang.Override
    public cz.proto.SimplifyDag buildPartial() {
      cz.proto.SimplifyDag result = new cz.proto.SimplifyDag(this);
      int from_bitField0_ = bitField0_;
      if (stagesBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          stages_ = java.util.Collections.unmodifiableList(stages_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.stages_ = stages_;
      } else {
        result.stages_ = stagesBuilder_.build();
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        inputTables_ = inputTables_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000002);
      }
      result.inputTables_ = inputTables_;
      if (((bitField0_ & 0x00000004) != 0)) {
        outputTables_ = outputTables_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000004);
      }
      result.outputTables_ = outputTables_;
      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.SimplifyDag) {
        return mergeFrom((cz.proto.SimplifyDag)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(cz.proto.SimplifyDag other) {
      if (other == cz.proto.SimplifyDag.getDefaultInstance()) return this;
      if (stagesBuilder_ == null) {
        if (!other.stages_.isEmpty()) {
          if (stages_.isEmpty()) {
            stages_ = other.stages_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureStagesIsMutable();
            stages_.addAll(other.stages_);
          }
          onChanged();
        }
      } else {
        if (!other.stages_.isEmpty()) {
          if (stagesBuilder_.isEmpty()) {
            stagesBuilder_.dispose();
            stagesBuilder_ = null;
            stages_ = other.stages_;
            bitField0_ = (bitField0_ & ~0x00000001);
            stagesBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getStagesFieldBuilder() : null;
          } else {
            stagesBuilder_.addAllMessages(other.stages_);
          }
        }
      }
      if (!other.inputTables_.isEmpty()) {
        if (inputTables_.isEmpty()) {
          inputTables_ = other.inputTables_;
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          ensureInputTablesIsMutable();
          inputTables_.addAll(other.inputTables_);
        }
        onChanged();
      }
      if (!other.outputTables_.isEmpty()) {
        if (outputTables_.isEmpty()) {
          outputTables_ = other.outputTables_;
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          ensureOutputTablesIsMutable();
          outputTables_.addAll(other.outputTables_);
        }
        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 {
      cz.proto.SimplifyDag parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (cz.proto.SimplifyDag) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

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

    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.SimplifyDagVertex, cz.proto.SimplifyDagVertex.Builder, cz.proto.SimplifyDagVertexOrBuilder> stagesBuilder_;

    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public java.util.List getStagesList() {
      if (stagesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(stages_);
      } else {
        return stagesBuilder_.getMessageList();
      }
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public int getStagesCount() {
      if (stagesBuilder_ == null) {
        return stages_.size();
      } else {
        return stagesBuilder_.getCount();
      }
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public cz.proto.SimplifyDagVertex getStages(int index) {
      if (stagesBuilder_ == null) {
        return stages_.get(index);
      } else {
        return stagesBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public Builder setStages(
        int index, cz.proto.SimplifyDagVertex value) {
      if (stagesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureStagesIsMutable();
        stages_.set(index, value);
        onChanged();
      } else {
        stagesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public Builder setStages(
        int index, cz.proto.SimplifyDagVertex.Builder builderForValue) {
      if (stagesBuilder_ == null) {
        ensureStagesIsMutable();
        stages_.set(index, builderForValue.build());
        onChanged();
      } else {
        stagesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public Builder addStages(cz.proto.SimplifyDagVertex value) {
      if (stagesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureStagesIsMutable();
        stages_.add(value);
        onChanged();
      } else {
        stagesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public Builder addStages(
        int index, cz.proto.SimplifyDagVertex value) {
      if (stagesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureStagesIsMutable();
        stages_.add(index, value);
        onChanged();
      } else {
        stagesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public Builder addStages(
        cz.proto.SimplifyDagVertex.Builder builderForValue) {
      if (stagesBuilder_ == null) {
        ensureStagesIsMutable();
        stages_.add(builderForValue.build());
        onChanged();
      } else {
        stagesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public Builder addStages(
        int index, cz.proto.SimplifyDagVertex.Builder builderForValue) {
      if (stagesBuilder_ == null) {
        ensureStagesIsMutable();
        stages_.add(index, builderForValue.build());
        onChanged();
      } else {
        stagesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public Builder addAllStages(
        java.lang.Iterable values) {
      if (stagesBuilder_ == null) {
        ensureStagesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, stages_);
        onChanged();
      } else {
        stagesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public Builder clearStages() {
      if (stagesBuilder_ == null) {
        stages_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        stagesBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public Builder removeStages(int index) {
      if (stagesBuilder_ == null) {
        ensureStagesIsMutable();
        stages_.remove(index);
        onChanged();
      } else {
        stagesBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public cz.proto.SimplifyDagVertex.Builder getStagesBuilder(
        int index) {
      return getStagesFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public cz.proto.SimplifyDagVertexOrBuilder getStagesOrBuilder(
        int index) {
      if (stagesBuilder_ == null) {
        return stages_.get(index);  } else {
        return stagesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public java.util.List 
         getStagesOrBuilderList() {
      if (stagesBuilder_ != null) {
        return stagesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(stages_);
      }
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public cz.proto.SimplifyDagVertex.Builder addStagesBuilder() {
      return getStagesFieldBuilder().addBuilder(
          cz.proto.SimplifyDagVertex.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public cz.proto.SimplifyDagVertex.Builder addStagesBuilder(
        int index) {
      return getStagesFieldBuilder().addBuilder(
          index, cz.proto.SimplifyDagVertex.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.SimplifyDagVertex stages = 1;
     */
    public java.util.List 
         getStagesBuilderList() {
      return getStagesFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.SimplifyDagVertex, cz.proto.SimplifyDagVertex.Builder, cz.proto.SimplifyDagVertexOrBuilder> 
        getStagesFieldBuilder() {
      if (stagesBuilder_ == null) {
        stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            cz.proto.SimplifyDagVertex, cz.proto.SimplifyDagVertex.Builder, cz.proto.SimplifyDagVertexOrBuilder>(
                stages_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        stages_ = null;
      }
      return stagesBuilder_;
    }

    private com.google.protobuf.LazyStringList inputTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureInputTablesIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        inputTables_ = new com.google.protobuf.LazyStringArrayList(inputTables_);
        bitField0_ |= 0x00000002;
       }
    }
    /**
     * repeated string input_tables = 2;
     * @return A list containing the inputTables.
     */
    public com.google.protobuf.ProtocolStringList
        getInputTablesList() {
      return inputTables_.getUnmodifiableView();
    }
    /**
     * repeated string input_tables = 2;
     * @return The count of inputTables.
     */
    public int getInputTablesCount() {
      return inputTables_.size();
    }
    /**
     * repeated string input_tables = 2;
     * @param index The index of the element to return.
     * @return The inputTables at the given index.
     */
    public java.lang.String getInputTables(int index) {
      return inputTables_.get(index);
    }
    /**
     * repeated string input_tables = 2;
     * @param index The index of the value to return.
     * @return The bytes of the inputTables at the given index.
     */
    public com.google.protobuf.ByteString
        getInputTablesBytes(int index) {
      return inputTables_.getByteString(index);
    }
    /**
     * repeated string input_tables = 2;
     * @param index The index to set the value at.
     * @param value The inputTables to set.
     * @return This builder for chaining.
     */
    public Builder setInputTables(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureInputTablesIsMutable();
      inputTables_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * repeated string input_tables = 2;
     * @param value The inputTables to add.
     * @return This builder for chaining.
     */
    public Builder addInputTables(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureInputTablesIsMutable();
      inputTables_.add(value);
      onChanged();
      return this;
    }
    /**
     * repeated string input_tables = 2;
     * @param values The inputTables to add.
     * @return This builder for chaining.
     */
    public Builder addAllInputTables(
        java.lang.Iterable values) {
      ensureInputTablesIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, inputTables_);
      onChanged();
      return this;
    }
    /**
     * repeated string input_tables = 2;
     * @return This builder for chaining.
     */
    public Builder clearInputTables() {
      inputTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     * repeated string input_tables = 2;
     * @param value The bytes of the inputTables to add.
     * @return This builder for chaining.
     */
    public Builder addInputTablesBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      ensureInputTablesIsMutable();
      inputTables_.add(value);
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList outputTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureOutputTablesIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        outputTables_ = new com.google.protobuf.LazyStringArrayList(outputTables_);
        bitField0_ |= 0x00000004;
       }
    }
    /**
     * repeated string output_tables = 3;
     * @return A list containing the outputTables.
     */
    public com.google.protobuf.ProtocolStringList
        getOutputTablesList() {
      return outputTables_.getUnmodifiableView();
    }
    /**
     * repeated string output_tables = 3;
     * @return The count of outputTables.
     */
    public int getOutputTablesCount() {
      return outputTables_.size();
    }
    /**
     * repeated string output_tables = 3;
     * @param index The index of the element to return.
     * @return The outputTables at the given index.
     */
    public java.lang.String getOutputTables(int index) {
      return outputTables_.get(index);
    }
    /**
     * repeated string output_tables = 3;
     * @param index The index of the value to return.
     * @return The bytes of the outputTables at the given index.
     */
    public com.google.protobuf.ByteString
        getOutputTablesBytes(int index) {
      return outputTables_.getByteString(index);
    }
    /**
     * repeated string output_tables = 3;
     * @param index The index to set the value at.
     * @param value The outputTables to set.
     * @return This builder for chaining.
     */
    public Builder setOutputTables(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureOutputTablesIsMutable();
      outputTables_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * repeated string output_tables = 3;
     * @param value The outputTables to add.
     * @return This builder for chaining.
     */
    public Builder addOutputTables(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureOutputTablesIsMutable();
      outputTables_.add(value);
      onChanged();
      return this;
    }
    /**
     * repeated string output_tables = 3;
     * @param values The outputTables to add.
     * @return This builder for chaining.
     */
    public Builder addAllOutputTables(
        java.lang.Iterable values) {
      ensureOutputTablesIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, outputTables_);
      onChanged();
      return this;
    }
    /**
     * repeated string output_tables = 3;
     * @return This builder for chaining.
     */
    public Builder clearOutputTables() {
      outputTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     * repeated string output_tables = 3;
     * @param value The bytes of the outputTables to add.
     * @return This builder for chaining.
     */
    public Builder addOutputTablesBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      ensureOutputTablesIsMutable();
      outputTables_.add(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:cz.proto.SimplifyDag)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy