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
,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 TypeMethodDescriptionaddAllCertificate
(Iterable<? extends com.google.protobuf.ByteString> values) DER-encoded X.509 certificate chainaddCertificate
(com.google.protobuf.ByteString value) DER-encoded X.509 certificate chainDER-encoded X.509 certificate chaincom.google.protobuf.ByteString
getCertificate
(int index) DER-encoded X.509 certificate chainint
DER-encoded X.509 certificate chainList<com.google.protobuf.ByteString>
DER-encoded X.509 certificate chainsetCertificate
(int index, com.google.protobuf.ByteString value) DER-encoded X.509 certificate chainMethods 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
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
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
DER-encoded X.509 certificate chain
repeated bytes certificate = 1;
- Returns:
- This builder for chaining.
-