Class Certificate.Builder (0.3.0)

public static final class Certificate.Builder extends GeneratedMessage.Builder<Certificate.Builder> implements CertificateOrBuilder

Certificate information

Protobuf type google.backstory.Certificate

Static Methods

getDescriptor()

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

Methods

build()

public Certificate build()
Returns
Type Description
Certificate

buildPartial()

public Certificate buildPartial()
Returns
Type Description
Certificate

clear()

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

clearIssuer()

public Certificate.Builder clearIssuer()

Issuer of the certificate.

string issuer = 4;

Returns
Type Description
Certificate.Builder

This builder for chaining.

clearMd5()

public Certificate.Builder clearMd5()

The MD5 hash of the certificate, as a hex-encoded string.

string md5 = 5;

Returns
Type Description
Certificate.Builder

This builder for chaining.

clearNotAfter()

public Certificate.Builder clearNotAfter()

Indicates when the certificate is no longer valid.

.google.protobuf.Timestamp not_after = 9;

Returns
Type Description
Certificate.Builder

clearNotBefore()

public Certificate.Builder clearNotBefore()

Indicates when the certificate is first valid.

.google.protobuf.Timestamp not_before = 8;

Returns
Type Description
Certificate.Builder

clearSerial()

public Certificate.Builder clearSerial()

Certificate serial number.

string serial = 2;

Returns
Type Description
Certificate.Builder

This builder for chaining.

clearSha1()

public Certificate.Builder clearSha1()

The SHA1 hash of the certificate, as a hex-encoded string.

string sha1 = 6;

Returns
Type Description
Certificate.Builder

This builder for chaining.

clearSha256()

public Certificate.Builder clearSha256()

The SHA256 hash of the certificate, as a hex-encoded string.

string sha256 = 7;

Returns
Type Description
Certificate.Builder

This builder for chaining.

clearSubject()

public Certificate.Builder clearSubject()

Subject of the certificate.

string subject = 3;

Returns
Type Description
Certificate.Builder

This builder for chaining.

clearVersion()

public Certificate.Builder clearVersion()

Certificate version.

string version = 1;

Returns
Type Description
Certificate.Builder

This builder for chaining.

getDefaultInstanceForType()

public Certificate getDefaultInstanceForType()
Returns
Type Description
Certificate

getDescriptorForType()

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

getIssuer()

public String getIssuer()

Issuer of the certificate.

string issuer = 4;

Returns
Type Description
String

The issuer.

getIssuerBytes()

public ByteString getIssuerBytes()

Issuer of the certificate.

string issuer = 4;

Returns
Type Description
ByteString

The bytes for issuer.

getMd5()

public String getMd5()

The MD5 hash of the certificate, as a hex-encoded string.

string md5 = 5;

Returns
Type Description
String

The md5.

getMd5Bytes()

public ByteString getMd5Bytes()

The MD5 hash of the certificate, as a hex-encoded string.

string md5 = 5;

Returns
Type Description
ByteString

The bytes for md5.

getNotAfter()

public Timestamp getNotAfter()

Indicates when the certificate is no longer valid.

.google.protobuf.Timestamp not_after = 9;

Returns
Type Description
Timestamp

The notAfter.

getNotAfterBuilder()

public Timestamp.Builder getNotAfterBuilder()

Indicates when the certificate is no longer valid.

.google.protobuf.Timestamp not_after = 9;

Returns
Type Description
Builder

getNotAfterOrBuilder()

public TimestampOrBuilder getNotAfterOrBuilder()

Indicates when the certificate is no longer valid.

.google.protobuf.Timestamp not_after = 9;

Returns
Type Description
TimestampOrBuilder

getNotBefore()

public Timestamp getNotBefore()

Indicates when the certificate is first valid.

.google.protobuf.Timestamp not_before = 8;

Returns
Type Description
Timestamp

The notBefore.

getNotBeforeBuilder()

public Timestamp.Builder getNotBeforeBuilder()

Indicates when the certificate is first valid.

.google.protobuf.Timestamp not_before = 8;

Returns
Type Description
Builder

getNotBeforeOrBuilder()

public TimestampOrBuilder getNotBeforeOrBuilder()

Indicates when the certificate is first valid.

.google.protobuf.Timestamp not_before = 8;

Returns
Type Description
TimestampOrBuilder

getSerial()

public String getSerial()

Certificate serial number.

string serial = 2;

Returns
Type Description
String

The serial.

getSerialBytes()

public ByteString getSerialBytes()

Certificate serial number.

string serial = 2;

Returns
Type Description
ByteString

The bytes for serial.

getSha1()

public String getSha1()

The SHA1 hash of the certificate, as a hex-encoded string.

string sha1 = 6;

Returns
Type Description
String

The sha1.

getSha1Bytes()

public ByteString getSha1Bytes()

The SHA1 hash of the certificate, as a hex-encoded string.

string sha1 = 6;

Returns
Type Description
ByteString

The bytes for sha1.

getSha256()

public String getSha256()

The SHA256 hash of the certificate, as a hex-encoded string.

string sha256 = 7;

Returns
Type Description
String

The sha256.

getSha256Bytes()

public ByteString getSha256Bytes()

The SHA256 hash of the certificate, as a hex-encoded string.

string sha256 = 7;

Returns
Type Description
ByteString

The bytes for sha256.

getSubject()

public String getSubject()

Subject of the certificate.

string subject = 3;

Returns
Type Description
String

The subject.

getSubjectBytes()

public ByteString getSubjectBytes()

Subject of the certificate.

string subject = 3;

Returns
Type Description
ByteString

The bytes for subject.

getVersion()

public String getVersion()

Certificate version.

string version = 1;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Certificate version.

string version = 1;

Returns
Type Description
ByteString

The bytes for version.

hasNotAfter()

public boolean hasNotAfter()

Indicates when the certificate is no longer valid.

.google.protobuf.Timestamp not_after = 9;

Returns
Type Description
boolean

Whether the notAfter field is set.

hasNotBefore()

public boolean hasNotBefore()

Indicates when the certificate is first valid.

.google.protobuf.Timestamp not_before = 8;

Returns
Type Description
boolean

Whether the notBefore field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Certificate other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNotAfter(Timestamp value)

public Certificate.Builder mergeNotAfter(Timestamp value)

Indicates when the certificate is no longer valid.

.google.protobuf.Timestamp not_after = 9;

Parameter
Name Description
value Timestamp
Returns
Type Description
Certificate.Builder

mergeNotBefore(Timestamp value)

public Certificate.Builder mergeNotBefore(Timestamp value)

Indicates when the certificate is first valid.

.google.protobuf.Timestamp not_before = 8;

Parameter
Name Description
value Timestamp
Returns
Type Description
Certificate.Builder

setIssuer(String value)

public Certificate.Builder setIssuer(String value)

Issuer of the certificate.

string issuer = 4;

Parameter
Name Description
value String

The issuer to set.

Returns
Type Description
Certificate.Builder

This builder for chaining.

setIssuerBytes(ByteString value)

public Certificate.Builder setIssuerBytes(ByteString value)

Issuer of the certificate.

string issuer = 4;

Parameter
Name Description
value ByteString

The bytes for issuer to set.

Returns
Type Description
Certificate.Builder

This builder for chaining.

setMd5(String value)

public Certificate.Builder setMd5(String value)

The MD5 hash of the certificate, as a hex-encoded string.

string md5 = 5;

Parameter
Name Description
value String

The md5 to set.

Returns
Type Description
Certificate.Builder

This builder for chaining.

setMd5Bytes(ByteString value)

public Certificate.Builder setMd5Bytes(ByteString value)

The MD5 hash of the certificate, as a hex-encoded string.

string md5 = 5;

Parameter
Name Description
value ByteString

The bytes for md5 to set.

Returns
Type Description
Certificate.Builder

This builder for chaining.

setNotAfter(Timestamp value)

public Certificate.Builder setNotAfter(Timestamp value)

Indicates when the certificate is no longer valid.

.google.protobuf.Timestamp not_after = 9;

Parameter
Name Description
value Timestamp
Returns
Type Description
Certificate.Builder

setNotAfter(Timestamp.Builder builderForValue)

public Certificate.Builder setNotAfter(Timestamp.Builder builderForValue)

Indicates when the certificate is no longer valid.

.google.protobuf.Timestamp not_after = 9;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Certificate.Builder

setNotBefore(Timestamp value)

public Certificate.Builder setNotBefore(Timestamp value)

Indicates when the certificate is first valid.

.google.protobuf.Timestamp not_before = 8;

Parameter
Name Description
value Timestamp
Returns
Type Description
Certificate.Builder

setNotBefore(Timestamp.Builder builderForValue)

public Certificate.Builder setNotBefore(Timestamp.Builder builderForValue)

Indicates when the certificate is first valid.

.google.protobuf.Timestamp not_before = 8;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Certificate.Builder

setSerial(String value)

public Certificate.Builder setSerial(String value)

Certificate serial number.

string serial = 2;

Parameter
Name Description
value String

The serial to set.

Returns
Type Description
Certificate.Builder

This builder for chaining.

setSerialBytes(ByteString value)

public Certificate.Builder setSerialBytes(ByteString value)

Certificate serial number.

string serial = 2;

Parameter
Name Description
value ByteString

The bytes for serial to set.

Returns
Type Description
Certificate.Builder

This builder for chaining.

setSha1(String value)

public Certificate.Builder setSha1(String value)

The SHA1 hash of the certificate, as a hex-encoded string.

string sha1 = 6;

Parameter
Name Description
value String

The sha1 to set.

Returns
Type Description
Certificate.Builder

This builder for chaining.

setSha1Bytes(ByteString value)

public Certificate.Builder setSha1Bytes(ByteString value)

The SHA1 hash of the certificate, as a hex-encoded string.

string sha1 = 6;

Parameter
Name Description
value ByteString

The bytes for sha1 to set.

Returns
Type Description
Certificate.Builder

This builder for chaining.

setSha256(String value)

public Certificate.Builder setSha256(String value)

The SHA256 hash of the certificate, as a hex-encoded string.

string sha256 = 7;

Parameter
Name Description
value String

The sha256 to set.

Returns
Type Description
Certificate.Builder

This builder for chaining.

setSha256Bytes(ByteString value)

public Certificate.Builder setSha256Bytes(ByteString value)

The SHA256 hash of the certificate, as a hex-encoded string.

string sha256 = 7;

Parameter
Name Description
value ByteString

The bytes for sha256 to set.

Returns
Type Description
Certificate.Builder

This builder for chaining.

setSubject(String value)

public Certificate.Builder setSubject(String value)

Subject of the certificate.

string subject = 3;

Parameter
Name Description
value String

The subject to set.

Returns
Type Description
Certificate.Builder

This builder for chaining.

setSubjectBytes(ByteString value)

public Certificate.Builder setSubjectBytes(ByteString value)

Subject of the certificate.

string subject = 3;

Parameter
Name Description
value ByteString

The bytes for subject to set.

Returns
Type Description
Certificate.Builder

This builder for chaining.

setVersion(String value)

public Certificate.Builder setVersion(String value)

Certificate version.

string version = 1;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
Certificate.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public Certificate.Builder setVersionBytes(ByteString value)

Certificate version.

string version = 1;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
Certificate.Builder

This builder for chaining.