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

package proto.types;

public final class comm {
  private comm() {}
  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 CommOrBuilder extends
      // @@protoc_insertion_point(interface_extends:proto.types.Comm)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>int32 channel = 1;</code>
     */
    int getChannel();

    /**
     * <code>.proto.types.Block data = 2;</code>
     */
    boolean hasData();
    /**
     * <code>.proto.types.Block data = 2;</code>
     */
    proto.types.block.Block getData();
    /**
     * <code>.proto.types.Block data = 2;</code>
     */
    proto.types.block.BlockOrBuilder getDataOrBuilder();
  }
  /**
   * Protobuf type {@code proto.types.Comm}
   */
  public  static final class Comm extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:proto.types.Comm)
      CommOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Comm.newBuilder() to construct.
    private Comm(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Comm() {
    }

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

              channel_ = input.readInt32();
              break;
            }
            case 18: {
              proto.types.block.Block.Builder subBuilder = null;
              if (data_ != null) {
                subBuilder = data_.toBuilder();
              }
              data_ = input.readMessage(proto.types.block.Block.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(data_);
                data_ = subBuilder.buildPartial();
              }

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

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

    public static final int CHANNEL_FIELD_NUMBER = 1;
    private int channel_;
    /**
     * <code>int32 channel = 1;</code>
     */
    public int getChannel() {
      return channel_;
    }

    public static final int DATA_FIELD_NUMBER = 2;
    private proto.types.block.Block data_;
    /**
     * <code>.proto.types.Block data = 2;</code>
     */
    public boolean hasData() {
      return data_ != null;
    }
    /**
     * <code>.proto.types.Block data = 2;</code>
     */
    public proto.types.block.Block getData() {
      return data_ == null ? proto.types.block.Block.getDefaultInstance() : data_;
    }
    /**
     * <code>.proto.types.Block data = 2;</code>
     */
    public proto.types.block.BlockOrBuilder getDataOrBuilder() {
      return getData();
    }

    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 (channel_ != 0) {
        output.writeInt32(1, channel_);
      }
      if (data_ != null) {
        output.writeMessage(2, getData());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (channel_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, channel_);
      }
      if (data_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getData());
      }
      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.comm.Comm)) {
        return super.equals(obj);
      }
      proto.types.comm.Comm other = (proto.types.comm.Comm) obj;

      if (getChannel()
          != other.getChannel()) return false;
      if (hasData() != other.hasData()) return false;
      if (hasData()) {
        if (!getData()
            .equals(other.getData())) 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) + CHANNEL_FIELD_NUMBER;
      hash = (53 * hash) + getChannel();
      if (hasData()) {
        hash = (37 * hash) + DATA_FIELD_NUMBER;
        hash = (53 * hash) + getData().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

      // Construct using proto.types.comm.Comm.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        if (dataBuilder_ == null) {
          data_ = null;
        } else {
          data_ = null;
          dataBuilder_ = null;
        }
        return this;
      }

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

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

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

      @java.lang.Override
      public proto.types.comm.Comm buildPartial() {
        proto.types.comm.Comm result = new proto.types.comm.Comm(this);
        result.channel_ = channel_;
        if (dataBuilder_ == null) {
          result.data_ = data_;
        } else {
          result.data_ = dataBuilder_.build();
        }
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(proto.types.comm.Comm other) {
        if (other == proto.types.comm.Comm.getDefaultInstance()) return this;
        if (other.getChannel() != 0) {
          setChannel(other.getChannel());
        }
        if (other.hasData()) {
          mergeData(other.getData());
        }
        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.comm.Comm parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (proto.types.comm.Comm) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int channel_ ;
      /**
       * <code>int32 channel = 1;</code>
       */
      public int getChannel() {
        return channel_;
      }
      /**
       * <code>int32 channel = 1;</code>
       */
      public Builder setChannel(int value) {
        
        channel_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 channel = 1;</code>
       */
      public Builder clearChannel() {
        
        channel_ = 0;
        onChanged();
        return this;
      }

      private proto.types.block.Block data_;
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.Block, proto.types.block.Block.Builder, proto.types.block.BlockOrBuilder> dataBuilder_;
      /**
       * <code>.proto.types.Block data = 2;</code>
       */
      public boolean hasData() {
        return dataBuilder_ != null || data_ != null;
      }
      /**
       * <code>.proto.types.Block data = 2;</code>
       */
      public proto.types.block.Block getData() {
        if (dataBuilder_ == null) {
          return data_ == null ? proto.types.block.Block.getDefaultInstance() : data_;
        } else {
          return dataBuilder_.getMessage();
        }
      }
      /**
       * <code>.proto.types.Block data = 2;</code>
       */
      public Builder setData(proto.types.block.Block value) {
        if (dataBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          data_ = value;
          onChanged();
        } else {
          dataBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.Block data = 2;</code>
       */
      public Builder setData(
          proto.types.block.Block.Builder builderForValue) {
        if (dataBuilder_ == null) {
          data_ = builderForValue.build();
          onChanged();
        } else {
          dataBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.proto.types.Block data = 2;</code>
       */
      public Builder mergeData(proto.types.block.Block value) {
        if (dataBuilder_ == null) {
          if (data_ != null) {
            data_ =
              proto.types.block.Block.newBuilder(data_).mergeFrom(value).buildPartial();
          } else {
            data_ = value;
          }
          onChanged();
        } else {
          dataBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.Block data = 2;</code>
       */
      public Builder clearData() {
        if (dataBuilder_ == null) {
          data_ = null;
          onChanged();
        } else {
          data_ = null;
          dataBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.proto.types.Block data = 2;</code>
       */
      public proto.types.block.Block.Builder getDataBuilder() {
        
        onChanged();
        return getDataFieldBuilder().getBuilder();
      }
      /**
       * <code>.proto.types.Block data = 2;</code>
       */
      public proto.types.block.BlockOrBuilder getDataOrBuilder() {
        if (dataBuilder_ != null) {
          return dataBuilder_.getMessageOrBuilder();
        } else {
          return data_ == null ?
              proto.types.block.Block.getDefaultInstance() : data_;
        }
      }
      /**
       * <code>.proto.types.Block data = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.Block, proto.types.block.Block.Builder, proto.types.block.BlockOrBuilder> 
          getDataFieldBuilder() {
        if (dataBuilder_ == null) {
          dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              proto.types.block.Block, proto.types.block.Block.Builder, proto.types.block.BlockOrBuilder>(
                  getData(),
                  getParentForChildren(),
                  isClean());
          data_ = null;
        }
        return dataBuilder_;
      }
      @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.Comm)
    }

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

    public static proto.types.comm.Comm getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  public interface CommReqOrBuilder extends
      // @@protoc_insertion_point(interface_extends:proto.types.CommReq)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.proto.types.BlockHeader proof = 1;</code>
     */
    boolean hasProof();
    /**
     * <code>.proto.types.BlockHeader proof = 1;</code>
     */
    proto.types.block.BlockHeader getProof();
    /**
     * <code>.proto.types.BlockHeader proof = 1;</code>
     */
    proto.types.block.BlockHeaderOrBuilder getProofOrBuilder();
  }
  /**
   * Protobuf type {@code proto.types.CommReq}
   */
  public  static final class CommReq extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:proto.types.CommReq)
      CommReqOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use CommReq.newBuilder() to construct.
    private CommReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private CommReq() {
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private CommReq(
        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: {
              proto.types.block.BlockHeader.Builder subBuilder = null;
              if (proof_ != null) {
                subBuilder = proof_.toBuilder();
              }
              proof_ = input.readMessage(proto.types.block.BlockHeader.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(proof_);
                proof_ = subBuilder.buildPartial();
              }

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

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

    public static final int PROOF_FIELD_NUMBER = 1;
    private proto.types.block.BlockHeader proof_;
    /**
     * <code>.proto.types.BlockHeader proof = 1;</code>
     */
    public boolean hasProof() {
      return proof_ != null;
    }
    /**
     * <code>.proto.types.BlockHeader proof = 1;</code>
     */
    public proto.types.block.BlockHeader getProof() {
      return proof_ == null ? proto.types.block.BlockHeader.getDefaultInstance() : proof_;
    }
    /**
     * <code>.proto.types.BlockHeader proof = 1;</code>
     */
    public proto.types.block.BlockHeaderOrBuilder getProofOrBuilder() {
      return getProof();
    }

    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 (proof_ != null) {
        output.writeMessage(1, getProof());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (proof_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getProof());
      }
      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.comm.CommReq)) {
        return super.equals(obj);
      }
      proto.types.comm.CommReq other = (proto.types.comm.CommReq) obj;

      if (hasProof() != other.hasProof()) return false;
      if (hasProof()) {
        if (!getProof()
            .equals(other.getProof())) 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 (hasProof()) {
        hash = (37 * hash) + PROOF_FIELD_NUMBER;
        hash = (53 * hash) + getProof().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

      // Construct using proto.types.comm.CommReq.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (proofBuilder_ == null) {
          proof_ = null;
        } else {
          proof_ = null;
          proofBuilder_ = null;
        }
        return this;
      }

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

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

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

      @java.lang.Override
      public proto.types.comm.CommReq buildPartial() {
        proto.types.comm.CommReq result = new proto.types.comm.CommReq(this);
        if (proofBuilder_ == null) {
          result.proof_ = proof_;
        } else {
          result.proof_ = proofBuilder_.build();
        }
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(proto.types.comm.CommReq other) {
        if (other == proto.types.comm.CommReq.getDefaultInstance()) return this;
        if (other.hasProof()) {
          mergeProof(other.getProof());
        }
        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.comm.CommReq parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (proto.types.comm.CommReq) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private proto.types.block.BlockHeader proof_;
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.BlockHeader, proto.types.block.BlockHeader.Builder, proto.types.block.BlockHeaderOrBuilder> proofBuilder_;
      /**
       * <code>.proto.types.BlockHeader proof = 1;</code>
       */
      public boolean hasProof() {
        return proofBuilder_ != null || proof_ != null;
      }
      /**
       * <code>.proto.types.BlockHeader proof = 1;</code>
       */
      public proto.types.block.BlockHeader getProof() {
        if (proofBuilder_ == null) {
          return proof_ == null ? proto.types.block.BlockHeader.getDefaultInstance() : proof_;
        } else {
          return proofBuilder_.getMessage();
        }
      }
      /**
       * <code>.proto.types.BlockHeader proof = 1;</code>
       */
      public Builder setProof(proto.types.block.BlockHeader value) {
        if (proofBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          proof_ = value;
          onChanged();
        } else {
          proofBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockHeader proof = 1;</code>
       */
      public Builder setProof(
          proto.types.block.BlockHeader.Builder builderForValue) {
        if (proofBuilder_ == null) {
          proof_ = builderForValue.build();
          onChanged();
        } else {
          proofBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockHeader proof = 1;</code>
       */
      public Builder mergeProof(proto.types.block.BlockHeader value) {
        if (proofBuilder_ == null) {
          if (proof_ != null) {
            proof_ =
              proto.types.block.BlockHeader.newBuilder(proof_).mergeFrom(value).buildPartial();
          } else {
            proof_ = value;
          }
          onChanged();
        } else {
          proofBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockHeader proof = 1;</code>
       */
      public Builder clearProof() {
        if (proofBuilder_ == null) {
          proof_ = null;
          onChanged();
        } else {
          proof_ = null;
          proofBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.proto.types.BlockHeader proof = 1;</code>
       */
      public proto.types.block.BlockHeader.Builder getProofBuilder() {
        
        onChanged();
        return getProofFieldBuilder().getBuilder();
      }
      /**
       * <code>.proto.types.BlockHeader proof = 1;</code>
       */
      public proto.types.block.BlockHeaderOrBuilder getProofOrBuilder() {
        if (proofBuilder_ != null) {
          return proofBuilder_.getMessageOrBuilder();
        } else {
          return proof_ == null ?
              proto.types.block.BlockHeader.getDefaultInstance() : proof_;
        }
      }
      /**
       * <code>.proto.types.BlockHeader proof = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.BlockHeader, proto.types.block.BlockHeader.Builder, proto.types.block.BlockHeaderOrBuilder> 
          getProofFieldBuilder() {
        if (proofBuilder_ == null) {
          proofBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              proto.types.block.BlockHeader, proto.types.block.BlockHeader.Builder, proto.types.block.BlockHeaderOrBuilder>(
                  getProof(),
                  getParentForChildren(),
                  isClean());
          proof_ = null;
        }
        return proofBuilder_;
      }
      @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.CommReq)
    }

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

    public static proto.types.comm.CommReq getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  public interface CommResOrBuilder extends
      // @@protoc_insertion_point(interface_extends:proto.types.CommRes)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.proto.types.Block b = 1;</code>
     */
    boolean hasB();
    /**
     * <code>.proto.types.Block b = 1;</code>
     */
    proto.types.block.Block getB();
    /**
     * <code>.proto.types.Block b = 1;</code>
     */
    proto.types.block.BlockOrBuilder getBOrBuilder();
  }
  /**
   * Protobuf type {@code proto.types.CommRes}
   */
  public  static final class CommRes extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:proto.types.CommRes)
      CommResOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use CommRes.newBuilder() to construct.
    private CommRes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private CommRes() {
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private CommRes(
        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: {
              proto.types.block.Block.Builder subBuilder = null;
              if (b_ != null) {
                subBuilder = b_.toBuilder();
              }
              b_ = input.readMessage(proto.types.block.Block.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(b_);
                b_ = subBuilder.buildPartial();
              }

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

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

    public static final int B_FIELD_NUMBER = 1;
    private proto.types.block.Block b_;
    /**
     * <code>.proto.types.Block b = 1;</code>
     */
    public boolean hasB() {
      return b_ != null;
    }
    /**
     * <code>.proto.types.Block b = 1;</code>
     */
    public proto.types.block.Block getB() {
      return b_ == null ? proto.types.block.Block.getDefaultInstance() : b_;
    }
    /**
     * <code>.proto.types.Block b = 1;</code>
     */
    public proto.types.block.BlockOrBuilder getBOrBuilder() {
      return getB();
    }

    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 (b_ != null) {
        output.writeMessage(1, getB());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (b_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getB());
      }
      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.comm.CommRes)) {
        return super.equals(obj);
      }
      proto.types.comm.CommRes other = (proto.types.comm.CommRes) obj;

      if (hasB() != other.hasB()) return false;
      if (hasB()) {
        if (!getB()
            .equals(other.getB())) 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 (hasB()) {
        hash = (37 * hash) + B_FIELD_NUMBER;
        hash = (53 * hash) + getB().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

      // Construct using proto.types.comm.CommRes.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (bBuilder_ == null) {
          b_ = null;
        } else {
          b_ = null;
          bBuilder_ = null;
        }
        return this;
      }

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

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

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

      @java.lang.Override
      public proto.types.comm.CommRes buildPartial() {
        proto.types.comm.CommRes result = new proto.types.comm.CommRes(this);
        if (bBuilder_ == null) {
          result.b_ = b_;
        } else {
          result.b_ = bBuilder_.build();
        }
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(proto.types.comm.CommRes other) {
        if (other == proto.types.comm.CommRes.getDefaultInstance()) return this;
        if (other.hasB()) {
          mergeB(other.getB());
        }
        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.comm.CommRes parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (proto.types.comm.CommRes) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private proto.types.block.Block b_;
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.Block, proto.types.block.Block.Builder, proto.types.block.BlockOrBuilder> bBuilder_;
      /**
       * <code>.proto.types.Block b = 1;</code>
       */
      public boolean hasB() {
        return bBuilder_ != null || b_ != null;
      }
      /**
       * <code>.proto.types.Block b = 1;</code>
       */
      public proto.types.block.Block getB() {
        if (bBuilder_ == null) {
          return b_ == null ? proto.types.block.Block.getDefaultInstance() : b_;
        } else {
          return bBuilder_.getMessage();
        }
      }
      /**
       * <code>.proto.types.Block b = 1;</code>
       */
      public Builder setB(proto.types.block.Block value) {
        if (bBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          b_ = value;
          onChanged();
        } else {
          bBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.Block b = 1;</code>
       */
      public Builder setB(
          proto.types.block.Block.Builder builderForValue) {
        if (bBuilder_ == null) {
          b_ = builderForValue.build();
          onChanged();
        } else {
          bBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.proto.types.Block b = 1;</code>
       */
      public Builder mergeB(proto.types.block.Block value) {
        if (bBuilder_ == null) {
          if (b_ != null) {
            b_ =
              proto.types.block.Block.newBuilder(b_).mergeFrom(value).buildPartial();
          } else {
            b_ = value;
          }
          onChanged();
        } else {
          bBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.proto.types.Block b = 1;</code>
       */
      public Builder clearB() {
        if (bBuilder_ == null) {
          b_ = null;
          onChanged();
        } else {
          b_ = null;
          bBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.proto.types.Block b = 1;</code>
       */
      public proto.types.block.Block.Builder getBBuilder() {
        
        onChanged();
        return getBFieldBuilder().getBuilder();
      }
      /**
       * <code>.proto.types.Block b = 1;</code>
       */
      public proto.types.block.BlockOrBuilder getBOrBuilder() {
        if (bBuilder_ != null) {
          return bBuilder_.getMessageOrBuilder();
        } else {
          return b_ == null ?
              proto.types.block.Block.getDefaultInstance() : b_;
        }
      }
      /**
       * <code>.proto.types.Block b = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          proto.types.block.Block, proto.types.block.Block.Builder, proto.types.block.BlockOrBuilder> 
          getBFieldBuilder() {
        if (bBuilder_ == null) {
          bBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              proto.types.block.Block, proto.types.block.Block.Builder, proto.types.block.BlockOrBuilder>(
                  getB(),
                  getParentForChildren(),
                  isClean());
          b_ = null;
        }
        return bBuilder_;
      }
      @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.CommRes)
    }

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

    public static proto.types.comm.CommRes getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_proto_types_Comm_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_proto_types_Comm_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_proto_types_CommReq_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_proto_types_CommReq_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_proto_types_CommRes_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_proto_types_CommRes_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\020types/comm.proto\022\013proto.types\032\021types/b" +
      "lock.proto\"9\n\004Comm\022\017\n\007channel\030\001 \001(\005\022 \n\004d" +
      "ata\030\002 \001(\0132\022.proto.types.Block\"2\n\007CommReq" +
      "\022\'\n\005proof\030\001 \001(\0132\030.proto.types.BlockHeade" +
      "r\"(\n\007CommRes\022\035\n\001b\030\001 \001(\0132\022.proto.types.Bl" +
      "ockB\023\n\013proto.typesB\004commb\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_Comm_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_proto_types_Comm_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_proto_types_Comm_descriptor,
        new java.lang.String[] { "Channel", "Data", });
    internal_static_proto_types_CommReq_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_proto_types_CommReq_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_proto_types_CommReq_descriptor,
        new java.lang.String[] { "Proof", });
    internal_static_proto_types_CommRes_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_proto_types_CommRes_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_proto_types_CommRes_descriptor,
        new java.lang.String[] { "B", });
    proto.types.block.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
