Package org.bitcoinj.protobuf.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.bitcoinj.protobuf.payments.Protos.Output.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,java.lang.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 typepayments.Output
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protos.Output.Builder
clearAmount()
amount is integer-number-of-satoshisProtos.Output.Builder
clearScript()
usually one of the standard Script formslong
getAmount()
amount is integer-number-of-satoshiscom.google.protobuf.ByteString
getScript()
usually one of the standard Script formsboolean
hasAmount()
amount is integer-number-of-satoshisboolean
hasScript()
usually one of the standard Script formsProtos.Output.Builder
setAmount(long value)
amount is integer-number-of-satoshisProtos.Output.Builder
setScript(com.google.protobuf.ByteString value)
usually one of the standard Script forms-
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
-
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
public Protos.Output.Builder setAmount(long value)
amount is integer-number-of-satoshis
optional uint64 amount = 1 [default = 0];
- Parameters:
value
- The amount to set.- Returns:
- This builder for chaining.
-
clearAmount
public Protos.Output.Builder 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
public Protos.Output.Builder setScript(com.google.protobuf.ByteString value)
usually one of the standard Script forms
required bytes script = 2;
- Parameters:
value
- The script to set.- Returns:
- This builder for chaining.
-
clearScript
public Protos.Output.Builder clearScript()
usually one of the standard Script forms
required bytes script = 2;
- Returns:
- This builder for chaining.
-
-