Class DnsSettings.CustomDns.Builder (1.45.0)

public static final class DnsSettings.CustomDns.Builder extends GeneratedMessageV3.Builder<DnsSettings.CustomDns.Builder> implements DnsSettings.CustomDnsOrBuilder

Configuration for an arbitrary DNS provider.

Protobuf type google.cloud.domains.v1alpha2.DnsSettings.CustomDns

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDsRecords(Iterable<? extends DnsSettings.DsRecord> values)

public DnsSettings.CustomDns.Builder addAllDsRecords(Iterable<? extends DnsSettings.DsRecord> values)

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord>
Returns
Type Description
DnsSettings.CustomDns.Builder

addAllNameServers(Iterable<String> values)

public DnsSettings.CustomDns.Builder addAllNameServers(Iterable<String> values)

Required. A list of name servers that store the DNS zone for this domain. Each name server is a domain name, with Unicode domain names expressed in Punycode format.

repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The nameServers to add.

Returns
Type Description
DnsSettings.CustomDns.Builder

This builder for chaining.

addDsRecords(DnsSettings.DsRecord value)

public DnsSettings.CustomDns.Builder addDsRecords(DnsSettings.DsRecord value)

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Parameter
Name Description
value DnsSettings.DsRecord
Returns
Type Description
DnsSettings.CustomDns.Builder

addDsRecords(DnsSettings.DsRecord.Builder builderForValue)

public DnsSettings.CustomDns.Builder addDsRecords(DnsSettings.DsRecord.Builder builderForValue)

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Parameter
Name Description
builderForValue DnsSettings.DsRecord.Builder
Returns
Type Description
DnsSettings.CustomDns.Builder

addDsRecords(int index, DnsSettings.DsRecord value)

public DnsSettings.CustomDns.Builder addDsRecords(int index, DnsSettings.DsRecord value)

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Parameters
Name Description
index int
value DnsSettings.DsRecord
Returns
Type Description
DnsSettings.CustomDns.Builder

addDsRecords(int index, DnsSettings.DsRecord.Builder builderForValue)

public DnsSettings.CustomDns.Builder addDsRecords(int index, DnsSettings.DsRecord.Builder builderForValue)

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Parameters
Name Description
index int
builderForValue DnsSettings.DsRecord.Builder
Returns
Type Description
DnsSettings.CustomDns.Builder

addDsRecordsBuilder()

public DnsSettings.DsRecord.Builder addDsRecordsBuilder()

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Returns
Type Description
DnsSettings.DsRecord.Builder

addDsRecordsBuilder(int index)

public DnsSettings.DsRecord.Builder addDsRecordsBuilder(int index)

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Parameter
Name Description
index int
Returns
Type Description
DnsSettings.DsRecord.Builder

addNameServers(String value)

public DnsSettings.CustomDns.Builder addNameServers(String value)

Required. A list of name servers that store the DNS zone for this domain. Each name server is a domain name, with Unicode domain names expressed in Punycode format.

repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The nameServers to add.

Returns
Type Description
DnsSettings.CustomDns.Builder

This builder for chaining.

addNameServersBytes(ByteString value)

public DnsSettings.CustomDns.Builder addNameServersBytes(ByteString value)

Required. A list of name servers that store the DNS zone for this domain. Each name server is a domain name, with Unicode domain names expressed in Punycode format.

repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the nameServers to add.

Returns
Type Description
DnsSettings.CustomDns.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DnsSettings.CustomDns.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DnsSettings.CustomDns.Builder
Overrides

build()

public DnsSettings.CustomDns build()
Returns
Type Description
DnsSettings.CustomDns

buildPartial()

public DnsSettings.CustomDns buildPartial()
Returns
Type Description
DnsSettings.CustomDns

clear()

public DnsSettings.CustomDns.Builder clear()
Returns
Type Description
DnsSettings.CustomDns.Builder
Overrides

clearDsRecords()

public DnsSettings.CustomDns.Builder clearDsRecords()

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Returns
Type Description
DnsSettings.CustomDns.Builder

clearField(Descriptors.FieldDescriptor field)

public DnsSettings.CustomDns.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DnsSettings.CustomDns.Builder
Overrides

clearNameServers()

public DnsSettings.CustomDns.Builder clearNameServers()

Required. A list of name servers that store the DNS zone for this domain. Each name server is a domain name, with Unicode domain names expressed in Punycode format.

repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DnsSettings.CustomDns.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DnsSettings.CustomDns.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DnsSettings.CustomDns.Builder
Overrides

clone()

public DnsSettings.CustomDns.Builder clone()
Returns
Type Description
DnsSettings.CustomDns.Builder
Overrides

getDefaultInstanceForType()

public DnsSettings.CustomDns getDefaultInstanceForType()
Returns
Type Description
DnsSettings.CustomDns

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDsRecords(int index)

public DnsSettings.DsRecord getDsRecords(int index)

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Parameter
Name Description
index int
Returns
Type Description
DnsSettings.DsRecord

getDsRecordsBuilder(int index)

public DnsSettings.DsRecord.Builder getDsRecordsBuilder(int index)

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Parameter
Name Description
index int
Returns
Type Description
DnsSettings.DsRecord.Builder

getDsRecordsBuilderList()

public List<DnsSettings.DsRecord.Builder> getDsRecordsBuilderList()

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Returns
Type Description
List<Builder>

getDsRecordsCount()

public int getDsRecordsCount()

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Returns
Type Description
int

getDsRecordsList()

public List<DnsSettings.DsRecord> getDsRecordsList()

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Returns
Type Description
List<DsRecord>

getDsRecordsOrBuilder(int index)

public DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder(int index)

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Parameter
Name Description
index int
Returns
Type Description
DnsSettings.DsRecordOrBuilder

getDsRecordsOrBuilderList()

public List<? extends DnsSettings.DsRecordOrBuilder> getDsRecordsOrBuilderList()

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Returns
Type Description
List<? extends com.google.cloud.domains.v1alpha2.DnsSettings.DsRecordOrBuilder>

getNameServers(int index)

public String getNameServers(int index)

Required. A list of name servers that store the DNS zone for this domain. Each name server is a domain name, with Unicode domain names expressed in Punycode format.

repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The nameServers at the given index.

getNameServersBytes(int index)

public ByteString getNameServersBytes(int index)

Required. A list of name servers that store the DNS zone for this domain. Each name server is a domain name, with Unicode domain names expressed in Punycode format.

repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the nameServers at the given index.

getNameServersCount()

public int getNameServersCount()

Required. A list of name servers that store the DNS zone for this domain. Each name server is a domain name, with Unicode domain names expressed in Punycode format.

repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of nameServers.

getNameServersList()

public ProtocolStringList getNameServersList()

Required. A list of name servers that store the DNS zone for this domain. Each name server is a domain name, with Unicode domain names expressed in Punycode format.

repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the nameServers.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DnsSettings.CustomDns other)

public DnsSettings.CustomDns.Builder mergeFrom(DnsSettings.CustomDns other)
Parameter
Name Description
other DnsSettings.CustomDns
Returns
Type Description
DnsSettings.CustomDns.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DnsSettings.CustomDns.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DnsSettings.CustomDns.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DnsSettings.CustomDns.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DnsSettings.CustomDns.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DnsSettings.CustomDns.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DnsSettings.CustomDns.Builder
Overrides

removeDsRecords(int index)

public DnsSettings.CustomDns.Builder removeDsRecords(int index)

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Parameter
Name Description
index int
Returns
Type Description
DnsSettings.CustomDns.Builder

setDsRecords(int index, DnsSettings.DsRecord value)

public DnsSettings.CustomDns.Builder setDsRecords(int index, DnsSettings.DsRecord value)

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Parameters
Name Description
index int
value DnsSettings.DsRecord
Returns
Type Description
DnsSettings.CustomDns.Builder

setDsRecords(int index, DnsSettings.DsRecord.Builder builderForValue)

public DnsSettings.CustomDns.Builder setDsRecords(int index, DnsSettings.DsRecord.Builder builderForValue)

The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide the values to set here. If this field is empty, DNSSEC is disabled.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 2;

Parameters
Name Description
index int
builderForValue DnsSettings.DsRecord.Builder
Returns
Type Description
DnsSettings.CustomDns.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DnsSettings.CustomDns.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DnsSettings.CustomDns.Builder
Overrides

setNameServers(int index, String value)

public DnsSettings.CustomDns.Builder setNameServers(int index, String value)

Required. A list of name servers that store the DNS zone for this domain. Each name server is a domain name, with Unicode domain names expressed in Punycode format.

repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The nameServers to set.

Returns
Type Description
DnsSettings.CustomDns.Builder

This builder for chaining.

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

public DnsSettings.CustomDns.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DnsSettings.CustomDns.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DnsSettings.CustomDns.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DnsSettings.CustomDns.Builder
Overrides