Package org.bitcoin.protocols.payments
Class Protos.Output.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Protos.Output,Protos.Output.Builder>
org.bitcoin.protocols.payments.Protos.Output.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,Protos.OutputOrBuilder
- Enclosing class:
- Protos.Output
public static final class Protos.Output.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.Output,Protos.Output.Builder>
implements Protos.OutputOrBuilder
Generalized form of "send payment to this/these bitcoin addresses"Protobuf type
payments.Output
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance, isBuilt
-
Method Summary
Modifier and TypeMethodDescriptionamount is integer-number-of-satoshisusually one of the standard Script formslong
amount is integer-number-of-satoshiscom.google.protobuf.ByteString
usually one of the standard Script formsboolean
amount is integer-number-of-satoshisboolean
usually one of the standard Script formssetAmount
(long value) amount is integer-number-of-satoshissetScript
(com.google.protobuf.ByteString value) usually one of the standard Script formsMethods 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
-
hasAmount
public boolean hasAmount()amount is integer-number-of-satoshis
optional uint64 amount = 1 [default = 0];
- Specified by:
hasAmount
in interfaceProtos.OutputOrBuilder
- Returns:
- Whether the amount field is set.
-
getAmount
public long getAmount()amount is integer-number-of-satoshis
optional uint64 amount = 1 [default = 0];
- Specified by:
getAmount
in interfaceProtos.OutputOrBuilder
- Returns:
- The amount.
-
setAmount
amount is integer-number-of-satoshis
optional uint64 amount = 1 [default = 0];
- Parameters:
value
- The amount to set.- Returns:
- This builder for chaining.
-
clearAmount
amount is integer-number-of-satoshis
optional uint64 amount = 1 [default = 0];
- Returns:
- This builder for chaining.
-
hasScript
public boolean hasScript()usually one of the standard Script forms
required bytes script = 2;
- Specified by:
hasScript
in interfaceProtos.OutputOrBuilder
- Returns:
- Whether the script field is set.
-
getScript
public com.google.protobuf.ByteString getScript()usually one of the standard Script forms
required bytes script = 2;
- Specified by:
getScript
in interfaceProtos.OutputOrBuilder
- Returns:
- The script.
-
setScript
usually one of the standard Script forms
required bytes script = 2;
- Parameters:
value
- The script to set.- Returns:
- This builder for chaining.
-
clearScript
usually one of the standard Script forms
required bytes script = 2;
- Returns:
- This builder for chaining.
-