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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CertificateDescription.SubjectDescription.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CertificateDescription.SubjectDescription.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CertificateDescription.SubjectDescription.Builder>
    • getDefaultInstanceForType

      public CertificateDescription.SubjectDescription getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CertificateDescription.SubjectDescription.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CertificateDescription.SubjectDescription.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasSubject in interface CertificateDescription.SubjectDescriptionOrBuilder
      Returns:
      Whether the subject field is set.
    • getSubject

      public Subject getSubject()
       Contains distinguished name fields such as the common name, location and
       / organization.
       
      .google.cloud.security.privateca.v1.Subject subject = 1;
      Specified by:
      getSubject in interface CertificateDescription.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

       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

      public Subject.Builder getSubjectBuilder()
       Contains distinguished name fields such as the common name, location and
       / organization.
       
      .google.cloud.security.privateca.v1.Subject subject = 1;
    • getSubjectOrBuilder

      public SubjectOrBuilder getSubjectOrBuilder()
       Contains distinguished name fields such as the common name, location and
       / organization.
       
      .google.cloud.security.privateca.v1.Subject subject = 1;
      Specified by:
      getSubjectOrBuilder in interface CertificateDescription.SubjectDescriptionOrBuilder
    • hasSubjectAltName

      public boolean hasSubjectAltName()
       The subject alternative name fields.
       
      .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;
      Specified by:
      hasSubjectAltName in interface CertificateDescription.SubjectDescriptionOrBuilder
      Returns:
      Whether the subjectAltName field is set.
    • getSubjectAltName

      public SubjectAltNames getSubjectAltName()
       The subject alternative name fields.
       
      .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;
      Specified by:
      getSubjectAltName in interface CertificateDescription.SubjectDescriptionOrBuilder
      Returns:
      The subjectAltName.
    • setSubjectAltName

       The subject alternative name fields.
       
      .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;
    • setSubjectAltName

       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

      public SubjectAltNames.Builder getSubjectAltNameBuilder()
       The subject alternative name fields.
       
      .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;
    • getSubjectAltNameOrBuilder

      public SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder()
       The subject alternative name fields.
       
      .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2;
      Specified by:
      getSubjectAltNameOrBuilder in interface CertificateDescription.SubjectDescriptionOrBuilder
    • getHexSerialNumber

      public String getHexSerialNumber()
       The serial number encoded in lowercase hexadecimal.
       
      string hex_serial_number = 3;
      Specified by:
      getHexSerialNumber in interface CertificateDescription.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:
      getHexSerialNumberBytes in interface CertificateDescription.SubjectDescriptionOrBuilder
      Returns:
      The bytes for hexSerialNumber.
    • setHexSerialNumber

      public CertificateDescription.SubjectDescription.Builder setHexSerialNumber(String value)
       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:
      hasLifetime in interface CertificateDescription.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:
      getLifetime in interface CertificateDescription.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:
      getLifetimeOrBuilder in interface CertificateDescription.SubjectDescriptionOrBuilder
    • hasNotBeforeTime

      public boolean hasNotBeforeTime()
       The time at which the certificate becomes valid.
       
      .google.protobuf.Timestamp not_before_time = 5;
      Specified by:
      hasNotBeforeTime in interface CertificateDescription.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:
      getNotBeforeTime in interface CertificateDescription.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:
      getNotBeforeTimeOrBuilder in interface CertificateDescription.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:
      hasNotAfterTime in interface CertificateDescription.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:
      getNotAfterTime in interface CertificateDescription.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:
      getNotAfterTimeOrBuilder in interface CertificateDescription.SubjectDescriptionOrBuilder