Class Protos.Payment

java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Protos.Payment,Protos.Payment.Builder>
org.bitcoin.protocols.payments.Protos.Payment
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.PaymentOrBuilder
Enclosing class:
Protos

public static final class Protos.Payment extends com.google.protobuf.GeneratedMessageLite<Protos.Payment,Protos.Payment.Builder> implements Protos.PaymentOrBuilder
Protobuf type payments.Payment
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Protobuf type payments.Payment

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    memoizedSerializedSize, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
     
    Human-readable message for the merchant
    com.google.protobuf.ByteString
    Human-readable message for the merchant
    com.google.protobuf.ByteString
    From PaymentDetails.merchant_data
    getRefundTo(int index)
    Where to send refunds, if a refund is necessary
    int
    Where to send refunds, if a refund is necessary
    Where to send refunds, if a refund is necessary
    Where to send refunds, if a refund is necessary
    Where to send refunds, if a refund is necessary
    com.google.protobuf.ByteString
    getTransactions(int index)
    Signed transactions that satisfy PaymentDetails.outputs
    int
    Signed transactions that satisfy PaymentDetails.outputs
    List<com.google.protobuf.ByteString>
    Signed transactions that satisfy PaymentDetails.outputs
    boolean
    Human-readable message for the merchant
    boolean
    From PaymentDetails.merchant_data
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Protos.Payment>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • MERCHANT_DATA_FIELD_NUMBER

      public static final int MERCHANT_DATA_FIELD_NUMBER
      See Also:
    • TRANSACTIONS_FIELD_NUMBER

      public static final int TRANSACTIONS_FIELD_NUMBER
      See Also:
    • REFUND_TO_FIELD_NUMBER

      public static final int REFUND_TO_FIELD_NUMBER
      See Also:
    • MEMO_FIELD_NUMBER

      public static final int MEMO_FIELD_NUMBER
      See Also:
  • Method Details

    • hasMerchantData

      public boolean hasMerchantData()
       From PaymentDetails.merchant_data
       
      optional bytes merchant_data = 1;
      Specified by:
      hasMerchantData in interface Protos.PaymentOrBuilder
      Returns:
      Whether the merchantData field is set.
    • getMerchantData

      public com.google.protobuf.ByteString getMerchantData()
       From PaymentDetails.merchant_data
       
      optional bytes merchant_data = 1;
      Specified by:
      getMerchantData in interface Protos.PaymentOrBuilder
      Returns:
      The merchantData.
    • getTransactionsList

      public List<com.google.protobuf.ByteString> getTransactionsList()
       Signed transactions that satisfy PaymentDetails.outputs
       
      repeated bytes transactions = 2;
      Specified by:
      getTransactionsList in interface Protos.PaymentOrBuilder
      Returns:
      A list containing the transactions.
    • getTransactionsCount

      public int getTransactionsCount()
       Signed transactions that satisfy PaymentDetails.outputs
       
      repeated bytes transactions = 2;
      Specified by:
      getTransactionsCount in interface Protos.PaymentOrBuilder
      Returns:
      The count of transactions.
    • getTransactions

      public com.google.protobuf.ByteString getTransactions(int index)
       Signed transactions that satisfy PaymentDetails.outputs
       
      repeated bytes transactions = 2;
      Specified by:
      getTransactions in interface Protos.PaymentOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The transactions at the given index.
    • getRefundToList

      public List<Protos.Output> getRefundToList()
       Where to send refunds, if a refund is necessary
       
      repeated .payments.Output refund_to = 3;
      Specified by:
      getRefundToList in interface Protos.PaymentOrBuilder
    • getRefundToOrBuilderList

      public List<? extends Protos.OutputOrBuilder> getRefundToOrBuilderList()
       Where to send refunds, if a refund is necessary
       
      repeated .payments.Output refund_to = 3;
    • getRefundToCount

      public int getRefundToCount()
       Where to send refunds, if a refund is necessary
       
      repeated .payments.Output refund_to = 3;
      Specified by:
      getRefundToCount in interface Protos.PaymentOrBuilder
    • getRefundTo

      public Protos.Output getRefundTo(int index)
       Where to send refunds, if a refund is necessary
       
      repeated .payments.Output refund_to = 3;
      Specified by:
      getRefundTo in interface Protos.PaymentOrBuilder
    • getRefundToOrBuilder

      public Protos.OutputOrBuilder getRefundToOrBuilder(int index)
       Where to send refunds, if a refund is necessary
       
      repeated .payments.Output refund_to = 3;
    • hasMemo

      public boolean hasMemo()
       Human-readable message for the merchant
       
      optional string memo = 4;
      Specified by:
      hasMemo in interface Protos.PaymentOrBuilder
      Returns:
      Whether the memo field is set.
    • getMemo

      public String getMemo()
       Human-readable message for the merchant
       
      optional string memo = 4;
      Specified by:
      getMemo in interface Protos.PaymentOrBuilder
      Returns:
      The memo.
    • getMemoBytes

      public com.google.protobuf.ByteString getMemoBytes()
       Human-readable message for the merchant
       
      optional string memo = 4;
      Specified by:
      getMemoBytes in interface Protos.PaymentOrBuilder
      Returns:
      The bytes for memo.
    • parseFrom

      public static Protos.Payment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Protos.Payment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Protos.Payment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Protos.Payment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Protos.Payment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Protos.Payment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Protos.Payment parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Protos.Payment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Protos.Payment parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Protos.Payment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Protos.Payment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Protos.Payment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static Protos.Payment.Builder newBuilder()
    • newBuilder

      public static Protos.Payment.Builder newBuilder(Protos.Payment prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.Payment,Protos.Payment.Builder>
    • getDefaultInstance

      public static Protos.Payment getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Protos.Payment> parser()