Class DnsSettings.GoogleDomainsDns.Builder (1.52.0)

public static final class DnsSettings.GoogleDomainsDns.Builder extends GeneratedMessageV3.Builder<DnsSettings.GoogleDomainsDns.Builder> implements DnsSettings.GoogleDomainsDnsOrBuilder

Configuration for using the free DNS zone provided by Google Domains as a Registration's dns_provider. You cannot configure the DNS zone itself using the API. To configure the DNS zone, go to Google Domains.

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

Static Methods

getDescriptor()

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

Methods

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

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

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addAllNameServers(Iterable<String> values)

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

Output only. 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. This field is automatically populated with the name servers assigned to the Google Domains DNS zone.

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

Parameter
Name Description
values Iterable<String>

The nameServers to add.

Returns
Type Description
DnsSettings.GoogleDomainsDns.Builder

This builder for chaining.

addDsRecords(DnsSettings.DsRecord value)

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

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addDsRecords(DnsSettings.DsRecord.Builder builderForValue)

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

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addDsRecords(int index, DnsSettings.DsRecord value)

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

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

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

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

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addDsRecordsBuilder()

public DnsSettings.DsRecord.Builder addDsRecordsBuilder()

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DnsSettings.DsRecord.Builder

addDsRecordsBuilder(int index)

public DnsSettings.DsRecord.Builder addDsRecordsBuilder(int index)

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addNameServers(String value)

public DnsSettings.GoogleDomainsDns.Builder addNameServers(String value)

Output only. 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. This field is automatically populated with the name servers assigned to the Google Domains DNS zone.

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

Parameter
Name Description
value String

The nameServers to add.

Returns
Type Description
DnsSettings.GoogleDomainsDns.Builder

This builder for chaining.

addNameServersBytes(ByteString value)

public DnsSettings.GoogleDomainsDns.Builder addNameServersBytes(ByteString value)

Output only. 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. This field is automatically populated with the name servers assigned to the Google Domains DNS zone.

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

Parameter
Name Description
value ByteString

The bytes of the nameServers to add.

Returns
Type Description
DnsSettings.GoogleDomainsDns.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearDsRecords()

public DnsSettings.GoogleDomainsDns.Builder clearDsRecords()

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DnsSettings.GoogleDomainsDns.Builder

clearDsState()

public DnsSettings.GoogleDomainsDns.Builder clearDsState()

Required. The state of DS records for this domain. Used to enable or disable automatic DNSSEC.

.google.cloud.domains.v1alpha2.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DnsSettings.GoogleDomainsDns.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNameServers()

public DnsSettings.GoogleDomainsDns.Builder clearNameServers()

Output only. 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. This field is automatically populated with the name servers assigned to the Google Domains DNS zone.

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

Returns
Type Description
DnsSettings.GoogleDomainsDns.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getDsRecords(int index)

public DnsSettings.DsRecord getDsRecords(int index)

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DnsSettings.DsRecord

getDsRecordsBuilder(int index)

public DnsSettings.DsRecord.Builder getDsRecordsBuilder(int index)

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getDsRecordsBuilderList()

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

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getDsRecordsCount()

public int getDsRecordsCount()

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getDsRecordsList()

public List<DnsSettings.DsRecord> getDsRecordsList()

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<DsRecord>

getDsRecordsOrBuilder(int index)

public DnsSettings.DsRecordOrBuilder getDsRecordsOrBuilder(int index)

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DnsSettings.DsRecordOrBuilder

getDsRecordsOrBuilderList()

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

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getDsState()

public DnsSettings.DsState getDsState()

Required. The state of DS records for this domain. Used to enable or disable automatic DNSSEC.

.google.cloud.domains.v1alpha2.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DnsSettings.DsState

The dsState.

getDsStateValue()

public int getDsStateValue()

Required. The state of DS records for this domain. Used to enable or disable automatic DNSSEC.

.google.cloud.domains.v1alpha2.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for dsState.

getNameServers(int index)

public String getNameServers(int index)

Output only. 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. This field is automatically populated with the name servers assigned to the Google Domains DNS zone.

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

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)

Output only. 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. This field is automatically populated with the name servers assigned to the Google Domains DNS zone.

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

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()

Output only. 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. This field is automatically populated with the name servers assigned to the Google Domains DNS zone.

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

Returns
Type Description
int

The count of nameServers.

getNameServersList()

public ProtocolStringList getNameServersList()

Output only. 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. This field is automatically populated with the name servers assigned to the Google Domains DNS zone.

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

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.GoogleDomainsDns other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDsRecords(int index)

public DnsSettings.GoogleDomainsDns.Builder removeDsRecords(int index)

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setDsRecords(int index, DnsSettings.DsRecord value)

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

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

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

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

Output only. The list of DS records published for this domain. The list is automatically populated when ds_state is DS_RECORDS_PUBLISHED, otherwise it remains empty.

repeated .google.cloud.domains.v1alpha2.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setDsState(DnsSettings.DsState value)

public DnsSettings.GoogleDomainsDns.Builder setDsState(DnsSettings.DsState value)

Required. The state of DS records for this domain. Used to enable or disable automatic DNSSEC.

.google.cloud.domains.v1alpha2.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DnsSettings.DsState

The dsState to set.

Returns
Type Description
DnsSettings.GoogleDomainsDns.Builder

This builder for chaining.

setDsStateValue(int value)

public DnsSettings.GoogleDomainsDns.Builder setDsStateValue(int value)

Required. The state of DS records for this domain. Used to enable or disable automatic DNSSEC.

.google.cloud.domains.v1alpha2.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
DnsSettings.GoogleDomainsDns.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setNameServers(int index, String value)

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

Output only. 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. This field is automatically populated with the name servers assigned to the Google Domains DNS zone.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The nameServers to set.

Returns
Type Description
DnsSettings.GoogleDomainsDns.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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