public static final class Protos.ProvideContract.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protos.ProvideContract.Builder> implements Protos.ProvideContractOrBuilder
paymentchannels.ProvideContract
Sent from the primary to the secondary to complete initialization.
| Modifier and Type | Method and Description |
|---|---|
Protos.ProvideContract |
build() |
Protos.ProvideContract |
buildPartial() |
Protos.ProvideContract.Builder |
clear() |
Protos.ProvideContract.Builder |
clearClientKey()
optional bytes client_key = 3; |
Protos.ProvideContract.Builder |
clearInitialPayment()
required .paymentchannels.UpdatePayment initial_payment = 2; |
Protos.ProvideContract.Builder |
clearTx()
required bytes tx = 1; |
Protos.ProvideContract.Builder |
clone() |
com.google.protobuf.ByteString |
getClientKey()
optional bytes client_key = 3; |
Protos.ProvideContract |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Protos.UpdatePayment |
getInitialPayment()
required .paymentchannels.UpdatePayment initial_payment = 2; |
Protos.UpdatePayment.Builder |
getInitialPaymentBuilder()
required .paymentchannels.UpdatePayment initial_payment = 2; |
Protos.UpdatePaymentOrBuilder |
getInitialPaymentOrBuilder()
required .paymentchannels.UpdatePayment initial_payment = 2; |
com.google.protobuf.ByteString |
getTx()
required bytes tx = 1; |
boolean |
hasClientKey()
optional bytes client_key = 3; |
boolean |
hasInitialPayment()
required .paymentchannels.UpdatePayment initial_payment = 2; |
boolean |
hasTx()
required bytes tx = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.ProvideContract.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.ProvideContract.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.ProvideContract.Builder |
mergeFrom(Protos.ProvideContract other) |
Protos.ProvideContract.Builder |
mergeInitialPayment(Protos.UpdatePayment value)
required .paymentchannels.UpdatePayment initial_payment = 2; |
Protos.ProvideContract.Builder |
setClientKey(com.google.protobuf.ByteString value)
optional bytes client_key = 3; |
Protos.ProvideContract.Builder |
setInitialPayment(Protos.UpdatePayment.Builder builderForValue)
required .paymentchannels.UpdatePayment initial_payment = 2; |
Protos.ProvideContract.Builder |
setInitialPayment(Protos.UpdatePayment value)
required .paymentchannels.UpdatePayment initial_payment = 2; |
Protos.ProvideContract.Builder |
setTx(com.google.protobuf.ByteString value)
required bytes tx = 1; |
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<Protos.ProvideContract.Builder>public Protos.ProvideContract.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Protos.ProvideContract.Builder>public Protos.ProvideContract.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessage.Builder<Protos.ProvideContract.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<Protos.ProvideContract.Builder>public Protos.ProvideContract getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Protos.ProvideContract build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Protos.ProvideContract buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Protos.ProvideContract.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.ProvideContract.Builder>public Protos.ProvideContract.Builder mergeFrom(Protos.ProvideContract other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Protos.ProvideContract.Builder>public Protos.ProvideContract.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<Protos.ProvideContract.Builder>IOExceptionpublic boolean hasTx()
required bytes tx = 1;
The serialized bytes of the transaction in Satoshi format. For version 1: * It must be signed and completely valid and ready for broadcast (ie it includes the necessary fees) TODO: tell the client how much fee it needs * Its first output must be a 2-of-2 multisig output with the first pubkey being the primary's and the second being the secondary's (ie the script must be exactly "OP_2 ProvideRefund.multisig_key Initiate.multisig_key OP_2 OP_CHECKMULTISIG") For version 2: * It must be signed and completely valid and ready for broadcast (ie it includes the necessary fees) TODO: tell the client how much fee it needs * Its first output must be a CHECKLOCKTIMEVERIFY output with the first pubkey being the primary's and the second being the secondary's.
hasTx in interface Protos.ProvideContractOrBuilderpublic com.google.protobuf.ByteString getTx()
required bytes tx = 1;
The serialized bytes of the transaction in Satoshi format. For version 1: * It must be signed and completely valid and ready for broadcast (ie it includes the necessary fees) TODO: tell the client how much fee it needs * Its first output must be a 2-of-2 multisig output with the first pubkey being the primary's and the second being the secondary's (ie the script must be exactly "OP_2 ProvideRefund.multisig_key Initiate.multisig_key OP_2 OP_CHECKMULTISIG") For version 2: * It must be signed and completely valid and ready for broadcast (ie it includes the necessary fees) TODO: tell the client how much fee it needs * Its first output must be a CHECKLOCKTIMEVERIFY output with the first pubkey being the primary's and the second being the secondary's.
getTx in interface Protos.ProvideContractOrBuilderpublic Protos.ProvideContract.Builder setTx(com.google.protobuf.ByteString value)
required bytes tx = 1;
The serialized bytes of the transaction in Satoshi format. For version 1: * It must be signed and completely valid and ready for broadcast (ie it includes the necessary fees) TODO: tell the client how much fee it needs * Its first output must be a 2-of-2 multisig output with the first pubkey being the primary's and the second being the secondary's (ie the script must be exactly "OP_2 ProvideRefund.multisig_key Initiate.multisig_key OP_2 OP_CHECKMULTISIG") For version 2: * It must be signed and completely valid and ready for broadcast (ie it includes the necessary fees) TODO: tell the client how much fee it needs * Its first output must be a CHECKLOCKTIMEVERIFY output with the first pubkey being the primary's and the second being the secondary's.
public Protos.ProvideContract.Builder clearTx()
required bytes tx = 1;
The serialized bytes of the transaction in Satoshi format. For version 1: * It must be signed and completely valid and ready for broadcast (ie it includes the necessary fees) TODO: tell the client how much fee it needs * Its first output must be a 2-of-2 multisig output with the first pubkey being the primary's and the second being the secondary's (ie the script must be exactly "OP_2 ProvideRefund.multisig_key Initiate.multisig_key OP_2 OP_CHECKMULTISIG") For version 2: * It must be signed and completely valid and ready for broadcast (ie it includes the necessary fees) TODO: tell the client how much fee it needs * Its first output must be a CHECKLOCKTIMEVERIFY output with the first pubkey being the primary's and the second being the secondary's.
public boolean hasInitialPayment()
required .paymentchannels.UpdatePayment initial_payment = 2;
To open the channel, an initial payment of the server-specified dust limit value must be provided. This ensures that the channel is never in an un-settleable state due to either no payment tx having been provided at all, or a payment that is smaller than the dust limit being provided.
hasInitialPayment in interface Protos.ProvideContractOrBuilderpublic Protos.UpdatePayment getInitialPayment()
required .paymentchannels.UpdatePayment initial_payment = 2;
To open the channel, an initial payment of the server-specified dust limit value must be provided. This ensures that the channel is never in an un-settleable state due to either no payment tx having been provided at all, or a payment that is smaller than the dust limit being provided.
getInitialPayment in interface Protos.ProvideContractOrBuilderpublic Protos.ProvideContract.Builder setInitialPayment(Protos.UpdatePayment value)
required .paymentchannels.UpdatePayment initial_payment = 2;
To open the channel, an initial payment of the server-specified dust limit value must be provided. This ensures that the channel is never in an un-settleable state due to either no payment tx having been provided at all, or a payment that is smaller than the dust limit being provided.
public Protos.ProvideContract.Builder setInitialPayment(Protos.UpdatePayment.Builder builderForValue)
required .paymentchannels.UpdatePayment initial_payment = 2;
To open the channel, an initial payment of the server-specified dust limit value must be provided. This ensures that the channel is never in an un-settleable state due to either no payment tx having been provided at all, or a payment that is smaller than the dust limit being provided.
public Protos.ProvideContract.Builder mergeInitialPayment(Protos.UpdatePayment value)
required .paymentchannels.UpdatePayment initial_payment = 2;
To open the channel, an initial payment of the server-specified dust limit value must be provided. This ensures that the channel is never in an un-settleable state due to either no payment tx having been provided at all, or a payment that is smaller than the dust limit being provided.
public Protos.ProvideContract.Builder clearInitialPayment()
required .paymentchannels.UpdatePayment initial_payment = 2;
To open the channel, an initial payment of the server-specified dust limit value must be provided. This ensures that the channel is never in an un-settleable state due to either no payment tx having been provided at all, or a payment that is smaller than the dust limit being provided.
public Protos.UpdatePayment.Builder getInitialPaymentBuilder()
required .paymentchannels.UpdatePayment initial_payment = 2;
To open the channel, an initial payment of the server-specified dust limit value must be provided. This ensures that the channel is never in an un-settleable state due to either no payment tx having been provided at all, or a payment that is smaller than the dust limit being provided.
public Protos.UpdatePaymentOrBuilder getInitialPaymentOrBuilder()
required .paymentchannels.UpdatePayment initial_payment = 2;
To open the channel, an initial payment of the server-specified dust limit value must be provided. This ensures that the channel is never in an un-settleable state due to either no payment tx having been provided at all, or a payment that is smaller than the dust limit being provided.
getInitialPaymentOrBuilder in interface Protos.ProvideContractOrBuilderpublic boolean hasClientKey()
optional bytes client_key = 3;
This field is added in protocol version 2 to send the client public key to the server. In version 1 it isn't used. This must be a raw pubkey in regular ECDSA form. Both compressed and non-compressed forms are accepted. It is only used in the creation of the multisig contract.
hasClientKey in interface Protos.ProvideContractOrBuilderpublic com.google.protobuf.ByteString getClientKey()
optional bytes client_key = 3;
This field is added in protocol version 2 to send the client public key to the server. In version 1 it isn't used. This must be a raw pubkey in regular ECDSA form. Both compressed and non-compressed forms are accepted. It is only used in the creation of the multisig contract.
getClientKey in interface Protos.ProvideContractOrBuilderpublic Protos.ProvideContract.Builder setClientKey(com.google.protobuf.ByteString value)
optional bytes client_key = 3;
This field is added in protocol version 2 to send the client public key to the server. In version 1 it isn't used. This must be a raw pubkey in regular ECDSA form. Both compressed and non-compressed forms are accepted. It is only used in the creation of the multisig contract.
public Protos.ProvideContract.Builder clearClientKey()
optional bytes client_key = 3;
This field is added in protocol version 2 to send the client public key to the server. In version 1 it isn't used. This must be a raw pubkey in regular ECDSA form. Both compressed and non-compressed forms are accepted. It is only used in the creation of the multisig contract.
Copyright © 2016. All rights reserved.