Class CertificateIdentityConstraints.Builder

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

    public static final class CertificateIdentityConstraints.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CertificateIdentityConstraints.Builder>
    implements CertificateIdentityConstraintsOrBuilder
     Describes constraints on a
     [Certificate][google.cloud.security.privateca.v1.Certificate]'s
     [Subject][google.cloud.security.privateca.v1.Subject] and
     [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames].
     
    Protobuf type google.cloud.security.privateca.v1.CertificateIdentityConstraints
    • 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<CertificateIdentityConstraints.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<CertificateIdentityConstraints.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public boolean hasCelExpression()
         Optional. A CEL expression that may be used to validate the resolved X.509
         Subject and/or Subject Alternative Name before a certificate is signed. To
         see the full allowed syntax and some examples, see
         https://cloud.google.com/certificate-authority-service/docs/using-cel
         
        .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasCelExpression in interface CertificateIdentityConstraintsOrBuilder
        Returns:
        Whether the celExpression field is set.
      • getCelExpression

        public com.google.type.Expr getCelExpression()
         Optional. A CEL expression that may be used to validate the resolved X.509
         Subject and/or Subject Alternative Name before a certificate is signed. To
         see the full allowed syntax and some examples, see
         https://cloud.google.com/certificate-authority-service/docs/using-cel
         
        .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCelExpression in interface CertificateIdentityConstraintsOrBuilder
        Returns:
        The celExpression.
      • setCelExpression

        public CertificateIdentityConstraints.Builder setCelExpression​(com.google.type.Expr value)
         Optional. A CEL expression that may be used to validate the resolved X.509
         Subject and/or Subject Alternative Name before a certificate is signed. To
         see the full allowed syntax and some examples, see
         https://cloud.google.com/certificate-authority-service/docs/using-cel
         
        .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
      • setCelExpression

        public CertificateIdentityConstraints.Builder setCelExpression​(com.google.type.Expr.Builder builderForValue)
         Optional. A CEL expression that may be used to validate the resolved X.509
         Subject and/or Subject Alternative Name before a certificate is signed. To
         see the full allowed syntax and some examples, see
         https://cloud.google.com/certificate-authority-service/docs/using-cel
         
        .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
      • mergeCelExpression

        public CertificateIdentityConstraints.Builder mergeCelExpression​(com.google.type.Expr value)
         Optional. A CEL expression that may be used to validate the resolved X.509
         Subject and/or Subject Alternative Name before a certificate is signed. To
         see the full allowed syntax and some examples, see
         https://cloud.google.com/certificate-authority-service/docs/using-cel
         
        .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
      • clearCelExpression

        public CertificateIdentityConstraints.Builder clearCelExpression()
         Optional. A CEL expression that may be used to validate the resolved X.509
         Subject and/or Subject Alternative Name before a certificate is signed. To
         see the full allowed syntax and some examples, see
         https://cloud.google.com/certificate-authority-service/docs/using-cel
         
        .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
      • getCelExpressionBuilder

        public com.google.type.Expr.Builder getCelExpressionBuilder()
         Optional. A CEL expression that may be used to validate the resolved X.509
         Subject and/or Subject Alternative Name before a certificate is signed. To
         see the full allowed syntax and some examples, see
         https://cloud.google.com/certificate-authority-service/docs/using-cel
         
        .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
      • getCelExpressionOrBuilder

        public com.google.type.ExprOrBuilder getCelExpressionOrBuilder()
         Optional. A CEL expression that may be used to validate the resolved X.509
         Subject and/or Subject Alternative Name before a certificate is signed. To
         see the full allowed syntax and some examples, see
         https://cloud.google.com/certificate-authority-service/docs/using-cel
         
        .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCelExpressionOrBuilder in interface CertificateIdentityConstraintsOrBuilder
      • hasAllowSubjectPassthrough

        public boolean hasAllowSubjectPassthrough()
         Required. If this is true, the
         [Subject][google.cloud.security.privateca.v1.Subject] field may be copied
         from a certificate request into the signed certificate. Otherwise, the
         requested [Subject][google.cloud.security.privateca.v1.Subject] will be
         discarded.
         
        optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasAllowSubjectPassthrough in interface CertificateIdentityConstraintsOrBuilder
        Returns:
        Whether the allowSubjectPassthrough field is set.
      • getAllowSubjectPassthrough

        public boolean getAllowSubjectPassthrough()
         Required. If this is true, the
         [Subject][google.cloud.security.privateca.v1.Subject] field may be copied
         from a certificate request into the signed certificate. Otherwise, the
         requested [Subject][google.cloud.security.privateca.v1.Subject] will be
         discarded.
         
        optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAllowSubjectPassthrough in interface CertificateIdentityConstraintsOrBuilder
        Returns:
        The allowSubjectPassthrough.
      • setAllowSubjectPassthrough

        public CertificateIdentityConstraints.Builder setAllowSubjectPassthrough​(boolean value)
         Required. If this is true, the
         [Subject][google.cloud.security.privateca.v1.Subject] field may be copied
         from a certificate request into the signed certificate. Otherwise, the
         requested [Subject][google.cloud.security.privateca.v1.Subject] will be
         discarded.
         
        optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The allowSubjectPassthrough to set.
        Returns:
        This builder for chaining.
      • clearAllowSubjectPassthrough

        public CertificateIdentityConstraints.Builder clearAllowSubjectPassthrough()
         Required. If this is true, the
         [Subject][google.cloud.security.privateca.v1.Subject] field may be copied
         from a certificate request into the signed certificate. Otherwise, the
         requested [Subject][google.cloud.security.privateca.v1.Subject] will be
         discarded.
         
        optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • hasAllowSubjectAltNamesPassthrough

        public boolean hasAllowSubjectAltNamesPassthrough()
         Required. If this is true, the
         [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames]
         extension may be copied from a certificate request into the signed
         certificate. Otherwise, the requested
         [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will
         be discarded.
         
        optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasAllowSubjectAltNamesPassthrough in interface CertificateIdentityConstraintsOrBuilder
        Returns:
        Whether the allowSubjectAltNamesPassthrough field is set.
      • getAllowSubjectAltNamesPassthrough

        public boolean getAllowSubjectAltNamesPassthrough()
         Required. If this is true, the
         [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames]
         extension may be copied from a certificate request into the signed
         certificate. Otherwise, the requested
         [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will
         be discarded.
         
        optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAllowSubjectAltNamesPassthrough in interface CertificateIdentityConstraintsOrBuilder
        Returns:
        The allowSubjectAltNamesPassthrough.
      • setAllowSubjectAltNamesPassthrough

        public CertificateIdentityConstraints.Builder setAllowSubjectAltNamesPassthrough​(boolean value)
         Required. If this is true, the
         [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames]
         extension may be copied from a certificate request into the signed
         certificate. Otherwise, the requested
         [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will
         be discarded.
         
        optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The allowSubjectAltNamesPassthrough to set.
        Returns:
        This builder for chaining.
      • clearAllowSubjectAltNamesPassthrough

        public CertificateIdentityConstraints.Builder clearAllowSubjectAltNamesPassthrough()
         Required. If this is true, the
         [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames]
         extension may be copied from a certificate request into the signed
         certificate. Otherwise, the requested
         [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will
         be discarded.
         
        optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.