Class DnsSettings.DsRecord.Builder (1.4.0)

public static final class DnsSettings.DsRecord.Builder extends GeneratedMessageV3.Builder<DnsSettings.DsRecord.Builder> implements DnsSettings.DsRecordOrBuilder

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.

Protobuf type google.cloud.domains.v1.DnsSettings.DsRecord

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DnsSettings.DsRecord.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DnsSettings.DsRecord.Builder
Overrides

build()

public DnsSettings.DsRecord build()
Returns
TypeDescription
DnsSettings.DsRecord

buildPartial()

public DnsSettings.DsRecord buildPartial()
Returns
TypeDescription
DnsSettings.DsRecord

clear()

public DnsSettings.DsRecord.Builder clear()
Returns
TypeDescription
DnsSettings.DsRecord.Builder
Overrides

clearAlgorithm()

public DnsSettings.DsRecord.Builder clearAlgorithm()

The algorithm used to generate the referenced DNSKEY.

.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2;

Returns
TypeDescription
DnsSettings.DsRecord.Builder

This builder for chaining.

clearDigest()

public DnsSettings.DsRecord.Builder clearDigest()

The digest generated from the referenced DNSKEY.

string digest = 4;

Returns
TypeDescription
DnsSettings.DsRecord.Builder

This builder for chaining.

clearDigestType()

public DnsSettings.DsRecord.Builder clearDigestType()

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

.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3;

Returns
TypeDescription
DnsSettings.DsRecord.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DnsSettings.DsRecord.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DnsSettings.DsRecord.Builder
Overrides

clearKeyTag()

public DnsSettings.DsRecord.Builder clearKeyTag()

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

int32 key_tag = 1;

Returns
TypeDescription
DnsSettings.DsRecord.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DnsSettings.DsRecord.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DnsSettings.DsRecord.Builder
Overrides

clone()

public DnsSettings.DsRecord.Builder clone()
Returns
TypeDescription
DnsSettings.DsRecord.Builder
Overrides

getAlgorithm()

public DnsSettings.DsRecord.Algorithm getAlgorithm()

The algorithm used to generate the referenced DNSKEY.

.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2;

Returns
TypeDescription
DnsSettings.DsRecord.Algorithm

The algorithm.

getAlgorithmValue()

public int getAlgorithmValue()

The algorithm used to generate the referenced DNSKEY.

.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for algorithm.

getDefaultInstanceForType()

public DnsSettings.DsRecord getDefaultInstanceForType()
Returns
TypeDescription
DnsSettings.DsRecord

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDigest()

public String getDigest()

The digest generated from the referenced DNSKEY.

string digest = 4;

Returns
TypeDescription
String

The digest.

getDigestBytes()

public ByteString getDigestBytes()

The digest generated from the referenced DNSKEY.

string digest = 4;

Returns
TypeDescription
ByteString

The bytes for digest.

getDigestType()

public DnsSettings.DsRecord.DigestType getDigestType()

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

.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3;

Returns
TypeDescription
DnsSettings.DsRecord.DigestType

The digestType.

getDigestTypeValue()

public int getDigestTypeValue()

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

.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for digestType.

getKeyTag()

public int getKeyTag()

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

int32 key_tag = 1;

Returns
TypeDescription
int

The keyTag.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DnsSettings.DsRecord other)

public DnsSettings.DsRecord.Builder mergeFrom(DnsSettings.DsRecord other)
Parameter
NameDescription
otherDnsSettings.DsRecord
Returns
TypeDescription
DnsSettings.DsRecord.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DnsSettings.DsRecord.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DnsSettings.DsRecord.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DnsSettings.DsRecord.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DnsSettings.DsRecord.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DnsSettings.DsRecord.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DnsSettings.DsRecord.Builder
Overrides

setAlgorithm(DnsSettings.DsRecord.Algorithm value)

public DnsSettings.DsRecord.Builder setAlgorithm(DnsSettings.DsRecord.Algorithm value)

The algorithm used to generate the referenced DNSKEY.

.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2;

Parameter
NameDescription
valueDnsSettings.DsRecord.Algorithm

The algorithm to set.

Returns
TypeDescription
DnsSettings.DsRecord.Builder

This builder for chaining.

setAlgorithmValue(int value)

public DnsSettings.DsRecord.Builder setAlgorithmValue(int value)

The algorithm used to generate the referenced DNSKEY.

.google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for algorithm to set.

Returns
TypeDescription
DnsSettings.DsRecord.Builder

This builder for chaining.

setDigest(String value)

public DnsSettings.DsRecord.Builder setDigest(String value)

The digest generated from the referenced DNSKEY.

string digest = 4;

Parameter
NameDescription
valueString

The digest to set.

Returns
TypeDescription
DnsSettings.DsRecord.Builder

This builder for chaining.

setDigestBytes(ByteString value)

public DnsSettings.DsRecord.Builder setDigestBytes(ByteString value)

The digest generated from the referenced DNSKEY.

string digest = 4;

Parameter
NameDescription
valueByteString

The bytes for digest to set.

Returns
TypeDescription
DnsSettings.DsRecord.Builder

This builder for chaining.

setDigestType(DnsSettings.DsRecord.DigestType value)

public DnsSettings.DsRecord.Builder setDigestType(DnsSettings.DsRecord.DigestType value)

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

.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3;

Parameter
NameDescription
valueDnsSettings.DsRecord.DigestType

The digestType to set.

Returns
TypeDescription
DnsSettings.DsRecord.Builder

This builder for chaining.

setDigestTypeValue(int value)

public DnsSettings.DsRecord.Builder setDigestTypeValue(int value)

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

.google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3;

Parameter
NameDescription
valueint

The enum numeric value on the wire for digestType to set.

Returns
TypeDescription
DnsSettings.DsRecord.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DnsSettings.DsRecord.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DnsSettings.DsRecord.Builder
Overrides

setKeyTag(int value)

public DnsSettings.DsRecord.Builder setKeyTag(int value)

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

int32 key_tag = 1;

Parameter
NameDescription
valueint

The keyTag to set.

Returns
TypeDescription
DnsSettings.DsRecord.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DnsSettings.DsRecord.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DnsSettings.DsRecord.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DnsSettings.DsRecord.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DnsSettings.DsRecord.Builder
Overrides