Class CertificateDescription.Builder

  • All Implemented Interfaces:
    CertificateDescriptionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    CertificateDescription

    public static final class CertificateDescription.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CertificateDescription.Builder>
    implements CertificateDescriptionOrBuilder
     A [CertificateDescription][google.cloud.security.privateca.v1beta1.CertificateDescription] describes an X.509 certificate or CSR that has
     been issued, as an alternative to using ASN.1 / X.509.
     
    Protobuf type google.cloud.security.privateca.v1beta1.CertificateDescription
    • Method Detail

      • getDescriptor

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

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

        public CertificateDescription.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.GeneratedMessageV3.Builder<CertificateDescription.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.GeneratedMessageV3.Builder<CertificateDescription.Builder>
      • getDefaultInstanceForType

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

        public CertificateDescription build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CertificateDescription buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public CertificateDescription.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CertificateDescription.Builder>
      • clearField

        public CertificateDescription.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CertificateDescription.Builder>
      • clearOneof

        public CertificateDescription.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CertificateDescription.Builder>
      • setRepeatedField

        public CertificateDescription.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CertificateDescription.Builder>
      • addRepeatedField

        public CertificateDescription.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CertificateDescription.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CertificateDescription.Builder>
      • mergeFrom

        public CertificateDescription.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.Builder>
        Throws:
        IOException
      • hasSubjectDescription

        public boolean hasSubjectDescription()
         Describes some of the values in a certificate that are related to the
         subject and lifetime.
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1;
        Specified by:
        hasSubjectDescription in interface CertificateDescriptionOrBuilder
        Returns:
        Whether the subjectDescription field is set.
      • clearSubjectDescription

        public CertificateDescription.Builder clearSubjectDescription()
         Describes some of the values in a certificate that are related to the
         subject and lifetime.
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1;
      • getSubjectDescriptionBuilder

        public CertificateDescription.SubjectDescription.Builder getSubjectDescriptionBuilder()
         Describes some of the values in a certificate that are related to the
         subject and lifetime.
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1;
      • hasConfigValues

        public boolean hasConfigValues()
         Describes some of the technical fields in a certificate.
         
        .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2;
        Specified by:
        hasConfigValues in interface CertificateDescriptionOrBuilder
        Returns:
        Whether the configValues field is set.
      • clearConfigValues

        public CertificateDescription.Builder clearConfigValues()
         Describes some of the technical fields in a certificate.
         
        .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2;
      • getConfigValuesBuilder

        public ReusableConfigValues.Builder getConfigValuesBuilder()
         Describes some of the technical fields in a certificate.
         
        .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2;
      • hasPublicKey

        public boolean hasPublicKey()
         The public key that corresponds to an issued certificate.
         
        .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3;
        Specified by:
        hasPublicKey in interface CertificateDescriptionOrBuilder
        Returns:
        Whether the publicKey field is set.
      • getPublicKey

        public PublicKey getPublicKey()
         The public key that corresponds to an issued certificate.
         
        .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3;
        Specified by:
        getPublicKey in interface CertificateDescriptionOrBuilder
        Returns:
        The publicKey.
      • setPublicKey

        public CertificateDescription.Builder setPublicKey​(PublicKey value)
         The public key that corresponds to an issued certificate.
         
        .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3;
      • mergePublicKey

        public CertificateDescription.Builder mergePublicKey​(PublicKey value)
         The public key that corresponds to an issued certificate.
         
        .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3;
      • clearPublicKey

        public CertificateDescription.Builder clearPublicKey()
         The public key that corresponds to an issued certificate.
         
        .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3;
      • getPublicKeyBuilder

        public PublicKey.Builder getPublicKeyBuilder()
         The public key that corresponds to an issued certificate.
         
        .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3;
      • hasSubjectKeyId

        public boolean hasSubjectKeyId()
         Provides a means of identifiying certificates that contain a particular
         public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4;
        Specified by:
        hasSubjectKeyId in interface CertificateDescriptionOrBuilder
        Returns:
        Whether the subjectKeyId field is set.
      • getSubjectKeyId

        public CertificateDescription.KeyId getSubjectKeyId()
         Provides a means of identifiying certificates that contain a particular
         public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4;
        Specified by:
        getSubjectKeyId in interface CertificateDescriptionOrBuilder
        Returns:
        The subjectKeyId.
      • setSubjectKeyId

        public CertificateDescription.Builder setSubjectKeyId​(CertificateDescription.KeyId value)
         Provides a means of identifiying certificates that contain a particular
         public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4;
      • setSubjectKeyId

        public CertificateDescription.Builder setSubjectKeyId​(CertificateDescription.KeyId.Builder builderForValue)
         Provides a means of identifiying certificates that contain a particular
         public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4;
      • mergeSubjectKeyId

        public CertificateDescription.Builder mergeSubjectKeyId​(CertificateDescription.KeyId value)
         Provides a means of identifiying certificates that contain a particular
         public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4;
      • clearSubjectKeyId

        public CertificateDescription.Builder clearSubjectKeyId()
         Provides a means of identifiying certificates that contain a particular
         public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4;
      • getSubjectKeyIdBuilder

        public CertificateDescription.KeyId.Builder getSubjectKeyIdBuilder()
         Provides a means of identifiying certificates that contain a particular
         public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4;
      • hasAuthorityKeyId

        public boolean hasAuthorityKeyId()
         Identifies the subject_key_id of the parent certificate, per
         https://tools.ietf.org/html/rfc5280#section-4.2.1.1
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5;
        Specified by:
        hasAuthorityKeyId in interface CertificateDescriptionOrBuilder
        Returns:
        Whether the authorityKeyId field is set.
      • getAuthorityKeyId

        public CertificateDescription.KeyId getAuthorityKeyId()
         Identifies the subject_key_id of the parent certificate, per
         https://tools.ietf.org/html/rfc5280#section-4.2.1.1
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5;
        Specified by:
        getAuthorityKeyId in interface CertificateDescriptionOrBuilder
        Returns:
        The authorityKeyId.
      • setAuthorityKeyId

        public CertificateDescription.Builder setAuthorityKeyId​(CertificateDescription.KeyId value)
         Identifies the subject_key_id of the parent certificate, per
         https://tools.ietf.org/html/rfc5280#section-4.2.1.1
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5;
      • setAuthorityKeyId

        public CertificateDescription.Builder setAuthorityKeyId​(CertificateDescription.KeyId.Builder builderForValue)
         Identifies the subject_key_id of the parent certificate, per
         https://tools.ietf.org/html/rfc5280#section-4.2.1.1
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5;
      • mergeAuthorityKeyId

        public CertificateDescription.Builder mergeAuthorityKeyId​(CertificateDescription.KeyId value)
         Identifies the subject_key_id of the parent certificate, per
         https://tools.ietf.org/html/rfc5280#section-4.2.1.1
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5;
      • clearAuthorityKeyId

        public CertificateDescription.Builder clearAuthorityKeyId()
         Identifies the subject_key_id of the parent certificate, per
         https://tools.ietf.org/html/rfc5280#section-4.2.1.1
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5;
      • getAuthorityKeyIdBuilder

        public CertificateDescription.KeyId.Builder getAuthorityKeyIdBuilder()
         Identifies the subject_key_id of the parent certificate, per
         https://tools.ietf.org/html/rfc5280#section-4.2.1.1
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5;
      • getCrlDistributionPointsList

        public com.google.protobuf.ProtocolStringList getCrlDistributionPointsList()
         Describes a list of locations to obtain CRL information, i.e.
         the DistributionPoint.fullName described by
         https://tools.ietf.org/html/rfc5280#section-4.2.1.13
         
        repeated string crl_distribution_points = 6;
        Specified by:
        getCrlDistributionPointsList in interface CertificateDescriptionOrBuilder
        Returns:
        A list containing the crlDistributionPoints.
      • getCrlDistributionPointsCount

        public int getCrlDistributionPointsCount()
         Describes a list of locations to obtain CRL information, i.e.
         the DistributionPoint.fullName described by
         https://tools.ietf.org/html/rfc5280#section-4.2.1.13
         
        repeated string crl_distribution_points = 6;
        Specified by:
        getCrlDistributionPointsCount in interface CertificateDescriptionOrBuilder
        Returns:
        The count of crlDistributionPoints.
      • getCrlDistributionPoints

        public String getCrlDistributionPoints​(int index)
         Describes a list of locations to obtain CRL information, i.e.
         the DistributionPoint.fullName described by
         https://tools.ietf.org/html/rfc5280#section-4.2.1.13
         
        repeated string crl_distribution_points = 6;
        Specified by:
        getCrlDistributionPoints in interface CertificateDescriptionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The crlDistributionPoints at the given index.
      • getCrlDistributionPointsBytes

        public com.google.protobuf.ByteString getCrlDistributionPointsBytes​(int index)
         Describes a list of locations to obtain CRL information, i.e.
         the DistributionPoint.fullName described by
         https://tools.ietf.org/html/rfc5280#section-4.2.1.13
         
        repeated string crl_distribution_points = 6;
        Specified by:
        getCrlDistributionPointsBytes in interface CertificateDescriptionOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the crlDistributionPoints at the given index.
      • setCrlDistributionPoints

        public CertificateDescription.Builder setCrlDistributionPoints​(int index,
                                                                       String value)
         Describes a list of locations to obtain CRL information, i.e.
         the DistributionPoint.fullName described by
         https://tools.ietf.org/html/rfc5280#section-4.2.1.13
         
        repeated string crl_distribution_points = 6;
        Parameters:
        index - The index to set the value at.
        value - The crlDistributionPoints to set.
        Returns:
        This builder for chaining.
      • addCrlDistributionPoints

        public CertificateDescription.Builder addCrlDistributionPoints​(String value)
         Describes a list of locations to obtain CRL information, i.e.
         the DistributionPoint.fullName described by
         https://tools.ietf.org/html/rfc5280#section-4.2.1.13
         
        repeated string crl_distribution_points = 6;
        Parameters:
        value - The crlDistributionPoints to add.
        Returns:
        This builder for chaining.
      • addAllCrlDistributionPoints

        public CertificateDescription.Builder addAllCrlDistributionPoints​(Iterable<String> values)
         Describes a list of locations to obtain CRL information, i.e.
         the DistributionPoint.fullName described by
         https://tools.ietf.org/html/rfc5280#section-4.2.1.13
         
        repeated string crl_distribution_points = 6;
        Parameters:
        values - The crlDistributionPoints to add.
        Returns:
        This builder for chaining.
      • clearCrlDistributionPoints

        public CertificateDescription.Builder clearCrlDistributionPoints()
         Describes a list of locations to obtain CRL information, i.e.
         the DistributionPoint.fullName described by
         https://tools.ietf.org/html/rfc5280#section-4.2.1.13
         
        repeated string crl_distribution_points = 6;
        Returns:
        This builder for chaining.
      • addCrlDistributionPointsBytes

        public CertificateDescription.Builder addCrlDistributionPointsBytes​(com.google.protobuf.ByteString value)
         Describes a list of locations to obtain CRL information, i.e.
         the DistributionPoint.fullName described by
         https://tools.ietf.org/html/rfc5280#section-4.2.1.13
         
        repeated string crl_distribution_points = 6;
        Parameters:
        value - The bytes of the crlDistributionPoints to add.
        Returns:
        This builder for chaining.
      • getAiaIssuingCertificateUrlsList

        public com.google.protobuf.ProtocolStringList getAiaIssuingCertificateUrlsList()
         Describes lists of issuer CA certificate URLs that appear in the
         "Authority Information Access" extension in the certificate.
         
        repeated string aia_issuing_certificate_urls = 7;
        Specified by:
        getAiaIssuingCertificateUrlsList in interface CertificateDescriptionOrBuilder
        Returns:
        A list containing the aiaIssuingCertificateUrls.
      • getAiaIssuingCertificateUrlsCount

        public int getAiaIssuingCertificateUrlsCount()
         Describes lists of issuer CA certificate URLs that appear in the
         "Authority Information Access" extension in the certificate.
         
        repeated string aia_issuing_certificate_urls = 7;
        Specified by:
        getAiaIssuingCertificateUrlsCount in interface CertificateDescriptionOrBuilder
        Returns:
        The count of aiaIssuingCertificateUrls.
      • getAiaIssuingCertificateUrls

        public String getAiaIssuingCertificateUrls​(int index)
         Describes lists of issuer CA certificate URLs that appear in the
         "Authority Information Access" extension in the certificate.
         
        repeated string aia_issuing_certificate_urls = 7;
        Specified by:
        getAiaIssuingCertificateUrls in interface CertificateDescriptionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The aiaIssuingCertificateUrls at the given index.
      • getAiaIssuingCertificateUrlsBytes

        public com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes​(int index)
         Describes lists of issuer CA certificate URLs that appear in the
         "Authority Information Access" extension in the certificate.
         
        repeated string aia_issuing_certificate_urls = 7;
        Specified by:
        getAiaIssuingCertificateUrlsBytes in interface CertificateDescriptionOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the aiaIssuingCertificateUrls at the given index.
      • setAiaIssuingCertificateUrls

        public CertificateDescription.Builder setAiaIssuingCertificateUrls​(int index,
                                                                           String value)
         Describes lists of issuer CA certificate URLs that appear in the
         "Authority Information Access" extension in the certificate.
         
        repeated string aia_issuing_certificate_urls = 7;
        Parameters:
        index - The index to set the value at.
        value - The aiaIssuingCertificateUrls to set.
        Returns:
        This builder for chaining.
      • addAiaIssuingCertificateUrls

        public CertificateDescription.Builder addAiaIssuingCertificateUrls​(String value)
         Describes lists of issuer CA certificate URLs that appear in the
         "Authority Information Access" extension in the certificate.
         
        repeated string aia_issuing_certificate_urls = 7;
        Parameters:
        value - The aiaIssuingCertificateUrls to add.
        Returns:
        This builder for chaining.
      • addAllAiaIssuingCertificateUrls

        public CertificateDescription.Builder addAllAiaIssuingCertificateUrls​(Iterable<String> values)
         Describes lists of issuer CA certificate URLs that appear in the
         "Authority Information Access" extension in the certificate.
         
        repeated string aia_issuing_certificate_urls = 7;
        Parameters:
        values - The aiaIssuingCertificateUrls to add.
        Returns:
        This builder for chaining.
      • clearAiaIssuingCertificateUrls

        public CertificateDescription.Builder clearAiaIssuingCertificateUrls()
         Describes lists of issuer CA certificate URLs that appear in the
         "Authority Information Access" extension in the certificate.
         
        repeated string aia_issuing_certificate_urls = 7;
        Returns:
        This builder for chaining.
      • addAiaIssuingCertificateUrlsBytes

        public CertificateDescription.Builder addAiaIssuingCertificateUrlsBytes​(com.google.protobuf.ByteString value)
         Describes lists of issuer CA certificate URLs that appear in the
         "Authority Information Access" extension in the certificate.
         
        repeated string aia_issuing_certificate_urls = 7;
        Parameters:
        value - The bytes of the aiaIssuingCertificateUrls to add.
        Returns:
        This builder for chaining.
      • hasCertFingerprint

        public boolean hasCertFingerprint()
         The hash of the x.509 certificate.
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8;
        Specified by:
        hasCertFingerprint in interface CertificateDescriptionOrBuilder
        Returns:
        Whether the certFingerprint field is set.
      • clearCertFingerprint

        public CertificateDescription.Builder clearCertFingerprint()
         The hash of the x.509 certificate.
         
        .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8;
      • setUnknownFields

        public final CertificateDescription.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CertificateDescription.Builder>
      • mergeUnknownFields

        public final CertificateDescription.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CertificateDescription.Builder>