Class CertificateDescription.SubjectDescription.Builder (2.43.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.v1beta1.CertificateDescription.SubjectDescription

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CertificateDescription.SubjectDescription.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder
Overrides

build()

public CertificateDescription.SubjectDescription build()
Returns
TypeDescription
CertificateDescription.SubjectDescription

buildPartial()

public CertificateDescription.SubjectDescription buildPartial()
Returns
TypeDescription
CertificateDescription.SubjectDescription

clear()

public CertificateDescription.SubjectDescription.Builder clear()
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder
Overrides

clearCommonName()

public CertificateDescription.SubjectDescription.Builder clearCommonName()

The "common name" of the distinguished name.

string common_name = 2;

Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CertificateDescription.SubjectDescription.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder
Overrides

clearHexSerialNumber()

public CertificateDescription.SubjectDescription.Builder clearHexSerialNumber()

The serial number encoded in lowercase hexadecimal.

string hex_serial_number = 4;

Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

This builder for chaining.

clearLifetime()

public CertificateDescription.SubjectDescription.Builder clearLifetime()

For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'.

.google.protobuf.Duration lifetime = 5;

Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

clearNotAfterTime()

public CertificateDescription.SubjectDescription.Builder clearNotAfterTime()

The time at which the certificate expires.

.google.protobuf.Timestamp not_after_time = 7;

Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

clearNotBeforeTime()

public CertificateDescription.SubjectDescription.Builder clearNotBeforeTime()

The time at which the certificate becomes valid.

.google.protobuf.Timestamp not_before_time = 6;

Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateDescription.SubjectDescription.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder
Overrides

clearSubject()

public CertificateDescription.SubjectDescription.Builder clearSubject()

Contains distinguished name fields such as the location and organization.

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

Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

clearSubjectAltName()

public CertificateDescription.SubjectDescription.Builder clearSubjectAltName()

The subject alternative name fields.

.google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3;

Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

clone()

public CertificateDescription.SubjectDescription.Builder clone()
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder
Overrides

getCommonName()

public String getCommonName()

The "common name" of the distinguished name.

string common_name = 2;

Returns
TypeDescription
String

The commonName.

getCommonNameBytes()

public ByteString getCommonNameBytes()

The "common name" of the distinguished name.

string common_name = 2;

Returns
TypeDescription
ByteString

The bytes for commonName.

getDefaultInstanceForType()

public CertificateDescription.SubjectDescription getDefaultInstanceForType()
Returns
TypeDescription
CertificateDescription.SubjectDescription

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHexSerialNumber()

public String getHexSerialNumber()

The serial number encoded in lowercase hexadecimal.

string hex_serial_number = 4;

Returns
TypeDescription
String

The hexSerialNumber.

getHexSerialNumberBytes()

public ByteString getHexSerialNumberBytes()

The serial number encoded in lowercase hexadecimal.

string hex_serial_number = 4;

Returns
TypeDescription
ByteString

The bytes for hexSerialNumber.

getLifetime()

public Duration getLifetime()

For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'.

.google.protobuf.Duration lifetime = 5;

Returns
TypeDescription
Duration

The lifetime.

getLifetimeBuilder()

public Duration.Builder getLifetimeBuilder()

For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'.

.google.protobuf.Duration lifetime = 5;

Returns
TypeDescription
Builder

getLifetimeOrBuilder()

public DurationOrBuilder getLifetimeOrBuilder()

For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'.

.google.protobuf.Duration lifetime = 5;

Returns
TypeDescription
DurationOrBuilder

getNotAfterTime()

public Timestamp getNotAfterTime()

The time at which the certificate expires.

.google.protobuf.Timestamp not_after_time = 7;

Returns
TypeDescription
Timestamp

The notAfterTime.

getNotAfterTimeBuilder()

public Timestamp.Builder getNotAfterTimeBuilder()

The time at which the certificate expires.

.google.protobuf.Timestamp not_after_time = 7;

Returns
TypeDescription
Builder

getNotAfterTimeOrBuilder()

public TimestampOrBuilder getNotAfterTimeOrBuilder()

The time at which the certificate expires.

.google.protobuf.Timestamp not_after_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getNotBeforeTime()

public Timestamp getNotBeforeTime()

The time at which the certificate becomes valid.

.google.protobuf.Timestamp not_before_time = 6;

Returns
TypeDescription
Timestamp

The notBeforeTime.

getNotBeforeTimeBuilder()

public Timestamp.Builder getNotBeforeTimeBuilder()

The time at which the certificate becomes valid.

.google.protobuf.Timestamp not_before_time = 6;

Returns
TypeDescription
Builder

getNotBeforeTimeOrBuilder()

public TimestampOrBuilder getNotBeforeTimeOrBuilder()

The time at which the certificate becomes valid.

.google.protobuf.Timestamp not_before_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getSubject()

public Subject getSubject()

Contains distinguished name fields such as the location and organization.

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

Returns
TypeDescription
Subject

The subject.

getSubjectAltName()

public SubjectAltNames getSubjectAltName()

The subject alternative name fields.

.google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3;

Returns
TypeDescription
SubjectAltNames

The subjectAltName.

getSubjectAltNameBuilder()

public SubjectAltNames.Builder getSubjectAltNameBuilder()

The subject alternative name fields.

.google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3;

Returns
TypeDescription
SubjectAltNames.Builder

getSubjectAltNameOrBuilder()

public SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder()

The subject alternative name fields.

.google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3;

Returns
TypeDescription
SubjectAltNamesOrBuilder

getSubjectBuilder()

public Subject.Builder getSubjectBuilder()

Contains distinguished name fields such as the location and organization.

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

Returns
TypeDescription
Subject.Builder

getSubjectOrBuilder()

public SubjectOrBuilder getSubjectOrBuilder()

Contains distinguished name fields such as the location and organization.

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

Returns
TypeDescription
SubjectOrBuilder

hasLifetime()

public boolean hasLifetime()

For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'.

.google.protobuf.Duration lifetime = 5;

Returns
TypeDescription
boolean

Whether the lifetime field is set.

hasNotAfterTime()

public boolean hasNotAfterTime()

The time at which the certificate expires.

.google.protobuf.Timestamp not_after_time = 7;

Returns
TypeDescription
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 = 6;

Returns
TypeDescription
boolean

Whether the notBeforeTime field is set.

hasSubject()

public boolean hasSubject()

Contains distinguished name fields such as the location and organization.

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

Returns
TypeDescription
boolean

Whether the subject field is set.

hasSubjectAltName()

public boolean hasSubjectAltName()

The subject alternative name fields.

.google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3;

Returns
TypeDescription
boolean

Whether the subjectAltName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CertificateDescription.SubjectDescription other)

public CertificateDescription.SubjectDescription.Builder mergeFrom(CertificateDescription.SubjectDescription other)
Parameter
NameDescription
otherCertificateDescription.SubjectDescription
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CertificateDescription.SubjectDescription.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CertificateDescription.SubjectDescription.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder
Overrides

mergeLifetime(Duration value)

public CertificateDescription.SubjectDescription.Builder mergeLifetime(Duration value)

For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'.

.google.protobuf.Duration lifetime = 5;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

mergeNotAfterTime(Timestamp value)

public CertificateDescription.SubjectDescription.Builder mergeNotAfterTime(Timestamp value)

The time at which the certificate expires.

.google.protobuf.Timestamp not_after_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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 = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

mergeSubject(Subject value)

public CertificateDescription.SubjectDescription.Builder mergeSubject(Subject value)

Contains distinguished name fields such as the location and organization.

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

Parameter
NameDescription
valueSubject
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

mergeSubjectAltName(SubjectAltNames value)

public CertificateDescription.SubjectDescription.Builder mergeSubjectAltName(SubjectAltNames value)

The subject alternative name fields.

.google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3;

Parameter
NameDescription
valueSubjectAltNames
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateDescription.SubjectDescription.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder
Overrides

setCommonName(String value)

public CertificateDescription.SubjectDescription.Builder setCommonName(String value)

The "common name" of the distinguished name.

string common_name = 2;

Parameter
NameDescription
valueString

The commonName to set.

Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

This builder for chaining.

setCommonNameBytes(ByteString value)

public CertificateDescription.SubjectDescription.Builder setCommonNameBytes(ByteString value)

The "common name" of the distinguished name.

string common_name = 2;

Parameter
NameDescription
valueByteString

The bytes for commonName to set.

Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateDescription.SubjectDescription.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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 = 4;

Parameter
NameDescription
valueString

The hexSerialNumber to set.

Returns
TypeDescription
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 = 4;

Parameter
NameDescription
valueByteString

The bytes for hexSerialNumber to set.

Returns
TypeDescription
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. Corresponds to 'not_after_time' - 'not_before_time'.

.google.protobuf.Duration lifetime = 5;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

setLifetime(Duration.Builder builderForValue)

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

For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'.

.google.protobuf.Duration lifetime = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

setNotAfterTime(Timestamp value)

public CertificateDescription.SubjectDescription.Builder setNotAfterTime(Timestamp value)

The time at which the certificate expires.

.google.protobuf.Timestamp not_after_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

setNotAfterTime(Timestamp.Builder builderForValue)

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

The time at which the certificate expires.

.google.protobuf.Timestamp not_after_time = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
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 = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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 = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

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

public CertificateDescription.SubjectDescription.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder
Overrides

setSubject(Subject value)

public CertificateDescription.SubjectDescription.Builder setSubject(Subject value)

Contains distinguished name fields such as the location and organization.

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

Parameter
NameDescription
valueSubject
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

setSubject(Subject.Builder builderForValue)

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

Contains distinguished name fields such as the location and organization.

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

Parameter
NameDescription
builderForValueSubject.Builder
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

setSubjectAltName(SubjectAltNames value)

public CertificateDescription.SubjectDescription.Builder setSubjectAltName(SubjectAltNames value)

The subject alternative name fields.

.google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3;

Parameter
NameDescription
valueSubjectAltNames
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

setSubjectAltName(SubjectAltNames.Builder builderForValue)

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

The subject alternative name fields.

.google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3;

Parameter
NameDescription
builderForValueSubjectAltNames.Builder
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CertificateDescription.SubjectDescription.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CertificateDescription.SubjectDescription.Builder
Overrides