程序包 org.bdware.bdledger.api.grpc.pb

# 类 CommonProto.Transaction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
org.bdware.bdledger.api.grpc.pb.CommonProto.Transaction.Builder

所有已实现的接口:
  `com.google.protobuf.Message.Builder`, `com.google.protobuf.MessageLite.Builder`, `com.google.protobuf.MessageLiteOrBuilder`, `com.google.protobuf.MessageOrBuilder`, `Cloneable`, `CommonProto.TransactionOrBuilder`

封闭类:
  CommonProto.Transaction

public static final class CommonProto.Transaction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder> implements CommonProto.TransactionOrBuilder
Protobuf type `bdware.bdledger.api.Transaction`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `CommonProto.Transaction.Builder`
  `addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)`
  `CommonProto.Transaction`
  `build()`
  `CommonProto.Transaction`
  `buildPartial()`
  `CommonProto.Transaction.Builder`
  `clear()`
  `CommonProto.Transaction.Builder`
  `clearBlockHash()`
  事务所在的区块的哈希，当事务处于待确认状态时为`null`
  `CommonProto.Transaction.Builder`
  `clearBlockTimestamp()`
  事务所在的区块产生时的 UNIX 时间戳，单位为秒
  `CommonProto.Transaction.Builder`
  `clearData()`
  数据或合约代码
  `CommonProto.Transaction.Builder`
  `clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)`
  `CommonProto.Transaction.Builder`
  `clearFrom()`
  发送账户地址
  `CommonProto.Transaction.Builder`
  `clearHash()`
  事务的哈希
  `CommonProto.Transaction.Builder`
  `clearIndex()`
  事务在区块中的位置 index，当事务处于待确认状态时为`null`
  `CommonProto.Transaction.Builder`
  `clearNonce()`
  这条事务之前发送者所发送的事务数量
  `CommonProto.Transaction.Builder`
  `clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)`
  `CommonProto.Transaction.Builder`
  `clearR()`
  ECDSA signature r
  `CommonProto.Transaction.Builder`
  `clearS()`
  ECDSA signature s
  `CommonProto.Transaction.Builder`
  `clearTo()`
  接收账户地址，或者调用的合约地址，或者`null`如为合约创建
  `CommonProto.Transaction.Builder`
  `clearType()`
  事务类型
  `CommonProto.Transaction.Builder`
  `clearV()`
  ECDSA recovery id
  `CommonProto.Transaction.Builder`
  `clone()`
  `com.google.protobuf.ByteString`
  `getBlockHash()`
  事务所在的区块的哈希，当事务处于待确认状态时为`null`
  `long`
  `getBlockTimestamp()`
  事务所在的区块产生时的 UNIX 时间戳，单位为秒
  `com.google.protobuf.ByteString`
  `getData()`
  数据或合约代码
  `CommonProto.Transaction`
  `getDefaultInstanceForType()`
  `static com.google.protobuf.Descriptors.Descriptor`
  `getDescriptor()`
  `com.google.protobuf.Descriptors.Descriptor`
  `getDescriptorForType()`
  `com.google.protobuf.ByteString`
  `getFrom()`
  发送账户地址
  `com.google.protobuf.ByteString`
  `getHash()`
  事务的哈希
  `int`
  `getIndex()`
  事务在区块中的位置 index，当事务处于待确认状态时为`null`
  `long`
  `getNonce()`
  这条事务之前发送者所发送的事务数量
  `com.google.protobuf.ByteString`
  `getR()`
  ECDSA signature r
  `com.google.protobuf.ByteString`
  `getS()`
  ECDSA signature s
  `com.google.protobuf.ByteString`
  `getTo()`
  接收账户地址，或者调用的合约地址，或者`null`如为合约创建
  `CommonProto.TransactionType`
  `getType()`
  事务类型
  `int`
  `getTypeValue()`
  事务类型
  `com.google.protobuf.ByteString`
  `getV()`
  ECDSA recovery id
  `protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable`
  `internalGetFieldAccessorTable()`
  `boolean`
  `isInitialized()`
  `CommonProto.Transaction.Builder`
  `mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)`
  `CommonProto.Transaction.Builder`
  `mergeFrom​(com.google.protobuf.Message other)`
  `CommonProto.Transaction.Builder`
  `mergeFrom​(CommonProto.Transaction other)`
  `CommonProto.Transaction.Builder`
  `mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)`
  `CommonProto.Transaction.Builder`
  `setBlockHash​(com.google.protobuf.ByteString value)`
  事务所在的区块的哈希，当事务处于待确认状态时为`null`
  `CommonProto.Transaction.Builder`
  `setBlockTimestamp​(long value)`
  事务所在的区块产生时的 UNIX 时间戳，单位为秒
  `CommonProto.Transaction.Builder`
  `setData​(com.google.protobuf.ByteString value)`
  数据或合约代码
  `CommonProto.Transaction.Builder`
  `setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)`
  `CommonProto.Transaction.Builder`
  `setFrom​(com.google.protobuf.ByteString value)`
  发送账户地址
  `CommonProto.Transaction.Builder`
  `setHash​(com.google.protobuf.ByteString value)`
  事务的哈希
  `CommonProto.Transaction.Builder`
  `setIndex​(int value)`
  事务在区块中的位置 index，当事务处于待确认状态时为`null`
  `CommonProto.Transaction.Builder`
  `setNonce​(long value)`
  这条事务之前发送者所发送的事务数量
  `CommonProto.Transaction.Builder`
  `setR​(com.google.protobuf.ByteString value)`
  ECDSA signature r
  `CommonProto.Transaction.Builder`
  `setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)`
  `CommonProto.Transaction.Builder`
  `setS​(com.google.protobuf.ByteString value)`
  ECDSA signature s
  `CommonProto.Transaction.Builder`
  `setTo​(com.google.protobuf.ByteString value)`
  接收账户地址，或者调用的合约地址，或者`null`如为合约创建
  `CommonProto.Transaction.Builder`
  `setType​(CommonProto.TransactionType value)`
  事务类型
  `CommonProto.Transaction.Builder`
  `setTypeValue​(int value)`
  事务类型
  `CommonProto.Transaction.Builder`
  `setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)`
  `CommonProto.Transaction.Builder`
  `setV​(com.google.protobuf.ByteString value)`
  ECDSA recovery id

  ### 从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder

  `getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3`

  ### 从类继承的方法 com.google.protobuf.AbstractMessage.Builder

  `findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString`

  ### 从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder

  `addAll, addAll, mergeFrom, newUninitializedMessageException`

  ### 从类继承的方法 java.lang.Object

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

  ### 从接口继承的方法 com.google.protobuf.MessageLite.Builder

  `mergeFrom`

  ### 从接口继承的方法 com.google.protobuf.MessageOrBuilder

  `findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof`

- ## 方法详细资料

  - ### 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.Transaction.Builder>`

  - ### clear

    public CommonProto.Transaction.Builder clear()
    指定者:
      `clear` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `clear` 在接口中 `com.google.protobuf.MessageLite.Builder`
    覆盖:
      `clear` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.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.Transaction.Builder>`

  - ### getDefaultInstanceForType

    public CommonProto.Transaction getDefaultInstanceForType()
    指定者:
      `getDefaultInstanceForType` 在接口中 `com.google.protobuf.MessageLiteOrBuilder`
    指定者:
      `getDefaultInstanceForType` 在接口中 `com.google.protobuf.MessageOrBuilder`

  - ### build

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

  - ### buildPartial

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

  - ### clone

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

  - ### setField

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

  - ### clearField

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

  - ### clearOneof

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

  - ### setRepeatedField

    public CommonProto.Transaction.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.Transaction.Builder>`

  - ### addRepeatedField

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

  - ### mergeFrom

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

  - ### mergeFrom

    public CommonProto.Transaction.Builder mergeFrom​(CommonProto.Transaction other)

  - ### isInitialized

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

  - ### mergeFrom

    public CommonProto.Transaction.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.Transaction.Builder>`
    抛出:
      `IOException`

  - ### getBlockHash

    public com.google.protobuf.ByteString getBlockHash()

         事务所在的区块的哈希，当事务处于待确认状态时为`null`

    `bytes block_hash = 1;`
    指定者:
      `getBlockHash` 在接口中 `CommonProto.TransactionOrBuilder`
    返回:
      The blockHash.

  - ### setBlockHash

    public CommonProto.Transaction.Builder setBlockHash​(com.google.protobuf.ByteString value)

         事务所在的区块的哈希，当事务处于待确认状态时为`null`

    `bytes block_hash = 1;`
    参数:
      `value` - The blockHash to set.
    返回:
      This builder for chaining.

  - ### clearBlockHash

    public CommonProto.Transaction.Builder clearBlockHash()

         事务所在的区块的哈希，当事务处于待确认状态时为`null`

    `bytes block_hash = 1;`
    返回:
      This builder for chaining.

  - ### getBlockTimestamp

    public long getBlockTimestamp()

         事务所在的区块产生时的 UNIX 时间戳，单位为秒

    `int64 block_timestamp = 2;`
    指定者:
      `getBlockTimestamp` 在接口中 `CommonProto.TransactionOrBuilder`
    返回:
      The blockTimestamp.

  - ### setBlockTimestamp

    public CommonProto.Transaction.Builder setBlockTimestamp​(long value)

         事务所在的区块产生时的 UNIX 时间戳，单位为秒

    `int64 block_timestamp = 2;`
    参数:
      `value` - The blockTimestamp to set.
    返回:
      This builder for chaining.

  - ### clearBlockTimestamp

    public CommonProto.Transaction.Builder clearBlockTimestamp()

         事务所在的区块产生时的 UNIX 时间戳，单位为秒

    `int64 block_timestamp = 2;`
    返回:
      This builder for chaining.

  - ### getIndex

    public int getIndex()

         事务在区块中的位置 index，当事务处于待确认状态时为`null`

    `uint32 index = 3;`
    指定者:
      `getIndex` 在接口中 `CommonProto.TransactionOrBuilder`
    返回:
      The index.

  - ### setIndex

    public CommonProto.Transaction.Builder setIndex​(int value)

         事务在区块中的位置 index，当事务处于待确认状态时为`null`

    `uint32 index = 3;`
    参数:
      `value` - The index to set.
    返回:
      This builder for chaining.

  - ### clearIndex

    public CommonProto.Transaction.Builder clearIndex()

         事务在区块中的位置 index，当事务处于待确认状态时为`null`

    `uint32 index = 3;`
    返回:
      This builder for chaining.

  - ### getHash

    public com.google.protobuf.ByteString getHash()

         事务的哈希

    `bytes hash = 4;`
    指定者:
      `getHash` 在接口中 `CommonProto.TransactionOrBuilder`
    返回:
      The hash.

  - ### setHash

    public CommonProto.Transaction.Builder setHash​(com.google.protobuf.ByteString value)

         事务的哈希

    `bytes hash = 4;`
    参数:
      `value` - The hash to set.
    返回:
      This builder for chaining.

  - ### clearHash

    public CommonProto.Transaction.Builder clearHash()

         事务的哈希

    `bytes hash = 4;`
    返回:
      This builder for chaining.

  - ### getTypeValue

    public int getTypeValue()

         事务类型

    `.bdware.bdledger.api.TransactionType type = 5;`
    指定者:
      `getTypeValue` 在接口中 `CommonProto.TransactionOrBuilder`
    返回:
      The enum numeric value on the wire for type.

  - ### setTypeValue

    public CommonProto.Transaction.Builder setTypeValue​(int value)

         事务类型

    `.bdware.bdledger.api.TransactionType type = 5;`
    参数:
      `value` - The enum numeric value on the wire for type to set.
    返回:
      This builder for chaining.

  - ### getType

    public CommonProto.TransactionType getType()

         事务类型

    `.bdware.bdledger.api.TransactionType type = 5;`
    指定者:
      `getType` 在接口中 `CommonProto.TransactionOrBuilder`
    返回:
      The type.

  - ### setType

    public CommonProto.Transaction.Builder setType​(CommonProto.TransactionType value)

         事务类型

    `.bdware.bdledger.api.TransactionType type = 5;`
    参数:
      `value` - The type to set.
    返回:
      This builder for chaining.

  - ### clearType

    public CommonProto.Transaction.Builder clearType()

         事务类型

    `.bdware.bdledger.api.TransactionType type = 5;`
    返回:
      This builder for chaining.

  - ### getFrom

    public com.google.protobuf.ByteString getFrom()

         发送账户地址

    `bytes from = 6;`
    指定者:
      `getFrom` 在接口中 `CommonProto.TransactionOrBuilder`
    返回:
      The from.

  - ### setFrom

    public CommonProto.Transaction.Builder setFrom​(com.google.protobuf.ByteString value)

         发送账户地址

    `bytes from = 6;`
    参数:
      `value` - The from to set.
    返回:
      This builder for chaining.

  - ### clearFrom

    public CommonProto.Transaction.Builder clearFrom()

         发送账户地址

    `bytes from = 6;`
    返回:
      This builder for chaining.

  - ### getNonce

    public long getNonce()

         这条事务之前发送者所发送的事务数量

    `uint64 nonce = 7;`
    指定者:
      `getNonce` 在接口中 `CommonProto.TransactionOrBuilder`
    返回:
      The nonce.

  - ### setNonce

    public CommonProto.Transaction.Builder setNonce​(long value)

         这条事务之前发送者所发送的事务数量

    `uint64 nonce = 7;`
    参数:
      `value` - The nonce to set.
    返回:
      This builder for chaining.

  - ### clearNonce

    public CommonProto.Transaction.Builder clearNonce()

         这条事务之前发送者所发送的事务数量

    `uint64 nonce = 7;`
    返回:
      This builder for chaining.

  - ### getTo

    public com.google.protobuf.ByteString getTo()

         接收账户地址，或者调用的合约地址，或者`null`如为合约创建

    `bytes to = 8;`
    指定者:
      `getTo` 在接口中 `CommonProto.TransactionOrBuilder`
    返回:
      The to.

  - ### setTo

    public CommonProto.Transaction.Builder setTo​(com.google.protobuf.ByteString value)

         接收账户地址，或者调用的合约地址，或者`null`如为合约创建

    `bytes to = 8;`
    参数:
      `value` - The to to set.
    返回:
      This builder for chaining.

  - ### clearTo

    public CommonProto.Transaction.Builder clearTo()

         接收账户地址，或者调用的合约地址，或者`null`如为合约创建

    `bytes to = 8;`
    返回:
      This builder for chaining.

  - ### getData

    public com.google.protobuf.ByteString getData()

         数据或合约代码

    `bytes data = 9;`
    指定者:
      `getData` 在接口中 `CommonProto.TransactionOrBuilder`
    返回:
      The data.

  - ### setData

    public CommonProto.Transaction.Builder setData​(com.google.protobuf.ByteString value)

         数据或合约代码

    `bytes data = 9;`
    参数:
      `value` - The data to set.
    返回:
      This builder for chaining.

  - ### clearData

    public CommonProto.Transaction.Builder clearData()

         数据或合约代码

    `bytes data = 9;`
    返回:
      This builder for chaining.

  - ### getV

    public com.google.protobuf.ByteString getV()

         ECDSA recovery id

    `bytes v = 10;`
    指定者:
      `getV` 在接口中 `CommonProto.TransactionOrBuilder`
    返回:
      The v.

  - ### setV

    public CommonProto.Transaction.Builder setV​(com.google.protobuf.ByteString value)

         ECDSA recovery id

    `bytes v = 10;`
    参数:
      `value` - The v to set.
    返回:
      This builder for chaining.

  - ### clearV

    public CommonProto.Transaction.Builder clearV()

         ECDSA recovery id

    `bytes v = 10;`
    返回:
      This builder for chaining.

  - ### getR

    public com.google.protobuf.ByteString getR()

         ECDSA signature r

    `bytes r = 11;`
    指定者:
      `getR` 在接口中 `CommonProto.TransactionOrBuilder`
    返回:
      The r.

  - ### setR

    public CommonProto.Transaction.Builder setR​(com.google.protobuf.ByteString value)

         ECDSA signature r

    `bytes r = 11;`
    参数:
      `value` - The r to set.
    返回:
      This builder for chaining.

  - ### clearR

    public CommonProto.Transaction.Builder clearR()

         ECDSA signature r

    `bytes r = 11;`
    返回:
      This builder for chaining.

  - ### getS

    public com.google.protobuf.ByteString getS()

         ECDSA signature s

    `bytes s = 12;`
    指定者:
      `getS` 在接口中 `CommonProto.TransactionOrBuilder`
    返回:
      The s.

  - ### setS

    public CommonProto.Transaction.Builder setS​(com.google.protobuf.ByteString value)

         ECDSA signature s

    `bytes s = 12;`
    参数:
      `value` - The s to set.
    返回:
      This builder for chaining.

  - ### clearS

    public CommonProto.Transaction.Builder clearS()

         ECDSA signature s

    `bytes s = 12;`
    返回:
      This builder for chaining.

  - ### setUnknownFields

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

  - ### mergeUnknownFields

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