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 formslongamount is integer-number-of-satoshiscom.google.protobuf.ByteStringusually one of the standard Script formsbooleanamount is integer-number-of-satoshisbooleanusually 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, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
hasAmountin 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:
getAmountin 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:
hasScriptin 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:
getScriptin 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.
-