public static final class ClientState.StoredClientPaymentChannel.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ClientState.StoredClientPaymentChannel.Builder> implements ClientState.StoredClientPaymentChannelOrBuilder
A client-side payment channel in serialized form, which can be reloaded later if the client restarts and wants to reopen an existing channelProtobuf type
paymentchannels.StoredClientPaymentChannel| Modifier and Type | Method and Description |
|---|---|
ClientState.StoredClientPaymentChannel.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
ClientState.StoredClientPaymentChannel |
build() |
ClientState.StoredClientPaymentChannel |
buildPartial() |
ClientState.StoredClientPaymentChannel.Builder |
clear() |
ClientState.StoredClientPaymentChannel.Builder |
clearCloseTransactionHash()
When set, the hash of the transaction that was presented by the server for closure of the channel.
|
ClientState.StoredClientPaymentChannel.Builder |
clearContractTransaction()
required bytes contractTransaction = 2; |
ClientState.StoredClientPaymentChannel.Builder |
clearExpiryTime()
The expiry time of the CLTV lock.
|
ClientState.StoredClientPaymentChannel.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ClientState.StoredClientPaymentChannel.Builder |
clearId()
required bytes id = 1; |
ClientState.StoredClientPaymentChannel.Builder |
clearMajorVersion()
optional uint32 majorVersion = 9 [default = 1]; |
ClientState.StoredClientPaymentChannel.Builder |
clearMyKey()
Deprecated, key is already stored in the wallet, and found using myPublicKey;
|
ClientState.StoredClientPaymentChannel.Builder |
clearMyPublicKey()
required bytes myPublicKey = 8; |
ClientState.StoredClientPaymentChannel.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ClientState.StoredClientPaymentChannel.Builder |
clearRefundFees()
Fees required to refund the transaction.
|
ClientState.StoredClientPaymentChannel.Builder |
clearRefundTransaction()
required bytes refundTransaction = 3; |
ClientState.StoredClientPaymentChannel.Builder |
clearServerKey()
The server's public key.
|
ClientState.StoredClientPaymentChannel.Builder |
clearValueToMe()
required uint64 valueToMe = 5; |
ClientState.StoredClientPaymentChannel.Builder |
clone() |
com.google.protobuf.ByteString |
getCloseTransactionHash()
When set, the hash of the transaction that was presented by the server for closure of the channel.
|
com.google.protobuf.ByteString |
getContractTransaction()
required bytes contractTransaction = 2; |
ClientState.StoredClientPaymentChannel |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getExpiryTime()
The expiry time of the CLTV lock.
|
com.google.protobuf.ByteString |
getId()
required bytes id = 1; |
int |
getMajorVersion()
optional uint32 majorVersion = 9 [default = 1]; |
com.google.protobuf.ByteString |
getMyKey()
Deprecated, key is already stored in the wallet, and found using myPublicKey;
|
com.google.protobuf.ByteString |
getMyPublicKey()
required bytes myPublicKey = 8; |
long |
getRefundFees()
Fees required to refund the transaction.
|
com.google.protobuf.ByteString |
getRefundTransaction()
required bytes refundTransaction = 3; |
com.google.protobuf.ByteString |
getServerKey()
The server's public key.
|
long |
getValueToMe()
required uint64 valueToMe = 5; |
boolean |
hasCloseTransactionHash()
When set, the hash of the transaction that was presented by the server for closure of the channel.
|
boolean |
hasContractTransaction()
required bytes contractTransaction = 2; |
boolean |
hasExpiryTime()
The expiry time of the CLTV lock.
|
boolean |
hasId()
required bytes id = 1; |
boolean |
hasMajorVersion()
optional uint32 majorVersion = 9 [default = 1]; |
boolean |
hasMyKey()
Deprecated, key is already stored in the wallet, and found using myPublicKey;
|
boolean |
hasMyPublicKey()
required bytes myPublicKey = 8; |
boolean |
hasRefundFees()
Fees required to refund the transaction.
|
boolean |
hasRefundTransaction()
required bytes refundTransaction = 3; |
boolean |
hasServerKey()
The server's public key.
|
boolean |
hasValueToMe()
required uint64 valueToMe = 5; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ClientState.StoredClientPaymentChannel.Builder |
mergeFrom(ClientState.StoredClientPaymentChannel other) |
ClientState.StoredClientPaymentChannel.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ClientState.StoredClientPaymentChannel.Builder |
mergeFrom(com.google.protobuf.Message other) |
ClientState.StoredClientPaymentChannel.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ClientState.StoredClientPaymentChannel.Builder |
setCloseTransactionHash(com.google.protobuf.ByteString value)
When set, the hash of the transaction that was presented by the server for closure of the channel.
|
ClientState.StoredClientPaymentChannel.Builder |
setContractTransaction(com.google.protobuf.ByteString value)
required bytes contractTransaction = 2; |
ClientState.StoredClientPaymentChannel.Builder |
setExpiryTime(long value)
The expiry time of the CLTV lock.
|
ClientState.StoredClientPaymentChannel.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
ClientState.StoredClientPaymentChannel.Builder |
setId(com.google.protobuf.ByteString value)
required bytes id = 1; |
ClientState.StoredClientPaymentChannel.Builder |
setMajorVersion(int value)
optional uint32 majorVersion = 9 [default = 1]; |
ClientState.StoredClientPaymentChannel.Builder |
setMyKey(com.google.protobuf.ByteString value)
Deprecated, key is already stored in the wallet, and found using myPublicKey;
|
ClientState.StoredClientPaymentChannel.Builder |
setMyPublicKey(com.google.protobuf.ByteString value)
required bytes myPublicKey = 8; |
ClientState.StoredClientPaymentChannel.Builder |
setRefundFees(long value)
Fees required to refund the transaction.
|
ClientState.StoredClientPaymentChannel.Builder |
setRefundTransaction(com.google.protobuf.ByteString value)
required bytes refundTransaction = 3; |
ClientState.StoredClientPaymentChannel.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
ClientState.StoredClientPaymentChannel.Builder |
setServerKey(com.google.protobuf.ByteString value)
The server's public key.
|
ClientState.StoredClientPaymentChannel.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ClientState.StoredClientPaymentChannel.Builder |
setValueToMe(long value)
required uint64 valueToMe = 5; |
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<ClientState.StoredClientPaymentChannel.Builder>public ClientState.StoredClientPaymentChannel.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ClientState.StoredClientPaymentChannel.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<ClientState.StoredClientPaymentChannel.Builder>public ClientState.StoredClientPaymentChannel getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ClientState.StoredClientPaymentChannel build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ClientState.StoredClientPaymentChannel buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ClientState.StoredClientPaymentChannel.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ClientState.StoredClientPaymentChannel.Builder>public ClientState.StoredClientPaymentChannel.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<ClientState.StoredClientPaymentChannel.Builder>public ClientState.StoredClientPaymentChannel.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ClientState.StoredClientPaymentChannel.Builder>public ClientState.StoredClientPaymentChannel.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ClientState.StoredClientPaymentChannel.Builder>public ClientState.StoredClientPaymentChannel.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<ClientState.StoredClientPaymentChannel.Builder>public ClientState.StoredClientPaymentChannel.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<ClientState.StoredClientPaymentChannel.Builder>public ClientState.StoredClientPaymentChannel.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClientState.StoredClientPaymentChannel.Builder>public ClientState.StoredClientPaymentChannel.Builder mergeFrom(ClientState.StoredClientPaymentChannel other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ClientState.StoredClientPaymentChannel.Builder>public ClientState.StoredClientPaymentChannel.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<ClientState.StoredClientPaymentChannel.Builder>java.io.IOExceptionpublic boolean hasId()
required bytes id = 1;hasId in interface ClientState.StoredClientPaymentChannelOrBuilderpublic com.google.protobuf.ByteString getId()
required bytes id = 1;getId in interface ClientState.StoredClientPaymentChannelOrBuilderpublic ClientState.StoredClientPaymentChannel.Builder setId(com.google.protobuf.ByteString value)
required bytes id = 1;public ClientState.StoredClientPaymentChannel.Builder clearId()
required bytes id = 1;public boolean hasContractTransaction()
required bytes contractTransaction = 2;hasContractTransaction in interface ClientState.StoredClientPaymentChannelOrBuilderpublic com.google.protobuf.ByteString getContractTransaction()
required bytes contractTransaction = 2;getContractTransaction in interface ClientState.StoredClientPaymentChannelOrBuilderpublic ClientState.StoredClientPaymentChannel.Builder setContractTransaction(com.google.protobuf.ByteString value)
required bytes contractTransaction = 2;public ClientState.StoredClientPaymentChannel.Builder clearContractTransaction()
required bytes contractTransaction = 2;public boolean hasRefundTransaction()
required bytes refundTransaction = 3;hasRefundTransaction in interface ClientState.StoredClientPaymentChannelOrBuilderpublic com.google.protobuf.ByteString getRefundTransaction()
required bytes refundTransaction = 3;getRefundTransaction in interface ClientState.StoredClientPaymentChannelOrBuilderpublic ClientState.StoredClientPaymentChannel.Builder setRefundTransaction(com.google.protobuf.ByteString value)
required bytes refundTransaction = 3;public ClientState.StoredClientPaymentChannel.Builder clearRefundTransaction()
required bytes refundTransaction = 3;public boolean hasMyPublicKey()
required bytes myPublicKey = 8;hasMyPublicKey in interface ClientState.StoredClientPaymentChannelOrBuilderpublic com.google.protobuf.ByteString getMyPublicKey()
required bytes myPublicKey = 8;getMyPublicKey in interface ClientState.StoredClientPaymentChannelOrBuilderpublic ClientState.StoredClientPaymentChannel.Builder setMyPublicKey(com.google.protobuf.ByteString value)
required bytes myPublicKey = 8;public ClientState.StoredClientPaymentChannel.Builder clearMyPublicKey()
required bytes myPublicKey = 8;public boolean hasMyKey()
Deprecated, key is already stored in the wallet, and found using myPublicKey;
required bytes myKey = 4;hasMyKey in interface ClientState.StoredClientPaymentChannelOrBuilderpublic com.google.protobuf.ByteString getMyKey()
Deprecated, key is already stored in the wallet, and found using myPublicKey;
required bytes myKey = 4;getMyKey in interface ClientState.StoredClientPaymentChannelOrBuilderpublic ClientState.StoredClientPaymentChannel.Builder setMyKey(com.google.protobuf.ByteString value)
Deprecated, key is already stored in the wallet, and found using myPublicKey;
required bytes myKey = 4;public ClientState.StoredClientPaymentChannel.Builder clearMyKey()
Deprecated, key is already stored in the wallet, and found using myPublicKey;
required bytes myKey = 4;public boolean hasValueToMe()
required uint64 valueToMe = 5;hasValueToMe in interface ClientState.StoredClientPaymentChannelOrBuilderpublic long getValueToMe()
required uint64 valueToMe = 5;getValueToMe in interface ClientState.StoredClientPaymentChannelOrBuilderpublic ClientState.StoredClientPaymentChannel.Builder setValueToMe(long value)
required uint64 valueToMe = 5;public ClientState.StoredClientPaymentChannel.Builder clearValueToMe()
required uint64 valueToMe = 5;public boolean hasRefundFees()
Fees required to refund the transaction.
required uint64 refundFees = 6;hasRefundFees in interface ClientState.StoredClientPaymentChannelOrBuilderpublic long getRefundFees()
Fees required to refund the transaction.
required uint64 refundFees = 6;getRefundFees in interface ClientState.StoredClientPaymentChannelOrBuilderpublic ClientState.StoredClientPaymentChannel.Builder setRefundFees(long value)
Fees required to refund the transaction.
required uint64 refundFees = 6;public ClientState.StoredClientPaymentChannel.Builder clearRefundFees()
Fees required to refund the transaction.
required uint64 refundFees = 6;public boolean hasCloseTransactionHash()
When set, the hash of the transaction that was presented by the server for closure of the channel. It spends the contractTransaction and is expected to be broadcast to the network by the server. It's supposed to be in the wallet already.
optional bytes closeTransactionHash = 7;hasCloseTransactionHash in interface ClientState.StoredClientPaymentChannelOrBuilderpublic com.google.protobuf.ByteString getCloseTransactionHash()
When set, the hash of the transaction that was presented by the server for closure of the channel. It spends the contractTransaction and is expected to be broadcast to the network by the server. It's supposed to be in the wallet already.
optional bytes closeTransactionHash = 7;getCloseTransactionHash in interface ClientState.StoredClientPaymentChannelOrBuilderpublic ClientState.StoredClientPaymentChannel.Builder setCloseTransactionHash(com.google.protobuf.ByteString value)
When set, the hash of the transaction that was presented by the server for closure of the channel. It spends the contractTransaction and is expected to be broadcast to the network by the server. It's supposed to be in the wallet already.
optional bytes closeTransactionHash = 7;public ClientState.StoredClientPaymentChannel.Builder clearCloseTransactionHash()
When set, the hash of the transaction that was presented by the server for closure of the channel. It spends the contractTransaction and is expected to be broadcast to the network by the server. It's supposed to be in the wallet already.
optional bytes closeTransactionHash = 7;public boolean hasMajorVersion()
optional uint32 majorVersion = 9 [default = 1];hasMajorVersion in interface ClientState.StoredClientPaymentChannelOrBuilderpublic int getMajorVersion()
optional uint32 majorVersion = 9 [default = 1];getMajorVersion in interface ClientState.StoredClientPaymentChannelOrBuilderpublic ClientState.StoredClientPaymentChannel.Builder setMajorVersion(int value)
optional uint32 majorVersion = 9 [default = 1];public ClientState.StoredClientPaymentChannel.Builder clearMajorVersion()
optional uint32 majorVersion = 9 [default = 1];public boolean hasExpiryTime()
The expiry time of the CLTV lock. Only used in protocol v2.
optional uint64 expiryTime = 10;hasExpiryTime in interface ClientState.StoredClientPaymentChannelOrBuilderpublic long getExpiryTime()
The expiry time of the CLTV lock. Only used in protocol v2.
optional uint64 expiryTime = 10;getExpiryTime in interface ClientState.StoredClientPaymentChannelOrBuilderpublic ClientState.StoredClientPaymentChannel.Builder setExpiryTime(long value)
The expiry time of the CLTV lock. Only used in protocol v2.
optional uint64 expiryTime = 10;public ClientState.StoredClientPaymentChannel.Builder clearExpiryTime()
The expiry time of the CLTV lock. Only used in protocol v2.
optional uint64 expiryTime = 10;public boolean hasServerKey()
The server's public key. Only used in protocol v2.
optional bytes serverKey = 11;hasServerKey in interface ClientState.StoredClientPaymentChannelOrBuilderpublic com.google.protobuf.ByteString getServerKey()
The server's public key. Only used in protocol v2.
optional bytes serverKey = 11;getServerKey in interface ClientState.StoredClientPaymentChannelOrBuilderpublic ClientState.StoredClientPaymentChannel.Builder setServerKey(com.google.protobuf.ByteString value)
The server's public key. Only used in protocol v2.
optional bytes serverKey = 11;public ClientState.StoredClientPaymentChannel.Builder clearServerKey()
The server's public key. Only used in protocol v2.
optional bytes serverKey = 11;public final ClientState.StoredClientPaymentChannel.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClientState.StoredClientPaymentChannel.Builder>public final ClientState.StoredClientPaymentChannel.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClientState.StoredClientPaymentChannel.Builder>