Class DnsSettings.GoogleDomainsDns.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DnsSettings.GoogleDomainsDns.Builder>
com.google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns.Builder
All Implemented Interfaces:
DnsSettings.GoogleDomainsDnsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DnsSettings.GoogleDomainsDns

public static final class DnsSettings.GoogleDomainsDns.Builder extends com.google.protobuf.GeneratedMessage.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](https://domains.google/).
 
Protobuf type google.cloud.domains.v1alpha2.DnsSettings.GoogleDomainsDns
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DnsSettings.GoogleDomainsDns.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DnsSettings.GoogleDomainsDns.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DnsSettings.GoogleDomainsDns.Builder>
    • getDefaultInstanceForType

      public DnsSettings.GoogleDomainsDns getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DnsSettings.GoogleDomainsDns buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DnsSettings.GoogleDomainsDns.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DnsSettings.GoogleDomainsDns.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DnsSettings.GoogleDomainsDns.Builder>
    • mergeFrom

      public DnsSettings.GoogleDomainsDns.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DnsSettings.GoogleDomainsDns.Builder>
      Throws:
      IOException
    • getNameServersList

      public com.google.protobuf.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];
      Specified by:
      getNameServersList in interface DnsSettings.GoogleDomainsDnsOrBuilder
      Returns:
      A list containing the nameServers.
    • 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];
      Specified by:
      getNameServersCount in interface DnsSettings.GoogleDomainsDnsOrBuilder
      Returns:
      The count of nameServers.
    • getNameServers

      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];
      Specified by:
      getNameServers in interface DnsSettings.GoogleDomainsDnsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The nameServers at the given index.
    • getNameServersBytes

      public com.google.protobuf.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];
      Specified by:
      getNameServersBytes in interface DnsSettings.GoogleDomainsDnsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the nameServers at the given index.
    • setNameServers

      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:
      index - The index to set the value at.
      value - The nameServers to set.
      Returns:
      This builder for chaining.
    • addNameServers

      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];
      Parameters:
      value - The nameServers to add.
      Returns:
      This builder for chaining.
    • addAllNameServers

      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];
      Parameters:
      values - The nameServers to add.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • addNameServersBytes

      public DnsSettings.GoogleDomainsDns.Builder addNameServersBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes of the nameServers to add.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getDsStateValue in interface DnsSettings.GoogleDomainsDnsOrBuilder
      Returns:
      The enum numeric value on the wire for dsState.
    • setDsStateValue

      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];
      Parameters:
      value - The enum numeric value on the wire for dsState to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getDsState in interface DnsSettings.GoogleDomainsDnsOrBuilder
      Returns:
      The dsState.
    • setDsState

       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];
      Parameters:
      value - The dsState to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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];
      Specified by:
      getDsRecordsList in interface DnsSettings.GoogleDomainsDnsOrBuilder
    • 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];
      Specified by:
      getDsRecordsCount in interface DnsSettings.GoogleDomainsDnsOrBuilder
    • getDsRecords

      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];
      Specified by:
      getDsRecords in interface DnsSettings.GoogleDomainsDnsOrBuilder
    • setDsRecords

      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];
    • setDsRecords

      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];
    • addDsRecords

       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];
    • addDsRecords

      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];
    • addDsRecords

       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];
    • addDsRecords

      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];
    • addAllDsRecords

      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];
    • 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];
    • removeDsRecords

      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];
    • getDsRecordsBuilder

      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];
    • getDsRecordsOrBuilder

      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];
      Specified by:
      getDsRecordsOrBuilder in interface DnsSettings.GoogleDomainsDnsOrBuilder
    • 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];
      Specified by:
      getDsRecordsOrBuilderList in interface DnsSettings.GoogleDomainsDnsOrBuilder
    • 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];
    • addDsRecordsBuilder

      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];
    • 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];