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 messagegoogle.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
setAlgorithm
The algorithm used to generate the referenced DNSKEY.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getDigestType
The hash function used to generate the digest of the referenced DNSKEY.
Returns
Type
Description
int
setDigestType
The hash function used to generate the digest of the referenced DNSKEY.
[[["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-09-04 UTC."],[],[],null,["# Google Cloud Domains V1 Client - Class DsRecord (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-domains/latest/V1.DnsSettings.DsRecord)\n- [1.0.3](/php/docs/reference/cloud-domains/1.0.3/V1.DnsSettings.DsRecord)\n- [0.5.5](/php/docs/reference/cloud-domains/0.5.5/V1.DnsSettings.DsRecord)\n- [0.4.2](/php/docs/reference/cloud-domains/0.4.2/V1.DnsSettings.DsRecord)\n- [0.3.1](/php/docs/reference/cloud-domains/0.3.1/V1.DnsSettings.DsRecord)\n- [0.2.11](/php/docs/reference/cloud-domains/0.2.11/V1.DnsSettings.DsRecord) \nReference documentation and code samples for the Google Cloud Domains V1 Client class DsRecord.\n\nDefines a Delegation Signer (DS) record, which is needed to enable DNSSEC\nfor a domain. It contains a digest (hash) of a DNSKEY record that must be\npresent in the domain's DNS zone.\n\nGenerated from protobuf message `google.cloud.domains.v1.DnsSettings.DsRecord`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Domains \\\\ V1 \\\\ DnsSettings\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getKeyTag\n\nThe key tag of the record. Must be set in range 0 -- 65535.\n\n### setKeyTag\n\nThe key tag of the record. Must be set in range 0 -- 65535.\n\n### getAlgorithm\n\nThe algorithm used to generate the referenced DNSKEY.\n\n### setAlgorithm\n\nThe algorithm used to generate the referenced DNSKEY.\n\n### getDigestType\n\nThe hash function used to generate the digest of the referenced DNSKEY.\n\n### setDigestType\n\nThe hash function used to generate the digest of the referenced DNSKEY.\n\n### getDigest\n\nThe digest generated from the referenced DNSKEY.\n\n### setDigest\n\nThe digest generated from the referenced DNSKEY."]]