public static final class Protos.UpdatePayment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Protos.UpdatePayment.Builder> implements Protos.UpdatePaymentOrBuilder
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)Protobuf type
paymentchannels.UpdatePayment
Modifier and Type | Method and Description |
---|---|
Protos.UpdatePayment.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.UpdatePayment |
build() |
Protos.UpdatePayment |
buildPartial() |
Protos.UpdatePayment.Builder |
clear() |
Protos.UpdatePayment.Builder |
clearClientChangeValue()
The value which is sent back to the primary.
|
Protos.UpdatePayment.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.UpdatePayment.Builder |
clearInfo()
Information about this update.
|
Protos.UpdatePayment.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.UpdatePayment.Builder |
clearSignature()
A SIGHASH_SINGLE|SIGHASH_ANYONECANPAY signature (including the postfix type byte) which
spends the primary's part of the multisig contract's output.
|
Protos.UpdatePayment.Builder |
clone() |
long |
getClientChangeValue()
The value which is sent back to the primary.
|
Protos.UpdatePayment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getInfo()
Information about this update.
|
com.google.protobuf.ByteString |
getSignature()
A SIGHASH_SINGLE|SIGHASH_ANYONECANPAY signature (including the postfix type byte) which
spends the primary's part of the multisig contract's output.
|
boolean |
hasClientChangeValue()
The value which is sent back to the primary.
|
boolean |
hasInfo()
Information about this update.
|
boolean |
hasSignature()
A SIGHASH_SINGLE|SIGHASH_ANYONECANPAY signature (including the postfix type byte) which
spends the primary's part of the multisig contract's output.
|
protected com.google.protobuf.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.UpdatePayment.Builder |
setClientChangeValue(long value)
The value which is sent back to the primary.
|
Protos.UpdatePayment.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.UpdatePayment.Builder |
setInfo(com.google.protobuf.ByteString value)
Information about this update.
|
Protos.UpdatePayment.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.UpdatePayment.Builder |
setSignature(com.google.protobuf.ByteString value)
A SIGHASH_SINGLE|SIGHASH_ANYONECANPAY signature (including the postfix type byte) which
spends the primary's part of the multisig contract's output.
|
Protos.UpdatePayment.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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.UpdatePayment.Builder>
public Protos.UpdatePayment.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.UpdatePayment.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.UpdatePayment.Builder>
public Protos.UpdatePayment getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Protos.UpdatePayment build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Protos.UpdatePayment buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Protos.UpdatePayment.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.UpdatePayment.Builder>
public Protos.UpdatePayment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.UpdatePayment.Builder>
public Protos.UpdatePayment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.UpdatePayment.Builder>
public Protos.UpdatePayment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.UpdatePayment.Builder>
public Protos.UpdatePayment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.UpdatePayment.Builder>
public Protos.UpdatePayment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.UpdatePayment.Builder>
public Protos.UpdatePayment.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.UpdatePayment.Builder>
public Protos.UpdatePayment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.UpdatePayment.Builder>
java.io.IOException
public boolean hasClientChangeValue()
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.
required uint64 client_change_value = 1;
hasClientChangeValue
in interface Protos.UpdatePaymentOrBuilder
public long getClientChangeValue()
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.
required uint64 client_change_value = 1;
getClientChangeValue
in interface Protos.UpdatePaymentOrBuilder
public Protos.UpdatePayment.Builder setClientChangeValue(long value)
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.
required uint64 client_change_value = 1;
public Protos.UpdatePayment.Builder clearClientChangeValue()
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.
required uint64 client_change_value = 1;
public boolean hasSignature()
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.
required bytes signature = 2;
hasSignature
in interface Protos.UpdatePaymentOrBuilder
public com.google.protobuf.ByteString getSignature()
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.
required bytes signature = 2;
getSignature
in interface Protos.UpdatePaymentOrBuilder
public Protos.UpdatePayment.Builder setSignature(com.google.protobuf.ByteString value)
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.
required bytes signature = 2;
public Protos.UpdatePayment.Builder clearSignature()
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.
required bytes signature = 2;
public boolean hasInfo()
Information about this update. Used to extend this protocol.
optional bytes info = 3;
hasInfo
in interface Protos.UpdatePaymentOrBuilder
public com.google.protobuf.ByteString getInfo()
Information about this update. Used to extend this protocol.
optional bytes info = 3;
getInfo
in interface Protos.UpdatePaymentOrBuilder
public Protos.UpdatePayment.Builder setInfo(com.google.protobuf.ByteString value)
Information about this update. Used to extend this protocol.
optional bytes info = 3;
public Protos.UpdatePayment.Builder clearInfo()
Information about this update. Used to extend this protocol.
optional bytes info = 3;
public final Protos.UpdatePayment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.UpdatePayment.Builder>
public final Protos.UpdatePayment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.UpdatePayment.Builder>