Class CertificateIdentityConstraints.Builder (2.26.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CertificateIdentityConstraints.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CertificateIdentityConstraints.Builder
Overrides

build()

public CertificateIdentityConstraints build()
Returns
TypeDescription
CertificateIdentityConstraints

buildPartial()

public CertificateIdentityConstraints buildPartial()
Returns
TypeDescription
CertificateIdentityConstraints

clear()

public CertificateIdentityConstraints.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CertificateIdentityConstraints.Builder

clearField(Descriptors.FieldDescriptor field)

public CertificateIdentityConstraints.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CertificateIdentityConstraints.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateIdentityConstraints.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CertificateIdentityConstraints.Builder
Overrides

clone()

public CertificateIdentityConstraints.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
com.google.type.ExprOrBuilder

getDefaultInstanceForType()

public CertificateIdentityConstraints getDefaultInstanceForType()
Returns
TypeDescription
CertificateIdentityConstraints

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the celExpression field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Expr
Returns
TypeDescription
CertificateIdentityConstraints.Builder

mergeFrom(CertificateIdentityConstraints other)

public CertificateIdentityConstraints.Builder mergeFrom(CertificateIdentityConstraints other)
Parameter
NameDescription
otherCertificateIdentityConstraints
Returns
TypeDescription
CertificateIdentityConstraints.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CertificateIdentityConstraints.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateIdentityConstraints.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CertificateIdentityConstraints.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CertificateIdentityConstraints.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateIdentityConstraints.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The allowSubjectAltNamesPassthrough to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The allowSubjectPassthrough to set.

Returns
TypeDescription
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
NameDescription
valuecom.google.type.Expr
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.Expr.Builder
Returns
TypeDescription
CertificateIdentityConstraints.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateIdentityConstraints.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CertificateIdentityConstraints.Builder
Overrides

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

public CertificateIdentityConstraints.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CertificateIdentityConstraints.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CertificateIdentityConstraints.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CertificateIdentityConstraints.Builder
Overrides