public static final class ClientState.StoredClientPaymentChannel extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
ClientState.StoredClientPaymentChannel.Builder
A client-side payment channel in serialized form, which can be reloaded later if the client restarts and wants to
reopen an existing channel
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CLOSETRANSACTIONHASH_FIELD_NUMBER |
static int |
CONTRACTTRANSACTION_FIELD_NUMBER |
static int |
EXPIRYTIME_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
MAJORVERSION_FIELD_NUMBER |
static int |
MYKEY_FIELD_NUMBER |
static int |
MYPUBLICKEY_FIELD_NUMBER |
static com.google.protobuf.Parser<ClientState.StoredClientPaymentChannel> |
PARSER
Deprecated.
|
static int |
REFUNDFEES_FIELD_NUMBER |
static int |
REFUNDTRANSACTION_FIELD_NUMBER |
static int |
SERVERKEY_FIELD_NUMBER |
static int |
VALUETOME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
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; |
static ClientState.StoredClientPaymentChannel |
getDefaultInstance() |
ClientState.StoredClientPaymentChannel |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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; |
com.google.protobuf.Parser<ClientState.StoredClientPaymentChannel> |
getParserForType() |
long |
getRefundFees()
Fees required to refund the transaction.
|
com.google.protobuf.ByteString |
getRefundTransaction()
required bytes refundTransaction = 3; |
int |
getSerializedSize() |
com.google.protobuf.ByteString |
getServerKey()
The server's public key.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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.
|
int |
hashCode() |
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() |
static ClientState.StoredClientPaymentChannel.Builder |
newBuilder() |
static ClientState.StoredClientPaymentChannel.Builder |
newBuilder(ClientState.StoredClientPaymentChannel prototype) |
ClientState.StoredClientPaymentChannel.Builder |
newBuilderForType() |
protected ClientState.StoredClientPaymentChannel.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static ClientState.StoredClientPaymentChannel |
parseDelimitedFrom(java.io.InputStream input) |
static ClientState.StoredClientPaymentChannel |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClientState.StoredClientPaymentChannel |
parseFrom(byte[] data) |
static ClientState.StoredClientPaymentChannel |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClientState.StoredClientPaymentChannel |
parseFrom(java.nio.ByteBuffer data) |
static ClientState.StoredClientPaymentChannel |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClientState.StoredClientPaymentChannel |
parseFrom(com.google.protobuf.ByteString data) |
static ClientState.StoredClientPaymentChannel |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClientState.StoredClientPaymentChannel |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ClientState.StoredClientPaymentChannel |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClientState.StoredClientPaymentChannel |
parseFrom(java.io.InputStream input) |
static ClientState.StoredClientPaymentChannel |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ClientState.StoredClientPaymentChannel> |
parser() |
ClientState.StoredClientPaymentChannel.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ID_FIELD_NUMBER
public static final int CONTRACTTRANSACTION_FIELD_NUMBER
public static final int REFUNDTRANSACTION_FIELD_NUMBER
public static final int MYPUBLICKEY_FIELD_NUMBER
public static final int MYKEY_FIELD_NUMBER
public static final int VALUETOME_FIELD_NUMBER
public static final int REFUNDFEES_FIELD_NUMBER
public static final int CLOSETRANSACTIONHASH_FIELD_NUMBER
public static final int MAJORVERSION_FIELD_NUMBER
public static final int EXPIRYTIME_FIELD_NUMBER
public static final int SERVERKEY_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<ClientState.StoredClientPaymentChannel> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 boolean hasValueToMe()
required uint64 valueToMe = 5;hasValueToMe in interface ClientState.StoredClientPaymentChannelOrBuilderpublic long getValueToMe()
required uint64 valueToMe = 5;getValueToMe in interface ClientState.StoredClientPaymentChannelOrBuilderpublic 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ClientState.StoredClientPaymentChannel parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClientState.StoredClientPaymentChannel parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClientState.StoredClientPaymentChannel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClientState.StoredClientPaymentChannel parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClientState.StoredClientPaymentChannel parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ClientState.StoredClientPaymentChannel parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ClientState.StoredClientPaymentChannel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ClientState.StoredClientPaymentChannel parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic ClientState.StoredClientPaymentChannel.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ClientState.StoredClientPaymentChannel.Builder newBuilder()
public static ClientState.StoredClientPaymentChannel.Builder newBuilder(ClientState.StoredClientPaymentChannel prototype)
public ClientState.StoredClientPaymentChannel.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ClientState.StoredClientPaymentChannel.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ClientState.StoredClientPaymentChannel getDefaultInstance()
public static com.google.protobuf.Parser<ClientState.StoredClientPaymentChannel> parser()
public com.google.protobuf.Parser<ClientState.StoredClientPaymentChannel> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ClientState.StoredClientPaymentChannel getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder