Class CertificateDescription.SubjectDescription
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription
-
- All Implemented Interfaces:
CertificateDescription.SubjectDescriptionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- CertificateDescription
public static final class CertificateDescription.SubjectDescription extends com.google.protobuf.GeneratedMessageV3 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 typegoogle.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCertificateDescription.SubjectDescription.BuilderThese values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCOMMON_NAME_FIELD_NUMBERstatic intHEX_SERIAL_NUMBER_FIELD_NUMBERstatic intLIFETIME_FIELD_NUMBERstatic intNOT_AFTER_TIME_FIELD_NUMBERstatic intNOT_BEFORE_TIME_FIELD_NUMBERstatic intSUBJECT_ALT_NAME_FIELD_NUMBERstatic intSUBJECT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetCommonName()The "common name" of the distinguished name.com.google.protobuf.ByteStringgetCommonNameBytes()The "common name" of the distinguished name.static CertificateDescription.SubjectDescriptiongetDefaultInstance()CertificateDescription.SubjectDescriptiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetHexSerialNumber()The serial number encoded in lowercase hexadecimal.com.google.protobuf.ByteStringgetHexSerialNumberBytes()The serial number encoded in lowercase hexadecimal.com.google.protobuf.DurationgetLifetime()For convenience, the actual lifetime of an issued certificate.com.google.protobuf.DurationOrBuildergetLifetimeOrBuilder()For convenience, the actual lifetime of an issued certificate.com.google.protobuf.TimestampgetNotAfterTime()The time at which the certificate expires.com.google.protobuf.TimestampOrBuildergetNotAfterTimeOrBuilder()The time at which the certificate expires.com.google.protobuf.TimestampgetNotBeforeTime()The time at which the certificate becomes valid.com.google.protobuf.TimestampOrBuildergetNotBeforeTimeOrBuilder()The time at which the certificate becomes valid.com.google.protobuf.Parser<CertificateDescription.SubjectDescription>getParserForType()intgetSerializedSize()SubjectgetSubject()Contains distinguished name fields such as the location and organization.SubjectAltNamesgetSubjectAltName()The subject alternative name fields.SubjectAltNamesOrBuildergetSubjectAltNameOrBuilder()The subject alternative name fields.SubjectOrBuildergetSubjectOrBuilder()Contains distinguished name fields such as the location and organization.inthashCode()booleanhasLifetime()For convenience, the actual lifetime of an issued certificate.booleanhasNotAfterTime()The time at which the certificate expires.booleanhasNotBeforeTime()The time at which the certificate becomes valid.booleanhasSubject()Contains distinguished name fields such as the location and organization.booleanhasSubjectAltName()The subject alternative name fields.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static CertificateDescription.SubjectDescription.BuildernewBuilder()static CertificateDescription.SubjectDescription.BuildernewBuilder(CertificateDescription.SubjectDescription prototype)CertificateDescription.SubjectDescription.BuildernewBuilderForType()protected CertificateDescription.SubjectDescription.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static CertificateDescription.SubjectDescriptionparseDelimitedFrom(InputStream input)static CertificateDescription.SubjectDescriptionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CertificateDescription.SubjectDescriptionparseFrom(byte[] data)static CertificateDescription.SubjectDescriptionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CertificateDescription.SubjectDescriptionparseFrom(com.google.protobuf.ByteString data)static CertificateDescription.SubjectDescriptionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CertificateDescription.SubjectDescriptionparseFrom(com.google.protobuf.CodedInputStream input)static CertificateDescription.SubjectDescriptionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CertificateDescription.SubjectDescriptionparseFrom(InputStream input)static CertificateDescription.SubjectDescriptionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CertificateDescription.SubjectDescriptionparseFrom(ByteBuffer data)static CertificateDescription.SubjectDescriptionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<CertificateDescription.SubjectDescription>parser()CertificateDescription.SubjectDescription.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SUBJECT_FIELD_NUMBER
public static final int SUBJECT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COMMON_NAME_FIELD_NUMBER
public static final int COMMON_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUBJECT_ALT_NAME_FIELD_NUMBER
public static final int SUBJECT_ALT_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEX_SERIAL_NUMBER_FIELD_NUMBER
public static final int HEX_SERIAL_NUMBER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIFETIME_FIELD_NUMBER
public static final int LIFETIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NOT_BEFORE_TIME_FIELD_NUMBER
public static final int NOT_BEFORE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NOT_AFTER_TIME_FIELD_NUMBER
public static final int NOT_AFTER_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasSubject
public boolean hasSubject()
Contains distinguished name fields such as the location and organization.
.google.cloud.security.privateca.v1beta1.Subject subject = 1;- Specified by:
hasSubjectin interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- Whether the subject field is set.
-
getSubject
public Subject getSubject()
Contains distinguished name fields such as the location and organization.
.google.cloud.security.privateca.v1beta1.Subject subject = 1;- Specified by:
getSubjectin interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- The subject.
-
getSubjectOrBuilder
public SubjectOrBuilder getSubjectOrBuilder()
Contains distinguished name fields such as the location and organization.
.google.cloud.security.privateca.v1beta1.Subject subject = 1;- Specified by:
getSubjectOrBuilderin interfaceCertificateDescription.SubjectDescriptionOrBuilder
-
getCommonName
public String getCommonName()
The "common name" of the distinguished name.
string common_name = 2;- Specified by:
getCommonNamein interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- The commonName.
-
getCommonNameBytes
public com.google.protobuf.ByteString getCommonNameBytes()
The "common name" of the distinguished name.
string common_name = 2;- Specified by:
getCommonNameBytesin interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- The bytes for commonName.
-
hasSubjectAltName
public boolean hasSubjectAltName()
The subject alternative name fields.
.google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3;- Specified by:
hasSubjectAltNamein interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- Whether the subjectAltName field is set.
-
getSubjectAltName
public SubjectAltNames getSubjectAltName()
The subject alternative name fields.
.google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3;- Specified by:
getSubjectAltNamein interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- The subjectAltName.
-
getSubjectAltNameOrBuilder
public SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder()
The subject alternative name fields.
.google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3;- Specified by:
getSubjectAltNameOrBuilderin interfaceCertificateDescription.SubjectDescriptionOrBuilder
-
getHexSerialNumber
public String getHexSerialNumber()
The serial number encoded in lowercase hexadecimal.
string hex_serial_number = 4;- 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 = 4;- Specified by:
getHexSerialNumberBytesin interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- The bytes for hexSerialNumber.
-
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;- 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. Corresponds to 'not_after_time' - 'not_before_time'.
.google.protobuf.Duration lifetime = 5;- Specified by:
getLifetimein interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- The lifetime.
-
getLifetimeOrBuilder
public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder()
For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'.
.google.protobuf.Duration lifetime = 5;- Specified by:
getLifetimeOrBuilderin interfaceCertificateDescription.SubjectDescriptionOrBuilder
-
hasNotBeforeTime
public boolean hasNotBeforeTime()
The time at which the certificate becomes valid.
.google.protobuf.Timestamp not_before_time = 6;- 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 = 6;- Specified by:
getNotBeforeTimein interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- The notBeforeTime.
-
getNotBeforeTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder()
The time at which the certificate becomes valid.
.google.protobuf.Timestamp not_before_time = 6;- Specified by:
getNotBeforeTimeOrBuilderin interfaceCertificateDescription.SubjectDescriptionOrBuilder
-
hasNotAfterTime
public boolean hasNotAfterTime()
The time at which the certificate expires.
.google.protobuf.Timestamp not_after_time = 7;- Specified by:
hasNotAfterTimein interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- Whether the notAfterTime field is set.
-
getNotAfterTime
public com.google.protobuf.Timestamp getNotAfterTime()
The time at which the certificate expires.
.google.protobuf.Timestamp not_after_time = 7;- Specified by:
getNotAfterTimein interfaceCertificateDescription.SubjectDescriptionOrBuilder- Returns:
- The notAfterTime.
-
getNotAfterTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder()
The time at which the certificate expires.
.google.protobuf.Timestamp not_after_time = 7;- Specified by:
getNotAfterTimeOrBuilderin interfaceCertificateDescription.SubjectDescriptionOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CertificateDescription.SubjectDescription parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CertificateDescription.SubjectDescription parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CertificateDescription.SubjectDescription parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CertificateDescription.SubjectDescription parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CertificateDescription.SubjectDescription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CertificateDescription.SubjectDescription parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CertificateDescription.SubjectDescription parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CertificateDescription.SubjectDescription parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CertificateDescription.SubjectDescription parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CertificateDescription.SubjectDescription parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static CertificateDescription.SubjectDescription parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CertificateDescription.SubjectDescription parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public CertificateDescription.SubjectDescription.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CertificateDescription.SubjectDescription.Builder newBuilder()
-
newBuilder
public static CertificateDescription.SubjectDescription.Builder newBuilder(CertificateDescription.SubjectDescription prototype)
-
toBuilder
public CertificateDescription.SubjectDescription.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CertificateDescription.SubjectDescription.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static CertificateDescription.SubjectDescription getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CertificateDescription.SubjectDescription> parser()
-
getParserForType
public com.google.protobuf.Parser<CertificateDescription.SubjectDescription> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CertificateDescription.SubjectDescription getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-