// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: types/version.proto

package proto.types;

public final class version {
  private version() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface SubChainVersionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:proto.types.SubChainVersion)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>int32 forkPoint = 1;</code>
     */
    int getForkPoint();

    /**
     * <code>int32 suggested = 2;</code>
     */
    int getSuggested();

    /**
     * <code>repeated .proto.types.Block v = 3;</code>
     */
    java.util.List<proto.types.block.Block> 
        getVList();
    /**
     * <code>repeated .proto.types.Block v = 3;</code>
     */
    proto.types.block.Block getV(int index);
    /**
     * <code>repeated .proto.types.Block v = 3;</code>
     */
    int getVCount();
    /**
     * <code>repeated .proto.types.Block v = 3;</code>
     */
    java.util.List<? extends proto.types.block.BlockOrBuilder> 
        getVOrBuilderList();
    /**
     * <code>repeated .proto.types.Block v = 3;</code>
     */
    proto.types.block.BlockOrBuilder getVOrBuilder(
        int index);

    /**
     * <code>int32 sender = 4;</code>
     */
    int getSender();
  }
  /**
   * Protobuf type {@code proto.types.SubChainVersion}
   */
  public  static final class SubChainVersion extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:proto.types.SubChainVersion)
      SubChainVersionOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use SubChainVersion.newBuilder() to construct.
    private SubChainVersion(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private SubChainVersion() {
      v_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private SubChainVersion(
        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 8: {

              forkPoint_ = input.readInt32();
              break;
            }
            case 16: {

              suggested_ = input.readInt32();
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                v_ = new java.util.ArrayList<proto.types.block.Block>();
                mutable_bitField0_ |= 0x00000004;
              }
              v_.add(
                  input.readMessage(proto.types.block.Block.parser(), extensionRegistry));
              break;
            }
            case 32: {

              sender_ = input.readInt32();
              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_ & 0x00000004) != 0)) {
          v_ = java.util.Collections.unmodifiableList(v_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return proto.types.version.internal_static_proto_types_SubChainVersion_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return proto.types.version.internal_static_proto_types_SubChainVersion_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              proto.types.version.SubChainVersion.class, proto.types.version.SubChainVersion.Builder.class);
    }

    private int bitField0_;
    public static final int FORKPOINT_FIELD_NUMBER = 1;
    private int forkPoint_;
    /**
     * <code>int32 forkPoint = 1;</code>
     */
    public int getForkPoint() {
      return forkPoint_;
    }

    public static final int SUGGESTED_FIELD_NUMBER = 2;
    private int suggested_;
    /**
     * <code>int32 suggested = 2;</code>
     */
    public int getSuggested() {
      return suggested_;
    }

    public static final int V_FIELD_NUMBER = 3;
    private java.util.List<proto.types.block.Block> v_;
    /**
     * <code>repeated .proto.types.Block v = 3;</code>
     */
    public java.util.List<proto.types.block.Block> getVList() {
      return v_;
    }
    /**
     * <code>repeated .proto.types.Block v = 3;</code>
     */
    public java.util.List<? extends proto.types.block.BlockOrBuilder> 
        getVOrBuilderList() {
      return v_;
    }
    /**
     * <code>repeated .proto.types.Block v = 3;</code>
     */
    public int getVCount() {
      return v_.size();
    }
    /**
     * <code>repeated .proto.types.Block v = 3;</code>
     */
    public proto.types.block.Block getV(int index) {
      return v_.get(index);
    }
    /**
     * <code>repeated .proto.types.Block v = 3;</code>
     */
    public proto.types.block.BlockOrBuilder getVOrBuilder(
        int index) {
      return v_.get(index);
    }

    public static final int SENDER_FIELD_NUMBER = 4;
    private int sender_;
    /**
     * <code>int32 sender = 4;</code>
     */
    public int getSender() {
      return sender_;
    }

    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 (forkPoint_ != 0) {
        output.writeInt32(1, forkPoint_);
      }
      if (suggested_ != 0) {
        output.writeInt32(2, suggested_);
      }
      for (int i = 0; i < v_.size(); i++) {
        output.writeMessage(3, v_.get(i));
      }
      if (sender_ != 0) {
        output.writeInt32(4, sender_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (forkPoint_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, forkPoint_);
      }
      if (suggested_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, suggested_);
      }
      for (int i = 0; i < v_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, v_.get(i));
      }
      if (sender_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(4, sender_);
      }
      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 proto.types.version.SubChainVersion)) {
        return super.equals(obj);
      }
      proto.types.version.SubChainVersion other = (proto.types.version.SubChainVersion) obj;

      if (getForkPoint()
          != other.getForkPoint()) return false;
      if (getSuggested()
          != other.getSuggested()) return false;
      if (!getVList()
          .equals(other.getVList())) return false;
      if (getSender()
          != other.getSender()) 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) + FORKPOINT_FIELD_NUMBER;
      hash = (53 * hash) + getForkPoint();
      hash = (37 * hash) + SUGGESTED_FIELD_NUMBER;
      hash = (53 * hash) + getSuggested();
      if (getVCount() > 0) {
        hash = (37 * hash) + V_FIELD_NUMBER;
        hash = (53 * hash) + getVList().hashCode();
      }
      hash = (37 * hash) + SENDER_FIELD_NUMBER;
      hash = (53 * hash) + getSender();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return proto.types.version.internal_static_proto_types_SubChainVersion_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                proto.types.version.SubChainVersion.class, proto.types.version.SubChainVersion.Builder.class);
      }

      // Construct using proto.types.version.SubChainVersion.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        suggested_ = 0;

        if (vBuilder_ == null) {
          v_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          vBuilder_.clear();
        }
        sender_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return proto.types.version.internal_static_proto_types_SubChainVersion_descriptor;
      }

      @java.lang.Override
      public proto.types.version.SubChainVersion getDefaultInstanceForType() {
        return proto.types.version.SubChainVersion.getDefaultInstance();
      }

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

      @java.lang.Override
      public proto.types.version.SubChainVersion buildPartial() {
        proto.types.version.SubChainVersion result = new proto.types.version.SubChainVersion(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        result.forkPoint_ = forkPoint_;
        result.suggested_ = suggested_;
        if (vBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0)) {
            v_ = java.util.Collections.unmodifiableList(v_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.v_ = v_;
        } else {
          result.v_ = vBuilder_.build();
        }
        result.sender_ = sender_;
        result.bitField0_ = to_bitField0_;
        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 proto.types.version.SubChainVersion) {
          return mergeFrom((proto.types.version.SubChainVersion)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(proto.types.version.SubChainVersion other) {
        if (other == proto.types.version.SubChainVersion.getDefaultInstance()) return this;
        if (other.getForkPoint() != 0) {
          setForkPoint(other.getForkPoint());
        }
        if (other.getSuggested() != 0) {
          setSuggested(other.getSuggested());
        }
        if (vBuilder_ == null) {
          if (!other.v_.isEmpty()) {
            if (v_.isEmpty()) {
              v_ = other.v_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureVIsMutable();
              v_.addAll(other.v_);
            }
            onChanged();
          }
        } else {
          if (!other.v_.isEmpty()) {
            if (vBuilder_.isEmpty()) {
              vBuilder_.dispose();
              vBuilder_ = null;
              v_ = other.v_;
              bitField0_ = (bitField0_ & ~0x00000004);
              vBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getVFieldBuilder() : null;
            } else {
              vBuilder_.addAllMessages(other.v_);
            }
          }
        }
        if (other.getSender() != 0) {
          setSender(other.getSender());
        }
        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 {
        proto.types.version.SubChainVersion parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (proto.types.version.SubChainVersion) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int forkPoint_ ;
      /**
       * <code>int32 forkPoint = 1;</code>
       */
      public int getForkPoint() {
        return forkPoint_;
      }
      /**
       * <code>int32 forkPoint = 1;</code>
       */
      public Builder setForkPoint(int value) {
        
        forkPoint_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 forkPoint = 1;</code>
       */
      public Builder clearForkPoint() {
        
        forkPoint_ = 0;
        onChanged();
        return this;
      }

      private int suggested_ ;
      /**
       * <code>int32 suggested = 2;</code>
       */
      public int getSuggested() {
        return suggested_;
      }
      /**
       * <code>int32 suggested = 2;</code>
       */
      public Builder setSuggested(int value) {
        
        suggested_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 suggested = 2;</code>
       */
      public Builder clearSuggested() {
        
        suggested_ = 0;
        onChanged();
        return this;
      }

      private java.util.List<proto.types.block.Block> v_ =
        java.util.Collections.emptyList();
      private void ensureVIsMutable() {
        if (!((bitField0_ & 0x00000004) != 0)) {
          v_ = new java.util.ArrayList<proto.types.block.Block>(v_);
          bitField0_ |= 0x00000004;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          proto.types.block.Block, proto.types.block.Block.Builder, proto.types.block.BlockOrBuilder> vBuilder_;

      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public java.util.List<proto.types.block.Block> getVList() {
        if (vBuilder_ == null) {
          return java.util.Collections.unmodifiableList(v_);
        } else {
          return vBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public int getVCount() {
        if (vBuilder_ == null) {
          return v_.size();
        } else {
          return vBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public proto.types.block.Block getV(int index) {
        if (vBuilder_ == null) {
          return v_.get(index);
        } else {
          return vBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public Builder setV(
          int index, proto.types.block.Block value) {
        if (vBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureVIsMutable();
          v_.set(index, value);
          onChanged();
        } else {
          vBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public Builder setV(
          int index, proto.types.block.Block.Builder builderForValue) {
        if (vBuilder_ == null) {
          ensureVIsMutable();
          v_.set(index, builderForValue.build());
          onChanged();
        } else {
          vBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public Builder addV(proto.types.block.Block value) {
        if (vBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureVIsMutable();
          v_.add(value);
          onChanged();
        } else {
          vBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public Builder addV(
          int index, proto.types.block.Block value) {
        if (vBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureVIsMutable();
          v_.add(index, value);
          onChanged();
        } else {
          vBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public Builder addV(
          proto.types.block.Block.Builder builderForValue) {
        if (vBuilder_ == null) {
          ensureVIsMutable();
          v_.add(builderForValue.build());
          onChanged();
        } else {
          vBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public Builder addV(
          int index, proto.types.block.Block.Builder builderForValue) {
        if (vBuilder_ == null) {
          ensureVIsMutable();
          v_.add(index, builderForValue.build());
          onChanged();
        } else {
          vBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public Builder addAllV(
          java.lang.Iterable<? extends proto.types.block.Block> values) {
        if (vBuilder_ == null) {
          ensureVIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, v_);
          onChanged();
        } else {
          vBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public Builder clearV() {
        if (vBuilder_ == null) {
          v_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          vBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public Builder removeV(int index) {
        if (vBuilder_ == null) {
          ensureVIsMutable();
          v_.remove(index);
          onChanged();
        } else {
          vBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public proto.types.block.Block.Builder getVBuilder(
          int index) {
        return getVFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public proto.types.block.BlockOrBuilder getVOrBuilder(
          int index) {
        if (vBuilder_ == null) {
          return v_.get(index);  } else {
          return vBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public java.util.List<? extends proto.types.block.BlockOrBuilder> 
           getVOrBuilderList() {
        if (vBuilder_ != null) {
          return vBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(v_);
        }
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public proto.types.block.Block.Builder addVBuilder() {
        return getVFieldBuilder().addBuilder(
            proto.types.block.Block.getDefaultInstance());
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public proto.types.block.Block.Builder addVBuilder(
          int index) {
        return getVFieldBuilder().addBuilder(
            index, proto.types.block.Block.getDefaultInstance());
      }
      /**
       * <code>repeated .proto.types.Block v = 3;</code>
       */
      public java.util.List<proto.types.block.Block.Builder> 
           getVBuilderList() {
        return getVFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          proto.types.block.Block, proto.types.block.Block.Builder, proto.types.block.BlockOrBuilder> 
          getVFieldBuilder() {
        if (vBuilder_ == null) {
          vBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              proto.types.block.Block, proto.types.block.Block.Builder, proto.types.block.BlockOrBuilder>(
                  v_,
                  ((bitField0_ & 0x00000004) != 0),
                  getParentForChildren(),
                  isClean());
          v_ = null;
        }
        return vBuilder_;
      }

      private int sender_ ;
      /**
       * <code>int32 sender = 4;</code>
       */
      public int getSender() {
        return sender_;
      }
      /**
       * <code>int32 sender = 4;</code>
       */
      public Builder setSender(int value) {
        
        sender_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 sender = 4;</code>
       */
      public Builder clearSender() {
        
        sender_ = 0;
        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:proto.types.SubChainVersion)
    }

    // @@protoc_insertion_point(class_scope:proto.types.SubChainVersion)
    private static final proto.types.version.SubChainVersion DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new proto.types.version.SubChainVersion();
    }

    public static proto.types.version.SubChainVersion getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<SubChainVersion>
        PARSER = new com.google.protobuf.AbstractParser<SubChainVersion>() {
      @java.lang.Override
      public SubChainVersion parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new SubChainVersion(input, extensionRegistry);
      }
    };

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

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

    @java.lang.Override
    public proto.types.version.SubChainVersion getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_proto_types_SubChainVersion_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_proto_types_SubChainVersion_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\023types/version.proto\022\013proto.types\032\021type" +
      "s/block.proto\"f\n\017SubChainVersion\022\021\n\tfork" +
      "Point\030\001 \001(\005\022\021\n\tsuggested\030\002 \001(\005\022\035\n\001v\030\003 \003(" +
      "\0132\022.proto.types.Block\022\016\n\006sender\030\004 \001(\005B\026\n" +
      "\013proto.typesB\007versionb\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          proto.types.block.getDescriptor(),
        }, assigner);
    internal_static_proto_types_SubChainVersion_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_proto_types_SubChainVersion_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_proto_types_SubChainVersion_descriptor,
        new java.lang.String[] { "ForkPoint", "Suggested", "V", "Sender", });
    proto.types.block.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
