Class CertificateDescription.SubjectDescription.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CertificateDescription.SubjectDescription.Builder>
com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder
- All Implemented Interfaces:
CertificateDescription.SubjectDescriptionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CertificateDescription.SubjectDescription
public static final class CertificateDescription.SubjectDescription.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The serial number encoded in lowercase hexadecimal.For convenience, the actual lifetime of an issued certificate.The time after which the certificate is expired.The time at which the certificate becomes valid.Contains distinguished name fields such as the common name, location and / organization.The subject alternative name fields.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe serial number encoded in lowercase hexadecimal.com.google.protobuf.ByteStringThe serial number encoded in lowercase hexadecimal.com.google.protobuf.DurationFor convenience, the actual lifetime of an issued certificate.com.google.protobuf.Duration.BuilderFor convenience, the actual lifetime of an issued certificate.com.google.protobuf.DurationOrBuilderFor convenience, the actual lifetime of an issued certificate.com.google.protobuf.TimestampThe time after which the certificate is expired.com.google.protobuf.Timestamp.BuilderThe time after which the certificate is expired.com.google.protobuf.TimestampOrBuilderThe time after which the certificate is expired.com.google.protobuf.TimestampThe time at which the certificate becomes valid.com.google.protobuf.Timestamp.BuilderThe time at which the certificate becomes valid.com.google.protobuf.TimestampOrBuilderThe time at which the certificate becomes valid.Contains distinguished name fields such as the common name, location and / organization.The subject alternative name fields.The subject alternative name fields.The subject alternative name fields.Contains distinguished name fields such as the common name, location and / organization.Contains distinguished name fields such as the common name, location and / organization.booleanFor convenience, the actual lifetime of an issued certificate.booleanThe time after which the certificate is expired.booleanThe time at which the certificate becomes valid.booleanContains distinguished name fields such as the common name, location and / organization.booleanThe subject alternative name fields.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLifetime(com.google.protobuf.Duration value) For convenience, the actual lifetime of an issued certificate.mergeNotAfterTime(com.google.protobuf.Timestamp value) The time after which the certificate is expired.mergeNotBeforeTime(com.google.protobuf.Timestamp value) The time at which the certificate becomes valid.mergeSubject(Subject value) Contains distinguished name fields such as the common name, location and / organization.The subject alternative name fields.setHexSerialNumber(String value) The serial number encoded in lowercase hexadecimal.setHexSerialNumberBytes(com.google.protobuf.ByteString value) The serial number encoded in lowercase hexadecimal.setLifetime(com.google.protobuf.Duration value) For convenience, the actual lifetime of an issued certificate.setLifetime(com.google.protobuf.Duration.Builder builderForValue) For convenience, the actual lifetime of an issued certificate.setNotAfterTime(com.google.protobuf.Timestamp value) The time after which the certificate is expired.setNotAfterTime(com.google.protobuf.Timestamp.Builder builderForValue) The time after which the certificate is expired.setNotBeforeTime(com.google.protobuf.Timestamp value) The time at which the certificate becomes valid.setNotBeforeTime(com.google.protobuf.Timestamp.Builder builderForValue) The time at which the certificate becomes valid.setSubject(Subject value) Contains distinguished name fields such as the common name, location and / organization.setSubject(Subject.Builder builderForValue) Contains distinguished name fields such as the common name, location and / organization.setSubjectAltName(SubjectAltNames value) The subject alternative name fields.setSubjectAltName(SubjectAltNames.Builder builderForValue) The subject alternative name fields.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CertificateDescription.SubjectDescription.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CertificateDescription.SubjectDescription.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CertificateDescription.SubjectDescription.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public CertificateDescription.SubjectDescription.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CertificateDescription.SubjectDescription.Builder>
-
mergeFrom
public CertificateDescription.SubjectDescription.Builder mergeFrom(CertificateDescription.SubjectDescription other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CertificateDescription.SubjectDescription.Builder>
-
mergeFrom
public CertificateDescription.SubjectDescription.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CertificateDescription.SubjectDescription.Builder>- Throws:
IOException
-
hasSubject
public boolean hasSubject()Contains distinguished name fields such as the common name, location and / organization.
.google.cloud.security.privateca.v1.Subject subject = 1;- Specified by:
hasSubjectin interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- Whether the subject field is set.
-
getSubject
Contains distinguished name fields such as the common name, location and / organization.
.google.cloud.security.privateca.v1.Subject subject = 1;- Specified by:
getSubjectin interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- The subject.
-
setSubject
Contains distinguished name fields such as the common name, location and / organization.
.google.cloud.security.privateca.v1.Subject subject = 1; -
setSubject
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; -
mergeSubject
Contains distinguished name fields such as the common name, location and / organization.
.google.cloud.security.privateca.v1.Subject subject = 1; -
clearSubject
Contains distinguished name fields such as the common name, location and / organization.
.google.cloud.security.privateca.v1.Subject subject = 1; -
getSubjectBuilder
Contains distinguished name fields such as the common name, location and / organization.
.google.cloud.security.privateca.v1.Subject subject = 1; -
getSubjectOrBuilder
Contains distinguished name fields such as the common name, location and / organization.
.google.cloud.security.privateca.v1.Subject subject = 1;- Specified by:
getSubjectOrBuilderin interfaceCertificateDescription.SubjectDescriptionOrBuilder
-
hasSubjectAltName
public boolean hasSubjectAltName()The subject alternative name fields.
.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;- Specified by:
hasSubjectAltNamein interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- Whether the subjectAltName field is set.
-
getSubjectAltName
The subject alternative name fields.
.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;- Specified by:
getSubjectAltNamein interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- The subjectAltName.
-
setSubjectAltName
The subject alternative name fields.
.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; -
setSubjectAltName
public CertificateDescription.SubjectDescription.Builder setSubjectAltName(SubjectAltNames.Builder builderForValue) The subject alternative name fields.
.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; -
mergeSubjectAltName
The subject alternative name fields.
.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; -
clearSubjectAltName
The subject alternative name fields.
.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; -
getSubjectAltNameBuilder
The subject alternative name fields.
.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; -
getSubjectAltNameOrBuilder
The subject alternative name fields.
.google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;- Specified by:
getSubjectAltNameOrBuilderin interfaceCertificateDescription.SubjectDescriptionOrBuilder
-
getHexSerialNumber
The serial number encoded in lowercase hexadecimal.
string hex_serial_number = 3;- Specified by:
getHexSerialNumberin interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- The hexSerialNumber.
-
getHexSerialNumberBytes
public com.google.protobuf.ByteString getHexSerialNumberBytes()The serial number encoded in lowercase hexadecimal.
string hex_serial_number = 3;- Specified by:
getHexSerialNumberBytesin interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- The bytes for hexSerialNumber.
-
setHexSerialNumber
The serial number encoded in lowercase hexadecimal.
string hex_serial_number = 3;- Parameters:
value- The hexSerialNumber to set.- Returns:
- This builder for chaining.
-
clearHexSerialNumber
The serial number encoded in lowercase hexadecimal.
string hex_serial_number = 3;- Returns:
- This builder for chaining.
-
setHexSerialNumberBytes
public CertificateDescription.SubjectDescription.Builder setHexSerialNumberBytes(com.google.protobuf.ByteString value) The serial number encoded in lowercase hexadecimal.
string hex_serial_number = 3;- Parameters:
value- The bytes for hexSerialNumber to set.- Returns:
- This builder for chaining.
-
hasLifetime
public boolean hasLifetime()For convenience, the actual lifetime of an issued certificate.
.google.protobuf.Duration lifetime = 4;- Specified by:
hasLifetimein interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- Whether the lifetime field is set.
-
getLifetime
public com.google.protobuf.Duration getLifetime()For convenience, the actual lifetime of an issued certificate.
.google.protobuf.Duration lifetime = 4;- Specified by:
getLifetimein interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- The lifetime.
-
setLifetime
public CertificateDescription.SubjectDescription.Builder setLifetime(com.google.protobuf.Duration value) For convenience, the actual lifetime of an issued certificate.
.google.protobuf.Duration lifetime = 4; -
setLifetime
public CertificateDescription.SubjectDescription.Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) For convenience, the actual lifetime of an issued certificate.
.google.protobuf.Duration lifetime = 4; -
mergeLifetime
public CertificateDescription.SubjectDescription.Builder mergeLifetime(com.google.protobuf.Duration value) For convenience, the actual lifetime of an issued certificate.
.google.protobuf.Duration lifetime = 4; -
clearLifetime
For convenience, the actual lifetime of an issued certificate.
.google.protobuf.Duration lifetime = 4; -
getLifetimeBuilder
public com.google.protobuf.Duration.Builder getLifetimeBuilder()For convenience, the actual lifetime of an issued certificate.
.google.protobuf.Duration lifetime = 4; -
getLifetimeOrBuilder
public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder()For convenience, the actual lifetime of an issued certificate.
.google.protobuf.Duration lifetime = 4;- Specified by:
getLifetimeOrBuilderin interfaceCertificateDescription.SubjectDescriptionOrBuilder
-
hasNotBeforeTime
public boolean hasNotBeforeTime()The time at which the certificate becomes valid.
.google.protobuf.Timestamp not_before_time = 5;- Specified by:
hasNotBeforeTimein interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- Whether the notBeforeTime field is set.
-
getNotBeforeTime
public com.google.protobuf.Timestamp getNotBeforeTime()The time at which the certificate becomes valid.
.google.protobuf.Timestamp not_before_time = 5;- Specified by:
getNotBeforeTimein interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- The notBeforeTime.
-
setNotBeforeTime
public CertificateDescription.SubjectDescription.Builder setNotBeforeTime(com.google.protobuf.Timestamp value) The time at which the certificate becomes valid.
.google.protobuf.Timestamp not_before_time = 5; -
setNotBeforeTime
public CertificateDescription.SubjectDescription.Builder setNotBeforeTime(com.google.protobuf.Timestamp.Builder builderForValue) The time at which the certificate becomes valid.
.google.protobuf.Timestamp not_before_time = 5; -
mergeNotBeforeTime
public CertificateDescription.SubjectDescription.Builder mergeNotBeforeTime(com.google.protobuf.Timestamp value) The time at which the certificate becomes valid.
.google.protobuf.Timestamp not_before_time = 5; -
clearNotBeforeTime
The time at which the certificate becomes valid.
.google.protobuf.Timestamp not_before_time = 5; -
getNotBeforeTimeBuilder
public com.google.protobuf.Timestamp.Builder getNotBeforeTimeBuilder()The time at which the certificate becomes valid.
.google.protobuf.Timestamp not_before_time = 5; -
getNotBeforeTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder()The time at which the certificate becomes valid.
.google.protobuf.Timestamp not_before_time = 5;- Specified by:
getNotBeforeTimeOrBuilderin interfaceCertificateDescription.SubjectDescriptionOrBuilder
-
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;- Specified by:
hasNotAfterTimein interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- Whether the notAfterTime field is set.
-
getNotAfterTime
public com.google.protobuf.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;- Specified by:
getNotAfterTimein interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- The notAfterTime.
-
setNotAfterTime
public CertificateDescription.SubjectDescription.Builder setNotAfterTime(com.google.protobuf.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; -
setNotAfterTime
public CertificateDescription.SubjectDescription.Builder setNotAfterTime(com.google.protobuf.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; -
mergeNotAfterTime
public CertificateDescription.SubjectDescription.Builder mergeNotAfterTime(com.google.protobuf.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; -
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; -
getNotAfterTimeBuilder
public com.google.protobuf.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; -
getNotAfterTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getNotAfterTimeOrBuilderin interfaceCertificateDescription.SubjectDescriptionOrBuilder
-