# Google Certificate Authority Service V1 Client - Class SubjectRequestMode (2.4.0)

2.4.0 (latest) 2.3.0 2.2.2 2.1.1 2.0.3 1.7.3 1.5.0 1.4.2 1.3.1 1.2.2 1.1.0 1.0.3 Reference documentation and code samples for the Google Certificate Authority Service V1 Client class SubjectRequestMode.

Describes the way in which a
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate)'s
[Subject](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Subject) and/or
[SubjectAltNames](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.SubjectAltNames) will be
resolved.

Protobuf type `google.cloud.security.privateca.v1.SubjectRequestMode`

## Namespace

Google \\ Cloud \\ Security \\ PrivateCA \\ V1

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### SUBJECT_REQUEST_MODE_UNSPECIFIED

    Value: 0

Not specified.

Generated from protobuf enum `SUBJECT_REQUEST_MODE_UNSPECIFIED = 0;`

### PBDEFAULT

    Value: 1

The default mode used in most cases. Indicates that the certificate's
[Subject](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Subject) and/or
[SubjectAltNames](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.SubjectAltNames) are
specified in the certificate request. This mode requires the caller to have
the `privateca.certificates.create` permission.

Generated from protobuf enum `DEFAULT = 1;`

### RDN_SEQUENCE

    Value: 3

A mode used to get an accurate representation of the Subject
field's distinguished name. Indicates that the certificate's
[Subject](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Subject) and/or
[SubjectAltNames](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.SubjectAltNames) are
specified in the certificate request. When parsing a PEM CSR this mode will
maintain the sequence of RDNs found in the CSR's subject field in the
issued [Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate). This
mode requires the caller to have the `privateca.certificates.create`
permission.

Generated from protobuf enum `RDN_SEQUENCE = 3;`

### REFLECTED_SPIFFE

    Value: 2

A mode reserved for special cases. Indicates that the certificate should
have one SPIFFE
[SubjectAltNames](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.SubjectAltNames) set
by the service based on the caller's identity. This mode will ignore any
explicitly specified [Subject](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Subject)
and/or
[SubjectAltNames](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.SubjectAltNames) in
the certificate request. This mode requires the caller to have the
`privateca.certificates.createForSelf` permission.

Generated from protobuf enum `REFLECTED_SPIFFE = 2;`