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 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.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 |
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, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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 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.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
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.GeneratedMessage
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 hasMyKey()
required bytes myKey = 4;
hasMyKey
in interface ClientState.StoredClientPaymentChannelOrBuilder
public com.google.protobuf.ByteString getMyKey()
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()
required uint64 refundFees = 6;
hasRefundFees
in interface ClientState.StoredClientPaymentChannelOrBuilder
public long getRefundFees()
required uint64 refundFees = 6;
getRefundFees
in interface ClientState.StoredClientPaymentChannelOrBuilder
public 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.StoredClientPaymentChannelOrBuilder
public 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.StoredClientPaymentChannelOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
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(InputStream input) throws IOException
IOException
public static ClientState.StoredClientPaymentChannel parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ClientState.StoredClientPaymentChannel parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ClientState.StoredClientPaymentChannel parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ClientState.StoredClientPaymentChannel.Builder newBuilder()
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(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.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2014. All rights reserved.