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 Type
    Method
    Description
    Timestamp stored as millis since epoch.
    required bytes program = 1;
    long
    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;
    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, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • hasProgram

      public boolean hasProgram()
      required bytes program = 1;
      Specified by:
      hasProgram in interface Protos.ScriptOrBuilder
      Returns:
      Whether the program field is set.
    • getProgram

      public com.google.protobuf.ByteString getProgram()
      required bytes program = 1;
      Specified by:
      getProgram in interface Protos.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 interface Protos.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 interface Protos.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.