Package org.bitcoinj.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.wallet.Protos.Script.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,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 type
wallet.Script-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance, isBuilt -
Method Summary
Modifier and TypeMethodDescriptionTimestamp stored as millis since epoch.required bytes program = 1;longTimestamp stored as millis since epoch.com.google.protobuf.ByteStringrequired bytes program = 1;booleanTimestamp stored as millis since epoch.booleanrequired bytes program = 1;setCreationTimestamp(long value) Timestamp stored as millis since epoch.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, 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
-
hasProgram
public boolean hasProgram()required bytes program = 1;- Specified by:
hasProgramin interfaceProtos.ScriptOrBuilder- Returns:
- Whether the program field is set.
-
getProgram
public com.google.protobuf.ByteString getProgram()required bytes program = 1;- Specified by:
getProgramin interfaceProtos.ScriptOrBuilder- Returns:
- The program.
-
setProgram
required bytes program = 1;- Parameters:
value- The program to set.- Returns:
- This builder for chaining.
-
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:
hasCreationTimestampin 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:
getCreationTimestampin interfaceProtos.ScriptOrBuilder- Returns:
- The creationTimestamp.
-
setCreationTimestamp
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
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.
-