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

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

public static final class ClientState.StoredClientPaymentChannel.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ClientState.StoredClientPaymentChannel.Builder>
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
 


Method Summary
 ClientState.StoredClientPaymentChannel build()
           
 ClientState.StoredClientPaymentChannel buildPartial()
           
 ClientState.StoredClientPaymentChannel.Builder clear()
           
 ClientState.StoredClientPaymentChannel.Builder clearCloseTransactionHash()
          optional bytes closeTransactionHash = 7;
 ClientState.StoredClientPaymentChannel.Builder clearContractTransaction()
          required bytes contractTransaction = 2;
 ClientState.StoredClientPaymentChannel.Builder clearId()
          required bytes id = 1;
 ClientState.StoredClientPaymentChannel.Builder clearMyKey()
          required bytes myKey = 4;
 ClientState.StoredClientPaymentChannel.Builder clearRefundFees()
          required uint64 refundFees = 6;
 ClientState.StoredClientPaymentChannel.Builder clearRefundTransaction()
          required bytes refundTransaction = 3;
 ClientState.StoredClientPaymentChannel.Builder clearValueToMe()
          required uint64 valueToMe = 5;
 ClientState.StoredClientPaymentChannel.Builder clone()
           
 com.google.protobuf.ByteString getCloseTransactionHash()
          optional bytes closeTransactionHash = 7;
 com.google.protobuf.ByteString getContractTransaction()
          required bytes contractTransaction = 2;
 ClientState.StoredClientPaymentChannel getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 com.google.protobuf.ByteString getId()
          required bytes id = 1;
 com.google.protobuf.ByteString getMyKey()
          required bytes myKey = 4;
 long getRefundFees()
          required uint64 refundFees = 6;
 com.google.protobuf.ByteString getRefundTransaction()
          required bytes refundTransaction = 3;
 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()
           
 ClientState.StoredClientPaymentChannel.Builder mergeFrom(ClientState.StoredClientPaymentChannel other)
           
 ClientState.StoredClientPaymentChannel.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 ClientState.StoredClientPaymentChannel.Builder mergeFrom(com.google.protobuf.Message other)
           
 ClientState.StoredClientPaymentChannel.Builder setCloseTransactionHash(com.google.protobuf.ByteString value)
          optional bytes closeTransactionHash = 7;
 ClientState.StoredClientPaymentChannel.Builder setContractTransaction(com.google.protobuf.ByteString value)
          required bytes contractTransaction = 2;
 ClientState.StoredClientPaymentChannel.Builder setId(com.google.protobuf.ByteString value)
          required bytes id = 1;
 ClientState.StoredClientPaymentChannel.Builder setMyKey(com.google.protobuf.ByteString value)
          required bytes myKey = 4;
 ClientState.StoredClientPaymentChannel.Builder setRefundFees(long value)
          required uint64 refundFees = 6;
 ClientState.StoredClientPaymentChannel.Builder setRefundTransaction(com.google.protobuf.ByteString value)
          required bytes refundTransaction = 3;
 ClientState.StoredClientPaymentChannel.Builder setValueToMe(long value)
          required uint64 valueToMe = 5;
 
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
 
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
 
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, newUninitializedMessageException
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField
 

Method Detail

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.Builder<ClientState.StoredClientPaymentChannel.Builder>

clear

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

clone

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

getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.Message.Builder
Specified by:
getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
Overrides:
getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ClientState.StoredClientPaymentChannel.Builder>

getDefaultInstanceForType

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

build

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

buildPartial

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

mergeFrom

public ClientState.StoredClientPaymentChannel.Builder mergeFrom(com.google.protobuf.Message other)
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClientState.StoredClientPaymentChannel.Builder>

mergeFrom

public ClientState.StoredClientPaymentChannel.Builder mergeFrom(ClientState.StoredClientPaymentChannel other)

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ClientState.StoredClientPaymentChannel.Builder>

mergeFrom

public ClientState.StoredClientPaymentChannel.Builder mergeFrom(com.google.protobuf.CodedInputStream input,
                                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                         throws IOException
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Specified by:
mergeFrom in interface com.google.protobuf.MessageLite.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClientState.StoredClientPaymentChannel.Builder>
Throws:
IOException

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

setId

public ClientState.StoredClientPaymentChannel.Builder setId(com.google.protobuf.ByteString value)
required bytes id = 1;


clearId

public ClientState.StoredClientPaymentChannel.Builder clearId()
required bytes id = 1;


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

setContractTransaction

public ClientState.StoredClientPaymentChannel.Builder setContractTransaction(com.google.protobuf.ByteString value)
required bytes contractTransaction = 2;


clearContractTransaction

public ClientState.StoredClientPaymentChannel.Builder clearContractTransaction()
required bytes contractTransaction = 2;


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

setRefundTransaction

public ClientState.StoredClientPaymentChannel.Builder setRefundTransaction(com.google.protobuf.ByteString value)
required bytes refundTransaction = 3;


clearRefundTransaction

public ClientState.StoredClientPaymentChannel.Builder clearRefundTransaction()
required bytes refundTransaction = 3;


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

setMyKey

public ClientState.StoredClientPaymentChannel.Builder setMyKey(com.google.protobuf.ByteString value)
required bytes myKey = 4;


clearMyKey

public ClientState.StoredClientPaymentChannel.Builder clearMyKey()
required bytes myKey = 4;


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

setValueToMe

public ClientState.StoredClientPaymentChannel.Builder setValueToMe(long value)
required uint64 valueToMe = 5;


clearValueToMe

public ClientState.StoredClientPaymentChannel.Builder clearValueToMe()
required uint64 valueToMe = 5;


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

setRefundFees

public ClientState.StoredClientPaymentChannel.Builder setRefundFees(long value)
required uint64 refundFees = 6;


clearRefundFees

public ClientState.StoredClientPaymentChannel.Builder clearRefundFees()
required uint64 refundFees = 6;


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

setCloseTransactionHash

public ClientState.StoredClientPaymentChannel.Builder setCloseTransactionHash(com.google.protobuf.ByteString value)
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.
 


clearCloseTransactionHash

public ClientState.StoredClientPaymentChannel.Builder clearCloseTransactionHash()
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.
 



Copyright © 2014. All rights reserved.