public static final class Protos.ProvideContract.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Protos.ProvideContract.Builder> implements Protos.ProvideContractOrBuilder
Sent from the primary to the secondary to complete initialization.Protobuf type
paymentchannels.ProvideContract| Modifier and Type | Method and Description |
|---|---|
Protos.ProvideContract.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.ProvideContract |
build() |
Protos.ProvideContract |
buildPartial() |
Protos.ProvideContract.Builder |
clear() |
Protos.ProvideContract.Builder |
clearClientKey()
This field is added in protocol version 2 to send the client public key to the server.
|
Protos.ProvideContract.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.ProvideContract.Builder |
clearInitialPayment()
To open the channel, an initial payment of the server-specified dust limit value must be
provided.
|
Protos.ProvideContract.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.ProvideContract.Builder |
clearTx()
The serialized bytes of the transaction in Satoshi format.
|
Protos.ProvideContract.Builder |
clone() |
com.google.protobuf.ByteString |
getClientKey()
This field is added in protocol version 2 to send the client public key to the server.
|
Protos.ProvideContract |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Protos.UpdatePayment |
getInitialPayment()
To open the channel, an initial payment of the server-specified dust limit value must be
provided.
|
Protos.UpdatePayment.Builder |
getInitialPaymentBuilder()
To open the channel, an initial payment of the server-specified dust limit value must be
provided.
|
Protos.UpdatePaymentOrBuilder |
getInitialPaymentOrBuilder()
To open the channel, an initial payment of the server-specified dust limit value must be
provided.
|
com.google.protobuf.ByteString |
getTx()
The serialized bytes of the transaction in Satoshi format.
|
boolean |
hasClientKey()
This field is added in protocol version 2 to send the client public key to the server.
|
boolean |
hasInitialPayment()
To open the channel, an initial payment of the server-specified dust limit value must be
provided.
|
boolean |
hasTx()
The serialized bytes of the transaction in Satoshi format.
|
protected com.google.protobuf.GeneratedMessageV3.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)
To open the channel, an initial payment of the server-specified dust limit value must be
provided.
|
Protos.ProvideContract.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.ProvideContract.Builder |
setClientKey(com.google.protobuf.ByteString value)
This field is added in protocol version 2 to send the client public key to the server.
|
Protos.ProvideContract.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.ProvideContract.Builder |
setInitialPayment(Protos.UpdatePayment.Builder builderForValue)
To open the channel, an initial payment of the server-specified dust limit value must be
provided.
|
Protos.ProvideContract.Builder |
setInitialPayment(Protos.UpdatePayment value)
To open the channel, an initial payment of the server-specified dust limit value must be
provided.
|
Protos.ProvideContract.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.ProvideContract.Builder |
setTx(com.google.protobuf.ByteString value)
The serialized bytes of the transaction in Satoshi format.
|
Protos.ProvideContract.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ProvideContract.Builder>public Protos.ProvideContract.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ProvideContract.Builder>public Protos.ProvideContract.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ProvideContract.Builder>public Protos.ProvideContract.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ProvideContract.Builder>public Protos.ProvideContract.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ProvideContract.Builder>public Protos.ProvideContract.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ProvideContract.Builder>public 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.GeneratedMessageV3.Builder<Protos.ProvideContract.Builder>public Protos.ProvideContract.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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>java.io.IOExceptionpublic boolean hasTx()
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.
required bytes tx = 1;hasTx in interface Protos.ProvideContractOrBuilderpublic com.google.protobuf.ByteString getTx()
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.
required bytes tx = 1;getTx in interface Protos.ProvideContractOrBuilderpublic Protos.ProvideContract.Builder setTx(com.google.protobuf.ByteString value)
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.
required bytes tx = 1;public Protos.ProvideContract.Builder clearTx()
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.
required bytes tx = 1;public boolean hasInitialPayment()
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.
required .paymentchannels.UpdatePayment initial_payment = 2;hasInitialPayment in interface Protos.ProvideContractOrBuilderpublic Protos.UpdatePayment getInitialPayment()
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.
required .paymentchannels.UpdatePayment initial_payment = 2;getInitialPayment in interface Protos.ProvideContractOrBuilderpublic Protos.ProvideContract.Builder setInitialPayment(Protos.UpdatePayment value)
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.
required .paymentchannels.UpdatePayment initial_payment = 2;public Protos.ProvideContract.Builder setInitialPayment(Protos.UpdatePayment.Builder builderForValue)
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.
required .paymentchannels.UpdatePayment initial_payment = 2;public Protos.ProvideContract.Builder mergeInitialPayment(Protos.UpdatePayment value)
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.
required .paymentchannels.UpdatePayment initial_payment = 2;public Protos.ProvideContract.Builder clearInitialPayment()
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.
required .paymentchannels.UpdatePayment initial_payment = 2;public Protos.UpdatePayment.Builder getInitialPaymentBuilder()
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.
required .paymentchannels.UpdatePayment initial_payment = 2;public Protos.UpdatePaymentOrBuilder getInitialPaymentOrBuilder()
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.
required .paymentchannels.UpdatePayment initial_payment = 2;getInitialPaymentOrBuilder in interface Protos.ProvideContractOrBuilderpublic boolean hasClientKey()
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.
optional bytes client_key = 3;hasClientKey in interface Protos.ProvideContractOrBuilderpublic com.google.protobuf.ByteString getClientKey()
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.
optional bytes client_key = 3;getClientKey in interface Protos.ProvideContractOrBuilderpublic Protos.ProvideContract.Builder setClientKey(com.google.protobuf.ByteString value)
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.
optional bytes client_key = 3;public Protos.ProvideContract.Builder clearClientKey()
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.
optional bytes client_key = 3;public final Protos.ProvideContract.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ProvideContract.Builder>public final Protos.ProvideContract.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ProvideContract.Builder>