Package org.bitcoin.protocols.payments
Class Protos.PaymentDetails.Builder
- java.lang.Object
 - 
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
 - 
- com.google.protobuf.GeneratedMessageLite.Builder<Protos.PaymentDetails,Protos.PaymentDetails.Builder>
 - 
- org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
 
 
 
 
- 
- All Implemented Interfaces:
 com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,java.lang.Cloneable,Protos.PaymentDetailsOrBuilder
- Enclosing class:
 - Protos.PaymentDetails
 
public static final class Protos.PaymentDetails.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.PaymentDetails,Protos.PaymentDetails.Builder> implements Protos.PaymentDetailsOrBuilder
Protobuf typepayments.PaymentDetails 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protos.PaymentDetails.BuilderaddAllOutputs(java.lang.Iterable<? extends Protos.Output> values)Where payment should be sentProtos.PaymentDetails.BuilderaddOutputs(int index, Protos.Output value)Where payment should be sentProtos.PaymentDetails.BuilderaddOutputs(int index, Protos.Output.Builder builderForValue)Where payment should be sentProtos.PaymentDetails.BuilderaddOutputs(Protos.Output value)Where payment should be sentProtos.PaymentDetails.BuilderaddOutputs(Protos.Output.Builder builderForValue)Where payment should be sentProtos.PaymentDetails.BuilderclearExpires()Timestamp; when this request should be considered invalidProtos.PaymentDetails.BuilderclearMemo()Human-readable description of request for the customerProtos.PaymentDetails.BuilderclearMerchantData()Arbitrary data to include in the Payment messageProtos.PaymentDetails.BuilderclearNetwork()"main" or "test"Protos.PaymentDetails.BuilderclearOutputs()Where payment should be sentProtos.PaymentDetails.BuilderclearPaymentUrl()URL to send Payment and get PaymentACKProtos.PaymentDetails.BuilderclearTime()Timestamp; when payment request createdlonggetExpires()Timestamp; when this request should be considered invalidjava.lang.StringgetMemo()Human-readable description of request for the customercom.google.protobuf.ByteStringgetMemoBytes()Human-readable description of request for the customercom.google.protobuf.ByteStringgetMerchantData()Arbitrary data to include in the Payment messagejava.lang.StringgetNetwork()"main" or "test"com.google.protobuf.ByteStringgetNetworkBytes()"main" or "test"Protos.OutputgetOutputs(int index)Where payment should be sentintgetOutputsCount()Where payment should be sentjava.util.List<Protos.Output>getOutputsList()Where payment should be sentjava.lang.StringgetPaymentUrl()URL to send Payment and get PaymentACKcom.google.protobuf.ByteStringgetPaymentUrlBytes()URL to send Payment and get PaymentACKlonggetTime()Timestamp; when payment request createdbooleanhasExpires()Timestamp; when this request should be considered invalidbooleanhasMemo()Human-readable description of request for the customerbooleanhasMerchantData()Arbitrary data to include in the Payment messagebooleanhasNetwork()"main" or "test"booleanhasPaymentUrl()URL to send Payment and get PaymentACKbooleanhasTime()Timestamp; when payment request createdProtos.PaymentDetails.BuilderremoveOutputs(int index)Where payment should be sentProtos.PaymentDetails.BuildersetExpires(long value)Timestamp; when this request should be considered invalidProtos.PaymentDetails.BuildersetMemo(java.lang.String value)Human-readable description of request for the customerProtos.PaymentDetails.BuildersetMemoBytes(com.google.protobuf.ByteString value)Human-readable description of request for the customerProtos.PaymentDetails.BuildersetMerchantData(com.google.protobuf.ByteString value)Arbitrary data to include in the Payment messageProtos.PaymentDetails.BuildersetNetwork(java.lang.String value)"main" or "test"Protos.PaymentDetails.BuildersetNetworkBytes(com.google.protobuf.ByteString value)"main" or "test"Protos.PaymentDetails.BuildersetOutputs(int index, Protos.Output value)Where payment should be sentProtos.PaymentDetails.BuildersetOutputs(int index, Protos.Output.Builder builderForValue)Where payment should be sentProtos.PaymentDetails.BuildersetPaymentUrl(java.lang.String value)URL to send Payment and get PaymentACKProtos.PaymentDetails.BuildersetPaymentUrlBytes(com.google.protobuf.ByteString value)URL to send Payment and get PaymentACKProtos.PaymentDetails.BuildersetTime(long value)Timestamp; when payment request created- 
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom 
- 
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException 
 - 
 
 - 
 
- 
- 
Method Detail
- 
hasNetwork
public boolean hasNetwork()
"main" or "test"
optional string network = 1 [default = "main"];- Specified by:
 hasNetworkin interfaceProtos.PaymentDetailsOrBuilder- Returns:
 - Whether the network field is set.
 
 
- 
getNetwork
public java.lang.String getNetwork()
"main" or "test"
optional string network = 1 [default = "main"];- Specified by:
 getNetworkin interfaceProtos.PaymentDetailsOrBuilder- Returns:
 - The network.
 
 
- 
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
"main" or "test"
optional string network = 1 [default = "main"];- Specified by:
 getNetworkBytesin interfaceProtos.PaymentDetailsOrBuilder- Returns:
 - The bytes for network.
 
 
- 
setNetwork
public Protos.PaymentDetails.Builder setNetwork(java.lang.String value)
"main" or "test"
optional string network = 1 [default = "main"];- Parameters:
 value- The network to set.- Returns:
 - This builder for chaining.
 
 
- 
clearNetwork
public Protos.PaymentDetails.Builder clearNetwork()
"main" or "test"
optional string network = 1 [default = "main"];- Returns:
 - This builder for chaining.
 
 
- 
setNetworkBytes
public Protos.PaymentDetails.Builder setNetworkBytes(com.google.protobuf.ByteString value)
"main" or "test"
optional string network = 1 [default = "main"];- Parameters:
 value- The bytes for network to set.- Returns:
 - This builder for chaining.
 
 
- 
getOutputsList
public java.util.List<Protos.Output> getOutputsList()
Where payment should be sent
repeated .payments.Output outputs = 2;- Specified by:
 getOutputsListin interfaceProtos.PaymentDetailsOrBuilder
 
- 
getOutputsCount
public int getOutputsCount()
Where payment should be sent
repeated .payments.Output outputs = 2;- Specified by:
 getOutputsCountin interfaceProtos.PaymentDetailsOrBuilder
 
- 
getOutputs
public Protos.Output getOutputs(int index)
Where payment should be sent
repeated .payments.Output outputs = 2;- Specified by:
 getOutputsin interfaceProtos.PaymentDetailsOrBuilder
 
- 
setOutputs
public Protos.PaymentDetails.Builder setOutputs(int index, Protos.Output value)
Where payment should be sent
repeated .payments.Output outputs = 2; 
- 
setOutputs
public Protos.PaymentDetails.Builder setOutputs(int index, Protos.Output.Builder builderForValue)
Where payment should be sent
repeated .payments.Output outputs = 2; 
- 
addOutputs
public Protos.PaymentDetails.Builder addOutputs(Protos.Output value)
Where payment should be sent
repeated .payments.Output outputs = 2; 
- 
addOutputs
public Protos.PaymentDetails.Builder addOutputs(int index, Protos.Output value)
Where payment should be sent
repeated .payments.Output outputs = 2; 
- 
addOutputs
public Protos.PaymentDetails.Builder addOutputs(Protos.Output.Builder builderForValue)
Where payment should be sent
repeated .payments.Output outputs = 2; 
- 
addOutputs
public Protos.PaymentDetails.Builder addOutputs(int index, Protos.Output.Builder builderForValue)
Where payment should be sent
repeated .payments.Output outputs = 2; 
- 
addAllOutputs
public Protos.PaymentDetails.Builder addAllOutputs(java.lang.Iterable<? extends Protos.Output> values)
Where payment should be sent
repeated .payments.Output outputs = 2; 
- 
clearOutputs
public Protos.PaymentDetails.Builder clearOutputs()
Where payment should be sent
repeated .payments.Output outputs = 2; 
- 
removeOutputs
public Protos.PaymentDetails.Builder removeOutputs(int index)
Where payment should be sent
repeated .payments.Output outputs = 2; 
- 
hasTime
public boolean hasTime()
Timestamp; when payment request created
required uint64 time = 3;- Specified by:
 hasTimein interfaceProtos.PaymentDetailsOrBuilder- Returns:
 - Whether the time field is set.
 
 
- 
getTime
public long getTime()
Timestamp; when payment request created
required uint64 time = 3;- Specified by:
 getTimein interfaceProtos.PaymentDetailsOrBuilder- Returns:
 - The time.
 
 
- 
setTime
public Protos.PaymentDetails.Builder setTime(long value)
Timestamp; when payment request created
required uint64 time = 3;- Parameters:
 value- The time to set.- Returns:
 - This builder for chaining.
 
 
- 
clearTime
public Protos.PaymentDetails.Builder clearTime()
Timestamp; when payment request created
required uint64 time = 3;- Returns:
 - This builder for chaining.
 
 
- 
hasExpires
public boolean hasExpires()
Timestamp; when this request should be considered invalid
optional uint64 expires = 4;- Specified by:
 hasExpiresin interfaceProtos.PaymentDetailsOrBuilder- Returns:
 - Whether the expires field is set.
 
 
- 
getExpires
public long getExpires()
Timestamp; when this request should be considered invalid
optional uint64 expires = 4;- Specified by:
 getExpiresin interfaceProtos.PaymentDetailsOrBuilder- Returns:
 - The expires.
 
 
- 
setExpires
public Protos.PaymentDetails.Builder setExpires(long value)
Timestamp; when this request should be considered invalid
optional uint64 expires = 4;- Parameters:
 value- The expires to set.- Returns:
 - This builder for chaining.
 
 
- 
clearExpires
public Protos.PaymentDetails.Builder clearExpires()
Timestamp; when this request should be considered invalid
optional uint64 expires = 4;- Returns:
 - This builder for chaining.
 
 
- 
hasMemo
public boolean hasMemo()
Human-readable description of request for the customer
optional string memo = 5;- Specified by:
 hasMemoin interfaceProtos.PaymentDetailsOrBuilder- Returns:
 - Whether the memo field is set.
 
 
- 
getMemo
public java.lang.String getMemo()
Human-readable description of request for the customer
optional string memo = 5;- Specified by:
 getMemoin interfaceProtos.PaymentDetailsOrBuilder- Returns:
 - The memo.
 
 
- 
getMemoBytes
public com.google.protobuf.ByteString getMemoBytes()
Human-readable description of request for the customer
optional string memo = 5;- Specified by:
 getMemoBytesin interfaceProtos.PaymentDetailsOrBuilder- Returns:
 - The bytes for memo.
 
 
- 
setMemo
public Protos.PaymentDetails.Builder setMemo(java.lang.String value)
Human-readable description of request for the customer
optional string memo = 5;- Parameters:
 value- The memo to set.- Returns:
 - This builder for chaining.
 
 
- 
clearMemo
public Protos.PaymentDetails.Builder clearMemo()
Human-readable description of request for the customer
optional string memo = 5;- Returns:
 - This builder for chaining.
 
 
- 
setMemoBytes
public Protos.PaymentDetails.Builder setMemoBytes(com.google.protobuf.ByteString value)
Human-readable description of request for the customer
optional string memo = 5;- Parameters:
 value- The bytes for memo to set.- Returns:
 - This builder for chaining.
 
 
- 
hasPaymentUrl
public boolean hasPaymentUrl()
URL to send Payment and get PaymentACK
optional string payment_url = 6;- Specified by:
 hasPaymentUrlin interfaceProtos.PaymentDetailsOrBuilder- Returns:
 - Whether the paymentUrl field is set.
 
 
- 
getPaymentUrl
public java.lang.String getPaymentUrl()
URL to send Payment and get PaymentACK
optional string payment_url = 6;- Specified by:
 getPaymentUrlin interfaceProtos.PaymentDetailsOrBuilder- Returns:
 - The paymentUrl.
 
 
- 
getPaymentUrlBytes
public com.google.protobuf.ByteString getPaymentUrlBytes()
URL to send Payment and get PaymentACK
optional string payment_url = 6;- Specified by:
 getPaymentUrlBytesin interfaceProtos.PaymentDetailsOrBuilder- Returns:
 - The bytes for paymentUrl.
 
 
- 
setPaymentUrl
public Protos.PaymentDetails.Builder setPaymentUrl(java.lang.String value)
URL to send Payment and get PaymentACK
optional string payment_url = 6;- Parameters:
 value- The paymentUrl to set.- Returns:
 - This builder for chaining.
 
 
- 
clearPaymentUrl
public Protos.PaymentDetails.Builder clearPaymentUrl()
URL to send Payment and get PaymentACK
optional string payment_url = 6;- Returns:
 - This builder for chaining.
 
 
- 
setPaymentUrlBytes
public Protos.PaymentDetails.Builder setPaymentUrlBytes(com.google.protobuf.ByteString value)
URL to send Payment and get PaymentACK
optional string payment_url = 6;- Parameters:
 value- The bytes for paymentUrl to set.- Returns:
 - This builder for chaining.
 
 
- 
hasMerchantData
public boolean hasMerchantData()
Arbitrary data to include in the Payment message
optional bytes merchant_data = 7;- Specified by:
 hasMerchantDatain interfaceProtos.PaymentDetailsOrBuilder- Returns:
 - Whether the merchantData field is set.
 
 
- 
getMerchantData
public com.google.protobuf.ByteString getMerchantData()
Arbitrary data to include in the Payment message
optional bytes merchant_data = 7;- Specified by:
 getMerchantDatain interfaceProtos.PaymentDetailsOrBuilder- Returns:
 - The merchantData.
 
 
- 
setMerchantData
public Protos.PaymentDetails.Builder setMerchantData(com.google.protobuf.ByteString value)
Arbitrary data to include in the Payment message
optional bytes merchant_data = 7;- Parameters:
 value- The merchantData to set.- Returns:
 - This builder for chaining.
 
 
- 
clearMerchantData
public Protos.PaymentDetails.Builder clearMerchantData()
Arbitrary data to include in the Payment message
optional bytes merchant_data = 7;- Returns:
 - This builder for chaining.
 
 
 - 
 
 -