Package org.bdware.bdledger.api.grpc.pb
Class 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
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,CommonProto.TransactionOrBuilder
- Enclosing class:
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
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(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 final 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
final 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`如为合约创建事务类型setTypeValue
(int value) 事务类型setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setV
(com.google.protobuf.ByteString value) ECDSA recovery idMethods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
setField
public CommonProto.Transaction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
clearField
public CommonProto.Transaction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
clearOneof
public CommonProto.Transaction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
setRepeatedField
public CommonProto.Transaction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
addRepeatedField
public CommonProto.Transaction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommonProto.Transaction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommonProto.Transaction.Builder>
- Throws:
IOException
-
getBlockHash
public com.google.protobuf.ByteString getBlockHash()事务所在的区块的哈希,当事务处于待确认状态时为`null`
bytes block_hash = 1;
- Specified by:
getBlockHash
in interfaceCommonProto.TransactionOrBuilder
- Returns:
- The blockHash.
-
setBlockHash
事务所在的区块的哈希,当事务处于待确认状态时为`null`
bytes block_hash = 1;
- Parameters:
value
- The blockHash to set.- Returns:
- This builder for chaining.
-
clearBlockHash
事务所在的区块的哈希,当事务处于待确认状态时为`null`
bytes block_hash = 1;
- Returns:
- This builder for chaining.
-
getBlockTimestamp
public long getBlockTimestamp()事务所在的区块产生时的 UNIX 时间戳,单位为秒
int64 block_timestamp = 2;
- Specified by:
getBlockTimestamp
in interfaceCommonProto.TransactionOrBuilder
- Returns:
- The blockTimestamp.
-
setBlockTimestamp
事务所在的区块产生时的 UNIX 时间戳,单位为秒
int64 block_timestamp = 2;
- Parameters:
value
- The blockTimestamp to set.- Returns:
- This builder for chaining.
-
clearBlockTimestamp
事务所在的区块产生时的 UNIX 时间戳,单位为秒
int64 block_timestamp = 2;
- Returns:
- This builder for chaining.
-
getIndex
public int getIndex()事务在区块中的位置 index,当事务处于待确认状态时为`null`
uint32 index = 3;
- Specified by:
getIndex
in interfaceCommonProto.TransactionOrBuilder
- Returns:
- The index.
-
setIndex
事务在区块中的位置 index,当事务处于待确认状态时为`null`
uint32 index = 3;
- Parameters:
value
- The index to set.- Returns:
- This builder for chaining.
-
clearIndex
事务在区块中的位置 index,当事务处于待确认状态时为`null`
uint32 index = 3;
- Returns:
- This builder for chaining.
-
getHash
public com.google.protobuf.ByteString getHash()事务的哈希
bytes hash = 4;
- Specified by:
getHash
in interfaceCommonProto.TransactionOrBuilder
- Returns:
- The hash.
-
setHash
事务的哈希
bytes hash = 4;
- Parameters:
value
- The hash to set.- Returns:
- This builder for chaining.
-
clearHash
事务的哈希
bytes hash = 4;
- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()事务类型
.bdware.bdledger.api.TransactionType type = 5;
- Specified by:
getTypeValue
in interfaceCommonProto.TransactionOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
事务类型
.bdware.bdledger.api.TransactionType type = 5;
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
事务类型
.bdware.bdledger.api.TransactionType type = 5;
- Specified by:
getType
in interfaceCommonProto.TransactionOrBuilder
- Returns:
- The type.
-
setType
事务类型
.bdware.bdledger.api.TransactionType type = 5;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
事务类型
.bdware.bdledger.api.TransactionType type = 5;
- Returns:
- This builder for chaining.
-
getFrom
public com.google.protobuf.ByteString getFrom()发送账户地址
bytes from = 6;
- Specified by:
getFrom
in interfaceCommonProto.TransactionOrBuilder
- Returns:
- The from.
-
setFrom
发送账户地址
bytes from = 6;
- Parameters:
value
- The from to set.- Returns:
- This builder for chaining.
-
clearFrom
发送账户地址
bytes from = 6;
- Returns:
- This builder for chaining.
-
getNonce
public long getNonce()这条事务之前发送者所发送的事务数量
uint64 nonce = 7;
- Specified by:
getNonce
in interfaceCommonProto.TransactionOrBuilder
- Returns:
- The nonce.
-
setNonce
这条事务之前发送者所发送的事务数量
uint64 nonce = 7;
- Parameters:
value
- The nonce to set.- Returns:
- This builder for chaining.
-
clearNonce
这条事务之前发送者所发送的事务数量
uint64 nonce = 7;
- Returns:
- This builder for chaining.
-
getTo
public com.google.protobuf.ByteString getTo()接收账户地址,或者调用的合约地址,或者`null`如为合约创建
bytes to = 8;
- Specified by:
getTo
in interfaceCommonProto.TransactionOrBuilder
- Returns:
- The to.
-
setTo
接收账户地址,或者调用的合约地址,或者`null`如为合约创建
bytes to = 8;
- Parameters:
value
- The to to set.- Returns:
- This builder for chaining.
-
clearTo
接收账户地址,或者调用的合约地址,或者`null`如为合约创建
bytes to = 8;
- Returns:
- This builder for chaining.
-
getData
public com.google.protobuf.ByteString getData()数据或合约代码
bytes data = 9;
- Specified by:
getData
in interfaceCommonProto.TransactionOrBuilder
- Returns:
- The data.
-
setData
数据或合约代码
bytes data = 9;
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
clearData
数据或合约代码
bytes data = 9;
- Returns:
- This builder for chaining.
-
getV
public com.google.protobuf.ByteString getV()ECDSA recovery id
bytes v = 10;
- Specified by:
getV
in interfaceCommonProto.TransactionOrBuilder
- Returns:
- The v.
-
setV
ECDSA recovery id
bytes v = 10;
- Parameters:
value
- The v to set.- Returns:
- This builder for chaining.
-
clearV
ECDSA recovery id
bytes v = 10;
- Returns:
- This builder for chaining.
-
getR
public com.google.protobuf.ByteString getR()ECDSA signature r
bytes r = 11;
- Specified by:
getR
in interfaceCommonProto.TransactionOrBuilder
- Returns:
- The r.
-
setR
ECDSA signature r
bytes r = 11;
- Parameters:
value
- The r to set.- Returns:
- This builder for chaining.
-
clearR
ECDSA signature r
bytes r = 11;
- Returns:
- This builder for chaining.
-
getS
public com.google.protobuf.ByteString getS()ECDSA signature s
bytes s = 12;
- Specified by:
getS
in interfaceCommonProto.TransactionOrBuilder
- Returns:
- The s.
-
setS
ECDSA signature s
bytes s = 12;
- Parameters:
value
- The s to set.- Returns:
- This builder for chaining.
-
clearS
ECDSA signature s
bytes s = 12;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final CommonProto.Transaction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
mergeUnknownFields
public final CommonProto.Transaction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-