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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public boolean hasId()
required bytes id = 1;
hasId
in interface ClientState.StoredClientPaymentChannelOrBuilder
public com.google.protobuf.ByteString getId()
required bytes id = 1;
getId
in interface ClientState.StoredClientPaymentChannelOrBuilder
public boolean hasContractTransaction()
required bytes contractTransaction = 2;
hasContractTransaction
in interface ClientState.StoredClientPaymentChannelOrBuilder
public com.google.protobuf.ByteString getContractTransaction()
required bytes contractTransaction = 2;
getContractTransaction
in interface ClientState.StoredClientPaymentChannelOrBuilder
public boolean hasRefundTransaction()
required bytes refundTransaction = 3;
hasRefundTransaction
in interface ClientState.StoredClientPaymentChannelOrBuilder
public com.google.protobuf.ByteString getRefundTransaction()
required bytes refundTransaction = 3;
getRefundTransaction
in interface ClientState.StoredClientPaymentChannelOrBuilder
public boolean hasMyPublicKey()
required bytes myPublicKey = 8;
hasMyPublicKey
in interface ClientState.StoredClientPaymentChannelOrBuilder
public com.google.protobuf.ByteString getMyPublicKey()
required bytes myPublicKey = 8;
getMyPublicKey
in interface ClientState.StoredClientPaymentChannelOrBuilder
public boolean hasMyKey()
Deprecated, key is already stored in the wallet, and found using myPublicKey;
required bytes myKey = 4;
hasMyKey
in interface ClientState.StoredClientPaymentChannelOrBuilder
public 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.StoredClientPaymentChannelOrBuilder
public boolean hasValueToMe()
required uint64 valueToMe = 5;
hasValueToMe
in interface ClientState.StoredClientPaymentChannelOrBuilder
public long getValueToMe()
required uint64 valueToMe = 5;
getValueToMe
in interface ClientState.StoredClientPaymentChannelOrBuilder
public boolean hasRefundFees()
Fees required to refund the transaction.
required uint64 refundFees = 6;
hasRefundFees
in interface ClientState.StoredClientPaymentChannelOrBuilder
public long getRefundFees()
Fees required to refund the transaction.
required uint64 refundFees = 6;
getRefundFees
in interface ClientState.StoredClientPaymentChannelOrBuilder
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.StoredClientPaymentChannelOrBuilder
public 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.StoredClientPaymentChannelOrBuilder
public boolean hasMajorVersion()
optional uint32 majorVersion = 9 [default = 1];
hasMajorVersion
in interface ClientState.StoredClientPaymentChannelOrBuilder
public int getMajorVersion()
optional uint32 majorVersion = 9 [default = 1];
getMajorVersion
in interface ClientState.StoredClientPaymentChannelOrBuilder
public boolean hasExpiryTime()
The expiry time of the CLTV lock. Only used in protocol v2.
optional uint64 expiryTime = 10;
hasExpiryTime
in interface ClientState.StoredClientPaymentChannelOrBuilder
public long getExpiryTime()
The expiry time of the CLTV lock. Only used in protocol v2.
optional uint64 expiryTime = 10;
getExpiryTime
in interface ClientState.StoredClientPaymentChannelOrBuilder
public boolean hasServerKey()
The server's public key. Only used in protocol v2.
optional bytes serverKey = 11;
hasServerKey
in interface ClientState.StoredClientPaymentChannelOrBuilder
public com.google.protobuf.ByteString getServerKey()
The server's public key. Only used in protocol v2.
optional bytes serverKey = 11;
getServerKey
in interface ClientState.StoredClientPaymentChannelOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static ClientState.StoredClientPaymentChannel parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClientState.StoredClientPaymentChannel parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClientState.StoredClientPaymentChannel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClientState.StoredClientPaymentChannel parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClientState.StoredClientPaymentChannel parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static ClientState.StoredClientPaymentChannel parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static ClientState.StoredClientPaymentChannel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static ClientState.StoredClientPaymentChannel parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public ClientState.StoredClientPaymentChannel.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected ClientState.StoredClientPaymentChannel.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public ClientState.StoredClientPaymentChannel getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder