Package org.bitcoin.protocols.payments
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
,java.lang.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 typepayments.X509Certificates
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protos.X509Certificates.Builder
addAllCertificate(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
DER-encoded X.509 certificate chainProtos.X509Certificates.Builder
addCertificate(com.google.protobuf.ByteString value)
DER-encoded X.509 certificate chainProtos.X509Certificates.Builder
clearCertificate()
DER-encoded X.509 certificate chaincom.google.protobuf.ByteString
getCertificate(int index)
DER-encoded X.509 certificate chainint
getCertificateCount()
DER-encoded X.509 certificate chainjava.util.List<com.google.protobuf.ByteString>
getCertificateList()
DER-encoded X.509 certificate chainProtos.X509Certificates.Builder
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
-
-
-
-
Method Detail
-
getCertificateList
public java.util.List<com.google.protobuf.ByteString> getCertificateList()
DER-encoded X.509 certificate chain
repeated bytes certificate = 1;
- Specified by:
getCertificateList
in interfaceProtos.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 interfaceProtos.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 interfaceProtos.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(java.lang.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.
-
-