Class History.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<History,History.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<History,History.Builder>
com.hedera.hashgraph.sdk.proto.History.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, HistoryOrBuilder, Cloneable
Enclosing class:
History

public static final class History.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<History,History.Builder> implements HistoryOrBuilder
 *
 A piece of new history in the form of an address book hash and
 associated metadata.
 
Protobuf type com.hedera.hapi.node.state.history.History
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * The address book hash of the new history.
    * The metadata associated to the address book.
    com.google.protobuf.ByteString
    * The address book hash of the new history.
    com.google.protobuf.ByteString
    * The metadata associated to the address book.
    setAddressBookHash(com.google.protobuf.ByteString value)
    * The address book hash of the new history.
    setMetadata(com.google.protobuf.ByteString value)
    * The metadata associated to the address book.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getAddressBookHash

      public com.google.protobuf.ByteString getAddressBookHash()
       *
       The address book hash of the new history.
       
      bytes address_book_hash = 1;
      Specified by:
      getAddressBookHash in interface HistoryOrBuilder
      Returns:
      The addressBookHash.
    • setAddressBookHash

      public History.Builder setAddressBookHash(com.google.protobuf.ByteString value)
       *
       The address book hash of the new history.
       
      bytes address_book_hash = 1;
      Parameters:
      value - The addressBookHash to set.
      Returns:
      This builder for chaining.
    • clearAddressBookHash

      public History.Builder clearAddressBookHash()
       *
       The address book hash of the new history.
       
      bytes address_book_hash = 1;
      Returns:
      This builder for chaining.
    • getMetadata

      public com.google.protobuf.ByteString getMetadata()
       *
       The metadata associated to the address book.
       
      bytes metadata = 2;
      Specified by:
      getMetadata in interface HistoryOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public History.Builder setMetadata(com.google.protobuf.ByteString value)
       *
       The metadata associated to the address book.
       
      bytes metadata = 2;
      Parameters:
      value - The metadata to set.
      Returns:
      This builder for chaining.
    • clearMetadata

      public History.Builder clearMetadata()
       *
       The metadata associated to the address book.
       
      bytes metadata = 2;
      Returns:
      This builder for chaining.