com.google.bitcoin.protocols.channels
Class ServerState.StoredServerPaymentChannel.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<ServerState.StoredServerPaymentChannel.Builder>
              extended by com.google.bitcoin.protocols.channels.ServerState.StoredServerPaymentChannel.Builder
All Implemented Interfaces:
ServerState.StoredServerPaymentChannelOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ServerState.StoredServerPaymentChannel

public static final class ServerState.StoredServerPaymentChannel.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ServerState.StoredServerPaymentChannel.Builder>
implements ServerState.StoredServerPaymentChannelOrBuilder

Protobuf type paymentchannels.StoredServerPaymentChannel

 A server-side payment channel in serialized form, which can be reloaded later if the server restarts
 


Method Summary
 ServerState.StoredServerPaymentChannel build()
           
 ServerState.StoredServerPaymentChannel buildPartial()
           
 ServerState.StoredServerPaymentChannel.Builder clear()
           
 ServerState.StoredServerPaymentChannel.Builder clearBestValueSignature()
          optional bytes bestValueSignature = 2;
 ServerState.StoredServerPaymentChannel.Builder clearBestValueToMe()
          required uint64 bestValueToMe = 1;
 ServerState.StoredServerPaymentChannel.Builder clearClientOutput()
          required bytes clientOutput = 5;
 ServerState.StoredServerPaymentChannel.Builder clearContractTransaction()
          required bytes contractTransaction = 4;
 ServerState.StoredServerPaymentChannel.Builder clearMyKey()
          required bytes myKey = 6;
 ServerState.StoredServerPaymentChannel.Builder clearRefundTransactionUnlockTimeSecs()
          required uint64 refundTransactionUnlockTimeSecs = 3;
 ServerState.StoredServerPaymentChannel.Builder clone()
           
 com.google.protobuf.ByteString getBestValueSignature()
          optional bytes bestValueSignature = 2;
 long getBestValueToMe()
          required uint64 bestValueToMe = 1;
 com.google.protobuf.ByteString getClientOutput()
          required bytes clientOutput = 5;
 com.google.protobuf.ByteString getContractTransaction()
          required bytes contractTransaction = 4;
 ServerState.StoredServerPaymentChannel getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 com.google.protobuf.ByteString getMyKey()
          required bytes myKey = 6;
 long getRefundTransactionUnlockTimeSecs()
          required uint64 refundTransactionUnlockTimeSecs = 3;
 boolean hasBestValueSignature()
          optional bytes bestValueSignature = 2;
 boolean hasBestValueToMe()
          required uint64 bestValueToMe = 1;
 boolean hasClientOutput()
          required bytes clientOutput = 5;
 boolean hasContractTransaction()
          required bytes contractTransaction = 4;
 boolean hasMyKey()
          required bytes myKey = 6;
 boolean hasRefundTransactionUnlockTimeSecs()
          required uint64 refundTransactionUnlockTimeSecs = 3;
protected  com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
           
 boolean isInitialized()
           
 ServerState.StoredServerPaymentChannel.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 ServerState.StoredServerPaymentChannel.Builder mergeFrom(com.google.protobuf.Message other)
           
 ServerState.StoredServerPaymentChannel.Builder mergeFrom(ServerState.StoredServerPaymentChannel other)
           
 ServerState.StoredServerPaymentChannel.Builder setBestValueSignature(com.google.protobuf.ByteString value)
          optional bytes bestValueSignature = 2;
 ServerState.StoredServerPaymentChannel.Builder setBestValueToMe(long value)
          required uint64 bestValueToMe = 1;
 ServerState.StoredServerPaymentChannel.Builder setClientOutput(com.google.protobuf.ByteString value)
          required bytes clientOutput = 5;
 ServerState.StoredServerPaymentChannel.Builder setContractTransaction(com.google.protobuf.ByteString value)
          required bytes contractTransaction = 4;
 ServerState.StoredServerPaymentChannel.Builder setMyKey(com.google.protobuf.ByteString value)
          required bytes myKey = 6;
 ServerState.StoredServerPaymentChannel.Builder setRefundTransactionUnlockTimeSecs(long value)
          required uint64 refundTransactionUnlockTimeSecs = 3;
 
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<ServerState.StoredServerPaymentChannel.Builder>

clear

public ServerState.StoredServerPaymentChannel.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<ServerState.StoredServerPaymentChannel.Builder>

clone

public ServerState.StoredServerPaymentChannel.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<ServerState.StoredServerPaymentChannel.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<ServerState.StoredServerPaymentChannel.Builder>

getDefaultInstanceForType

public ServerState.StoredServerPaymentChannel getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

build

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

buildPartial

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

mergeFrom

public ServerState.StoredServerPaymentChannel.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<ServerState.StoredServerPaymentChannel.Builder>

mergeFrom

public ServerState.StoredServerPaymentChannel.Builder mergeFrom(ServerState.StoredServerPaymentChannel other)

isInitialized

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

mergeFrom

public ServerState.StoredServerPaymentChannel.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<ServerState.StoredServerPaymentChannel.Builder>
Throws:
IOException

hasBestValueToMe

public boolean hasBestValueToMe()
required uint64 bestValueToMe = 1;

Specified by:
hasBestValueToMe in interface ServerState.StoredServerPaymentChannelOrBuilder

getBestValueToMe

public long getBestValueToMe()
required uint64 bestValueToMe = 1;

Specified by:
getBestValueToMe in interface ServerState.StoredServerPaymentChannelOrBuilder

setBestValueToMe

public ServerState.StoredServerPaymentChannel.Builder setBestValueToMe(long value)
required uint64 bestValueToMe = 1;


clearBestValueToMe

public ServerState.StoredServerPaymentChannel.Builder clearBestValueToMe()
required uint64 bestValueToMe = 1;


hasBestValueSignature

public boolean hasBestValueSignature()
optional bytes bestValueSignature = 2;

Specified by:
hasBestValueSignature in interface ServerState.StoredServerPaymentChannelOrBuilder

getBestValueSignature

public com.google.protobuf.ByteString getBestValueSignature()
optional bytes bestValueSignature = 2;

Specified by:
getBestValueSignature in interface ServerState.StoredServerPaymentChannelOrBuilder

setBestValueSignature

public ServerState.StoredServerPaymentChannel.Builder setBestValueSignature(com.google.protobuf.ByteString value)
optional bytes bestValueSignature = 2;


clearBestValueSignature

public ServerState.StoredServerPaymentChannel.Builder clearBestValueSignature()
optional bytes bestValueSignature = 2;


hasRefundTransactionUnlockTimeSecs

public boolean hasRefundTransactionUnlockTimeSecs()
required uint64 refundTransactionUnlockTimeSecs = 3;

Specified by:
hasRefundTransactionUnlockTimeSecs in interface ServerState.StoredServerPaymentChannelOrBuilder

getRefundTransactionUnlockTimeSecs

public long getRefundTransactionUnlockTimeSecs()
required uint64 refundTransactionUnlockTimeSecs = 3;

Specified by:
getRefundTransactionUnlockTimeSecs in interface ServerState.StoredServerPaymentChannelOrBuilder

setRefundTransactionUnlockTimeSecs

public ServerState.StoredServerPaymentChannel.Builder setRefundTransactionUnlockTimeSecs(long value)
required uint64 refundTransactionUnlockTimeSecs = 3;


clearRefundTransactionUnlockTimeSecs

public ServerState.StoredServerPaymentChannel.Builder clearRefundTransactionUnlockTimeSecs()
required uint64 refundTransactionUnlockTimeSecs = 3;


hasContractTransaction

public boolean hasContractTransaction()
required bytes contractTransaction = 4;

Specified by:
hasContractTransaction in interface ServerState.StoredServerPaymentChannelOrBuilder

getContractTransaction

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

Specified by:
getContractTransaction in interface ServerState.StoredServerPaymentChannelOrBuilder

setContractTransaction

public ServerState.StoredServerPaymentChannel.Builder setContractTransaction(com.google.protobuf.ByteString value)
required bytes contractTransaction = 4;


clearContractTransaction

public ServerState.StoredServerPaymentChannel.Builder clearContractTransaction()
required bytes contractTransaction = 4;


hasClientOutput

public boolean hasClientOutput()
required bytes clientOutput = 5;

Specified by:
hasClientOutput in interface ServerState.StoredServerPaymentChannelOrBuilder

getClientOutput

public com.google.protobuf.ByteString getClientOutput()
required bytes clientOutput = 5;

Specified by:
getClientOutput in interface ServerState.StoredServerPaymentChannelOrBuilder

setClientOutput

public ServerState.StoredServerPaymentChannel.Builder setClientOutput(com.google.protobuf.ByteString value)
required bytes clientOutput = 5;


clearClientOutput

public ServerState.StoredServerPaymentChannel.Builder clearClientOutput()
required bytes clientOutput = 5;


hasMyKey

public boolean hasMyKey()
required bytes myKey = 6;

Specified by:
hasMyKey in interface ServerState.StoredServerPaymentChannelOrBuilder

getMyKey

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

Specified by:
getMyKey in interface ServerState.StoredServerPaymentChannelOrBuilder

setMyKey

public ServerState.StoredServerPaymentChannel.Builder setMyKey(com.google.protobuf.ByteString value)
required bytes myKey = 6;


clearMyKey

public ServerState.StoredServerPaymentChannel.Builder clearMyKey()
required bytes myKey = 6;



Copyright © 2014. All rights reserved.