类 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
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
-
方法概要
修饰符和类型方法说明addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
build()
clear()
事务所在的区块的哈希,当事务处于待确认状态时为`null`事务所在的区块产生时的 UNIX 时间戳,单位为秒数据或合约代码clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
发送账户地址事务的哈希事务在区块中的位置 index,当事务处于待确认状态时为`null`这条事务之前发送者所发送的事务数量clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearR()
ECDSA signature rclearS()
ECDSA signature sclearTo()
接收账户地址,或者调用的合约地址,或者`null`如为合约创建事务类型clearV()
ECDSA recovery idclone()
com.google.protobuf.ByteString
事务所在的区块的哈希,当事务处于待确认状态时为`null`long
事务所在的区块产生时的 UNIX 时间戳,单位为秒com.google.protobuf.ByteString
getData()
数据或合约代码static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.ByteString
getFrom()
发送账户地址com.google.protobuf.ByteString
getHash()
事务的哈希int
getIndex()
事务在区块中的位置 index,当事务处于待确认状态时为`null`long
getNonce()
这条事务之前发送者所发送的事务数量com.google.protobuf.ByteString
getR()
ECDSA signature rcom.google.protobuf.ByteString
getS()
ECDSA signature scom.google.protobuf.ByteString
getTo()
接收账户地址,或者调用的合约地址,或者`null`如为合约创建getType()
事务类型int
事务类型com.google.protobuf.ByteString
getV()
ECDSA recovery idprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
boolean
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
mergeFrom(com.google.protobuf.Message other)
mergeFrom(CommonProto.Transaction other)
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setBlockHash(com.google.protobuf.ByteString value)
事务所在的区块的哈希,当事务处于待确认状态时为`null`setBlockTimestamp(long value)
事务所在的区块产生时的 UNIX 时间戳,单位为秒setData(com.google.protobuf.ByteString value)
数据或合约代码setFrom(com.google.protobuf.ByteString value)
发送账户地址setHash(com.google.protobuf.ByteString value)
事务的哈希setIndex(int value)
事务在区块中的位置 index,当事务处于待确认状态时为`null`setNonce(long value)
这条事务之前发送者所发送的事务数量setR(com.google.protobuf.ByteString value)
ECDSA signature rsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setS(com.google.protobuf.ByteString value)
ECDSA signature ssetTo(com.google.protobuf.ByteString value)
接收账户地址,或者调用的合约地址,或者`null`如为合约创建setType(CommonProto.TransactionType value)
事务类型setTypeValue(int value)
事务类型setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
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
从接口继承的方法 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
- 指定者:
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
- 指定者:
getDefaultInstanceForType
在接口中com.google.protobuf.MessageLiteOrBuilder
- 指定者:
getDefaultInstanceForType
在接口中com.google.protobuf.MessageOrBuilder
-
build
- 指定者:
build
在接口中com.google.protobuf.Message.Builder
- 指定者:
build
在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
- 指定者:
buildPartial
在接口中com.google.protobuf.Message.Builder
- 指定者:
buildPartial
在接口中com.google.protobuf.MessageLite.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
- 指定者:
mergeFrom
在接口中com.google.protobuf.Message.Builder
- 覆盖:
mergeFrom
在类中com.google.protobuf.AbstractMessage.Builder<CommonProto.Transaction.Builder>
-
mergeFrom
-
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
事务所在的区块的哈希,当事务处于待确认状态时为`null`
bytes block_hash = 1;
- 参数:
value
- The blockHash to set.- 返回:
- This builder for chaining.
-
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
事务所在的区块产生时的 UNIX 时间戳,单位为秒
int64 block_timestamp = 2;
- 参数:
value
- The blockTimestamp to set.- 返回:
- This builder for chaining.
-
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
事务在区块中的位置 index,当事务处于待确认状态时为`null`
uint32 index = 3;
- 参数:
value
- The index to set.- 返回:
- This builder for chaining.
-
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
事务的哈希
bytes hash = 4;
- 参数:
value
- The hash to set.- 返回:
- This builder for chaining.
-
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
事务类型
.bdware.bdledger.api.TransactionType type = 5;
- 参数:
value
- The enum numeric value on the wire for type to set.- 返回:
- This builder for chaining.
-
getType
事务类型
.bdware.bdledger.api.TransactionType type = 5;
- 指定者:
getType
在接口中CommonProto.TransactionOrBuilder
- 返回:
- The type.
-
setType
事务类型
.bdware.bdledger.api.TransactionType type = 5;
- 参数:
value
- The type to set.- 返回:
- This builder for chaining.
-
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
发送账户地址
bytes from = 6;
- 参数:
value
- The from to set.- 返回:
- This builder for chaining.
-
clearFrom
发送账户地址
bytes from = 6;
- 返回:
- This builder for chaining.
-
getNonce
public long getNonce()这条事务之前发送者所发送的事务数量
uint64 nonce = 7;
- 指定者:
getNonce
在接口中CommonProto.TransactionOrBuilder
- 返回:
- The nonce.
-
setNonce
这条事务之前发送者所发送的事务数量
uint64 nonce = 7;
- 参数:
value
- The nonce to set.- 返回:
- This builder for chaining.
-
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
接收账户地址,或者调用的合约地址,或者`null`如为合约创建
bytes to = 8;
- 参数:
value
- The to to set.- 返回:
- This builder for chaining.
-
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
数据或合约代码
bytes data = 9;
- 参数:
value
- The data to set.- 返回:
- This builder for chaining.
-
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
ECDSA recovery id
bytes v = 10;
- 参数:
value
- The v to set.- 返回:
- This builder for chaining.
-
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
ECDSA signature r
bytes r = 11;
- 参数:
value
- The r to set.- 返回:
- This builder for chaining.
-
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
ECDSA signature s
bytes s = 12;
- 参数:
value
- The s to set.- 返回:
- This builder for chaining.
-
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>
-