# Google Cloud Domains V1 Client - Class DsRecord (1.1.3)

1.1.3 (latest) 1.1.2 1.0.4 0.5.5 0.4.2 0.3.1 0.2.11 Reference documentation and code samples for the Google Cloud Domains V1 Client class DsRecord.

Defines a Delegation Signer (DS) record, which is needed to enable DNSSEC
for a domain. It contains a digest (hash) of a DNSKEY record that must be
present in the domain's DNS zone.

Generated from protobuf message `google.cloud.domains.v1.DnsSettings.DsRecord`

## Namespace

Google \\ Cloud \\ Domains \\ V1 \\ DnsSettings

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ key_tag` | `int` The key tag of the record. Must be set in range 0 -- 65535. |
| `↳ algorithm` | `int` The algorithm used to generate the referenced DNSKEY. |
| `↳ digest_type` | `int` The hash function used to generate the digest of the referenced DNSKEY. |
| `↳ digest` | `string` The digest generated from the referenced DNSKEY. |

### getKeyTag

The key tag of the record. Must be set in range 0 -- 65535.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setKeyTag

The key tag of the record. Must be set in range 0 -- 65535.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAlgorithm

The algorithm used to generate the referenced DNSKEY.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Algorithm](https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.DnsSettings.DsRecord.Algorithm). |

### setAlgorithm

The algorithm used to generate the referenced DNSKEY.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Algorithm](https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.DnsSettings.DsRecord.Algorithm). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDigestType

The hash function used to generate the digest of the referenced DNSKEY.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DigestType](https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.DnsSettings.DsRecord.DigestType). |

### setDigestType

The hash function used to generate the digest of the referenced DNSKEY.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DigestType](https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.DnsSettings.DsRecord.DigestType). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDigest

The digest generated from the referenced DNSKEY.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDigest

The digest generated from the referenced DNSKEY.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |