public static final class ClientState.StoredClientPaymentChannel extends com.google.protobuf.GeneratedMessage implements ClientState.StoredClientPaymentChannelOrBuilder
paymentchannels.StoredClientPaymentChannel
A client-side payment channel in serialized form, which can be reloaded later if the client restarts and wants to reopen an existing channel
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientState.StoredClientPaymentChannel.Builder
Protobuf type
paymentchannels.StoredClientPaymentChannel |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>| Modifier and Type | Field and Description |
|---|---|
static int |
CLOSETRANSACTIONHASH_FIELD_NUMBER |
static int |
CONTRACTTRANSACTION_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
MYKEY_FIELD_NUMBER |
static int |
MYPUBLICKEY_FIELD_NUMBER |
static com.google.protobuf.Parser<ClientState.StoredClientPaymentChannel> |
PARSER |
static int |
REFUNDFEES_FIELD_NUMBER |
static int |
REFUNDTRANSACTION_FIELD_NUMBER |
static int |
VALUETOME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.ByteString |
getCloseTransactionHash()
optional bytes closeTransactionHash = 7; |
com.google.protobuf.ByteString |
getContractTransaction()
required bytes contractTransaction = 2; |
static ClientState.StoredClientPaymentChannel |
getDefaultInstance() |
ClientState.StoredClientPaymentChannel |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.ByteString |
getId()
required bytes id = 1; |
com.google.protobuf.ByteString |
getMyKey()
required bytes myKey = 4; |
com.google.protobuf.ByteString |
getMyPublicKey()
required bytes myPublicKey = 8; |
com.google.protobuf.Parser<ClientState.StoredClientPaymentChannel> |
getParserForType() |
long |
getRefundFees()
required uint64 refundFees = 6; |
com.google.protobuf.ByteString |
getRefundTransaction()
required bytes refundTransaction = 3; |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
long |
getValueToMe()
required uint64 valueToMe = 5; |
boolean |
hasCloseTransactionHash()
optional bytes closeTransactionHash = 7; |
boolean |
hasContractTransaction()
required bytes contractTransaction = 2; |
boolean |
hasId()
required bytes id = 1; |
boolean |
hasMyKey()
required bytes myKey = 4; |
boolean |
hasMyPublicKey()
required bytes myPublicKey = 8; |
boolean |
hasRefundFees()
required uint64 refundFees = 6; |
boolean |
hasRefundTransaction()
required bytes refundTransaction = 3; |
boolean |
hasValueToMe()
required uint64 valueToMe = 5; |
protected com.google.protobuf.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) |
static ClientState.StoredClientPaymentChannel |
parseDelimitedFrom(InputStream input) |
static ClientState.StoredClientPaymentChannel |
parseDelimitedFrom(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(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(InputStream input) |
static ClientState.StoredClientPaymentChannel |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ClientState.StoredClientPaymentChannel.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toStringtoByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static com.google.protobuf.Parser<ClientState.StoredClientPaymentChannel> PARSER
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 ClientState.StoredClientPaymentChannel getDefaultInstance()
public ClientState.StoredClientPaymentChannel getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic 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.GeneratedMessagepublic 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()
required bytes myKey = 4;
Deprecated, key is already stored in the wallet, and found using myPublicKey;
hasMyKey in interface ClientState.StoredClientPaymentChannelOrBuilderpublic com.google.protobuf.ByteString getMyKey()
required bytes myKey = 4;
Deprecated, key is already stored in the wallet, and found using myPublicKey;
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()
required uint64 refundFees = 6;hasRefundFees in interface ClientState.StoredClientPaymentChannelOrBuilderpublic long getRefundFees()
required uint64 refundFees = 6;getRefundFees in interface ClientState.StoredClientPaymentChannelOrBuilderpublic boolean hasCloseTransactionHash()
optional bytes closeTransactionHash = 7;
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.
hasCloseTransactionHash in interface ClientState.StoredClientPaymentChannelOrBuilderpublic com.google.protobuf.ByteString getCloseTransactionHash()
optional bytes closeTransactionHash = 7;
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.
getCloseTransactionHash in interface ClientState.StoredClientPaymentChannelOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic 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(InputStream input) throws IOException
IOExceptionpublic static ClientState.StoredClientPaymentChannel parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClientState.StoredClientPaymentChannel parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ClientState.StoredClientPaymentChannel parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClientState.StoredClientPaymentChannel.Builder newBuilder()
public ClientState.StoredClientPaymentChannel.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic 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.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2015. All rights reserved.