com.google.bitcoin.protocols.channels
Class ClientState.StoredClientPaymentChannel

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite
      extended by com.google.protobuf.AbstractMessage
          extended by com.google.protobuf.GeneratedMessage
              extended by com.google.bitcoin.protocols.channels.ClientState.StoredClientPaymentChannel
All Implemented Interfaces:
ClientState.StoredClientPaymentChannelOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
ClientState

public static final class ClientState.StoredClientPaymentChannel
extends com.google.protobuf.GeneratedMessage
implements ClientState.StoredClientPaymentChannelOrBuilder

Protobuf type 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
 

See Also:
Serialized Form

Nested Class Summary
static class ClientState.StoredClientPaymentChannel.Builder
          Protobuf type paymentchannels.StoredClientPaymentChannel
 
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
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>
 
Field Summary
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
           
 
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders
 
Method Summary
 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)
           
 
Methods inherited from class com.google.protobuf.GeneratedMessage
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
 
Methods inherited from class com.google.protobuf.AbstractMessage
equals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toString
 
Methods inherited from class com.google.protobuf.AbstractMessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, hasField
 
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
 

Field Detail

PARSER

public static com.google.protobuf.Parser<ClientState.StoredClientPaymentChannel> PARSER

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
See Also:
Constant Field Values

CONTRACTTRANSACTION_FIELD_NUMBER

public static final int CONTRACTTRANSACTION_FIELD_NUMBER
See Also:
Constant Field Values

REFUNDTRANSACTION_FIELD_NUMBER

public static final int REFUNDTRANSACTION_FIELD_NUMBER
See Also:
Constant Field Values

MYKEY_FIELD_NUMBER

public static final int MYKEY_FIELD_NUMBER
See Also:
Constant Field Values

VALUETOME_FIELD_NUMBER

public static final int VALUETOME_FIELD_NUMBER
See Also:
Constant Field Values

REFUNDFEES_FIELD_NUMBER

public static final int REFUNDFEES_FIELD_NUMBER
See Also:
Constant Field Values

CLOSETRANSACTIONHASH_FIELD_NUMBER

public static final int CLOSETRANSACTIONHASH_FIELD_NUMBER
See Also:
Constant Field Values
Method Detail

getDefaultInstance

public static ClientState.StoredClientPaymentChannel getDefaultInstance()

getDefaultInstanceForType

public ClientState.StoredClientPaymentChannel getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

getUnknownFields

public final com.google.protobuf.UnknownFieldSet getUnknownFields()
Specified by:
getUnknownFields in interface com.google.protobuf.MessageOrBuilder
Overrides:
getUnknownFields in class com.google.protobuf.GeneratedMessage

getDescriptor

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Specified by:
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage

getParserForType

public com.google.protobuf.Parser<ClientState.StoredClientPaymentChannel> getParserForType()
Specified by:
getParserForType in interface com.google.protobuf.Message
Specified by:
getParserForType in interface com.google.protobuf.MessageLite
Overrides:
getParserForType in class com.google.protobuf.GeneratedMessage

hasId

public boolean hasId()
required bytes id = 1;

Specified by:
hasId in interface ClientState.StoredClientPaymentChannelOrBuilder

getId

public com.google.protobuf.ByteString getId()
required bytes id = 1;

Specified by:
getId in interface ClientState.StoredClientPaymentChannelOrBuilder

hasContractTransaction

public boolean hasContractTransaction()
required bytes contractTransaction = 2;

Specified by:
hasContractTransaction in interface ClientState.StoredClientPaymentChannelOrBuilder

getContractTransaction

public com.google.protobuf.ByteString getContractTransaction()
required bytes contractTransaction = 2;

Specified by:
getContractTransaction in interface ClientState.StoredClientPaymentChannelOrBuilder

hasRefundTransaction

public boolean hasRefundTransaction()
required bytes refundTransaction = 3;

Specified by:
hasRefundTransaction in interface ClientState.StoredClientPaymentChannelOrBuilder

getRefundTransaction

public com.google.protobuf.ByteString getRefundTransaction()
required bytes refundTransaction = 3;

Specified by:
getRefundTransaction in interface ClientState.StoredClientPaymentChannelOrBuilder

hasMyKey

public boolean hasMyKey()
required bytes myKey = 4;

Specified by:
hasMyKey in interface ClientState.StoredClientPaymentChannelOrBuilder

getMyKey

public com.google.protobuf.ByteString getMyKey()
required bytes myKey = 4;

Specified by:
getMyKey in interface ClientState.StoredClientPaymentChannelOrBuilder

hasValueToMe

public boolean hasValueToMe()
required uint64 valueToMe = 5;

Specified by:
hasValueToMe in interface ClientState.StoredClientPaymentChannelOrBuilder

getValueToMe

public long getValueToMe()
required uint64 valueToMe = 5;

Specified by:
getValueToMe in interface ClientState.StoredClientPaymentChannelOrBuilder

hasRefundFees

public boolean hasRefundFees()
required uint64 refundFees = 6;

Specified by:
hasRefundFees in interface ClientState.StoredClientPaymentChannelOrBuilder

getRefundFees

public long getRefundFees()
required uint64 refundFees = 6;

Specified by:
getRefundFees in interface ClientState.StoredClientPaymentChannelOrBuilder

hasCloseTransactionHash

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.
 

Specified by:
hasCloseTransactionHash in interface ClientState.StoredClientPaymentChannelOrBuilder

getCloseTransactionHash

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.
 

Specified by:
getCloseTransactionHash in interface ClientState.StoredClientPaymentChannelOrBuilder

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage

writeTo

public void writeTo(com.google.protobuf.CodedOutputStream output)
             throws IOException
Specified by:
writeTo in interface com.google.protobuf.MessageLite
Overrides:
writeTo in class com.google.protobuf.AbstractMessage
Throws:
IOException

getSerializedSize

public int getSerializedSize()
Specified by:
getSerializedSize in interface com.google.protobuf.MessageLite
Overrides:
getSerializedSize in class com.google.protobuf.AbstractMessage

writeReplace

protected Object writeReplace()
                       throws ObjectStreamException
Overrides:
writeReplace in class com.google.protobuf.GeneratedMessage
Throws:
ObjectStreamException

parseFrom

public static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.ByteString data)
                                                        throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.ByteString data,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static ClientState.StoredClientPaymentChannel parseFrom(byte[] data)
                                                        throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static ClientState.StoredClientPaymentChannel parseFrom(byte[] data,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static ClientState.StoredClientPaymentChannel parseFrom(InputStream input)
                                                        throws IOException
Throws:
IOException

parseFrom

public static ClientState.StoredClientPaymentChannel parseFrom(InputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws IOException
Throws:
IOException

parseDelimitedFrom

public static ClientState.StoredClientPaymentChannel parseDelimitedFrom(InputStream input)
                                                                 throws IOException
Throws:
IOException

parseDelimitedFrom

public static ClientState.StoredClientPaymentChannel parseDelimitedFrom(InputStream input,
                                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                 throws IOException
Throws:
IOException

parseFrom

public static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.CodedInputStream input)
                                                        throws IOException
Throws:
IOException

parseFrom

public static ClientState.StoredClientPaymentChannel parseFrom(com.google.protobuf.CodedInputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws IOException
Throws:
IOException

newBuilder

public static ClientState.StoredClientPaymentChannel.Builder newBuilder()

newBuilderForType

public ClientState.StoredClientPaymentChannel.Builder newBuilderForType()
Specified by:
newBuilderForType in interface com.google.protobuf.Message
Specified by:
newBuilderForType in interface com.google.protobuf.MessageLite

newBuilder

public static ClientState.StoredClientPaymentChannel.Builder newBuilder(ClientState.StoredClientPaymentChannel prototype)

toBuilder

public ClientState.StoredClientPaymentChannel.Builder toBuilder()
Specified by:
toBuilder in interface com.google.protobuf.Message
Specified by:
toBuilder in interface com.google.protobuf.MessageLite

newBuilderForType

protected ClientState.StoredClientPaymentChannel.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
Specified by:
newBuilderForType in class com.google.protobuf.GeneratedMessage


Copyright © 2014. All rights reserved.