public static final class KeepKeyType.TxOutputType.Builder extends com.google.protobuf.GeneratedMessage.Builder<KeepKeyType.TxOutputType.Builder> implements KeepKeyType.TxOutputTypeOrBuilder
TxOutputType
Structure representing transaction output @used_in SimpleSignTx @used_in TransactionType
| Modifier and Type | Method and Description |
|---|---|
KeepKeyType.TxOutputType.Builder |
addAddressN(int value)
repeated uint32 address_n = 2; |
KeepKeyType.TxOutputType.Builder |
addAllAddressN(Iterable<? extends Integer> values)
repeated uint32 address_n = 2; |
KeepKeyType.TxOutputType |
build() |
KeepKeyType.TxOutputType |
buildPartial() |
KeepKeyType.TxOutputType.Builder |
clear() |
KeepKeyType.TxOutputType.Builder |
clearAddress()
optional string address = 1; |
KeepKeyType.TxOutputType.Builder |
clearAddressN()
repeated uint32 address_n = 2; |
KeepKeyType.TxOutputType.Builder |
clearAmount()
required uint64 amount = 3; |
KeepKeyType.TxOutputType.Builder |
clearMultisig()
optional .MultisigRedeemScriptType multisig = 5; |
KeepKeyType.TxOutputType.Builder |
clearOpReturnData()
optional bytes op_return_data = 6; |
KeepKeyType.TxOutputType.Builder |
clearScriptType()
required .OutputScriptType script_type = 4; |
KeepKeyType.TxOutputType.Builder |
clone() |
String |
getAddress()
optional string address = 1; |
com.google.protobuf.ByteString |
getAddressBytes()
optional string address = 1; |
int |
getAddressN(int index)
repeated uint32 address_n = 2; |
int |
getAddressNCount()
repeated uint32 address_n = 2; |
List<Integer> |
getAddressNList()
repeated uint32 address_n = 2; |
long |
getAmount()
required uint64 amount = 3; |
KeepKeyType.TxOutputType |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
KeepKeyType.MultisigRedeemScriptType |
getMultisig()
optional .MultisigRedeemScriptType multisig = 5; |
KeepKeyType.MultisigRedeemScriptType.Builder |
getMultisigBuilder()
optional .MultisigRedeemScriptType multisig = 5; |
KeepKeyType.MultisigRedeemScriptTypeOrBuilder |
getMultisigOrBuilder()
optional .MultisigRedeemScriptType multisig = 5; |
com.google.protobuf.ByteString |
getOpReturnData()
optional bytes op_return_data = 6; |
KeepKeyType.OutputScriptType |
getScriptType()
required .OutputScriptType script_type = 4; |
boolean |
hasAddress()
optional string address = 1; |
boolean |
hasAmount()
required uint64 amount = 3; |
boolean |
hasMultisig()
optional .MultisigRedeemScriptType multisig = 5; |
boolean |
hasOpReturnData()
optional bytes op_return_data = 6; |
boolean |
hasScriptType()
required .OutputScriptType script_type = 4; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
KeepKeyType.TxOutputType.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
KeepKeyType.TxOutputType.Builder |
mergeFrom(KeepKeyType.TxOutputType other) |
KeepKeyType.TxOutputType.Builder |
mergeFrom(com.google.protobuf.Message other) |
KeepKeyType.TxOutputType.Builder |
mergeMultisig(KeepKeyType.MultisigRedeemScriptType value)
optional .MultisigRedeemScriptType multisig = 5; |
KeepKeyType.TxOutputType.Builder |
setAddress(String value)
optional string address = 1; |
KeepKeyType.TxOutputType.Builder |
setAddressBytes(com.google.protobuf.ByteString value)
optional string address = 1; |
KeepKeyType.TxOutputType.Builder |
setAddressN(int index,
int value)
repeated uint32 address_n = 2; |
KeepKeyType.TxOutputType.Builder |
setAmount(long value)
required uint64 amount = 3; |
KeepKeyType.TxOutputType.Builder |
setMultisig(KeepKeyType.MultisigRedeemScriptType.Builder builderForValue)
optional .MultisigRedeemScriptType multisig = 5; |
KeepKeyType.TxOutputType.Builder |
setMultisig(KeepKeyType.MultisigRedeemScriptType value)
optional .MultisigRedeemScriptType multisig = 5; |
KeepKeyType.TxOutputType.Builder |
setOpReturnData(com.google.protobuf.ByteString value)
optional bytes op_return_data = 6; |
KeepKeyType.TxOutputType.Builder |
setScriptType(KeepKeyType.OutputScriptType value)
required .OutputScriptType script_type = 4; |
addRepeatedField, clearField, clearOneof, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<KeepKeyType.TxOutputType.Builder>public KeepKeyType.TxOutputType.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<KeepKeyType.TxOutputType.Builder>public KeepKeyType.TxOutputType.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessage.Builder<KeepKeyType.TxOutputType.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<KeepKeyType.TxOutputType.Builder>public KeepKeyType.TxOutputType getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic KeepKeyType.TxOutputType build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic KeepKeyType.TxOutputType buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic KeepKeyType.TxOutputType.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<KeepKeyType.TxOutputType.Builder>public KeepKeyType.TxOutputType.Builder mergeFrom(KeepKeyType.TxOutputType other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<KeepKeyType.TxOutputType.Builder>public KeepKeyType.TxOutputType.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<KeepKeyType.TxOutputType.Builder>IOExceptionpublic boolean hasAddress()
optional string address = 1;
target coin address in Base58 encoding
hasAddress in interface KeepKeyType.TxOutputTypeOrBuilderpublic String getAddress()
optional string address = 1;
target coin address in Base58 encoding
getAddress in interface KeepKeyType.TxOutputTypeOrBuilderpublic com.google.protobuf.ByteString getAddressBytes()
optional string address = 1;
target coin address in Base58 encoding
getAddressBytes in interface KeepKeyType.TxOutputTypeOrBuilderpublic KeepKeyType.TxOutputType.Builder setAddress(String value)
optional string address = 1;
target coin address in Base58 encoding
public KeepKeyType.TxOutputType.Builder clearAddress()
optional string address = 1;
target coin address in Base58 encoding
public KeepKeyType.TxOutputType.Builder setAddressBytes(com.google.protobuf.ByteString value)
optional string address = 1;
target coin address in Base58 encoding
public List<Integer> getAddressNList()
repeated uint32 address_n = 2;
BIP-32 path to derive the key from master node; has higher priority than "address"
getAddressNList in interface KeepKeyType.TxOutputTypeOrBuilderpublic int getAddressNCount()
repeated uint32 address_n = 2;
BIP-32 path to derive the key from master node; has higher priority than "address"
getAddressNCount in interface KeepKeyType.TxOutputTypeOrBuilderpublic int getAddressN(int index)
repeated uint32 address_n = 2;
BIP-32 path to derive the key from master node; has higher priority than "address"
getAddressN in interface KeepKeyType.TxOutputTypeOrBuilderpublic KeepKeyType.TxOutputType.Builder setAddressN(int index, int value)
repeated uint32 address_n = 2;
BIP-32 path to derive the key from master node; has higher priority than "address"
public KeepKeyType.TxOutputType.Builder addAddressN(int value)
repeated uint32 address_n = 2;
BIP-32 path to derive the key from master node; has higher priority than "address"
public KeepKeyType.TxOutputType.Builder addAllAddressN(Iterable<? extends Integer> values)
repeated uint32 address_n = 2;
BIP-32 path to derive the key from master node; has higher priority than "address"
public KeepKeyType.TxOutputType.Builder clearAddressN()
repeated uint32 address_n = 2;
BIP-32 path to derive the key from master node; has higher priority than "address"
public boolean hasAmount()
required uint64 amount = 3;
amount to spend in satoshis
hasAmount in interface KeepKeyType.TxOutputTypeOrBuilderpublic long getAmount()
required uint64 amount = 3;
amount to spend in satoshis
getAmount in interface KeepKeyType.TxOutputTypeOrBuilderpublic KeepKeyType.TxOutputType.Builder setAmount(long value)
required uint64 amount = 3;
amount to spend in satoshis
public KeepKeyType.TxOutputType.Builder clearAmount()
required uint64 amount = 3;
amount to spend in satoshis
public boolean hasScriptType()
required .OutputScriptType script_type = 4;
output script type
hasScriptType in interface KeepKeyType.TxOutputTypeOrBuilderpublic KeepKeyType.OutputScriptType getScriptType()
required .OutputScriptType script_type = 4;
output script type
getScriptType in interface KeepKeyType.TxOutputTypeOrBuilderpublic KeepKeyType.TxOutputType.Builder setScriptType(KeepKeyType.OutputScriptType value)
required .OutputScriptType script_type = 4;
output script type
public KeepKeyType.TxOutputType.Builder clearScriptType()
required .OutputScriptType script_type = 4;
output script type
public boolean hasMultisig()
optional .MultisigRedeemScriptType multisig = 5;
defines multisig address; script_type must be PAYTOMULTISIG
hasMultisig in interface KeepKeyType.TxOutputTypeOrBuilderpublic KeepKeyType.MultisigRedeemScriptType getMultisig()
optional .MultisigRedeemScriptType multisig = 5;
defines multisig address; script_type must be PAYTOMULTISIG
getMultisig in interface KeepKeyType.TxOutputTypeOrBuilderpublic KeepKeyType.TxOutputType.Builder setMultisig(KeepKeyType.MultisigRedeemScriptType value)
optional .MultisigRedeemScriptType multisig = 5;
defines multisig address; script_type must be PAYTOMULTISIG
public KeepKeyType.TxOutputType.Builder setMultisig(KeepKeyType.MultisigRedeemScriptType.Builder builderForValue)
optional .MultisigRedeemScriptType multisig = 5;
defines multisig address; script_type must be PAYTOMULTISIG
public KeepKeyType.TxOutputType.Builder mergeMultisig(KeepKeyType.MultisigRedeemScriptType value)
optional .MultisigRedeemScriptType multisig = 5;
defines multisig address; script_type must be PAYTOMULTISIG
public KeepKeyType.TxOutputType.Builder clearMultisig()
optional .MultisigRedeemScriptType multisig = 5;
defines multisig address; script_type must be PAYTOMULTISIG
public KeepKeyType.MultisigRedeemScriptType.Builder getMultisigBuilder()
optional .MultisigRedeemScriptType multisig = 5;
defines multisig address; script_type must be PAYTOMULTISIG
public KeepKeyType.MultisigRedeemScriptTypeOrBuilder getMultisigOrBuilder()
optional .MultisigRedeemScriptType multisig = 5;
defines multisig address; script_type must be PAYTOMULTISIG
getMultisigOrBuilder in interface KeepKeyType.TxOutputTypeOrBuilderpublic boolean hasOpReturnData()
optional bytes op_return_data = 6;
defines op_return data; script_type must be PAYTOOPRETURN, amount must be 0
hasOpReturnData in interface KeepKeyType.TxOutputTypeOrBuilderpublic com.google.protobuf.ByteString getOpReturnData()
optional bytes op_return_data = 6;
defines op_return data; script_type must be PAYTOOPRETURN, amount must be 0
getOpReturnData in interface KeepKeyType.TxOutputTypeOrBuilderpublic KeepKeyType.TxOutputType.Builder setOpReturnData(com.google.protobuf.ByteString value)
optional bytes op_return_data = 6;
defines op_return data; script_type must be PAYTOOPRETURN, amount must be 0
public KeepKeyType.TxOutputType.Builder clearOpReturnData()
optional bytes op_return_data = 6;
defines op_return data; script_type must be PAYTOOPRETURN, amount must be 0
Copyright © 2013–2016 Bitcoin Solutions Ltd. All rights reserved.