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

public static final class Protos.PaymentDetails.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Protos.PaymentDetails.Builder>
implements Protos.PaymentDetailsOrBuilder

Protobuf type payments.PaymentDetails


Method Summary
 Protos.PaymentDetails.Builder addAllOutputs(Iterable<? extends Protos.Output> values)
          repeated .payments.Output outputs = 2;
 Protos.PaymentDetails.Builder addOutputs(int index, Protos.Output.Builder builderForValue)
          repeated .payments.Output outputs = 2;
 Protos.PaymentDetails.Builder addOutputs(int index, Protos.Output value)
          repeated .payments.Output outputs = 2;
 Protos.PaymentDetails.Builder addOutputs(Protos.Output.Builder builderForValue)
          repeated .payments.Output outputs = 2;
 Protos.PaymentDetails.Builder addOutputs(Protos.Output value)
          repeated .payments.Output outputs = 2;
 Protos.Output.Builder addOutputsBuilder()
          repeated .payments.Output outputs = 2;
 Protos.Output.Builder addOutputsBuilder(int index)
          repeated .payments.Output outputs = 2;
 Protos.PaymentDetails build()
           
 Protos.PaymentDetails buildPartial()
           
 Protos.PaymentDetails.Builder clear()
           
 Protos.PaymentDetails.Builder clearExpires()
          optional uint64 expires = 4;
 Protos.PaymentDetails.Builder clearMemo()
          optional string memo = 5;
 Protos.PaymentDetails.Builder clearMerchantData()
          optional bytes merchant_data = 7;
 Protos.PaymentDetails.Builder clearNetwork()
          optional string network = 1 [default = "main"];
 Protos.PaymentDetails.Builder clearOutputs()
          repeated .payments.Output outputs = 2;
 Protos.PaymentDetails.Builder clearPaymentUrl()
          optional string payment_url = 6;
 Protos.PaymentDetails.Builder clearTime()
          required uint64 time = 3;
 Protos.PaymentDetails.Builder clone()
           
 Protos.PaymentDetails getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 long getExpires()
          optional uint64 expires = 4;
 String getMemo()
          optional string memo = 5;
 com.google.protobuf.ByteString getMemoBytes()
          optional string memo = 5;
 com.google.protobuf.ByteString getMerchantData()
          optional bytes merchant_data = 7;
 String getNetwork()
          optional string network = 1 [default = "main"];
 com.google.protobuf.ByteString getNetworkBytes()
          optional string network = 1 [default = "main"];
 Protos.Output getOutputs(int index)
          repeated .payments.Output outputs = 2;
 Protos.Output.Builder getOutputsBuilder(int index)
          repeated .payments.Output outputs = 2;
 List<Protos.Output.Builder> getOutputsBuilderList()
          repeated .payments.Output outputs = 2;
 int getOutputsCount()
          repeated .payments.Output outputs = 2;
 List<Protos.Output> getOutputsList()
          repeated .payments.Output outputs = 2;
 Protos.OutputOrBuilder getOutputsOrBuilder(int index)
          repeated .payments.Output outputs = 2;
 List<? extends Protos.OutputOrBuilder> getOutputsOrBuilderList()
          repeated .payments.Output outputs = 2;
 String getPaymentUrl()
          optional string payment_url = 6;
 com.google.protobuf.ByteString getPaymentUrlBytes()
          optional string payment_url = 6;
 long getTime()
          required uint64 time = 3;
 boolean hasExpires()
          optional uint64 expires = 4;
 boolean hasMemo()
          optional string memo = 5;
 boolean hasMerchantData()
          optional bytes merchant_data = 7;
 boolean hasNetwork()
          optional string network = 1 [default = "main"];
 boolean hasPaymentUrl()
          optional string payment_url = 6;
 boolean hasTime()
          required uint64 time = 3;
protected  com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
           
 boolean isInitialized()
           
 Protos.PaymentDetails.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 Protos.PaymentDetails.Builder mergeFrom(com.google.protobuf.Message other)
           
 Protos.PaymentDetails.Builder mergeFrom(Protos.PaymentDetails other)
           
 Protos.PaymentDetails.Builder removeOutputs(int index)
          repeated .payments.Output outputs = 2;
 Protos.PaymentDetails.Builder setExpires(long value)
          optional uint64 expires = 4;
 Protos.PaymentDetails.Builder setMemo(String value)
          optional string memo = 5;
 Protos.PaymentDetails.Builder setMemoBytes(com.google.protobuf.ByteString value)
          optional string memo = 5;
 Protos.PaymentDetails.Builder setMerchantData(com.google.protobuf.ByteString value)
          optional bytes merchant_data = 7;
 Protos.PaymentDetails.Builder setNetwork(String value)
          optional string network = 1 [default = "main"];
 Protos.PaymentDetails.Builder setNetworkBytes(com.google.protobuf.ByteString value)
          optional string network = 1 [default = "main"];
 Protos.PaymentDetails.Builder setOutputs(int index, Protos.Output.Builder builderForValue)
          repeated .payments.Output outputs = 2;
 Protos.PaymentDetails.Builder setOutputs(int index, Protos.Output value)
          repeated .payments.Output outputs = 2;
 Protos.PaymentDetails.Builder setPaymentUrl(String value)
          optional string payment_url = 6;
 Protos.PaymentDetails.Builder setPaymentUrlBytes(com.google.protobuf.ByteString value)
          optional string payment_url = 6;
 Protos.PaymentDetails.Builder setTime(long value)
          required uint64 time = 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<Protos.PaymentDetails.Builder>

clear

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

clone

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

getDefaultInstanceForType

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

build

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

buildPartial

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

mergeFrom

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

mergeFrom

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

mergeFrom

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

hasNetwork

public boolean hasNetwork()
optional string network = 1 [default = "main"];
 "main" or "test"
 

Specified by:
hasNetwork in interface Protos.PaymentDetailsOrBuilder

getNetwork

public String getNetwork()
optional string network = 1 [default = "main"];
 "main" or "test"
 

Specified by:
getNetwork in interface Protos.PaymentDetailsOrBuilder

getNetworkBytes

public com.google.protobuf.ByteString getNetworkBytes()
optional string network = 1 [default = "main"];
 "main" or "test"
 

Specified by:
getNetworkBytes in interface Protos.PaymentDetailsOrBuilder

setNetwork

public Protos.PaymentDetails.Builder setNetwork(String value)
optional string network = 1 [default = "main"];
 "main" or "test"
 


clearNetwork

public Protos.PaymentDetails.Builder clearNetwork()
optional string network = 1 [default = "main"];
 "main" or "test"
 


setNetworkBytes

public Protos.PaymentDetails.Builder setNetworkBytes(com.google.protobuf.ByteString value)
optional string network = 1 [default = "main"];
 "main" or "test"
 


getOutputsList

public List<Protos.Output> getOutputsList()
repeated .payments.Output outputs = 2;
 Where payment should be sent
 

Specified by:
getOutputsList in interface Protos.PaymentDetailsOrBuilder

getOutputsCount

public int getOutputsCount()
repeated .payments.Output outputs = 2;
 Where payment should be sent
 

Specified by:
getOutputsCount in interface Protos.PaymentDetailsOrBuilder

getOutputs

public Protos.Output getOutputs(int index)
repeated .payments.Output outputs = 2;
 Where payment should be sent
 

Specified by:
getOutputs in interface Protos.PaymentDetailsOrBuilder

setOutputs

public Protos.PaymentDetails.Builder setOutputs(int index,
                                                Protos.Output value)
repeated .payments.Output outputs = 2;
 Where payment should be sent
 


setOutputs

public Protos.PaymentDetails.Builder setOutputs(int index,
                                                Protos.Output.Builder builderForValue)
repeated .payments.Output outputs = 2;
 Where payment should be sent
 


addOutputs

public Protos.PaymentDetails.Builder addOutputs(Protos.Output value)
repeated .payments.Output outputs = 2;
 Where payment should be sent
 


addOutputs

public Protos.PaymentDetails.Builder addOutputs(int index,
                                                Protos.Output value)
repeated .payments.Output outputs = 2;
 Where payment should be sent
 


addOutputs

public Protos.PaymentDetails.Builder addOutputs(Protos.Output.Builder builderForValue)
repeated .payments.Output outputs = 2;
 Where payment should be sent
 


addOutputs

public Protos.PaymentDetails.Builder addOutputs(int index,
                                                Protos.Output.Builder builderForValue)
repeated .payments.Output outputs = 2;
 Where payment should be sent
 


addAllOutputs

public Protos.PaymentDetails.Builder addAllOutputs(Iterable<? extends Protos.Output> values)
repeated .payments.Output outputs = 2;
 Where payment should be sent
 


clearOutputs

public Protos.PaymentDetails.Builder clearOutputs()
repeated .payments.Output outputs = 2;
 Where payment should be sent
 


removeOutputs

public Protos.PaymentDetails.Builder removeOutputs(int index)
repeated .payments.Output outputs = 2;
 Where payment should be sent
 


getOutputsBuilder

public Protos.Output.Builder getOutputsBuilder(int index)
repeated .payments.Output outputs = 2;
 Where payment should be sent
 


getOutputsOrBuilder

public Protos.OutputOrBuilder getOutputsOrBuilder(int index)
repeated .payments.Output outputs = 2;
 Where payment should be sent
 

Specified by:
getOutputsOrBuilder in interface Protos.PaymentDetailsOrBuilder

getOutputsOrBuilderList

public List<? extends Protos.OutputOrBuilder> getOutputsOrBuilderList()
repeated .payments.Output outputs = 2;
 Where payment should be sent
 

Specified by:
getOutputsOrBuilderList in interface Protos.PaymentDetailsOrBuilder

addOutputsBuilder

public Protos.Output.Builder addOutputsBuilder()
repeated .payments.Output outputs = 2;
 Where payment should be sent
 


addOutputsBuilder

public Protos.Output.Builder addOutputsBuilder(int index)
repeated .payments.Output outputs = 2;
 Where payment should be sent
 


getOutputsBuilderList

public List<Protos.Output.Builder> getOutputsBuilderList()
repeated .payments.Output outputs = 2;
 Where payment should be sent
 


hasTime

public boolean hasTime()
required uint64 time = 3;
 Timestamp; when payment request created
 

Specified by:
hasTime in interface Protos.PaymentDetailsOrBuilder

getTime

public long getTime()
required uint64 time = 3;
 Timestamp; when payment request created
 

Specified by:
getTime in interface Protos.PaymentDetailsOrBuilder

setTime

public Protos.PaymentDetails.Builder setTime(long value)
required uint64 time = 3;
 Timestamp; when payment request created
 


clearTime

public Protos.PaymentDetails.Builder clearTime()
required uint64 time = 3;
 Timestamp; when payment request created
 


hasExpires

public boolean hasExpires()
optional uint64 expires = 4;
 Timestamp; when this request should be considered invalid
 

Specified by:
hasExpires in interface Protos.PaymentDetailsOrBuilder

getExpires

public long getExpires()
optional uint64 expires = 4;
 Timestamp; when this request should be considered invalid
 

Specified by:
getExpires in interface Protos.PaymentDetailsOrBuilder

setExpires

public Protos.PaymentDetails.Builder setExpires(long value)
optional uint64 expires = 4;
 Timestamp; when this request should be considered invalid
 


clearExpires

public Protos.PaymentDetails.Builder clearExpires()
optional uint64 expires = 4;
 Timestamp; when this request should be considered invalid
 


hasMemo

public boolean hasMemo()
optional string memo = 5;
 Human-readable description of request for the customer
 

Specified by:
hasMemo in interface Protos.PaymentDetailsOrBuilder

getMemo

public String getMemo()
optional string memo = 5;
 Human-readable description of request for the customer
 

Specified by:
getMemo in interface Protos.PaymentDetailsOrBuilder

getMemoBytes

public com.google.protobuf.ByteString getMemoBytes()
optional string memo = 5;
 Human-readable description of request for the customer
 

Specified by:
getMemoBytes in interface Protos.PaymentDetailsOrBuilder

setMemo

public Protos.PaymentDetails.Builder setMemo(String value)
optional string memo = 5;
 Human-readable description of request for the customer
 


clearMemo

public Protos.PaymentDetails.Builder clearMemo()
optional string memo = 5;
 Human-readable description of request for the customer
 


setMemoBytes

public Protos.PaymentDetails.Builder setMemoBytes(com.google.protobuf.ByteString value)
optional string memo = 5;
 Human-readable description of request for the customer
 


hasPaymentUrl

public boolean hasPaymentUrl()
optional string payment_url = 6;
 URL to send Payment and get PaymentACK
 

Specified by:
hasPaymentUrl in interface Protos.PaymentDetailsOrBuilder

getPaymentUrl

public String getPaymentUrl()
optional string payment_url = 6;
 URL to send Payment and get PaymentACK
 

Specified by:
getPaymentUrl in interface Protos.PaymentDetailsOrBuilder

getPaymentUrlBytes

public com.google.protobuf.ByteString getPaymentUrlBytes()
optional string payment_url = 6;
 URL to send Payment and get PaymentACK
 

Specified by:
getPaymentUrlBytes in interface Protos.PaymentDetailsOrBuilder

setPaymentUrl

public Protos.PaymentDetails.Builder setPaymentUrl(String value)
optional string payment_url = 6;
 URL to send Payment and get PaymentACK
 


clearPaymentUrl

public Protos.PaymentDetails.Builder clearPaymentUrl()
optional string payment_url = 6;
 URL to send Payment and get PaymentACK
 


setPaymentUrlBytes

public Protos.PaymentDetails.Builder setPaymentUrlBytes(com.google.protobuf.ByteString value)
optional string payment_url = 6;
 URL to send Payment and get PaymentACK
 


hasMerchantData

public boolean hasMerchantData()
optional bytes merchant_data = 7;
 Arbitrary data to include in the Payment message
 

Specified by:
hasMerchantData in interface Protos.PaymentDetailsOrBuilder

getMerchantData

public com.google.protobuf.ByteString getMerchantData()
optional bytes merchant_data = 7;
 Arbitrary data to include in the Payment message
 

Specified by:
getMerchantData in interface Protos.PaymentDetailsOrBuilder

setMerchantData

public Protos.PaymentDetails.Builder setMerchantData(com.google.protobuf.ByteString value)
optional bytes merchant_data = 7;
 Arbitrary data to include in the Payment message
 


clearMerchantData

public Protos.PaymentDetails.Builder clearMerchantData()
optional bytes merchant_data = 7;
 Arbitrary data to include in the Payment message
 



Copyright © 2014. All rights reserved.