Class CertificateDescription.SubjectDescription.Builder (2.45.0)

public static final class CertificateDescription.SubjectDescription.Builder extends GeneratedMessageV3.Builder<CertificateDescription.SubjectDescription.Builder> implements CertificateDescription.SubjectDescriptionOrBuilder

These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime.

Protobuf type google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CertificateDescription.SubjectDescription.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CertificateDescription.SubjectDescription.Builder
Overrides

build()

public CertificateDescription.SubjectDescription build()
Returns
Type Description
CertificateDescription.SubjectDescription

buildPartial()

public CertificateDescription.SubjectDescription buildPartial()
Returns
Type Description
CertificateDescription.SubjectDescription

clear()

public CertificateDescription.SubjectDescription.Builder clear()
Returns
Type Description
CertificateDescription.SubjectDescription.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CertificateDescription.SubjectDescription.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CertificateDescription.SubjectDescription.Builder
Overrides

clearHexSerialNumber()

public CertificateDescription.SubjectDescription.Builder clearHexSerialNumber()

The serial number encoded in lowercase hexadecimal.

string hex_serial_number = 3;

Returns
Type Description
CertificateDescription.SubjectDescription.Builder

This builder for chaining.

clearLifetime()

public CertificateDescription.SubjectDescription.Builder clearLifetime()

For convenience, the actual lifetime of an issued certificate.

.google.protobuf.Duration lifetime = 4;

Returns
Type Description
CertificateDescription.SubjectDescription.Builder

clearNotAfterTime()

public CertificateDescription.SubjectDescription.Builder clearNotAfterTime()

The time after which the certificate is expired. Per RFC 5280, the validity period for a certificate is the period of time from not_before_time through not_after_time, inclusive. Corresponds to 'not_before_time' + 'lifetime' - 1 second.

.google.protobuf.Timestamp not_after_time = 6;

Returns
Type Description
CertificateDescription.SubjectDescription.Builder

clearNotBeforeTime()

public CertificateDescription.SubjectDescription.Builder clearNotBeforeTime()

The time at which the certificate becomes valid.

.google.protobuf.Timestamp not_before_time = 5;

Returns
Type Description
CertificateDescription.SubjectDescription.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateDescription.SubjectDescription.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CertificateDescription.SubjectDescription.Builder
Overrides

clearSubject()

public CertificateDescription.SubjectDescription.Builder clearSubject()

Contains distinguished name fields such as the common name, location and / organization.

.google.cloud.security.privateca.v1.Subject subject = 1;

Returns
Type Description
CertificateDescription.SubjectDescription.Builder

clearSubjectAltName()

public CertificateDescription.SubjectDescription.Builder clearSubjectAltName()

The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;

Returns
Type Description
CertificateDescription.SubjectDescription.Builder

clone()

public CertificateDescription.SubjectDescription.Builder clone()
Returns
Type Description
CertificateDescription.SubjectDescription.Builder
Overrides

getDefaultInstanceForType()

public CertificateDescription.SubjectDescription getDefaultInstanceForType()
Returns
Type Description
CertificateDescription.SubjectDescription

getDescriptorForType()

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

getHexSerialNumber()

public String getHexSerialNumber()

The serial number encoded in lowercase hexadecimal.

string hex_serial_number = 3;

Returns
Type Description
String

The hexSerialNumber.

getHexSerialNumberBytes()

public ByteString getHexSerialNumberBytes()

The serial number encoded in lowercase hexadecimal.

string hex_serial_number = 3;

Returns
Type Description
ByteString

The bytes for hexSerialNumber.

getLifetime()

public Duration getLifetime()

For convenience, the actual lifetime of an issued certificate.

.google.protobuf.Duration lifetime = 4;

Returns
Type Description
Duration

The lifetime.

getLifetimeBuilder()

public Duration.Builder getLifetimeBuilder()

For convenience, the actual lifetime of an issued certificate.

.google.protobuf.Duration lifetime = 4;

Returns
Type Description
Builder

getLifetimeOrBuilder()

public DurationOrBuilder getLifetimeOrBuilder()

For convenience, the actual lifetime of an issued certificate.

.google.protobuf.Duration lifetime = 4;

Returns
Type Description
DurationOrBuilder

getNotAfterTime()

public Timestamp getNotAfterTime()

The time after which the certificate is expired. Per RFC 5280, the validity period for a certificate is the period of time from not_before_time through not_after_time, inclusive. Corresponds to 'not_before_time' + 'lifetime' - 1 second.

.google.protobuf.Timestamp not_after_time = 6;

Returns
Type Description
Timestamp

The notAfterTime.

getNotAfterTimeBuilder()

public Timestamp.Builder getNotAfterTimeBuilder()

The time after which the certificate is expired. Per RFC 5280, the validity period for a certificate is the period of time from not_before_time through not_after_time, inclusive. Corresponds to 'not_before_time' + 'lifetime' - 1 second.

.google.protobuf.Timestamp not_after_time = 6;

Returns
Type Description
Builder

getNotAfterTimeOrBuilder()

public TimestampOrBuilder getNotAfterTimeOrBuilder()

The time after which the certificate is expired. Per RFC 5280, the validity period for a certificate is the period of time from not_before_time through not_after_time, inclusive. Corresponds to 'not_before_time' + 'lifetime' - 1 second.

.google.protobuf.Timestamp not_after_time = 6;

Returns
Type Description
TimestampOrBuilder

getNotBeforeTime()

public Timestamp getNotBeforeTime()

The time at which the certificate becomes valid.

.google.protobuf.Timestamp not_before_time = 5;

Returns
Type Description
Timestamp

The notBeforeTime.

getNotBeforeTimeBuilder()

public Timestamp.Builder getNotBeforeTimeBuilder()

The time at which the certificate becomes valid.

.google.protobuf.Timestamp not_before_time = 5;

Returns
Type Description
Builder

getNotBeforeTimeOrBuilder()

public TimestampOrBuilder getNotBeforeTimeOrBuilder()

The time at which the certificate becomes valid.

.google.protobuf.Timestamp not_before_time = 5;

Returns
Type Description
TimestampOrBuilder

getSubject()

public Subject getSubject()

Contains distinguished name fields such as the common name, location and / organization.

.google.cloud.security.privateca.v1.Subject subject = 1;

Returns
Type Description
Subject

The subject.

getSubjectAltName()

public SubjectAltNames getSubjectAltName()

The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;

Returns
Type Description
SubjectAltNames

The subjectAltName.

getSubjectAltNameBuilder()

public SubjectAltNames.Builder getSubjectAltNameBuilder()

The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;

Returns
Type Description
SubjectAltNames.Builder

getSubjectAltNameOrBuilder()

public SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder()

The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;

Returns
Type Description
SubjectAltNamesOrBuilder

getSubjectBuilder()

public Subject.Builder getSubjectBuilder()

Contains distinguished name fields such as the common name, location and / organization.

.google.cloud.security.privateca.v1.Subject subject = 1;

Returns
Type Description
Subject.Builder

getSubjectOrBuilder()

public SubjectOrBuilder getSubjectOrBuilder()

Contains distinguished name fields such as the common name, location and / organization.

.google.cloud.security.privateca.v1.Subject subject = 1;

Returns
Type Description
SubjectOrBuilder

hasLifetime()

public boolean hasLifetime()

For convenience, the actual lifetime of an issued certificate.

.google.protobuf.Duration lifetime = 4;

Returns
Type Description
boolean

Whether the lifetime field is set.

hasNotAfterTime()

public boolean hasNotAfterTime()

The time after which the certificate is expired. Per RFC 5280, the validity period for a certificate is the period of time from not_before_time through not_after_time, inclusive. Corresponds to 'not_before_time' + 'lifetime' - 1 second.

.google.protobuf.Timestamp not_after_time = 6;

Returns
Type Description
boolean

Whether the notAfterTime field is set.

hasNotBeforeTime()

public boolean hasNotBeforeTime()

The time at which the certificate becomes valid.

.google.protobuf.Timestamp not_before_time = 5;

Returns
Type Description
boolean

Whether the notBeforeTime field is set.

hasSubject()

public boolean hasSubject()

Contains distinguished name fields such as the common name, location and / organization.

.google.cloud.security.privateca.v1.Subject subject = 1;

Returns
Type Description
boolean

Whether the subject field is set.

hasSubjectAltName()

public boolean hasSubjectAltName()

The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;

Returns
Type Description
boolean

Whether the subjectAltName field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CertificateDescription.SubjectDescription other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLifetime(Duration value)

public CertificateDescription.SubjectDescription.Builder mergeLifetime(Duration value)

For convenience, the actual lifetime of an issued certificate.

.google.protobuf.Duration lifetime = 4;

Parameter
Name Description
value Duration
Returns
Type Description
CertificateDescription.SubjectDescription.Builder

mergeNotAfterTime(Timestamp value)

public CertificateDescription.SubjectDescription.Builder mergeNotAfterTime(Timestamp value)

The time after which the certificate is expired. Per RFC 5280, the validity period for a certificate is the period of time from not_before_time through not_after_time, inclusive. Corresponds to 'not_before_time' + 'lifetime' - 1 second.

.google.protobuf.Timestamp not_after_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
CertificateDescription.SubjectDescription.Builder

mergeNotBeforeTime(Timestamp value)

public CertificateDescription.SubjectDescription.Builder mergeNotBeforeTime(Timestamp value)

The time at which the certificate becomes valid.

.google.protobuf.Timestamp not_before_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
CertificateDescription.SubjectDescription.Builder

mergeSubject(Subject value)

public CertificateDescription.SubjectDescription.Builder mergeSubject(Subject value)

Contains distinguished name fields such as the common name, location and / organization.

.google.cloud.security.privateca.v1.Subject subject = 1;

Parameter
Name Description
value Subject
Returns
Type Description
CertificateDescription.SubjectDescription.Builder

mergeSubjectAltName(SubjectAltNames value)

public CertificateDescription.SubjectDescription.Builder mergeSubjectAltName(SubjectAltNames value)

The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;

Parameter
Name Description
value SubjectAltNames
Returns
Type Description
CertificateDescription.SubjectDescription.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateDescription.SubjectDescription.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CertificateDescription.SubjectDescription.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateDescription.SubjectDescription.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CertificateDescription.SubjectDescription.Builder
Overrides

setHexSerialNumber(String value)

public CertificateDescription.SubjectDescription.Builder setHexSerialNumber(String value)

The serial number encoded in lowercase hexadecimal.

string hex_serial_number = 3;

Parameter
Name Description
value String

The hexSerialNumber to set.

Returns
Type Description
CertificateDescription.SubjectDescription.Builder

This builder for chaining.

setHexSerialNumberBytes(ByteString value)

public CertificateDescription.SubjectDescription.Builder setHexSerialNumberBytes(ByteString value)

The serial number encoded in lowercase hexadecimal.

string hex_serial_number = 3;

Parameter
Name Description
value ByteString

The bytes for hexSerialNumber to set.

Returns
Type Description
CertificateDescription.SubjectDescription.Builder

This builder for chaining.

setLifetime(Duration value)

public CertificateDescription.SubjectDescription.Builder setLifetime(Duration value)

For convenience, the actual lifetime of an issued certificate.

.google.protobuf.Duration lifetime = 4;

Parameter
Name Description
value Duration
Returns
Type Description
CertificateDescription.SubjectDescription.Builder

setLifetime(Duration.Builder builderForValue)

public CertificateDescription.SubjectDescription.Builder setLifetime(Duration.Builder builderForValue)

For convenience, the actual lifetime of an issued certificate.

.google.protobuf.Duration lifetime = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CertificateDescription.SubjectDescription.Builder

setNotAfterTime(Timestamp value)

public CertificateDescription.SubjectDescription.Builder setNotAfterTime(Timestamp value)

The time after which the certificate is expired. Per RFC 5280, the validity period for a certificate is the period of time from not_before_time through not_after_time, inclusive. Corresponds to 'not_before_time' + 'lifetime' - 1 second.

.google.protobuf.Timestamp not_after_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
CertificateDescription.SubjectDescription.Builder

setNotAfterTime(Timestamp.Builder builderForValue)

public CertificateDescription.SubjectDescription.Builder setNotAfterTime(Timestamp.Builder builderForValue)

The time after which the certificate is expired. Per RFC 5280, the validity period for a certificate is the period of time from not_before_time through not_after_time, inclusive. Corresponds to 'not_before_time' + 'lifetime' - 1 second.

.google.protobuf.Timestamp not_after_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CertificateDescription.SubjectDescription.Builder

setNotBeforeTime(Timestamp value)

public CertificateDescription.SubjectDescription.Builder setNotBeforeTime(Timestamp value)

The time at which the certificate becomes valid.

.google.protobuf.Timestamp not_before_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
CertificateDescription.SubjectDescription.Builder

setNotBeforeTime(Timestamp.Builder builderForValue)

public CertificateDescription.SubjectDescription.Builder setNotBeforeTime(Timestamp.Builder builderForValue)

The time at which the certificate becomes valid.

.google.protobuf.Timestamp not_before_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CertificateDescription.SubjectDescription.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CertificateDescription.SubjectDescription.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CertificateDescription.SubjectDescription.Builder
Overrides

setSubject(Subject value)

public CertificateDescription.SubjectDescription.Builder setSubject(Subject value)

Contains distinguished name fields such as the common name, location and / organization.

.google.cloud.security.privateca.v1.Subject subject = 1;

Parameter
Name Description
value Subject
Returns
Type Description
CertificateDescription.SubjectDescription.Builder

setSubject(Subject.Builder builderForValue)

public CertificateDescription.SubjectDescription.Builder setSubject(Subject.Builder builderForValue)

Contains distinguished name fields such as the common name, location and / organization.

.google.cloud.security.privateca.v1.Subject subject = 1;

Parameter
Name Description
builderForValue Subject.Builder
Returns
Type Description
CertificateDescription.SubjectDescription.Builder

setSubjectAltName(SubjectAltNames value)

public CertificateDescription.SubjectDescription.Builder setSubjectAltName(SubjectAltNames value)

The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;

Parameter
Name Description
value SubjectAltNames
Returns
Type Description
CertificateDescription.SubjectDescription.Builder

setSubjectAltName(SubjectAltNames.Builder builderForValue)

public CertificateDescription.SubjectDescription.Builder setSubjectAltName(SubjectAltNames.Builder builderForValue)

The subject alternative name fields.

.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;

Parameter
Name Description
builderForValue SubjectAltNames.Builder
Returns
Type Description
CertificateDescription.SubjectDescription.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CertificateDescription.SubjectDescription.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CertificateDescription.SubjectDescription.Builder
Overrides