Class 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 type payments.Output
    • Field Summary

      • Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

        instance, isBuilt
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Protos.Output.Builder clearAmount()
      amount is integer-number-of-satoshis
      Protos.Output.Builder clearScript()
      usually one of the standard Script forms
      long getAmount()
      amount is integer-number-of-satoshis
      com.google.protobuf.ByteString getScript()
      usually one of the standard Script forms
      boolean hasAmount()
      amount is integer-number-of-satoshis
      boolean hasScript()
      usually one of the standard Script forms
      Protos.Output.Builder setAmount​(long value)
      amount is integer-number-of-satoshis
      Protos.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
      • 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 Detail

      • hasAmount

        public boolean hasAmount()
         amount is integer-number-of-satoshis
         
        optional uint64 amount = 1 [default = 0];
        Specified by:
        hasAmount in interface Protos.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 interface Protos.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 interface Protos.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 interface Protos.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.