value: 3 This is supported only for PQC algorithms.
The key material is returned in the format defined by NIST PQC
standards (FIPS 203, FIPS 204, and FIPS 205).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# KMS Inventory V1 API - Module Google::Cloud::Kms::V1::PublicKey::PublicKeyFormat (v0.15.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.15.1 (latest)](/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat)\n- [0.15.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.15.0/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat)\n- [0.14.1](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.14.1/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat)\n- [0.13.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.13.0/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat)\n- [0.12.2](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.12.2/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat)\n- [0.11.3](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.11.3/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat)\n- [0.10.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.10.0/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat)\n- [0.9.1](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.9.1/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat)\n- [0.8.3](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.8.3/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat)\n- [0.7.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.7.0/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat)\n- [0.6.1](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.6.1/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat)\n- [0.5.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.5.0/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat)\n- [0.4.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.4.0/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat)\n- [0.3.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.3.0/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat)\n- [0.2.1](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.2.1/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat)\n- [0.1.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.1.0/Google-Cloud-Kms-V1-PublicKey-PublicKeyFormat) \nReference documentation and code samples for the KMS Inventory V1 API module Google::Cloud::Kms::V1::PublicKey::PublicKeyFormat.\n\nThe supported [PublicKey](/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-V1-PublicKey \"Google::Cloud::Kms::V1::PublicKey (class)\") formats.\n\nConstants\n---------\n\n### PUBLIC_KEY_FORMAT_UNSPECIFIED\n\n**value:** 0 \nIf the\n\\[public_key_format\\]\\[google.cloud.kms.v1.GetPublicKeyRequest.public_key_format\\]\nfield is not specified:\n\n\n- For PQC algorithms, an error will be returned.\n- For non-PQC algorithms, the default format is PEM, and the field [pem](/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-V1-PublicKey#Google__Cloud__Kms__V1__PublicKey_pem_instance_ \"Google::Cloud::Kms::V1::PublicKey#pem (method)\") will be populated.\n\n\u003cbr /\u003e\n\nOtherwise, the public key will be exported through the\n[public_key](/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-V1-PublicKey#Google__Cloud__Kms__V1__PublicKey_public_key_instance_ \"Google::Cloud::Kms::V1::PublicKey#public_key (method)\") field in the\nrequested format.\n\n### PEM\n\n**value:** 1 \nThe returned public key will be encoded in PEM format.\nSee the [RFC7468](https://tools.ietf.org/html/rfc7468) sections for\n[General Considerations](https://tools.ietf.org/html/rfc7468#section-2)\nand [Textual Encoding of Subject Public Key Info](https://tools.ietf.org/html/rfc7468#section-13) for more information.\n\n### NIST_PQC\n\n**value:** 3 \nThis is supported only for PQC algorithms.\nThe key material is returned in the format defined by NIST PQC\nstandards (FIPS 203, FIPS 204, and FIPS 205)."]]