类 CommonProto.Block.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
org.bdware.bdledger.api.grpc.pb.CommonProto.Block.Builder
所有已实现的接口:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, CommonProto.BlockOrBuilder
封闭类:
CommonProto.Block

public static final class CommonProto.Block.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder> implements CommonProto.BlockOrBuilder
Protobuf type bdware.bdledger.api.Block
  • 方法详细资料

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      指定者:
      internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
    • clear

      public CommonProto.Block.Builder clear()
      指定者:
      clear 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clear 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      指定者:
      getDescriptorForType 在接口中 com.google.protobuf.Message.Builder
      指定者:
      getDescriptorForType 在接口中 com.google.protobuf.MessageOrBuilder
      覆盖:
      getDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
    • getDefaultInstanceForType

      public CommonProto.Block getDefaultInstanceForType()
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder
    • build

      public CommonProto.Block build()
      指定者:
      build 在接口中 com.google.protobuf.Message.Builder
      指定者:
      build 在接口中 com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CommonProto.Block buildPartial()
      指定者:
      buildPartial 在接口中 com.google.protobuf.Message.Builder
      指定者:
      buildPartial 在接口中 com.google.protobuf.MessageLite.Builder
    • clone

      public CommonProto.Block.Builder clone()
      指定者:
      clone 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clone 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
    • setField

      public CommonProto.Block.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      指定者:
      setField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
    • clearField

      public CommonProto.Block.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      指定者:
      clearField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      clearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
    • clearOneof

      public CommonProto.Block.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      指定者:
      clearOneof 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      clearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
    • setRepeatedField

      public CommonProto.Block.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      指定者:
      setRepeatedField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
    • addRepeatedField

      public CommonProto.Block.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      指定者:
      addRepeatedField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      addRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
    • mergeFrom

      public CommonProto.Block.Builder mergeFrom(com.google.protobuf.Message other)
      指定者:
      mergeFrom 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<CommonProto.Block.Builder>
    • mergeFrom

      public CommonProto.Block.Builder mergeFrom(CommonProto.Block other)
    • isInitialized

      public final boolean isInitialized()
      指定者:
      isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
      覆盖:
      isInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
    • mergeFrom

      public CommonProto.Block.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      指定者:
      mergeFrom 在接口中 com.google.protobuf.Message.Builder
      指定者:
      mergeFrom 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<CommonProto.Block.Builder>
      抛出:
      IOException
    • getHash

      public com.google.protobuf.ByteString getHash()
       区块的哈希,当区块处于待确认状态时为`null`
       
      bytes hash = 1;
      指定者:
      getHash 在接口中 CommonProto.BlockOrBuilder
      返回:
      The hash.
    • setHash

      public CommonProto.Block.Builder setHash(com.google.protobuf.ByteString value)
       区块的哈希,当区块处于待确认状态时为`null`
       
      bytes hash = 1;
      参数:
      value - The hash to set.
      返回:
      This builder for chaining.
    • clearHash

      public CommonProto.Block.Builder clearHash()
       区块的哈希,当区块处于待确认状态时为`null`
       
      bytes hash = 1;
      返回:
      This builder for chaining.
    • getCreator

      public com.google.protobuf.ByteString getCreator()
       产块者账户地址
       
      bytes creator = 2;
      指定者:
      getCreator 在接口中 CommonProto.BlockOrBuilder
      返回:
      The creator.
    • setCreator

      public CommonProto.Block.Builder setCreator(com.google.protobuf.ByteString value)
       产块者账户地址
       
      bytes creator = 2;
      参数:
      value - The creator to set.
      返回:
      This builder for chaining.
    • clearCreator

      public CommonProto.Block.Builder clearCreator()
       产块者账户地址
       
      bytes creator = 2;
      返回:
      This builder for chaining.
    • getNonce

      public long getNonce()
       这个区块之前产块者产生的区块数量
       
      uint64 nonce = 3;
      指定者:
      getNonce 在接口中 CommonProto.BlockOrBuilder
      返回:
      The nonce.
    • setNonce

      public CommonProto.Block.Builder setNonce(long value)
       这个区块之前产块者产生的区块数量
       
      uint64 nonce = 3;
      参数:
      value - The nonce to set.
      返回:
      This builder for chaining.
    • clearNonce

      public CommonProto.Block.Builder clearNonce()
       这个区块之前产块者产生的区块数量
       
      uint64 nonce = 3;
      返回:
      This builder for chaining.
    • getParentHashesList

      public List<com.google.protobuf.ByteString> getParentHashesList()
       父区块的哈希
       
      repeated bytes parent_hashes = 4;
      指定者:
      getParentHashesList 在接口中 CommonProto.BlockOrBuilder
      返回:
      A list containing the parentHashes.
    • getParentHashesCount

      public int getParentHashesCount()
       父区块的哈希
       
      repeated bytes parent_hashes = 4;
      指定者:
      getParentHashesCount 在接口中 CommonProto.BlockOrBuilder
      返回:
      The count of parentHashes.
    • getParentHashes

      public com.google.protobuf.ByteString getParentHashes(int index)
       父区块的哈希
       
      repeated bytes parent_hashes = 4;
      指定者:
      getParentHashes 在接口中 CommonProto.BlockOrBuilder
      参数:
      index - The index of the element to return.
      返回:
      The parentHashes at the given index.
    • setParentHashes

      public CommonProto.Block.Builder setParentHashes(int index, com.google.protobuf.ByteString value)
       父区块的哈希
       
      repeated bytes parent_hashes = 4;
      参数:
      index - The index to set the value at.
      value - The parentHashes to set.
      返回:
      This builder for chaining.
    • addParentHashes

      public CommonProto.Block.Builder addParentHashes(com.google.protobuf.ByteString value)
       父区块的哈希
       
      repeated bytes parent_hashes = 4;
      参数:
      value - The parentHashes to add.
      返回:
      This builder for chaining.
    • addAllParentHashes

      public CommonProto.Block.Builder addAllParentHashes(Iterable<? extends com.google.protobuf.ByteString> values)
       父区块的哈希
       
      repeated bytes parent_hashes = 4;
      参数:
      values - The parentHashes to add.
      返回:
      This builder for chaining.
    • clearParentHashes

      public CommonProto.Block.Builder clearParentHashes()
       父区块的哈希
       
      repeated bytes parent_hashes = 4;
      返回:
      This builder for chaining.
    • getWitnessesList

      public List<com.google.protobuf.ByteString> getWitnessesList()
       见证者账户地址
       
      repeated bytes witnesses = 5;
      指定者:
      getWitnessesList 在接口中 CommonProto.BlockOrBuilder
      返回:
      A list containing the witnesses.
    • getWitnessesCount

      public int getWitnessesCount()
       见证者账户地址
       
      repeated bytes witnesses = 5;
      指定者:
      getWitnessesCount 在接口中 CommonProto.BlockOrBuilder
      返回:
      The count of witnesses.
    • getWitnesses

      public com.google.protobuf.ByteString getWitnesses(int index)
       见证者账户地址
       
      repeated bytes witnesses = 5;
      指定者:
      getWitnesses 在接口中 CommonProto.BlockOrBuilder
      参数:
      index - The index of the element to return.
      返回:
      The witnesses at the given index.
    • setWitnesses

      public CommonProto.Block.Builder setWitnesses(int index, com.google.protobuf.ByteString value)
       见证者账户地址
       
      repeated bytes witnesses = 5;
      参数:
      index - The index to set the value at.
      value - The witnesses to set.
      返回:
      This builder for chaining.
    • addWitnesses

      public CommonProto.Block.Builder addWitnesses(com.google.protobuf.ByteString value)
       见证者账户地址
       
      repeated bytes witnesses = 5;
      参数:
      value - The witnesses to add.
      返回:
      This builder for chaining.
    • addAllWitnesses

      public CommonProto.Block.Builder addAllWitnesses(Iterable<? extends com.google.protobuf.ByteString> values)
       见证者账户地址
       
      repeated bytes witnesses = 5;
      参数:
      values - The witnesses to add.
      返回:
      This builder for chaining.
    • clearWitnesses

      public CommonProto.Block.Builder clearWitnesses()
       见证者账户地址
       
      repeated bytes witnesses = 5;
      返回:
      This builder for chaining.
    • getTimestamp

      public long getTimestamp()
       区块产生时的 UNIX 时间戳,单位为秒
       
      int64 timestamp = 6;
      指定者:
      getTimestamp 在接口中 CommonProto.BlockOrBuilder
      返回:
      The timestamp.
    • setTimestamp

      public CommonProto.Block.Builder setTimestamp(long value)
       区块产生时的 UNIX 时间戳,单位为秒
       
      int64 timestamp = 6;
      参数:
      value - The timestamp to set.
      返回:
      This builder for chaining.
    • clearTimestamp

      public CommonProto.Block.Builder clearTimestamp()
       区块产生时的 UNIX 时间戳,单位为秒
       
      int64 timestamp = 6;
      返回:
      This builder for chaining.
    • getSize

      public long getSize()
       区块大小的字节数
       
      uint64 size = 7;
      指定者:
      getSize 在接口中 CommonProto.BlockOrBuilder
      返回:
      The size.
    • setSize

      public CommonProto.Block.Builder setSize(long value)
       区块大小的字节数
       
      uint64 size = 7;
      参数:
      value - The size to set.
      返回:
      This builder for chaining.
    • clearSize

      public CommonProto.Block.Builder clearSize()
       区块大小的字节数
       
      uint64 size = 7;
      返回:
      This builder for chaining.
    • getTransactionCount

      public int getTransactionCount()
       区块包含的事务数量
       
      uint32 transaction_count = 8;
      指定者:
      getTransactionCount 在接口中 CommonProto.BlockOrBuilder
      返回:
      The transactionCount.
    • setTransactionCount

      public CommonProto.Block.Builder setTransactionCount(int value)
       区块包含的事务数量
       
      uint32 transaction_count = 8;
      参数:
      value - The transactionCount to set.
      返回:
      This builder for chaining.
    • clearTransactionCount

      public CommonProto.Block.Builder clearTransactionCount()
       区块包含的事务数量
       
      uint32 transaction_count = 8;
      返回:
      This builder for chaining.
    • getTransactionsRoot

      public com.google.protobuf.ByteString getTransactionsRoot()
       区块的事务默克尔树根
       
      bytes transactions_root = 9;
      指定者:
      getTransactionsRoot 在接口中 CommonProto.BlockOrBuilder
      返回:
      The transactionsRoot.
    • setTransactionsRoot

      public CommonProto.Block.Builder setTransactionsRoot(com.google.protobuf.ByteString value)
       区块的事务默克尔树根
       
      bytes transactions_root = 9;
      参数:
      value - The transactionsRoot to set.
      返回:
      This builder for chaining.
    • clearTransactionsRoot

      public CommonProto.Block.Builder clearTransactionsRoot()
       区块的事务默克尔树根
       
      bytes transactions_root = 9;
      返回:
      This builder for chaining.
    • getTransactionsList

      public List<CommonProto.Transaction> getTransactionsList()
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
      指定者:
      getTransactionsList 在接口中 CommonProto.BlockOrBuilder
    • getTransactionsCount

      public int getTransactionsCount()
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
      指定者:
      getTransactionsCount 在接口中 CommonProto.BlockOrBuilder
    • getTransactions

      public CommonProto.Transaction getTransactions(int index)
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
      指定者:
      getTransactions 在接口中 CommonProto.BlockOrBuilder
    • setTransactions

      public CommonProto.Block.Builder setTransactions(int index, CommonProto.Transaction value)
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • setTransactions

      public CommonProto.Block.Builder setTransactions(int index, CommonProto.Transaction.Builder builderForValue)
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • addTransactions

      public CommonProto.Block.Builder addTransactions(CommonProto.Transaction value)
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • addTransactions

      public CommonProto.Block.Builder addTransactions(int index, CommonProto.Transaction value)
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • addTransactions

      public CommonProto.Block.Builder addTransactions(CommonProto.Transaction.Builder builderForValue)
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • addTransactions

      public CommonProto.Block.Builder addTransactions(int index, CommonProto.Transaction.Builder builderForValue)
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • addAllTransactions

      public CommonProto.Block.Builder addAllTransactions(Iterable<? extends CommonProto.Transaction> values)
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • clearTransactions

      public CommonProto.Block.Builder clearTransactions()
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • removeTransactions

      public CommonProto.Block.Builder removeTransactions(int index)
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • getTransactionsBuilder

      public CommonProto.Transaction.Builder getTransactionsBuilder(int index)
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • getTransactionsOrBuilder

      public CommonProto.TransactionOrBuilder getTransactionsOrBuilder(int index)
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
      指定者:
      getTransactionsOrBuilder 在接口中 CommonProto.BlockOrBuilder
    • getTransactionsOrBuilderList

      public List<? extends CommonProto.TransactionOrBuilder> getTransactionsOrBuilderList()
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
      指定者:
      getTransactionsOrBuilderList 在接口中 CommonProto.BlockOrBuilder
    • addTransactionsBuilder

      public CommonProto.Transaction.Builder addTransactionsBuilder()
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • addTransactionsBuilder

      public CommonProto.Transaction.Builder addTransactionsBuilder(int index)
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • getTransactionsBuilderList

      public List<CommonProto.Transaction.Builder> getTransactionsBuilderList()
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • getTransactionHashesList

      public List<com.google.protobuf.ByteString> getTransactionHashesList()
       20字节的交易哈希的数组,或为空
       
      repeated bytes transaction_hashes = 11;
      指定者:
      getTransactionHashesList 在接口中 CommonProto.BlockOrBuilder
      返回:
      A list containing the transactionHashes.
    • getTransactionHashesCount

      public int getTransactionHashesCount()
       20字节的交易哈希的数组,或为空
       
      repeated bytes transaction_hashes = 11;
      指定者:
      getTransactionHashesCount 在接口中 CommonProto.BlockOrBuilder
      返回:
      The count of transactionHashes.
    • getTransactionHashes

      public com.google.protobuf.ByteString getTransactionHashes(int index)
       20字节的交易哈希的数组,或为空
       
      repeated bytes transaction_hashes = 11;
      指定者:
      getTransactionHashes 在接口中 CommonProto.BlockOrBuilder
      参数:
      index - The index of the element to return.
      返回:
      The transactionHashes at the given index.
    • setTransactionHashes

      public CommonProto.Block.Builder setTransactionHashes(int index, com.google.protobuf.ByteString value)
       20字节的交易哈希的数组,或为空
       
      repeated bytes transaction_hashes = 11;
      参数:
      index - The index to set the value at.
      value - The transactionHashes to set.
      返回:
      This builder for chaining.
    • addTransactionHashes

      public CommonProto.Block.Builder addTransactionHashes(com.google.protobuf.ByteString value)
       20字节的交易哈希的数组,或为空
       
      repeated bytes transaction_hashes = 11;
      参数:
      value - The transactionHashes to add.
      返回:
      This builder for chaining.
    • addAllTransactionHashes

      public CommonProto.Block.Builder addAllTransactionHashes(Iterable<? extends com.google.protobuf.ByteString> values)
       20字节的交易哈希的数组,或为空
       
      repeated bytes transaction_hashes = 11;
      参数:
      values - The transactionHashes to add.
      返回:
      This builder for chaining.
    • clearTransactionHashes

      public CommonProto.Block.Builder clearTransactionHashes()
       20字节的交易哈希的数组,或为空
       
      repeated bytes transaction_hashes = 11;
      返回:
      This builder for chaining.
    • setUnknownFields

      public final CommonProto.Block.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      指定者:
      setUnknownFields 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>
    • mergeUnknownFields

      public final CommonProto.Block.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      指定者:
      mergeUnknownFields 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      mergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Block.Builder>