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.ByteStringgetData()数据或合约代码static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringgetFrom()发送账户地址com.google.protobuf.ByteStringgetHash()事务的哈希intgetIndex()事务在区块中的位置 index,当事务处于待确认状态时为`null`longgetNonce()这条事务之前发送者所发送的事务数量com.google.protobuf.ByteStringgetR()ECDSA signature rcom.google.protobuf.ByteStringgetS()ECDSA signature scom.google.protobuf.ByteStringgetTo()接收账户地址,或者调用的合约地址,或者`null`如为合约创建getType()事务类型int事务类型com.google.protobuf.ByteStringgetV()ECDSA recovery idprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
setField
public CommonProto.Transaction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
clearField
public CommonProto.Transaction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
clearOneof
public CommonProto.Transaction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
addRepeatedField
public CommonProto.Transaction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommonProto.Transaction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommonProto.Transaction.Builder>- Throws:
IOException
-
getBlockHash
public com.google.protobuf.ByteString getBlockHash()事务所在的区块的哈希,当事务处于待确认状态时为`null`
bytes block_hash = 1;- Specified by:
getBlockHashin 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:
getBlockTimestampin 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:
getIndexin 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:
getHashin 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:
getTypeValuein 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:
getTypein 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:
getFromin 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:
getNoncein 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:
getToin 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:
getDatain 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:
getVin 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:
getRin 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:
getSin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-
mergeUnknownFields
public final CommonProto.Transaction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProto.Transaction.Builder>
-