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
,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 type
payments.PaymentDetails
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance, isBuilt
-
Method Summary
Modifier and TypeMethodDescriptionaddAllOutputs
(Iterable<? extends Protos.Output> values) Where payment should be sentaddOutputs
(int index, Protos.Output value) Where payment should be sentaddOutputs
(int index, Protos.Output.Builder builderForValue) Where payment should be sentaddOutputs
(Protos.Output value) Where payment should be sentaddOutputs
(Protos.Output.Builder builderForValue) Where payment should be sentTimestamp; when this request should be considered invalidHuman-readable description of request for the customerArbitrary data to include in the Payment message"main" or "test"Where payment should be sentURL to send Payment and get PaymentACKTimestamp; when payment request createdlong
Timestamp; when this request should be considered invalidgetMemo()
Human-readable description of request for the customercom.google.protobuf.ByteString
Human-readable description of request for the customercom.google.protobuf.ByteString
Arbitrary data to include in the Payment message"main" or "test"com.google.protobuf.ByteString
"main" or "test"getOutputs
(int index) Where payment should be sentint
Where payment should be sentWhere payment should be sentURL to send Payment and get PaymentACKcom.google.protobuf.ByteString
URL to send Payment and get PaymentACKlong
getTime()
Timestamp; when payment request createdboolean
Timestamp; when this request should be considered invalidboolean
hasMemo()
Human-readable description of request for the customerboolean
Arbitrary data to include in the Payment messageboolean
"main" or "test"boolean
URL to send Payment and get PaymentACKboolean
hasTime()
Timestamp; when payment request createdremoveOutputs
(int index) Where payment should be sentsetExpires
(long value) Timestamp; when this request should be considered invalidHuman-readable description of request for the customersetMemoBytes
(com.google.protobuf.ByteString value) Human-readable description of request for the customersetMerchantData
(com.google.protobuf.ByteString value) Arbitrary data to include in the Payment messagesetNetwork
(String value) "main" or "test"setNetworkBytes
(com.google.protobuf.ByteString value) "main" or "test"setOutputs
(int index, Protos.Output value) Where payment should be sentsetOutputs
(int index, Protos.Output.Builder builderForValue) Where payment should be sentsetPaymentUrl
(String value) URL to send Payment and get PaymentACKsetPaymentUrlBytes
(com.google.protobuf.ByteString value) URL to send Payment and get PaymentACKsetTime
(long value) Timestamp; when payment request createdMethods 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
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasNetwork
public boolean hasNetwork()"main" or "test"
optional string network = 1 [default = "main"];
- Specified by:
hasNetwork
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- Whether the network field is set.
-
getNetwork
"main" or "test"
optional string network = 1 [default = "main"];
- Specified by:
getNetwork
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()"main" or "test"
optional string network = 1 [default = "main"];
- Specified by:
getNetworkBytes
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The bytes for network.
-
setNetwork
"main" or "test"
optional string network = 1 [default = "main"];
- Parameters:
value
- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
"main" or "test"
optional string network = 1 [default = "main"];
- Returns:
- This builder for chaining.
-
setNetworkBytes
"main" or "test"
optional string network = 1 [default = "main"];
- Parameters:
value
- The bytes for network to set.- Returns:
- This builder for chaining.
-
getOutputsList
Where payment should be sent
repeated .payments.Output outputs = 2;
- Specified by:
getOutputsList
in interfaceProtos.PaymentDetailsOrBuilder
-
getOutputsCount
public int getOutputsCount()Where payment should be sent
repeated .payments.Output outputs = 2;
- Specified by:
getOutputsCount
in interfaceProtos.PaymentDetailsOrBuilder
-
getOutputs
Where payment should be sent
repeated .payments.Output outputs = 2;
- Specified by:
getOutputs
in interfaceProtos.PaymentDetailsOrBuilder
-
setOutputs
Where payment should be sent
repeated .payments.Output outputs = 2;
-
setOutputs
Where payment should be sent
repeated .payments.Output outputs = 2;
-
addOutputs
Where payment should be sent
repeated .payments.Output outputs = 2;
-
addOutputs
Where payment should be sent
repeated .payments.Output outputs = 2;
-
addOutputs
Where payment should be sent
repeated .payments.Output outputs = 2;
-
addOutputs
Where payment should be sent
repeated .payments.Output outputs = 2;
-
addAllOutputs
Where payment should be sent
repeated .payments.Output outputs = 2;
-
clearOutputs
Where payment should be sent
repeated .payments.Output outputs = 2;
-
removeOutputs
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:
hasTime
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- Whether the time field is set.
-
getTime
public long getTime()Timestamp; when payment request created
required uint64 time = 3;
- Specified by:
getTime
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The time.
-
setTime
Timestamp; when payment request created
required uint64 time = 3;
- Parameters:
value
- The time to set.- Returns:
- This builder for chaining.
-
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:
hasExpires
in 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:
getExpires
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The expires.
-
setExpires
Timestamp; when this request should be considered invalid
optional uint64 expires = 4;
- Parameters:
value
- The expires to set.- Returns:
- This builder for chaining.
-
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:
hasMemo
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- Whether the memo field is set.
-
getMemo
Human-readable description of request for the customer
optional string memo = 5;
- Specified by:
getMemo
in 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:
getMemoBytes
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The bytes for memo.
-
setMemo
Human-readable description of request for the customer
optional string memo = 5;
- Parameters:
value
- The memo to set.- Returns:
- This builder for chaining.
-
clearMemo
Human-readable description of request for the customer
optional string memo = 5;
- Returns:
- This builder for chaining.
-
setMemoBytes
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:
hasPaymentUrl
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- Whether the paymentUrl field is set.
-
getPaymentUrl
URL to send Payment and get PaymentACK
optional string payment_url = 6;
- Specified by:
getPaymentUrl
in 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:
getPaymentUrlBytes
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The bytes for paymentUrl.
-
setPaymentUrl
URL to send Payment and get PaymentACK
optional string payment_url = 6;
- Parameters:
value
- The paymentUrl to set.- Returns:
- This builder for chaining.
-
clearPaymentUrl
URL to send Payment and get PaymentACK
optional string payment_url = 6;
- Returns:
- This builder for chaining.
-
setPaymentUrlBytes
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:
hasMerchantData
in 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:
getMerchantData
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The merchantData.
-
setMerchantData
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
Arbitrary data to include in the Payment message
optional bytes merchant_data = 7;
- Returns:
- This builder for chaining.
-