Package org.bitcoinj.protobuf.wallet
Class Protos.Script.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<Protos.Script,Protos.Script.Builder>
-
- org.bitcoinj.protobuf.wallet.Protos.Script.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,java.lang.Cloneable
,Protos.ScriptOrBuilder
- Enclosing class:
- Protos.Script
public static final class Protos.Script.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.Script,Protos.Script.Builder> implements Protos.ScriptOrBuilder
Protobuf typewallet.Script
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protos.Script.Builder
clearCreationTimestamp()
Timestamp stored as millis since epoch.Protos.Script.Builder
clearProgram()
required bytes program = 1;
long
getCreationTimestamp()
Timestamp stored as millis since epoch.com.google.protobuf.ByteString
getProgram()
required bytes program = 1;
boolean
hasCreationTimestamp()
Timestamp stored as millis since epoch.boolean
hasProgram()
required bytes program = 1;
Protos.Script.Builder
setCreationTimestamp(long value)
Timestamp stored as millis since epoch.Protos.Script.Builder
setProgram(com.google.protobuf.ByteString value)
required bytes program = 1;
-
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
-
hasProgram
public boolean hasProgram()
required bytes program = 1;
- Specified by:
hasProgram
in interfaceProtos.ScriptOrBuilder
- Returns:
- Whether the program field is set.
-
getProgram
public com.google.protobuf.ByteString getProgram()
required bytes program = 1;
- Specified by:
getProgram
in interfaceProtos.ScriptOrBuilder
- Returns:
- The program.
-
setProgram
public Protos.Script.Builder setProgram(com.google.protobuf.ByteString value)
required bytes program = 1;
- Parameters:
value
- The program to set.- Returns:
- This builder for chaining.
-
clearProgram
public Protos.Script.Builder clearProgram()
required bytes program = 1;
- Returns:
- This builder for chaining.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
Timestamp stored as millis since epoch. Useful for skipping block bodies before this point when watching for scripts on the blockchain.
required int64 creation_timestamp = 2;
- Specified by:
hasCreationTimestamp
in interfaceProtos.ScriptOrBuilder
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public long getCreationTimestamp()
Timestamp stored as millis since epoch. Useful for skipping block bodies before this point when watching for scripts on the blockchain.
required int64 creation_timestamp = 2;
- Specified by:
getCreationTimestamp
in interfaceProtos.ScriptOrBuilder
- Returns:
- The creationTimestamp.
-
setCreationTimestamp
public Protos.Script.Builder setCreationTimestamp(long value)
Timestamp stored as millis since epoch. Useful for skipping block bodies before this point when watching for scripts on the blockchain.
required int64 creation_timestamp = 2;
- Parameters:
value
- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public Protos.Script.Builder clearCreationTimestamp()
Timestamp stored as millis since epoch. Useful for skipping block bodies before this point when watching for scripts on the blockchain.
required int64 creation_timestamp = 2;
- Returns:
- This builder for chaining.
-
-