public static final class Protos.Initiate.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Protos.Initiate.Builder> implements Protos.InitiateOrBuilder
Sent from server to client once version nego is done.Protobuf type
paymentchannels.Initiate| Modifier and Type | Method and Description |
|---|---|
Protos.Initiate.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Initiate |
build() |
Protos.Initiate |
buildPartial() |
Protos.Initiate.Builder |
clear() |
Protos.Initiate.Builder |
clearExpireTimeSecs()
Rough UNIX time for when the channel expires.
|
Protos.Initiate.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Initiate.Builder |
clearMinAcceptedChannelSize()
Once a channel is exhausted a new one must be set up.
|
Protos.Initiate.Builder |
clearMinPayment()
The amount of money the server requires for the initial payment.
|
Protos.Initiate.Builder |
clearMultisigKey()
This must be a raw pubkey in regular ECDSA form.
|
Protos.Initiate.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Initiate.Builder |
clone() |
Protos.Initiate |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getExpireTimeSecs()
Rough UNIX time for when the channel expires.
|
long |
getMinAcceptedChannelSize()
Once a channel is exhausted a new one must be set up.
|
long |
getMinPayment()
The amount of money the server requires for the initial payment.
|
com.google.protobuf.ByteString |
getMultisigKey()
This must be a raw pubkey in regular ECDSA form.
|
boolean |
hasExpireTimeSecs()
Rough UNIX time for when the channel expires.
|
boolean |
hasMinAcceptedChannelSize()
Once a channel is exhausted a new one must be set up.
|
boolean |
hasMinPayment()
The amount of money the server requires for the initial payment.
|
boolean |
hasMultisigKey()
This must be a raw pubkey in regular ECDSA form.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Initiate.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Initiate.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Initiate.Builder |
mergeFrom(Protos.Initiate other) |
Protos.Initiate.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Initiate.Builder |
setExpireTimeSecs(long value)
Rough UNIX time for when the channel expires.
|
Protos.Initiate.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Initiate.Builder |
setMinAcceptedChannelSize(long value)
Once a channel is exhausted a new one must be set up.
|
Protos.Initiate.Builder |
setMinPayment(long value)
The amount of money the server requires for the initial payment.
|
Protos.Initiate.Builder |
setMultisigKey(com.google.protobuf.ByteString value)
This must be a raw pubkey in regular ECDSA form.
|
Protos.Initiate.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Initiate.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.Initiate.Builder>public Protos.Initiate.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.Initiate.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.Initiate.Builder>public Protos.Initiate getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Protos.Initiate build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Protos.Initiate buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Protos.Initiate.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.Initiate.Builder>public Protos.Initiate.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.Initiate.Builder>public Protos.Initiate.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.Initiate.Builder>public Protos.Initiate.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.Initiate.Builder>public Protos.Initiate.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.Initiate.Builder>public Protos.Initiate.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.Initiate.Builder>public Protos.Initiate.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.Initiate.Builder>public Protos.Initiate.Builder mergeFrom(Protos.Initiate other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.Initiate.Builder>public Protos.Initiate.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.Initiate.Builder>java.io.IOExceptionpublic boolean hasMultisigKey()
This must be a raw pubkey in regular ECDSA form. Both compressed and non-compressed forms are accepted. It is used only in the creation of the multisig contract, as outputs are created entirely by the secondary
required bytes multisig_key = 1;hasMultisigKey in interface Protos.InitiateOrBuilderpublic com.google.protobuf.ByteString getMultisigKey()
This must be a raw pubkey in regular ECDSA form. Both compressed and non-compressed forms are accepted. It is used only in the creation of the multisig contract, as outputs are created entirely by the secondary
required bytes multisig_key = 1;getMultisigKey in interface Protos.InitiateOrBuilderpublic Protos.Initiate.Builder setMultisigKey(com.google.protobuf.ByteString value)
This must be a raw pubkey in regular ECDSA form. Both compressed and non-compressed forms are accepted. It is used only in the creation of the multisig contract, as outputs are created entirely by the secondary
required bytes multisig_key = 1;public Protos.Initiate.Builder clearMultisigKey()
This must be a raw pubkey in regular ECDSA form. Both compressed and non-compressed forms are accepted. It is used only in the creation of the multisig contract, as outputs are created entirely by the secondary
required bytes multisig_key = 1;public boolean hasMinAcceptedChannelSize()
Once a channel is exhausted a new one must be set up. So secondary indicates the minimum size it's willing to accept here. This can be lower to trade off resources against security but shouldn't be so low the transactions get rejected by the network as spam. Zero isn't a sensible value to have here, so we make the field required.
required uint64 min_accepted_channel_size = 2;hasMinAcceptedChannelSize in interface Protos.InitiateOrBuilderpublic long getMinAcceptedChannelSize()
Once a channel is exhausted a new one must be set up. So secondary indicates the minimum size it's willing to accept here. This can be lower to trade off resources against security but shouldn't be so low the transactions get rejected by the network as spam. Zero isn't a sensible value to have here, so we make the field required.
required uint64 min_accepted_channel_size = 2;getMinAcceptedChannelSize in interface Protos.InitiateOrBuilderpublic Protos.Initiate.Builder setMinAcceptedChannelSize(long value)
Once a channel is exhausted a new one must be set up. So secondary indicates the minimum size it's willing to accept here. This can be lower to trade off resources against security but shouldn't be so low the transactions get rejected by the network as spam. Zero isn't a sensible value to have here, so we make the field required.
required uint64 min_accepted_channel_size = 2;public Protos.Initiate.Builder clearMinAcceptedChannelSize()
Once a channel is exhausted a new one must be set up. So secondary indicates the minimum size it's willing to accept here. This can be lower to trade off resources against security but shouldn't be so low the transactions get rejected by the network as spam. Zero isn't a sensible value to have here, so we make the field required.
required uint64 min_accepted_channel_size = 2;public boolean hasExpireTimeSecs()
Rough UNIX time for when the channel expires. This is determined by the block header timestamps which can be very inaccurate when miners use the obsolete RollNTime hack. Channels could also be specified in terms of block heights but then how do you know the current chain height if you don't have internet access? Trust the server? Probably opens up attack vectors. We can assume the client has an independent clock, however. If the client considers this value too far off (eg more than a day), it may send an ERROR and close the channel.
required uint64 expire_time_secs = 3;hasExpireTimeSecs in interface Protos.InitiateOrBuilderpublic long getExpireTimeSecs()
Rough UNIX time for when the channel expires. This is determined by the block header timestamps which can be very inaccurate when miners use the obsolete RollNTime hack. Channels could also be specified in terms of block heights but then how do you know the current chain height if you don't have internet access? Trust the server? Probably opens up attack vectors. We can assume the client has an independent clock, however. If the client considers this value too far off (eg more than a day), it may send an ERROR and close the channel.
required uint64 expire_time_secs = 3;getExpireTimeSecs in interface Protos.InitiateOrBuilderpublic Protos.Initiate.Builder setExpireTimeSecs(long value)
Rough UNIX time for when the channel expires. This is determined by the block header timestamps which can be very inaccurate when miners use the obsolete RollNTime hack. Channels could also be specified in terms of block heights but then how do you know the current chain height if you don't have internet access? Trust the server? Probably opens up attack vectors. We can assume the client has an independent clock, however. If the client considers this value too far off (eg more than a day), it may send an ERROR and close the channel.
required uint64 expire_time_secs = 3;public Protos.Initiate.Builder clearExpireTimeSecs()
Rough UNIX time for when the channel expires. This is determined by the block header timestamps which can be very inaccurate when miners use the obsolete RollNTime hack. Channels could also be specified in terms of block heights but then how do you know the current chain height if you don't have internet access? Trust the server? Probably opens up attack vectors. We can assume the client has an independent clock, however. If the client considers this value too far off (eg more than a day), it may send an ERROR and close the channel.
required uint64 expire_time_secs = 3;public boolean hasMinPayment()
The amount of money the server requires for the initial payment. The act of opening a channel always transfers some quantity of money to the server: it's impossible to have a channel with zero value transferred. This rule ensures that you can't get a channel that can't be settled due to having paid under the dust limit. Because the dust limit will float in future, the server tells the client what it thinks it is, and the client is supposed to sanity check this value.
required uint64 min_payment = 4;hasMinPayment in interface Protos.InitiateOrBuilderpublic long getMinPayment()
The amount of money the server requires for the initial payment. The act of opening a channel always transfers some quantity of money to the server: it's impossible to have a channel with zero value transferred. This rule ensures that you can't get a channel that can't be settled due to having paid under the dust limit. Because the dust limit will float in future, the server tells the client what it thinks it is, and the client is supposed to sanity check this value.
required uint64 min_payment = 4;getMinPayment in interface Protos.InitiateOrBuilderpublic Protos.Initiate.Builder setMinPayment(long value)
The amount of money the server requires for the initial payment. The act of opening a channel always transfers some quantity of money to the server: it's impossible to have a channel with zero value transferred. This rule ensures that you can't get a channel that can't be settled due to having paid under the dust limit. Because the dust limit will float in future, the server tells the client what it thinks it is, and the client is supposed to sanity check this value.
required uint64 min_payment = 4;public Protos.Initiate.Builder clearMinPayment()
The amount of money the server requires for the initial payment. The act of opening a channel always transfers some quantity of money to the server: it's impossible to have a channel with zero value transferred. This rule ensures that you can't get a channel that can't be settled due to having paid under the dust limit. Because the dust limit will float in future, the server tells the client what it thinks it is, and the client is supposed to sanity check this value.
required uint64 min_payment = 4;public final Protos.Initiate.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.Initiate.Builder>public final Protos.Initiate.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.Initiate.Builder>