public static final class Protos.UpdatePayment.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protos.UpdatePayment.Builder> implements Protos.UpdatePaymentOrBuilder
paymentchannels.UpdatePayment
This message can only be used by the primary after it has received a CHANNEL_OPEN message. It creates a new payment transaction. Note that we don't resubmit the entire TX, this is to avoid (re)parsing bugs and overhead. The payment transaction is created by the primary by: * Adding an input which spends the multisig contract * Setting this input's scriptSig to the given signature and a new signature created by the primary (the primary should ensure the signature provided correctly spends the multisig contract) * Adding an output who's scriptPubKey is the same as the refund output (the only output) in the refund transaction * Setting this output's value to client_change_value (which must be lower than the most recent client_change_value and lower than the multisig contract's output value) * Adding any number of additional outputs as desired (leaving sufficient fee, if necessary) * Adding any number of additional inputs as desired (eg to add more fee)
| Modifier and Type | Method and Description |
|---|---|
Protos.UpdatePayment |
build() |
Protos.UpdatePayment |
buildPartial() |
Protos.UpdatePayment.Builder |
clear() |
Protos.UpdatePayment.Builder |
clearClientChangeValue()
required uint64 client_change_value = 1; |
Protos.UpdatePayment.Builder |
clearInfo()
optional bytes info = 3; |
Protos.UpdatePayment.Builder |
clearSignature()
required bytes signature = 2; |
Protos.UpdatePayment.Builder |
clone() |
long |
getClientChangeValue()
required uint64 client_change_value = 1; |
Protos.UpdatePayment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getInfo()
optional bytes info = 3; |
com.google.protobuf.ByteString |
getSignature()
required bytes signature = 2; |
boolean |
hasClientChangeValue()
required uint64 client_change_value = 1; |
boolean |
hasInfo()
optional bytes info = 3; |
boolean |
hasSignature()
required bytes signature = 2; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.UpdatePayment.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.UpdatePayment.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.UpdatePayment.Builder |
mergeFrom(Protos.UpdatePayment other) |
Protos.UpdatePayment.Builder |
setClientChangeValue(long value)
required uint64 client_change_value = 1; |
Protos.UpdatePayment.Builder |
setInfo(com.google.protobuf.ByteString value)
optional bytes info = 3; |
Protos.UpdatePayment.Builder |
setSignature(com.google.protobuf.ByteString value)
required bytes signature = 2; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionaddAll, 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.UpdatePayment.Builder>public Protos.UpdatePayment.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.UpdatePayment.Builder>public Protos.UpdatePayment.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.UpdatePayment.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.UpdatePayment.Builder>public Protos.UpdatePayment getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Protos.UpdatePayment build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Protos.UpdatePayment buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Protos.UpdatePayment.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.UpdatePayment.Builder>public Protos.UpdatePayment.Builder mergeFrom(Protos.UpdatePayment other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Protos.UpdatePayment.Builder>public Protos.UpdatePayment.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.UpdatePayment.Builder>IOExceptionpublic boolean hasClientChangeValue()
required uint64 client_change_value = 1;
The value which is sent back to the primary. The rest of the multisig output is left for the secondary to do with as they wish.
hasClientChangeValue in interface Protos.UpdatePaymentOrBuilderpublic long getClientChangeValue()
required uint64 client_change_value = 1;
The value which is sent back to the primary. The rest of the multisig output is left for the secondary to do with as they wish.
getClientChangeValue in interface Protos.UpdatePaymentOrBuilderpublic Protos.UpdatePayment.Builder setClientChangeValue(long value)
required uint64 client_change_value = 1;
The value which is sent back to the primary. The rest of the multisig output is left for the secondary to do with as they wish.
public Protos.UpdatePayment.Builder clearClientChangeValue()
required uint64 client_change_value = 1;
The value which is sent back to the primary. The rest of the multisig output is left for the secondary to do with as they wish.
public boolean hasSignature()
required bytes signature = 2;
A SIGHASH_SINGLE|SIGHASH_ANYONECANPAY signature (including the postfix type byte) which spends the primary's part of the multisig contract's output. This signature only covers the primary's refund output and thus the secondary is free to do what they wish with their part of the multisig output.
hasSignature in interface Protos.UpdatePaymentOrBuilderpublic com.google.protobuf.ByteString getSignature()
required bytes signature = 2;
A SIGHASH_SINGLE|SIGHASH_ANYONECANPAY signature (including the postfix type byte) which spends the primary's part of the multisig contract's output. This signature only covers the primary's refund output and thus the secondary is free to do what they wish with their part of the multisig output.
getSignature in interface Protos.UpdatePaymentOrBuilderpublic Protos.UpdatePayment.Builder setSignature(com.google.protobuf.ByteString value)
required bytes signature = 2;
A SIGHASH_SINGLE|SIGHASH_ANYONECANPAY signature (including the postfix type byte) which spends the primary's part of the multisig contract's output. This signature only covers the primary's refund output and thus the secondary is free to do what they wish with their part of the multisig output.
public Protos.UpdatePayment.Builder clearSignature()
required bytes signature = 2;
A SIGHASH_SINGLE|SIGHASH_ANYONECANPAY signature (including the postfix type byte) which spends the primary's part of the multisig contract's output. This signature only covers the primary's refund output and thus the secondary is free to do what they wish with their part of the multisig output.
public boolean hasInfo()
optional bytes info = 3;
Information about this update. Used to extend this protocol.
hasInfo in interface Protos.UpdatePaymentOrBuilderpublic com.google.protobuf.ByteString getInfo()
optional bytes info = 3;
Information about this update. Used to extend this protocol.
getInfo in interface Protos.UpdatePaymentOrBuilderpublic Protos.UpdatePayment.Builder setInfo(com.google.protobuf.ByteString value)
optional bytes info = 3;
Information about this update. Used to extend this protocol.
public Protos.UpdatePayment.Builder clearInfo()
optional bytes info = 3;
Information about this update. Used to extend this protocol.
Copyright © 2015. All rights reserved.