Class DnsSettings.CustomDns.Builder (1.21.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.domains.v1alpha2.DnsSettings.DsRecord>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The nameServers to add.

Returns
TypeDescription
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
NameDescription
valueDnsSettings.DsRecord
Returns
TypeDescription
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
NameDescription
builderForValueDnsSettings.DsRecord.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueDnsSettings.DsRecord
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDnsSettings.DsRecord.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The nameServers to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the nameServers to add.

Returns
TypeDescription
DnsSettings.CustomDns.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public DnsSettings.CustomDns.Builder clear()
Returns
TypeDescription
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
TypeDescription
DnsSettings.CustomDns.Builder

clearField(Descriptors.FieldDescriptor field)

public DnsSettings.CustomDns.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DnsSettings.CustomDns.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the nameServers.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DnsSettings.CustomDns other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DnsSettings.CustomDns.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueDnsSettings.DsRecord
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDnsSettings.DsRecord.Builder
Returns
TypeDescription
DnsSettings.CustomDns.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DnsSettings.CustomDns.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The nameServers to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DnsSettings.CustomDns.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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