Class Proofs.IndexProof.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Proofs.IndexProof.Builder>
com.exonum.messages.core.Proofs.IndexProof.Builder
All Implemented Interfaces:
Proofs.IndexProofOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
Enclosing class:
Proofs.IndexProof

public static final class Proofs.IndexProof.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Proofs.IndexProof.Builder>
implements Proofs.IndexProofOrBuilder
 Proof of authenticity for a single index within the database.
 
Protobuf type exonum.IndexProof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Proofs.IndexProof.Builder>
    • clear

      public Proofs.IndexProof.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Proofs.IndexProof.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Proofs.IndexProof.Builder>
    • getDefaultInstanceForType

      public Proofs.IndexProof getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Proofs.IndexProof build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Proofs.IndexProof buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Proofs.IndexProof.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Proofs.IndexProof.Builder>
    • setField

      public Proofs.IndexProof.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Proofs.IndexProof.Builder>
    • clearField

      public Proofs.IndexProof.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Proofs.IndexProof.Builder>
    • clearOneof

      public Proofs.IndexProof.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Proofs.IndexProof.Builder>
    • setRepeatedField

      public Proofs.IndexProof.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Proofs.IndexProof.Builder>
    • addRepeatedField

      public Proofs.IndexProof.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Proofs.IndexProof.Builder>
    • mergeFrom

      public Proofs.IndexProof.Builder mergeFrom​(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Proofs.IndexProof.Builder>
    • mergeFrom

      public Proofs.IndexProof.Builder mergeFrom​(Proofs.IndexProof other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Proofs.IndexProof.Builder>
    • mergeFrom

      public Proofs.IndexProof.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Proofs.IndexProof.Builder>
      Throws:
      java.io.IOException
    • hasBlockProof

      public boolean hasBlockProof()
       Proof of authenticity for the block header.
       
      .exonum.BlockProof block_proof = 1;
      Specified by:
      hasBlockProof in interface Proofs.IndexProofOrBuilder
      Returns:
      Whether the blockProof field is set.
    • getBlockProof

      public Proofs.BlockProof getBlockProof()
       Proof of authenticity for the block header.
       
      .exonum.BlockProof block_proof = 1;
      Specified by:
      getBlockProof in interface Proofs.IndexProofOrBuilder
      Returns:
      The blockProof.
    • setBlockProof

      public Proofs.IndexProof.Builder setBlockProof​(Proofs.BlockProof value)
       Proof of authenticity for the block header.
       
      .exonum.BlockProof block_proof = 1;
    • setBlockProof

      public Proofs.IndexProof.Builder setBlockProof​(Proofs.BlockProof.Builder builderForValue)
       Proof of authenticity for the block header.
       
      .exonum.BlockProof block_proof = 1;
    • mergeBlockProof

      public Proofs.IndexProof.Builder mergeBlockProof​(Proofs.BlockProof value)
       Proof of authenticity for the block header.
       
      .exonum.BlockProof block_proof = 1;
    • clearBlockProof

      public Proofs.IndexProof.Builder clearBlockProof()
       Proof of authenticity for the block header.
       
      .exonum.BlockProof block_proof = 1;
    • getBlockProofBuilder

      public Proofs.BlockProof.Builder getBlockProofBuilder()
       Proof of authenticity for the block header.
       
      .exonum.BlockProof block_proof = 1;
    • getBlockProofOrBuilder

      public Proofs.BlockProofOrBuilder getBlockProofOrBuilder()
       Proof of authenticity for the block header.
       
      .exonum.BlockProof block_proof = 1;
      Specified by:
      getBlockProofOrBuilder in interface Proofs.IndexProofOrBuilder
    • hasIndexProof

      public boolean hasIndexProof()
       Proof of authenticity for the index. Must contain a single key - a full index name
       in the form `$service_name.$name_within_service`, e.g., `cryptocurrency.wallets`.
       The root hash of the proof must be equal to the `state_hash` mentioned in `block_proof`.
       
      .exonum.proof.MapProof index_proof = 2;
      Specified by:
      hasIndexProof in interface Proofs.IndexProofOrBuilder
      Returns:
      Whether the indexProof field is set.
    • getIndexProof

      public MapProofOuterClass.MapProof getIndexProof()
       Proof of authenticity for the index. Must contain a single key - a full index name
       in the form `$service_name.$name_within_service`, e.g., `cryptocurrency.wallets`.
       The root hash of the proof must be equal to the `state_hash` mentioned in `block_proof`.
       
      .exonum.proof.MapProof index_proof = 2;
      Specified by:
      getIndexProof in interface Proofs.IndexProofOrBuilder
      Returns:
      The indexProof.
    • setIndexProof

      public Proofs.IndexProof.Builder setIndexProof​(MapProofOuterClass.MapProof value)
       Proof of authenticity for the index. Must contain a single key - a full index name
       in the form `$service_name.$name_within_service`, e.g., `cryptocurrency.wallets`.
       The root hash of the proof must be equal to the `state_hash` mentioned in `block_proof`.
       
      .exonum.proof.MapProof index_proof = 2;
    • setIndexProof

      public Proofs.IndexProof.Builder setIndexProof​(MapProofOuterClass.MapProof.Builder builderForValue)
       Proof of authenticity for the index. Must contain a single key - a full index name
       in the form `$service_name.$name_within_service`, e.g., `cryptocurrency.wallets`.
       The root hash of the proof must be equal to the `state_hash` mentioned in `block_proof`.
       
      .exonum.proof.MapProof index_proof = 2;
    • mergeIndexProof

      public Proofs.IndexProof.Builder mergeIndexProof​(MapProofOuterClass.MapProof value)
       Proof of authenticity for the index. Must contain a single key - a full index name
       in the form `$service_name.$name_within_service`, e.g., `cryptocurrency.wallets`.
       The root hash of the proof must be equal to the `state_hash` mentioned in `block_proof`.
       
      .exonum.proof.MapProof index_proof = 2;
    • clearIndexProof

      public Proofs.IndexProof.Builder clearIndexProof()
       Proof of authenticity for the index. Must contain a single key - a full index name
       in the form `$service_name.$name_within_service`, e.g., `cryptocurrency.wallets`.
       The root hash of the proof must be equal to the `state_hash` mentioned in `block_proof`.
       
      .exonum.proof.MapProof index_proof = 2;
    • getIndexProofBuilder

      public MapProofOuterClass.MapProof.Builder getIndexProofBuilder()
       Proof of authenticity for the index. Must contain a single key - a full index name
       in the form `$service_name.$name_within_service`, e.g., `cryptocurrency.wallets`.
       The root hash of the proof must be equal to the `state_hash` mentioned in `block_proof`.
       
      .exonum.proof.MapProof index_proof = 2;
    • getIndexProofOrBuilder

      public MapProofOuterClass.MapProofOrBuilder getIndexProofOrBuilder()
       Proof of authenticity for the index. Must contain a single key - a full index name
       in the form `$service_name.$name_within_service`, e.g., `cryptocurrency.wallets`.
       The root hash of the proof must be equal to the `state_hash` mentioned in `block_proof`.
       
      .exonum.proof.MapProof index_proof = 2;
      Specified by:
      getIndexProofOrBuilder in interface Proofs.IndexProofOrBuilder
    • setUnknownFields

      public final Proofs.IndexProof.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Proofs.IndexProof.Builder>
    • mergeUnknownFields

      public final Proofs.IndexProof.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Proofs.IndexProof.Builder>