# Cloud IoT V1 API - Class Google::Cloud::Iot::V1::RegistryCredential (v0.9.2)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.9.2 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-RegistryCredential)
- [0.9.1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.9.1/Google-Cloud-Iot-V1-RegistryCredential)
- [0.8.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.8.0/Google-Cloud-Iot-V1-RegistryCredential)
- [0.7.1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.7.1/Google-Cloud-Iot-V1-RegistryCredential)
- [0.6.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.6.0/Google-Cloud-Iot-V1-RegistryCredential)
- [0.5.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.5.0/Google-Cloud-Iot-V1-RegistryCredential)
- [0.4.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.4.0/Google-Cloud-Iot-V1-RegistryCredential)
- [0.3.5](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.3.5/Google-Cloud-Iot-V1-RegistryCredential)
Reference documentation and code samples for the Cloud IoT V1 API class Google::Cloud::Iot::V1::RegistryCredential.

A server-stored registry credential used to validate device credentials.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #public_key_certificate

    def public_key_certificate() -> ::Google::Cloud::Iot::V1::PublicKeyCertificate

**Returns**

- ([::Google::Cloud::Iot::V1::PublicKeyCertificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-PublicKeyCertificate)) --- A public key certificate used to verify the device credentials.

### #public_key_certificate=

    def public_key_certificate=(value) -> ::Google::Cloud::Iot::V1::PublicKeyCertificate

**Parameter**

- **value** ([::Google::Cloud::Iot::V1::PublicKeyCertificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-PublicKeyCertificate)) --- A public key certificate used to verify the device credentials.
**Returns**

- ([::Google::Cloud::Iot::V1::PublicKeyCertificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-PublicKeyCertificate)) --- A public key certificate used to verify the device credentials.