org.bitcoin.paymentchannel
Class Protos.ProvideContract.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<Protos.ProvideContract.Builder>
              extended by org.bitcoin.paymentchannel.Protos.ProvideContract.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Protos.ProvideContractOrBuilder
Enclosing class:
Protos.ProvideContract

public static final class Protos.ProvideContract.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Protos.ProvideContract.Builder>
implements Protos.ProvideContractOrBuilder

Protobuf type paymentchannels.ProvideContract

 Sent from the primary to the secondary to complete initialization.
 


Method Summary
 Protos.ProvideContract build()
           
 Protos.ProvideContract buildPartial()
           
 Protos.ProvideContract.Builder clear()
           
 Protos.ProvideContract.Builder clearInitialPayment()
          required .paymentchannels.UpdatePayment initial_payment = 2;
 Protos.ProvideContract.Builder clearTx()
          required bytes tx = 1;
 Protos.ProvideContract.Builder clone()
           
 Protos.ProvideContract getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 Protos.UpdatePayment getInitialPayment()
          required .paymentchannels.UpdatePayment initial_payment = 2;
 Protos.UpdatePayment.Builder getInitialPaymentBuilder()
          required .paymentchannels.UpdatePayment initial_payment = 2;
 Protos.UpdatePaymentOrBuilder getInitialPaymentOrBuilder()
          required .paymentchannels.UpdatePayment initial_payment = 2;
 com.google.protobuf.ByteString getTx()
          required bytes tx = 1;
 boolean hasInitialPayment()
          required .paymentchannels.UpdatePayment initial_payment = 2;
 boolean hasTx()
          required bytes tx = 1;
protected  com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
           
 boolean isInitialized()
           
 Protos.ProvideContract.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 Protos.ProvideContract.Builder mergeFrom(com.google.protobuf.Message other)
           
 Protos.ProvideContract.Builder mergeFrom(Protos.ProvideContract other)
           
 Protos.ProvideContract.Builder mergeInitialPayment(Protos.UpdatePayment value)
          required .paymentchannels.UpdatePayment initial_payment = 2;
 Protos.ProvideContract.Builder setInitialPayment(Protos.UpdatePayment.Builder builderForValue)
          required .paymentchannels.UpdatePayment initial_payment = 2;
 Protos.ProvideContract.Builder setInitialPayment(Protos.UpdatePayment value)
          required .paymentchannels.UpdatePayment initial_payment = 2;
 Protos.ProvideContract.Builder setTx(com.google.protobuf.ByteString value)
          required bytes tx = 1;
 
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<Protos.ProvideContract.Builder>

clear

public Protos.ProvideContract.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<Protos.ProvideContract.Builder>

clone

public Protos.ProvideContract.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<Protos.ProvideContract.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<Protos.ProvideContract.Builder>

getDefaultInstanceForType

public Protos.ProvideContract getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

build

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

buildPartial

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

mergeFrom

public Protos.ProvideContract.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<Protos.ProvideContract.Builder>

mergeFrom

public Protos.ProvideContract.Builder mergeFrom(Protos.ProvideContract other)

isInitialized

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

mergeFrom

public Protos.ProvideContract.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<Protos.ProvideContract.Builder>
Throws:
IOException

hasTx

public boolean hasTx()
required bytes tx = 1;
 The serialized bytes of the transaction in Satoshi format.
 * It must be signed and completely valid and ready for broadcast (ie it includes the
   necessary fees) TODO: tell the client how much fee it needs
 * Its first output must be a 2-of-2 multisig output with the first pubkey being the
   primary's and the second being the secondary's (ie the script must be exactly "OP_2
   ProvideRefund.multisig_key Initiate.multisig_key OP_2 OP_CHECKMULTISIG")
 

Specified by:
hasTx in interface Protos.ProvideContractOrBuilder

getTx

public com.google.protobuf.ByteString getTx()
required bytes tx = 1;
 The serialized bytes of the transaction in Satoshi format.
 * It must be signed and completely valid and ready for broadcast (ie it includes the
   necessary fees) TODO: tell the client how much fee it needs
 * Its first output must be a 2-of-2 multisig output with the first pubkey being the
   primary's and the second being the secondary's (ie the script must be exactly "OP_2
   ProvideRefund.multisig_key Initiate.multisig_key OP_2 OP_CHECKMULTISIG")
 

Specified by:
getTx in interface Protos.ProvideContractOrBuilder

setTx

public Protos.ProvideContract.Builder setTx(com.google.protobuf.ByteString value)
required bytes tx = 1;
 The serialized bytes of the transaction in Satoshi format.
 * It must be signed and completely valid and ready for broadcast (ie it includes the
   necessary fees) TODO: tell the client how much fee it needs
 * Its first output must be a 2-of-2 multisig output with the first pubkey being the
   primary's and the second being the secondary's (ie the script must be exactly "OP_2
   ProvideRefund.multisig_key Initiate.multisig_key OP_2 OP_CHECKMULTISIG")
 


clearTx

public Protos.ProvideContract.Builder clearTx()
required bytes tx = 1;
 The serialized bytes of the transaction in Satoshi format.
 * It must be signed and completely valid and ready for broadcast (ie it includes the
   necessary fees) TODO: tell the client how much fee it needs
 * Its first output must be a 2-of-2 multisig output with the first pubkey being the
   primary's and the second being the secondary's (ie the script must be exactly "OP_2
   ProvideRefund.multisig_key Initiate.multisig_key OP_2 OP_CHECKMULTISIG")
 


hasInitialPayment

public boolean hasInitialPayment()
required .paymentchannels.UpdatePayment initial_payment = 2;
 To open the channel, an initial payment of the server-specified dust limit value must be
 provided. This ensures that the channel is never in an un-settleable state due to either
 no payment tx having been provided at all, or a payment that is smaller than the dust
 limit being provided.
 

Specified by:
hasInitialPayment in interface Protos.ProvideContractOrBuilder

getInitialPayment

public Protos.UpdatePayment getInitialPayment()
required .paymentchannels.UpdatePayment initial_payment = 2;
 To open the channel, an initial payment of the server-specified dust limit value must be
 provided. This ensures that the channel is never in an un-settleable state due to either
 no payment tx having been provided at all, or a payment that is smaller than the dust
 limit being provided.
 

Specified by:
getInitialPayment in interface Protos.ProvideContractOrBuilder

setInitialPayment

public Protos.ProvideContract.Builder setInitialPayment(Protos.UpdatePayment value)
required .paymentchannels.UpdatePayment initial_payment = 2;
 To open the channel, an initial payment of the server-specified dust limit value must be
 provided. This ensures that the channel is never in an un-settleable state due to either
 no payment tx having been provided at all, or a payment that is smaller than the dust
 limit being provided.
 


setInitialPayment

public Protos.ProvideContract.Builder setInitialPayment(Protos.UpdatePayment.Builder builderForValue)
required .paymentchannels.UpdatePayment initial_payment = 2;
 To open the channel, an initial payment of the server-specified dust limit value must be
 provided. This ensures that the channel is never in an un-settleable state due to either
 no payment tx having been provided at all, or a payment that is smaller than the dust
 limit being provided.
 


mergeInitialPayment

public Protos.ProvideContract.Builder mergeInitialPayment(Protos.UpdatePayment value)
required .paymentchannels.UpdatePayment initial_payment = 2;
 To open the channel, an initial payment of the server-specified dust limit value must be
 provided. This ensures that the channel is never in an un-settleable state due to either
 no payment tx having been provided at all, or a payment that is smaller than the dust
 limit being provided.
 


clearInitialPayment

public Protos.ProvideContract.Builder clearInitialPayment()
required .paymentchannels.UpdatePayment initial_payment = 2;
 To open the channel, an initial payment of the server-specified dust limit value must be
 provided. This ensures that the channel is never in an un-settleable state due to either
 no payment tx having been provided at all, or a payment that is smaller than the dust
 limit being provided.
 


getInitialPaymentBuilder

public Protos.UpdatePayment.Builder getInitialPaymentBuilder()
required .paymentchannels.UpdatePayment initial_payment = 2;
 To open the channel, an initial payment of the server-specified dust limit value must be
 provided. This ensures that the channel is never in an un-settleable state due to either
 no payment tx having been provided at all, or a payment that is smaller than the dust
 limit being provided.
 


getInitialPaymentOrBuilder

public Protos.UpdatePaymentOrBuilder getInitialPaymentOrBuilder()
required .paymentchannels.UpdatePayment initial_payment = 2;
 To open the channel, an initial payment of the server-specified dust limit value must be
 provided. This ensures that the channel is never in an un-settleable state due to either
 no payment tx having been provided at all, or a payment that is smaller than the dust
 limit being provided.
 

Specified by:
getInitialPaymentOrBuilder in interface Protos.ProvideContractOrBuilder


Copyright © 2014. All rights reserved.