Class CertificateRevocationList.Builder

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

    public static final class CertificateRevocationList.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CertificateRevocationList.Builder>
    implements CertificateRevocationListOrBuilder
     A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] corresponds to a signed X.509 certificate
     Revocation List (CRL). A CRL contains the serial numbers of certificates that
     should no longer be trusted.
     
    Protobuf type google.cloud.security.privateca.v1beta1.CertificateRevocationList
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CertificateRevocationList.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CertificateRevocationList.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CertificateRevocationList.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<CertificateRevocationList.Builder>
      • getDefaultInstanceForType

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

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

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

        public CertificateRevocationList.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<CertificateRevocationList.Builder>
      • isInitialized

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

        public CertificateRevocationList.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<CertificateRevocationList.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
         the format
         `projects/*/locations/*/certificateAuthorities/*/
            certificateRevocationLists/*`.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface CertificateRevocationListOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
         the format
         `projects/*/locations/*/certificateAuthorities/*/
            certificateRevocationLists/*`.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface CertificateRevocationListOrBuilder
        Returns:
        The bytes for name.
      • setName

        public CertificateRevocationList.Builder setName​(String value)
         Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
         the format
         `projects/*/locations/*/certificateAuthorities/*/
            certificateRevocationLists/*`.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public CertificateRevocationList.Builder clearName()
         Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
         the format
         `projects/*/locations/*/certificateAuthorities/*/
            certificateRevocationLists/*`.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public CertificateRevocationList.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
         the format
         `projects/*/locations/*/certificateAuthorities/*/
            certificateRevocationLists/*`.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getSequenceNumber

        public long getSequenceNumber()
         Output only. The CRL sequence number that appears in pem_crl.
         
        int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSequenceNumber in interface CertificateRevocationListOrBuilder
        Returns:
        The sequenceNumber.
      • setSequenceNumber

        public CertificateRevocationList.Builder setSequenceNumber​(long value)
         Output only. The CRL sequence number that appears in pem_crl.
         
        int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The sequenceNumber to set.
        Returns:
        This builder for chaining.
      • clearSequenceNumber

        public CertificateRevocationList.Builder clearSequenceNumber()
         Output only. The CRL sequence number that appears in pem_crl.
         
        int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getRevokedCertificatesCount

        public int getRevokedCertificatesCount()
         Output only. The revoked serial numbers that appear in pem_crl.
         
        repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRevokedCertificatesCount in interface CertificateRevocationListOrBuilder
      • setRevokedCertificates

        public CertificateRevocationList.Builder setRevokedCertificates​(int index,
                                                                        CertificateRevocationList.RevokedCertificate value)
         Output only. The revoked serial numbers that appear in pem_crl.
         
        repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addRevokedCertificates

        public CertificateRevocationList.Builder addRevokedCertificates​(int index,
                                                                        CertificateRevocationList.RevokedCertificate value)
         Output only. The revoked serial numbers that appear in pem_crl.
         
        repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearRevokedCertificates

        public CertificateRevocationList.Builder clearRevokedCertificates()
         Output only. The revoked serial numbers that appear in pem_crl.
         
        repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • removeRevokedCertificates

        public CertificateRevocationList.Builder removeRevokedCertificates​(int index)
         Output only. The revoked serial numbers that appear in pem_crl.
         
        repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getRevokedCertificatesBuilder

        public CertificateRevocationList.RevokedCertificate.Builder getRevokedCertificatesBuilder​(int index)
         Output only. The revoked serial numbers that appear in pem_crl.
         
        repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addRevokedCertificatesBuilder

        public CertificateRevocationList.RevokedCertificate.Builder addRevokedCertificatesBuilder()
         Output only. The revoked serial numbers that appear in pem_crl.
         
        repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addRevokedCertificatesBuilder

        public CertificateRevocationList.RevokedCertificate.Builder addRevokedCertificatesBuilder​(int index)
         Output only. The revoked serial numbers that appear in pem_crl.
         
        repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getRevokedCertificatesBuilderList

        public List<CertificateRevocationList.RevokedCertificate.Builder> getRevokedCertificatesBuilderList()
         Output only. The revoked serial numbers that appear in pem_crl.
         
        repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getPemCrlBytes

        public com.google.protobuf.ByteString getPemCrlBytes()
         Output only. The PEM-encoded X.509 CRL.
         
        string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPemCrlBytes in interface CertificateRevocationListOrBuilder
        Returns:
        The bytes for pemCrl.
      • setPemCrl

        public CertificateRevocationList.Builder setPemCrl​(String value)
         Output only. The PEM-encoded X.509 CRL.
         
        string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The pemCrl to set.
        Returns:
        This builder for chaining.
      • clearPemCrl

        public CertificateRevocationList.Builder clearPemCrl()
         Output only. The PEM-encoded X.509 CRL.
         
        string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setPemCrlBytes

        public CertificateRevocationList.Builder setPemCrlBytes​(com.google.protobuf.ByteString value)
         Output only. The PEM-encoded X.509 CRL.
         
        string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for pemCrl to set.
        Returns:
        This builder for chaining.
      • getAccessUrl

        public String getAccessUrl()
         Output only. The location where 'pem_crl' can be accessed.
         
        string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAccessUrl in interface CertificateRevocationListOrBuilder
        Returns:
        The accessUrl.
      • getAccessUrlBytes

        public com.google.protobuf.ByteString getAccessUrlBytes()
         Output only. The location where 'pem_crl' can be accessed.
         
        string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAccessUrlBytes in interface CertificateRevocationListOrBuilder
        Returns:
        The bytes for accessUrl.
      • setAccessUrl

        public CertificateRevocationList.Builder setAccessUrl​(String value)
         Output only. The location where 'pem_crl' can be accessed.
         
        string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The accessUrl to set.
        Returns:
        This builder for chaining.
      • clearAccessUrl

        public CertificateRevocationList.Builder clearAccessUrl()
         Output only. The location where 'pem_crl' can be accessed.
         
        string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setAccessUrlBytes

        public CertificateRevocationList.Builder setAccessUrlBytes​(com.google.protobuf.ByteString value)
         Output only. The location where 'pem_crl' can be accessed.
         
        string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for accessUrl to set.
        Returns:
        This builder for chaining.
      • getStateValue

        public int getStateValue()
         Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
         
        .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface CertificateRevocationListOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public CertificateRevocationList.Builder setStateValue​(int value)
         Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
         
        .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public CertificateRevocationList.State getState()
         Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
         
        .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface CertificateRevocationListOrBuilder
        Returns:
        The state.
      • setState

        public CertificateRevocationList.Builder setState​(CertificateRevocationList.State value)
         Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
         
        .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public CertificateRevocationList.Builder clearState()
         Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
         
        .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface CertificateRevocationListOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface CertificateRevocationListOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public CertificateRevocationList.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public CertificateRevocationList.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public CertificateRevocationList.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public CertificateRevocationList.Builder clearCreateTime()
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface CertificateRevocationListOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface CertificateRevocationListOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface CertificateRevocationListOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public CertificateRevocationList.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public CertificateRevocationList.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public CertificateRevocationList.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public CertificateRevocationList.Builder clearUpdateTime()
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface CertificateRevocationListOrBuilder
      • removeLabels

        public CertificateRevocationList.Builder removeLabels​(String key)
         Optional. Labels with user-defined metadata.
         
        map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • setUnknownFields

        public final CertificateRevocationList.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<CertificateRevocationList.Builder>
      • mergeUnknownFields

        public final CertificateRevocationList.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<CertificateRevocationList.Builder>