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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CertificateIdentityConstraints.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CertificateIdentityConstraints build()
Returns
buildPartial()
public CertificateIdentityConstraints buildPartial()
Returns
clear()
public CertificateIdentityConstraints.Builder clear()
Returns
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
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
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
clearField(Descriptors.FieldDescriptor field)
public CertificateIdentityConstraints.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CertificateIdentityConstraints.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public CertificateIdentityConstraints.Builder clone()
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
mergeFrom(CertificateIdentityConstraints other)
public CertificateIdentityConstraints.Builder mergeFrom(CertificateIdentityConstraints other)
Parameter
Returns
public CertificateIdentityConstraints.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CertificateIdentityConstraints.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CertificateIdentityConstraints.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
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
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
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
setField(Descriptors.FieldDescriptor field, Object value)
public CertificateIdentityConstraints.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CertificateIdentityConstraints.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CertificateIdentityConstraints.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides