Class X509.Builder (0.3.0)

public static final class X509.Builder extends GeneratedMessage.Builder<X509.Builder> implements X509OrBuilder

File certificate.

Protobuf type google.backstory.X509

Implements

X509OrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public X509 build()
Returns
Type Description
X509

buildPartial()

public X509 buildPartial()
Returns
Type Description
X509

clear()

public X509.Builder clear()
Returns
Type Description
X509.Builder
Overrides

clearAlgorithm()

public X509.Builder clearAlgorithm()

Certificate algorithm.

string algorithm = 2;

Returns
Type Description
X509.Builder

This builder for chaining.

clearCertIssuer()

public X509.Builder clearCertIssuer()

Issuer of the certificate.

string cert_issuer = 4;

Returns
Type Description
X509.Builder

This builder for chaining.

clearName()

public X509.Builder clearName()

Certificate name.

string name = 1;

Returns
Type Description
X509.Builder

This builder for chaining.

clearSerialNumber()

public X509.Builder clearSerialNumber()

Certificate serial number.

string serial_number = 5;

Returns
Type Description
X509.Builder

This builder for chaining.

clearThumbprint()

public X509.Builder clearThumbprint()

Certificate thumbprint.

string thumbprint = 3;

Returns
Type Description
X509.Builder

This builder for chaining.

getAlgorithm()

public String getAlgorithm()

Certificate algorithm.

string algorithm = 2;

Returns
Type Description
String

The algorithm.

getAlgorithmBytes()

public ByteString getAlgorithmBytes()

Certificate algorithm.

string algorithm = 2;

Returns
Type Description
ByteString

The bytes for algorithm.

getCertIssuer()

public String getCertIssuer()

Issuer of the certificate.

string cert_issuer = 4;

Returns
Type Description
String

The certIssuer.

getCertIssuerBytes()

public ByteString getCertIssuerBytes()

Issuer of the certificate.

string cert_issuer = 4;

Returns
Type Description
ByteString

The bytes for certIssuer.

getDefaultInstanceForType()

public X509 getDefaultInstanceForType()
Returns
Type Description
X509

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Certificate name.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Certificate name.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getSerialNumber()

public String getSerialNumber()

Certificate serial number.

string serial_number = 5;

Returns
Type Description
String

The serialNumber.

getSerialNumberBytes()

public ByteString getSerialNumberBytes()

Certificate serial number.

string serial_number = 5;

Returns
Type Description
ByteString

The bytes for serialNumber.

getThumbprint()

public String getThumbprint()

Certificate thumbprint.

string thumbprint = 3;

Returns
Type Description
String

The thumbprint.

getThumbprintBytes()

public ByteString getThumbprintBytes()

Certificate thumbprint.

string thumbprint = 3;

Returns
Type Description
ByteString

The bytes for thumbprint.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(X509 other)

public X509.Builder mergeFrom(X509 other)
Parameter
Name Description
other X509
Returns
Type Description
X509.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public X509.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
X509.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public X509.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
X509.Builder
Overrides

setAlgorithm(String value)

public X509.Builder setAlgorithm(String value)

Certificate algorithm.

string algorithm = 2;

Parameter
Name Description
value String

The algorithm to set.

Returns
Type Description
X509.Builder

This builder for chaining.

setAlgorithmBytes(ByteString value)

public X509.Builder setAlgorithmBytes(ByteString value)

Certificate algorithm.

string algorithm = 2;

Parameter
Name Description
value ByteString

The bytes for algorithm to set.

Returns
Type Description
X509.Builder

This builder for chaining.

setCertIssuer(String value)

public X509.Builder setCertIssuer(String value)

Issuer of the certificate.

string cert_issuer = 4;

Parameter
Name Description
value String

The certIssuer to set.

Returns
Type Description
X509.Builder

This builder for chaining.

setCertIssuerBytes(ByteString value)

public X509.Builder setCertIssuerBytes(ByteString value)

Issuer of the certificate.

string cert_issuer = 4;

Parameter
Name Description
value ByteString

The bytes for certIssuer to set.

Returns
Type Description
X509.Builder

This builder for chaining.

setName(String value)

public X509.Builder setName(String value)

Certificate name.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
X509.Builder

This builder for chaining.

setNameBytes(ByteString value)

public X509.Builder setNameBytes(ByteString value)

Certificate name.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
X509.Builder

This builder for chaining.

setSerialNumber(String value)

public X509.Builder setSerialNumber(String value)

Certificate serial number.

string serial_number = 5;

Parameter
Name Description
value String

The serialNumber to set.

Returns
Type Description
X509.Builder

This builder for chaining.

setSerialNumberBytes(ByteString value)

public X509.Builder setSerialNumberBytes(ByteString value)

Certificate serial number.

string serial_number = 5;

Parameter
Name Description
value ByteString

The bytes for serialNumber to set.

Returns
Type Description
X509.Builder

This builder for chaining.

setThumbprint(String value)

public X509.Builder setThumbprint(String value)

Certificate thumbprint.

string thumbprint = 3;

Parameter
Name Description
value String

The thumbprint to set.

Returns
Type Description
X509.Builder

This builder for chaining.

setThumbprintBytes(ByteString value)

public X509.Builder setThumbprintBytes(ByteString value)

Certificate thumbprint.

string thumbprint = 3;

Parameter
Name Description
value ByteString

The bytes for thumbprint to set.

Returns
Type Description
X509.Builder

This builder for chaining.