Class CertificateIdentityConstraints.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CertificateIdentityConstraints.Builder>
com.google.cloud.security.privateca.v1.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.GeneratedMessage.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 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<CertificateIdentityConstraints.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<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.GeneratedMessage.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

      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
    • mergeFrom

      public CertificateIdentityConstraints.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<CertificateIdentityConstraints.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<CertificateIdentityConstraints.Builder>
    • mergeFrom

      public CertificateIdentityConstraints.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<CertificateIdentityConstraints.Builder>
      Throws:
      IOException
    • 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 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(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(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(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 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 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.