Package org.bitcoinj.wallet
Interface Protos.ScriptOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Protos.Script
,Protos.Script.Builder
- Enclosing class:
- Protos
public static interface Protos.ScriptOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlong
Timestamp stored as millis since epoch.com.google.protobuf.ByteString
required bytes program = 1;
boolean
Timestamp stored as millis since epoch.boolean
required bytes program = 1;
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasProgram
boolean hasProgram()required bytes program = 1;
- Returns:
- Whether the program field is set.
-
getProgram
com.google.protobuf.ByteString getProgram()required bytes program = 1;
- Returns:
- The program.
-
hasCreationTimestamp
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;
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
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;
- Returns:
- The creationTimestamp.
-