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

The nameServers to add.

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

The nameServers to add.

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

The bytes of the nameServers to add.

Returns
TypeDescription
DnsSettings.GoogleDomainsDns.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The dsState to set.

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

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

Returns
TypeDescription
DnsSettings.GoogleDomainsDns.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The index to set the value at.

valueString

The nameServers to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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