Class CertificateIdentityConstraints.Builder (2.55.0)

public static final class CertificateIdentityConstraints.Builder extends GeneratedMessageV3.Builder<CertificateIdentityConstraints.Builder> implements CertificateIdentityConstraintsOrBuilder

Describes constraints on a Certificate's Subject and SubjectAltNames.

Protobuf type google.cloud.security.privateca.v1.CertificateIdentityConstraints

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CertificateIdentityConstraints.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CertificateIdentityConstraints.Builder
Overrides

build()

public CertificateIdentityConstraints build()
Returns
Type Description
CertificateIdentityConstraints

buildPartial()

public CertificateIdentityConstraints buildPartial()
Returns
Type Description
CertificateIdentityConstraints

clear()

public CertificateIdentityConstraints.Builder clear()
Returns
Type Description
CertificateIdentityConstraints.Builder
Overrides

clearAllowSubjectAltNamesPassthrough()

public CertificateIdentityConstraints.Builder clearAllowSubjectAltNamesPassthrough()

Required. If this is true, the SubjectAltNames extension may be copied from a certificate request into the signed certificate. Otherwise, the requested SubjectAltNames will be discarded.

optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CertificateIdentityConstraints.Builder

This builder for chaining.

clearAllowSubjectPassthrough()

public CertificateIdentityConstraints.Builder clearAllowSubjectPassthrough()

Required. If this is true, the Subject field may be copied from a certificate request into the signed certificate. Otherwise, the requested Subject will be discarded.

optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CertificateIdentityConstraints.Builder

This builder for chaining.

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];

Returns
Type Description
CertificateIdentityConstraints.Builder

clearField(Descriptors.FieldDescriptor field)

public CertificateIdentityConstraints.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CertificateIdentityConstraints.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateIdentityConstraints.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CertificateIdentityConstraints.Builder
Overrides

clone()

public CertificateIdentityConstraints.Builder clone()
Returns
Type Description
CertificateIdentityConstraints.Builder
Overrides

getAllowSubjectAltNamesPassthrough()

public boolean getAllowSubjectAltNamesPassthrough()

Required. If this is true, the SubjectAltNames extension may be copied from a certificate request into the signed certificate. Otherwise, the requested SubjectAltNames will be discarded.

optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

The allowSubjectAltNamesPassthrough.

getAllowSubjectPassthrough()

public boolean getAllowSubjectPassthrough()

Required. If this is true, the Subject field may be copied from a certificate request into the signed certificate. Otherwise, the requested Subject will be discarded.

optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

The allowSubjectPassthrough.

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];

Returns
Type Description
com.google.type.Expr

The celExpression.

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];

Returns
Type Description
com.google.type.Expr.Builder

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];

Returns
Type Description
com.google.type.ExprOrBuilder

getDefaultInstanceForType()

public CertificateIdentityConstraints getDefaultInstanceForType()
Returns
Type Description
CertificateIdentityConstraints

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

hasAllowSubjectAltNamesPassthrough()

public boolean hasAllowSubjectAltNamesPassthrough()

Required. If this is true, the SubjectAltNames extension may be copied from a certificate request into the signed certificate. Otherwise, the requested SubjectAltNames will be discarded.

optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the allowSubjectAltNamesPassthrough field is set.

hasAllowSubjectPassthrough()

public boolean hasAllowSubjectPassthrough()

Required. If this is true, the Subject field may be copied from a certificate request into the signed certificate. Otherwise, the requested Subject will be discarded.

optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the allowSubjectPassthrough field is set.

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];

Returns
Type Description
boolean

Whether the celExpression field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCelExpression(Expr value)

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];

Parameter
Name Description
value com.google.type.Expr
Returns
Type Description
CertificateIdentityConstraints.Builder

mergeFrom(CertificateIdentityConstraints other)

public CertificateIdentityConstraints.Builder mergeFrom(CertificateIdentityConstraints other)
Parameter
Name Description
other CertificateIdentityConstraints
Returns
Type Description
CertificateIdentityConstraints.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CertificateIdentityConstraints.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CertificateIdentityConstraints.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CertificateIdentityConstraints.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CertificateIdentityConstraints.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateIdentityConstraints.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CertificateIdentityConstraints.Builder
Overrides

setAllowSubjectAltNamesPassthrough(boolean value)

public CertificateIdentityConstraints.Builder setAllowSubjectAltNamesPassthrough(boolean value)

Required. If this is true, the SubjectAltNames extension may be copied from a certificate request into the signed certificate. Otherwise, the requested SubjectAltNames will be discarded.

optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value boolean

The allowSubjectAltNamesPassthrough to set.

Returns
Type Description
CertificateIdentityConstraints.Builder

This builder for chaining.

setAllowSubjectPassthrough(boolean value)

public CertificateIdentityConstraints.Builder setAllowSubjectPassthrough(boolean value)

Required. If this is true, the Subject field may be copied from a certificate request into the signed certificate. Otherwise, the requested Subject will be discarded.

optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value boolean

The allowSubjectPassthrough to set.

Returns
Type Description
CertificateIdentityConstraints.Builder

This builder for chaining.

setCelExpression(Expr value)

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];

Parameter
Name Description
value com.google.type.Expr
Returns
Type Description
CertificateIdentityConstraints.Builder

setCelExpression(Expr.Builder builderForValue)

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];

Parameter
Name Description
builderForValue com.google.type.Expr.Builder
Returns
Type Description
CertificateIdentityConstraints.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateIdentityConstraints.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CertificateIdentityConstraints.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CertificateIdentityConstraints.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CertificateIdentityConstraints.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CertificateIdentityConstraints.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CertificateIdentityConstraints.Builder
Overrides