org.bitcoin.protocols.payments
Class Protos.PaymentRequest.Builder

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite.Builder<BuilderType>
      extended by com.google.protobuf.AbstractMessage.Builder<BuilderType>
          extended by com.google.protobuf.GeneratedMessage.Builder<Protos.PaymentRequest.Builder>
              extended by org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Protos.PaymentRequestOrBuilder
Enclosing class:
Protos.PaymentRequest

public static final class Protos.PaymentRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Protos.PaymentRequest.Builder>
implements Protos.PaymentRequestOrBuilder

Protobuf type payments.PaymentRequest


Method Summary
 Protos.PaymentRequest build()
           
 Protos.PaymentRequest buildPartial()
           
 Protos.PaymentRequest.Builder clear()
           
 Protos.PaymentRequest.Builder clearPaymentDetailsVersion()
          optional uint32 payment_details_version = 1 [default = 1];
 Protos.PaymentRequest.Builder clearPkiData()
          optional bytes pki_data = 3;
 Protos.PaymentRequest.Builder clearPkiType()
          optional string pki_type = 2 [default = "none"];
 Protos.PaymentRequest.Builder clearSerializedPaymentDetails()
          required bytes serialized_payment_details = 4;
 Protos.PaymentRequest.Builder clearSignature()
          optional bytes signature = 5;
 Protos.PaymentRequest.Builder clone()
           
 Protos.PaymentRequest getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 int getPaymentDetailsVersion()
          optional uint32 payment_details_version = 1 [default = 1];
 com.google.protobuf.ByteString getPkiData()
          optional bytes pki_data = 3;
 String getPkiType()
          optional string pki_type = 2 [default = "none"];
 com.google.protobuf.ByteString getPkiTypeBytes()
          optional string pki_type = 2 [default = "none"];
 com.google.protobuf.ByteString getSerializedPaymentDetails()
          required bytes serialized_payment_details = 4;
 com.google.protobuf.ByteString getSignature()
          optional bytes signature = 5;
 boolean hasPaymentDetailsVersion()
          optional uint32 payment_details_version = 1 [default = 1];
 boolean hasPkiData()
          optional bytes pki_data = 3;
 boolean hasPkiType()
          optional string pki_type = 2 [default = "none"];
 boolean hasSerializedPaymentDetails()
          required bytes serialized_payment_details = 4;
 boolean hasSignature()
          optional bytes signature = 5;
protected  com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
           
 boolean isInitialized()
           
 Protos.PaymentRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 Protos.PaymentRequest.Builder mergeFrom(com.google.protobuf.Message other)
           
 Protos.PaymentRequest.Builder mergeFrom(Protos.PaymentRequest other)
           
 Protos.PaymentRequest.Builder setPaymentDetailsVersion(int value)
          optional uint32 payment_details_version = 1 [default = 1];
 Protos.PaymentRequest.Builder setPkiData(com.google.protobuf.ByteString value)
          optional bytes pki_data = 3;
 Protos.PaymentRequest.Builder setPkiType(String value)
          optional string pki_type = 2 [default = "none"];
 Protos.PaymentRequest.Builder setPkiTypeBytes(com.google.protobuf.ByteString value)
          optional string pki_type = 2 [default = "none"];
 Protos.PaymentRequest.Builder setSerializedPaymentDetails(com.google.protobuf.ByteString value)
          required bytes serialized_payment_details = 4;
 Protos.PaymentRequest.Builder setSignature(com.google.protobuf.ByteString value)
          optional bytes signature = 5;
 
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
 
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
 
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, 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.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField
 

Method Detail

getDescriptor

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Specified by:
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Protos.PaymentRequest.Builder>

clear

public Protos.PaymentRequest.Builder clear()
Specified by:
clear in interface com.google.protobuf.Message.Builder
Specified by:
clear in interface com.google.protobuf.MessageLite.Builder
Overrides:
clear in class com.google.protobuf.GeneratedMessage.Builder<Protos.PaymentRequest.Builder>

clone

public Protos.PaymentRequest.Builder clone()
Specified by:
clone in interface com.google.protobuf.Message.Builder
Specified by:
clone in interface com.google.protobuf.MessageLite.Builder
Overrides:
clone in class com.google.protobuf.GeneratedMessage.Builder<Protos.PaymentRequest.Builder>

getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.Message.Builder
Specified by:
getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
Overrides:
getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Protos.PaymentRequest.Builder>

getDefaultInstanceForType

public Protos.PaymentRequest getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

build

public Protos.PaymentRequest build()
Specified by:
build in interface com.google.protobuf.Message.Builder
Specified by:
build in interface com.google.protobuf.MessageLite.Builder

buildPartial

public Protos.PaymentRequest buildPartial()
Specified by:
buildPartial in interface com.google.protobuf.Message.Builder
Specified by:
buildPartial in interface com.google.protobuf.MessageLite.Builder

mergeFrom

public Protos.PaymentRequest.Builder mergeFrom(com.google.protobuf.Message other)
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.PaymentRequest.Builder>

mergeFrom

public Protos.PaymentRequest.Builder mergeFrom(Protos.PaymentRequest other)

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Protos.PaymentRequest.Builder>

mergeFrom

public Protos.PaymentRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Specified by:
mergeFrom in interface com.google.protobuf.MessageLite.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.PaymentRequest.Builder>
Throws:
IOException

hasPaymentDetailsVersion

public boolean hasPaymentDetailsVersion()
optional uint32 payment_details_version = 1 [default = 1];

Specified by:
hasPaymentDetailsVersion in interface Protos.PaymentRequestOrBuilder

getPaymentDetailsVersion

public int getPaymentDetailsVersion()
optional uint32 payment_details_version = 1 [default = 1];

Specified by:
getPaymentDetailsVersion in interface Protos.PaymentRequestOrBuilder

setPaymentDetailsVersion

public Protos.PaymentRequest.Builder setPaymentDetailsVersion(int value)
optional uint32 payment_details_version = 1 [default = 1];


clearPaymentDetailsVersion

public Protos.PaymentRequest.Builder clearPaymentDetailsVersion()
optional uint32 payment_details_version = 1 [default = 1];


hasPkiType

public boolean hasPkiType()
optional string pki_type = 2 [default = "none"];
 none / x509+sha256 / x509+sha1
 

Specified by:
hasPkiType in interface Protos.PaymentRequestOrBuilder

getPkiType

public String getPkiType()
optional string pki_type = 2 [default = "none"];
 none / x509+sha256 / x509+sha1
 

Specified by:
getPkiType in interface Protos.PaymentRequestOrBuilder

getPkiTypeBytes

public com.google.protobuf.ByteString getPkiTypeBytes()
optional string pki_type = 2 [default = "none"];
 none / x509+sha256 / x509+sha1
 

Specified by:
getPkiTypeBytes in interface Protos.PaymentRequestOrBuilder

setPkiType

public Protos.PaymentRequest.Builder setPkiType(String value)
optional string pki_type = 2 [default = "none"];
 none / x509+sha256 / x509+sha1
 


clearPkiType

public Protos.PaymentRequest.Builder clearPkiType()
optional string pki_type = 2 [default = "none"];
 none / x509+sha256 / x509+sha1
 


setPkiTypeBytes

public Protos.PaymentRequest.Builder setPkiTypeBytes(com.google.protobuf.ByteString value)
optional string pki_type = 2 [default = "none"];
 none / x509+sha256 / x509+sha1
 


hasPkiData

public boolean hasPkiData()
optional bytes pki_data = 3;
 depends on pki_type
 

Specified by:
hasPkiData in interface Protos.PaymentRequestOrBuilder

getPkiData

public com.google.protobuf.ByteString getPkiData()
optional bytes pki_data = 3;
 depends on pki_type
 

Specified by:
getPkiData in interface Protos.PaymentRequestOrBuilder

setPkiData

public Protos.PaymentRequest.Builder setPkiData(com.google.protobuf.ByteString value)
optional bytes pki_data = 3;
 depends on pki_type
 


clearPkiData

public Protos.PaymentRequest.Builder clearPkiData()
optional bytes pki_data = 3;
 depends on pki_type
 


hasSerializedPaymentDetails

public boolean hasSerializedPaymentDetails()
required bytes serialized_payment_details = 4;
 PaymentDetails
 

Specified by:
hasSerializedPaymentDetails in interface Protos.PaymentRequestOrBuilder

getSerializedPaymentDetails

public com.google.protobuf.ByteString getSerializedPaymentDetails()
required bytes serialized_payment_details = 4;
 PaymentDetails
 

Specified by:
getSerializedPaymentDetails in interface Protos.PaymentRequestOrBuilder

setSerializedPaymentDetails

public Protos.PaymentRequest.Builder setSerializedPaymentDetails(com.google.protobuf.ByteString value)
required bytes serialized_payment_details = 4;
 PaymentDetails
 


clearSerializedPaymentDetails

public Protos.PaymentRequest.Builder clearSerializedPaymentDetails()
required bytes serialized_payment_details = 4;
 PaymentDetails
 


hasSignature

public boolean hasSignature()
optional bytes signature = 5;
 pki-dependent signature
 

Specified by:
hasSignature in interface Protos.PaymentRequestOrBuilder

getSignature

public com.google.protobuf.ByteString getSignature()
optional bytes signature = 5;
 pki-dependent signature
 

Specified by:
getSignature in interface Protos.PaymentRequestOrBuilder

setSignature

public Protos.PaymentRequest.Builder setSignature(com.google.protobuf.ByteString value)
optional bytes signature = 5;
 pki-dependent signature
 


clearSignature

public Protos.PaymentRequest.Builder clearSignature()
optional bytes signature = 5;
 pki-dependent signature
 



Copyright © 2014. All rights reserved.