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

public static final class Protos.ProvideRefund.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Protos.ProvideRefund.Builder>
implements Protos.ProvideRefundOrBuilder

Protobuf type paymentchannels.ProvideRefund

 Sent from primary to secondary after Initiate to begin the refund transaction signing.
 


Method Summary
 Protos.ProvideRefund build()
           
 Protos.ProvideRefund buildPartial()
           
 Protos.ProvideRefund.Builder clear()
           
 Protos.ProvideRefund.Builder clearMultisigKey()
          required bytes multisig_key = 1;
 Protos.ProvideRefund.Builder clearTx()
          required bytes tx = 2;
 Protos.ProvideRefund.Builder clone()
           
 Protos.ProvideRefund getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 com.google.protobuf.ByteString getMultisigKey()
          required bytes multisig_key = 1;
 com.google.protobuf.ByteString getTx()
          required bytes tx = 2;
 boolean hasMultisigKey()
          required bytes multisig_key = 1;
 boolean hasTx()
          required bytes tx = 2;
protected  com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
           
 boolean isInitialized()
           
 Protos.ProvideRefund.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 Protos.ProvideRefund.Builder mergeFrom(com.google.protobuf.Message other)
           
 Protos.ProvideRefund.Builder mergeFrom(Protos.ProvideRefund other)
           
 Protos.ProvideRefund.Builder setMultisigKey(com.google.protobuf.ByteString value)
          required bytes multisig_key = 1;
 Protos.ProvideRefund.Builder setTx(com.google.protobuf.ByteString value)
          required bytes tx = 2;
 
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.ProvideRefund.Builder>

clear

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

clone

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

getDefaultInstanceForType

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

build

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

buildPartial

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

mergeFrom

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

mergeFrom

public Protos.ProvideRefund.Builder mergeFrom(Protos.ProvideRefund 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.ProvideRefund.Builder>

mergeFrom

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

hasMultisigKey

public boolean hasMultisigKey()
required bytes multisig_key = 1;
 This must be a raw pubkey in regular ECDSA form. Both compressed and non-compressed forms
 are accepted.  It is only used in the creation of the multisig contract.
 

Specified by:
hasMultisigKey in interface Protos.ProvideRefundOrBuilder

getMultisigKey

public com.google.protobuf.ByteString getMultisigKey()
required bytes multisig_key = 1;
 This must be a raw pubkey in regular ECDSA form. Both compressed and non-compressed forms
 are accepted.  It is only used in the creation of the multisig contract.
 

Specified by:
getMultisigKey in interface Protos.ProvideRefundOrBuilder

setMultisigKey

public Protos.ProvideRefund.Builder setMultisigKey(com.google.protobuf.ByteString value)
required bytes multisig_key = 1;
 This must be a raw pubkey in regular ECDSA form. Both compressed and non-compressed forms
 are accepted.  It is only used in the creation of the multisig contract.
 


clearMultisigKey

public Protos.ProvideRefund.Builder clearMultisigKey()
required bytes multisig_key = 1;
 This must be a raw pubkey in regular ECDSA form. Both compressed and non-compressed forms
 are accepted.  It is only used in the creation of the multisig contract.
 


hasTx

public boolean hasTx()
required bytes tx = 2;
 The serialized bytes of the return transaction in Satoshi format.
 * It must have exactly one input which spends the multisig output (see ProvideContract for
   details of exactly what that output must look like). This output must have a sequence
   number of 0.
 * It must have the lock time set to a time after the min_time_window_secs (from the
   Initiate message).
 * It must have exactly one output which goes back to the primary.  This output's
   scriptPubKey will be reused to create payment transactions.
 

Specified by:
hasTx in interface Protos.ProvideRefundOrBuilder

getTx

public com.google.protobuf.ByteString getTx()
required bytes tx = 2;
 The serialized bytes of the return transaction in Satoshi format.
 * It must have exactly one input which spends the multisig output (see ProvideContract for
   details of exactly what that output must look like). This output must have a sequence
   number of 0.
 * It must have the lock time set to a time after the min_time_window_secs (from the
   Initiate message).
 * It must have exactly one output which goes back to the primary.  This output's
   scriptPubKey will be reused to create payment transactions.
 

Specified by:
getTx in interface Protos.ProvideRefundOrBuilder

setTx

public Protos.ProvideRefund.Builder setTx(com.google.protobuf.ByteString value)
required bytes tx = 2;
 The serialized bytes of the return transaction in Satoshi format.
 * It must have exactly one input which spends the multisig output (see ProvideContract for
   details of exactly what that output must look like). This output must have a sequence
   number of 0.
 * It must have the lock time set to a time after the min_time_window_secs (from the
   Initiate message).
 * It must have exactly one output which goes back to the primary.  This output's
   scriptPubKey will be reused to create payment transactions.
 


clearTx

public Protos.ProvideRefund.Builder clearTx()
required bytes tx = 2;
 The serialized bytes of the return transaction in Satoshi format.
 * It must have exactly one input which spends the multisig output (see ProvideContract for
   details of exactly what that output must look like). This output must have a sequence
   number of 0.
 * It must have the lock time set to a time after the min_time_window_secs (from the
   Initiate message).
 * It must have exactly one output which goes back to the primary.  This output's
   scriptPubKey will be reused to create payment transactions.
 



Copyright © 2014. All rights reserved.