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

xyz.block.ftl.v1.schema.FSMTransition Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: xyz/block/ftl/v1/schema/schema.proto

// Protobuf Java Version: 3.25.4
package xyz.block.ftl.v1.schema;

/**
 * Protobuf type {@code xyz.block.ftl.v1.schema.FSMTransition}
 */
public final class FSMTransition extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.schema.FSMTransition)
    FSMTransitionOrBuilder {
private static final long serialVersionUID = 0L;
  // Use FSMTransition.newBuilder() to construct.
  private FSMTransition(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private FSMTransition() {
    comments_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_FSMTransition_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_FSMTransition_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            xyz.block.ftl.v1.schema.FSMTransition.class, xyz.block.ftl.v1.schema.FSMTransition.Builder.class);
  }

  private int bitField0_;
  public static final int POS_FIELD_NUMBER = 1;
  private xyz.block.ftl.v1.schema.Position pos_;
  /**
   * optional .xyz.block.ftl.v1.schema.Position pos = 1;
   * @return Whether the pos field is set.
   */
  @java.lang.Override
  public boolean hasPos() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional .xyz.block.ftl.v1.schema.Position pos = 1;
   * @return The pos.
   */
  @java.lang.Override
  public xyz.block.ftl.v1.schema.Position getPos() {
    return pos_ == null ? xyz.block.ftl.v1.schema.Position.getDefaultInstance() : pos_;
  }
  /**
   * optional .xyz.block.ftl.v1.schema.Position pos = 1;
   */
  @java.lang.Override
  public xyz.block.ftl.v1.schema.PositionOrBuilder getPosOrBuilder() {
    return pos_ == null ? xyz.block.ftl.v1.schema.Position.getDefaultInstance() : pos_;
  }

  public static final int COMMENTS_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringArrayList comments_ =
      com.google.protobuf.LazyStringArrayList.emptyList();
  /**
   * repeated string comments = 2;
   * @return A list containing the comments.
   */
  public com.google.protobuf.ProtocolStringList
      getCommentsList() {
    return comments_;
  }
  /**
   * repeated string comments = 2;
   * @return The count of comments.
   */
  public int getCommentsCount() {
    return comments_.size();
  }
  /**
   * repeated string comments = 2;
   * @param index The index of the element to return.
   * @return The comments at the given index.
   */
  public java.lang.String getComments(int index) {
    return comments_.get(index);
  }
  /**
   * repeated string comments = 2;
   * @param index The index of the value to return.
   * @return The bytes of the comments at the given index.
   */
  public com.google.protobuf.ByteString
      getCommentsBytes(int index) {
    return comments_.getByteString(index);
  }

  public static final int FROM_FIELD_NUMBER = 3;
  private xyz.block.ftl.v1.schema.Ref from_;
  /**
   * optional .xyz.block.ftl.v1.schema.Ref from = 3;
   * @return Whether the from field is set.
   */
  @java.lang.Override
  public boolean hasFrom() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional .xyz.block.ftl.v1.schema.Ref from = 3;
   * @return The from.
   */
  @java.lang.Override
  public xyz.block.ftl.v1.schema.Ref getFrom() {
    return from_ == null ? xyz.block.ftl.v1.schema.Ref.getDefaultInstance() : from_;
  }
  /**
   * optional .xyz.block.ftl.v1.schema.Ref from = 3;
   */
  @java.lang.Override
  public xyz.block.ftl.v1.schema.RefOrBuilder getFromOrBuilder() {
    return from_ == null ? xyz.block.ftl.v1.schema.Ref.getDefaultInstance() : from_;
  }

  public static final int TO_FIELD_NUMBER = 4;
  private xyz.block.ftl.v1.schema.Ref to_;
  /**
   * .xyz.block.ftl.v1.schema.Ref to = 4;
   * @return Whether the to field is set.
   */
  @java.lang.Override
  public boolean hasTo() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * .xyz.block.ftl.v1.schema.Ref to = 4;
   * @return The to.
   */
  @java.lang.Override
  public xyz.block.ftl.v1.schema.Ref getTo() {
    return to_ == null ? xyz.block.ftl.v1.schema.Ref.getDefaultInstance() : to_;
  }
  /**
   * .xyz.block.ftl.v1.schema.Ref to = 4;
   */
  @java.lang.Override
  public xyz.block.ftl.v1.schema.RefOrBuilder getToOrBuilder() {
    return to_ == null ? xyz.block.ftl.v1.schema.Ref.getDefaultInstance() : to_;
  }

  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 (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getPos());
    }
    for (int i = 0; i < comments_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, comments_.getRaw(i));
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(3, getFrom());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(4, getTo());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getPos());
    }
    {
      int dataSize = 0;
      for (int i = 0; i < comments_.size(); i++) {
        dataSize += computeStringSizeNoTag(comments_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getCommentsList().size();
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getFrom());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getTo());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof xyz.block.ftl.v1.schema.FSMTransition)) {
      return super.equals(obj);
    }
    xyz.block.ftl.v1.schema.FSMTransition other = (xyz.block.ftl.v1.schema.FSMTransition) obj;

    if (hasPos() != other.hasPos()) return false;
    if (hasPos()) {
      if (!getPos()
          .equals(other.getPos())) return false;
    }
    if (!getCommentsList()
        .equals(other.getCommentsList())) return false;
    if (hasFrom() != other.hasFrom()) return false;
    if (hasFrom()) {
      if (!getFrom()
          .equals(other.getFrom())) return false;
    }
    if (hasTo() != other.hasTo()) return false;
    if (hasTo()) {
      if (!getTo()
          .equals(other.getTo())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasPos()) {
      hash = (37 * hash) + POS_FIELD_NUMBER;
      hash = (53 * hash) + getPos().hashCode();
    }
    if (getCommentsCount() > 0) {
      hash = (37 * hash) + COMMENTS_FIELD_NUMBER;
      hash = (53 * hash) + getCommentsList().hashCode();
    }
    if (hasFrom()) {
      hash = (37 * hash) + FROM_FIELD_NUMBER;
      hash = (53 * hash) + getFrom().hashCode();
    }
    if (hasTo()) {
      hash = (37 * hash) + TO_FIELD_NUMBER;
      hash = (53 * hash) + getTo().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static xyz.block.ftl.v1.schema.FSMTransition parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static xyz.block.ftl.v1.schema.FSMTransition parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static xyz.block.ftl.v1.schema.FSMTransition parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static xyz.block.ftl.v1.schema.FSMTransition parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static xyz.block.ftl.v1.schema.FSMTransition parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static xyz.block.ftl.v1.schema.FSMTransition parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static xyz.block.ftl.v1.schema.FSMTransition parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static xyz.block.ftl.v1.schema.FSMTransition 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 xyz.block.ftl.v1.schema.FSMTransition parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static xyz.block.ftl.v1.schema.FSMTransition 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 xyz.block.ftl.v1.schema.FSMTransition parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static xyz.block.ftl.v1.schema.FSMTransition 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(xyz.block.ftl.v1.schema.FSMTransition 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 xyz.block.ftl.v1.schema.FSMTransition}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.schema.FSMTransition)
      xyz.block.ftl.v1.schema.FSMTransitionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_FSMTransition_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_FSMTransition_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              xyz.block.ftl.v1.schema.FSMTransition.class, xyz.block.ftl.v1.schema.FSMTransition.Builder.class);
    }

    // Construct using xyz.block.ftl.v1.schema.FSMTransition.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getPosFieldBuilder();
        getFromFieldBuilder();
        getToFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      pos_ = null;
      if (posBuilder_ != null) {
        posBuilder_.dispose();
        posBuilder_ = null;
      }
      comments_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      from_ = null;
      if (fromBuilder_ != null) {
        fromBuilder_.dispose();
        fromBuilder_ = null;
      }
      to_ = null;
      if (toBuilder_ != null) {
        toBuilder_.dispose();
        toBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_FSMTransition_descriptor;
    }

    @java.lang.Override
    public xyz.block.ftl.v1.schema.FSMTransition getDefaultInstanceForType() {
      return xyz.block.ftl.v1.schema.FSMTransition.getDefaultInstance();
    }

    @java.lang.Override
    public xyz.block.ftl.v1.schema.FSMTransition build() {
      xyz.block.ftl.v1.schema.FSMTransition result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public xyz.block.ftl.v1.schema.FSMTransition buildPartial() {
      xyz.block.ftl.v1.schema.FSMTransition result = new xyz.block.ftl.v1.schema.FSMTransition(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(xyz.block.ftl.v1.schema.FSMTransition result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.pos_ = posBuilder_ == null
            ? pos_
            : posBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        comments_.makeImmutable();
        result.comments_ = comments_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.from_ = fromBuilder_ == null
            ? from_
            : fromBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.to_ = toBuilder_ == null
            ? to_
            : toBuilder_.build();
        to_bitField0_ |= 0x00000004;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @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 xyz.block.ftl.v1.schema.FSMTransition) {
        return mergeFrom((xyz.block.ftl.v1.schema.FSMTransition)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(xyz.block.ftl.v1.schema.FSMTransition other) {
      if (other == xyz.block.ftl.v1.schema.FSMTransition.getDefaultInstance()) return this;
      if (other.hasPos()) {
        mergePos(other.getPos());
      }
      if (!other.comments_.isEmpty()) {
        if (comments_.isEmpty()) {
          comments_ = other.comments_;
          bitField0_ |= 0x00000002;
        } else {
          ensureCommentsIsMutable();
          comments_.addAll(other.comments_);
        }
        onChanged();
      }
      if (other.hasFrom()) {
        mergeFrom(other.getFrom());
      }
      if (other.hasTo()) {
        mergeTo(other.getTo());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      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 {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              input.readMessage(
                  getPosFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();
              ensureCommentsIsMutable();
              comments_.add(s);
              break;
            } // case 18
            case 26: {
              input.readMessage(
                  getFromFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 34: {
              input.readMessage(
                  getToFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private xyz.block.ftl.v1.schema.Position pos_;
    private com.google.protobuf.SingleFieldBuilderV3<
        xyz.block.ftl.v1.schema.Position, xyz.block.ftl.v1.schema.Position.Builder, xyz.block.ftl.v1.schema.PositionOrBuilder> posBuilder_;
    /**
     * optional .xyz.block.ftl.v1.schema.Position pos = 1;
     * @return Whether the pos field is set.
     */
    public boolean hasPos() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Position pos = 1;
     * @return The pos.
     */
    public xyz.block.ftl.v1.schema.Position getPos() {
      if (posBuilder_ == null) {
        return pos_ == null ? xyz.block.ftl.v1.schema.Position.getDefaultInstance() : pos_;
      } else {
        return posBuilder_.getMessage();
      }
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Position pos = 1;
     */
    public Builder setPos(xyz.block.ftl.v1.schema.Position value) {
      if (posBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        pos_ = value;
      } else {
        posBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Position pos = 1;
     */
    public Builder setPos(
        xyz.block.ftl.v1.schema.Position.Builder builderForValue) {
      if (posBuilder_ == null) {
        pos_ = builderForValue.build();
      } else {
        posBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Position pos = 1;
     */
    public Builder mergePos(xyz.block.ftl.v1.schema.Position value) {
      if (posBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          pos_ != null &&
          pos_ != xyz.block.ftl.v1.schema.Position.getDefaultInstance()) {
          getPosBuilder().mergeFrom(value);
        } else {
          pos_ = value;
        }
      } else {
        posBuilder_.mergeFrom(value);
      }
      if (pos_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Position pos = 1;
     */
    public Builder clearPos() {
      bitField0_ = (bitField0_ & ~0x00000001);
      pos_ = null;
      if (posBuilder_ != null) {
        posBuilder_.dispose();
        posBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Position pos = 1;
     */
    public xyz.block.ftl.v1.schema.Position.Builder getPosBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getPosFieldBuilder().getBuilder();
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Position pos = 1;
     */
    public xyz.block.ftl.v1.schema.PositionOrBuilder getPosOrBuilder() {
      if (posBuilder_ != null) {
        return posBuilder_.getMessageOrBuilder();
      } else {
        return pos_ == null ?
            xyz.block.ftl.v1.schema.Position.getDefaultInstance() : pos_;
      }
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Position pos = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        xyz.block.ftl.v1.schema.Position, xyz.block.ftl.v1.schema.Position.Builder, xyz.block.ftl.v1.schema.PositionOrBuilder> 
        getPosFieldBuilder() {
      if (posBuilder_ == null) {
        posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            xyz.block.ftl.v1.schema.Position, xyz.block.ftl.v1.schema.Position.Builder, xyz.block.ftl.v1.schema.PositionOrBuilder>(
                getPos(),
                getParentForChildren(),
                isClean());
        pos_ = null;
      }
      return posBuilder_;
    }

    private com.google.protobuf.LazyStringArrayList comments_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    private void ensureCommentsIsMutable() {
      if (!comments_.isModifiable()) {
        comments_ = new com.google.protobuf.LazyStringArrayList(comments_);
      }
      bitField0_ |= 0x00000002;
    }
    /**
     * repeated string comments = 2;
     * @return A list containing the comments.
     */
    public com.google.protobuf.ProtocolStringList
        getCommentsList() {
      comments_.makeImmutable();
      return comments_;
    }
    /**
     * repeated string comments = 2;
     * @return The count of comments.
     */
    public int getCommentsCount() {
      return comments_.size();
    }
    /**
     * repeated string comments = 2;
     * @param index The index of the element to return.
     * @return The comments at the given index.
     */
    public java.lang.String getComments(int index) {
      return comments_.get(index);
    }
    /**
     * repeated string comments = 2;
     * @param index The index of the value to return.
     * @return The bytes of the comments at the given index.
     */
    public com.google.protobuf.ByteString
        getCommentsBytes(int index) {
      return comments_.getByteString(index);
    }
    /**
     * repeated string comments = 2;
     * @param index The index to set the value at.
     * @param value The comments to set.
     * @return This builder for chaining.
     */
    public Builder setComments(
        int index, java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      ensureCommentsIsMutable();
      comments_.set(index, value);
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * repeated string comments = 2;
     * @param value The comments to add.
     * @return This builder for chaining.
     */
    public Builder addComments(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      ensureCommentsIsMutable();
      comments_.add(value);
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * repeated string comments = 2;
     * @param values The comments to add.
     * @return This builder for chaining.
     */
    public Builder addAllComments(
        java.lang.Iterable values) {
      ensureCommentsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, comments_);
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * repeated string comments = 2;
     * @return This builder for chaining.
     */
    public Builder clearComments() {
      comments_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
      bitField0_ = (bitField0_ & ~0x00000002);;
      onChanged();
      return this;
    }
    /**
     * repeated string comments = 2;
     * @param value The bytes of the comments to add.
     * @return This builder for chaining.
     */
    public Builder addCommentsBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      ensureCommentsIsMutable();
      comments_.add(value);
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private xyz.block.ftl.v1.schema.Ref from_;
    private com.google.protobuf.SingleFieldBuilderV3<
        xyz.block.ftl.v1.schema.Ref, xyz.block.ftl.v1.schema.Ref.Builder, xyz.block.ftl.v1.schema.RefOrBuilder> fromBuilder_;
    /**
     * optional .xyz.block.ftl.v1.schema.Ref from = 3;
     * @return Whether the from field is set.
     */
    public boolean hasFrom() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Ref from = 3;
     * @return The from.
     */
    public xyz.block.ftl.v1.schema.Ref getFrom() {
      if (fromBuilder_ == null) {
        return from_ == null ? xyz.block.ftl.v1.schema.Ref.getDefaultInstance() : from_;
      } else {
        return fromBuilder_.getMessage();
      }
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Ref from = 3;
     */
    public Builder setFrom(xyz.block.ftl.v1.schema.Ref value) {
      if (fromBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        from_ = value;
      } else {
        fromBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Ref from = 3;
     */
    public Builder setFrom(
        xyz.block.ftl.v1.schema.Ref.Builder builderForValue) {
      if (fromBuilder_ == null) {
        from_ = builderForValue.build();
      } else {
        fromBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Ref from = 3;
     */
    public Builder mergeFrom(xyz.block.ftl.v1.schema.Ref value) {
      if (fromBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0) &&
          from_ != null &&
          from_ != xyz.block.ftl.v1.schema.Ref.getDefaultInstance()) {
          getFromBuilder().mergeFrom(value);
        } else {
          from_ = value;
        }
      } else {
        fromBuilder_.mergeFrom(value);
      }
      if (from_ != null) {
        bitField0_ |= 0x00000004;
        onChanged();
      }
      return this;
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Ref from = 3;
     */
    public Builder clearFrom() {
      bitField0_ = (bitField0_ & ~0x00000004);
      from_ = null;
      if (fromBuilder_ != null) {
        fromBuilder_.dispose();
        fromBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Ref from = 3;
     */
    public xyz.block.ftl.v1.schema.Ref.Builder getFromBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getFromFieldBuilder().getBuilder();
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Ref from = 3;
     */
    public xyz.block.ftl.v1.schema.RefOrBuilder getFromOrBuilder() {
      if (fromBuilder_ != null) {
        return fromBuilder_.getMessageOrBuilder();
      } else {
        return from_ == null ?
            xyz.block.ftl.v1.schema.Ref.getDefaultInstance() : from_;
      }
    }
    /**
     * optional .xyz.block.ftl.v1.schema.Ref from = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        xyz.block.ftl.v1.schema.Ref, xyz.block.ftl.v1.schema.Ref.Builder, xyz.block.ftl.v1.schema.RefOrBuilder> 
        getFromFieldBuilder() {
      if (fromBuilder_ == null) {
        fromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            xyz.block.ftl.v1.schema.Ref, xyz.block.ftl.v1.schema.Ref.Builder, xyz.block.ftl.v1.schema.RefOrBuilder>(
                getFrom(),
                getParentForChildren(),
                isClean());
        from_ = null;
      }
      return fromBuilder_;
    }

    private xyz.block.ftl.v1.schema.Ref to_;
    private com.google.protobuf.SingleFieldBuilderV3<
        xyz.block.ftl.v1.schema.Ref, xyz.block.ftl.v1.schema.Ref.Builder, xyz.block.ftl.v1.schema.RefOrBuilder> toBuilder_;
    /**
     * .xyz.block.ftl.v1.schema.Ref to = 4;
     * @return Whether the to field is set.
     */
    public boolean hasTo() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref to = 4;
     * @return The to.
     */
    public xyz.block.ftl.v1.schema.Ref getTo() {
      if (toBuilder_ == null) {
        return to_ == null ? xyz.block.ftl.v1.schema.Ref.getDefaultInstance() : to_;
      } else {
        return toBuilder_.getMessage();
      }
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref to = 4;
     */
    public Builder setTo(xyz.block.ftl.v1.schema.Ref value) {
      if (toBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        to_ = value;
      } else {
        toBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref to = 4;
     */
    public Builder setTo(
        xyz.block.ftl.v1.schema.Ref.Builder builderForValue) {
      if (toBuilder_ == null) {
        to_ = builderForValue.build();
      } else {
        toBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref to = 4;
     */
    public Builder mergeTo(xyz.block.ftl.v1.schema.Ref value) {
      if (toBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0) &&
          to_ != null &&
          to_ != xyz.block.ftl.v1.schema.Ref.getDefaultInstance()) {
          getToBuilder().mergeFrom(value);
        } else {
          to_ = value;
        }
      } else {
        toBuilder_.mergeFrom(value);
      }
      if (to_ != null) {
        bitField0_ |= 0x00000008;
        onChanged();
      }
      return this;
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref to = 4;
     */
    public Builder clearTo() {
      bitField0_ = (bitField0_ & ~0x00000008);
      to_ = null;
      if (toBuilder_ != null) {
        toBuilder_.dispose();
        toBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref to = 4;
     */
    public xyz.block.ftl.v1.schema.Ref.Builder getToBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getToFieldBuilder().getBuilder();
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref to = 4;
     */
    public xyz.block.ftl.v1.schema.RefOrBuilder getToOrBuilder() {
      if (toBuilder_ != null) {
        return toBuilder_.getMessageOrBuilder();
      } else {
        return to_ == null ?
            xyz.block.ftl.v1.schema.Ref.getDefaultInstance() : to_;
      }
    }
    /**
     * .xyz.block.ftl.v1.schema.Ref to = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        xyz.block.ftl.v1.schema.Ref, xyz.block.ftl.v1.schema.Ref.Builder, xyz.block.ftl.v1.schema.RefOrBuilder> 
        getToFieldBuilder() {
      if (toBuilder_ == null) {
        toBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            xyz.block.ftl.v1.schema.Ref, xyz.block.ftl.v1.schema.Ref.Builder, xyz.block.ftl.v1.schema.RefOrBuilder>(
                getTo(),
                getParentForChildren(),
                isClean());
        to_ = null;
      }
      return toBuilder_;
    }
    @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:xyz.block.ftl.v1.schema.FSMTransition)
  }

  // @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.schema.FSMTransition)
  private static final xyz.block.ftl.v1.schema.FSMTransition DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new xyz.block.ftl.v1.schema.FSMTransition();
  }

  public static xyz.block.ftl.v1.schema.FSMTransition getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public FSMTransition parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public xyz.block.ftl.v1.schema.FSMTransition getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy