Class Protos.X509Certificates.Builder

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

public static final class Protos.X509Certificates.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.X509Certificates,Protos.X509Certificates.Builder> implements Protos.X509CertificatesOrBuilder
Protobuf type payments.X509Certificates
  • Field Summary

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

    instance, isBuilt
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllCertificate(Iterable<? extends com.google.protobuf.ByteString> values)
    DER-encoded X.509 certificate chain
    addCertificate(com.google.protobuf.ByteString value)
    DER-encoded X.509 certificate chain
    DER-encoded X.509 certificate chain
    com.google.protobuf.ByteString
    getCertificate(int index)
    DER-encoded X.509 certificate chain
    int
    DER-encoded X.509 certificate chain
    List<com.google.protobuf.ByteString>
    DER-encoded X.509 certificate chain
    setCertificate(int index, com.google.protobuf.ByteString value)
    DER-encoded X.509 certificate chain

    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

    • getCertificateList

      public List<com.google.protobuf.ByteString> getCertificateList()
       DER-encoded X.509 certificate chain
       
      repeated bytes certificate = 1;
      Specified by:
      getCertificateList in interface Protos.X509CertificatesOrBuilder
      Returns:
      A list containing the certificate.
    • getCertificateCount

      public int getCertificateCount()
       DER-encoded X.509 certificate chain
       
      repeated bytes certificate = 1;
      Specified by:
      getCertificateCount in interface Protos.X509CertificatesOrBuilder
      Returns:
      The count of certificate.
    • getCertificate

      public com.google.protobuf.ByteString getCertificate(int index)
       DER-encoded X.509 certificate chain
       
      repeated bytes certificate = 1;
      Specified by:
      getCertificate in interface Protos.X509CertificatesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The certificate at the given index.
    • setCertificate

      public Protos.X509Certificates.Builder setCertificate(int index, com.google.protobuf.ByteString value)
       DER-encoded X.509 certificate chain
       
      repeated bytes certificate = 1;
      Parameters:
      value - The certificate to set.
      Returns:
      This builder for chaining.
    • addCertificate

      public Protos.X509Certificates.Builder addCertificate(com.google.protobuf.ByteString value)
       DER-encoded X.509 certificate chain
       
      repeated bytes certificate = 1;
      Parameters:
      value - The certificate to add.
      Returns:
      This builder for chaining.
    • addAllCertificate

      public Protos.X509Certificates.Builder addAllCertificate(Iterable<? extends com.google.protobuf.ByteString> values)
       DER-encoded X.509 certificate chain
       
      repeated bytes certificate = 1;
      Parameters:
      values - The certificate to add.
      Returns:
      This builder for chaining.
    • clearCertificate

      public Protos.X509Certificates.Builder clearCertificate()
       DER-encoded X.509 certificate chain
       
      repeated bytes certificate = 1;
      Returns:
      This builder for chaining.