Class DnsSettings.GlueRecord.Builder

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

public static final class DnsSettings.GlueRecord.Builder extends com.google.protobuf.GeneratedMessage.Builder<DnsSettings.GlueRecord.Builder> implements DnsSettings.GlueRecordOrBuilder
 Defines a host on your domain that is a DNS name server for your domain
 and/or other domains. Glue records are a way of making the IP address of a
 name server known, even when it serves DNS queries for its parent domain.
 For example, when `ns.example.com` is a name server for `example.com`, the
 host `ns.example.com` must have a glue record to break the circular DNS
 reference.
 
Protobuf type google.cloud.domains.v1alpha2.DnsSettings.GlueRecord
  • 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.GlueRecord.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.GlueRecord.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.GlueRecord.Builder>
    • getDefaultInstanceForType

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

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

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

      public DnsSettings.GlueRecord.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.GlueRecord.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.GlueRecord.Builder>
    • mergeFrom

      public DnsSettings.GlueRecord.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.GlueRecord.Builder>
      Throws:
      IOException
    • getHostName

      public String getHostName()
       Required. Domain name of the host in Punycode format.
       
      string host_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHostName in interface DnsSettings.GlueRecordOrBuilder
      Returns:
      The hostName.
    • getHostNameBytes

      public com.google.protobuf.ByteString getHostNameBytes()
       Required. Domain name of the host in Punycode format.
       
      string host_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHostNameBytes in interface DnsSettings.GlueRecordOrBuilder
      Returns:
      The bytes for hostName.
    • setHostName

      public DnsSettings.GlueRecord.Builder setHostName(String value)
       Required. Domain name of the host in Punycode format.
       
      string host_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The hostName to set.
      Returns:
      This builder for chaining.
    • clearHostName

      public DnsSettings.GlueRecord.Builder clearHostName()
       Required. Domain name of the host in Punycode format.
       
      string host_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setHostNameBytes

      public DnsSettings.GlueRecord.Builder setHostNameBytes(com.google.protobuf.ByteString value)
       Required. Domain name of the host in Punycode format.
       
      string host_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for hostName to set.
      Returns:
      This builder for chaining.
    • getIpv4AddressesList

      public com.google.protobuf.ProtocolStringList getIpv4AddressesList()
       List of IPv4 addresses corresponding to this host in the standard decimal
       format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
       `ipv6_address` must be set.
       
      repeated string ipv4_addresses = 2;
      Specified by:
      getIpv4AddressesList in interface DnsSettings.GlueRecordOrBuilder
      Returns:
      A list containing the ipv4Addresses.
    • getIpv4AddressesCount

      public int getIpv4AddressesCount()
       List of IPv4 addresses corresponding to this host in the standard decimal
       format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
       `ipv6_address` must be set.
       
      repeated string ipv4_addresses = 2;
      Specified by:
      getIpv4AddressesCount in interface DnsSettings.GlueRecordOrBuilder
      Returns:
      The count of ipv4Addresses.
    • getIpv4Addresses

      public String getIpv4Addresses(int index)
       List of IPv4 addresses corresponding to this host in the standard decimal
       format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
       `ipv6_address` must be set.
       
      repeated string ipv4_addresses = 2;
      Specified by:
      getIpv4Addresses in interface DnsSettings.GlueRecordOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ipv4Addresses at the given index.
    • getIpv4AddressesBytes

      public com.google.protobuf.ByteString getIpv4AddressesBytes(int index)
       List of IPv4 addresses corresponding to this host in the standard decimal
       format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
       `ipv6_address` must be set.
       
      repeated string ipv4_addresses = 2;
      Specified by:
      getIpv4AddressesBytes in interface DnsSettings.GlueRecordOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ipv4Addresses at the given index.
    • setIpv4Addresses

      public DnsSettings.GlueRecord.Builder setIpv4Addresses(int index, String value)
       List of IPv4 addresses corresponding to this host in the standard decimal
       format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
       `ipv6_address` must be set.
       
      repeated string ipv4_addresses = 2;
      Parameters:
      index - The index to set the value at.
      value - The ipv4Addresses to set.
      Returns:
      This builder for chaining.
    • addIpv4Addresses

      public DnsSettings.GlueRecord.Builder addIpv4Addresses(String value)
       List of IPv4 addresses corresponding to this host in the standard decimal
       format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
       `ipv6_address` must be set.
       
      repeated string ipv4_addresses = 2;
      Parameters:
      value - The ipv4Addresses to add.
      Returns:
      This builder for chaining.
    • addAllIpv4Addresses

      public DnsSettings.GlueRecord.Builder addAllIpv4Addresses(Iterable<String> values)
       List of IPv4 addresses corresponding to this host in the standard decimal
       format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
       `ipv6_address` must be set.
       
      repeated string ipv4_addresses = 2;
      Parameters:
      values - The ipv4Addresses to add.
      Returns:
      This builder for chaining.
    • clearIpv4Addresses

      public DnsSettings.GlueRecord.Builder clearIpv4Addresses()
       List of IPv4 addresses corresponding to this host in the standard decimal
       format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
       `ipv6_address` must be set.
       
      repeated string ipv4_addresses = 2;
      Returns:
      This builder for chaining.
    • addIpv4AddressesBytes

      public DnsSettings.GlueRecord.Builder addIpv4AddressesBytes(com.google.protobuf.ByteString value)
       List of IPv4 addresses corresponding to this host in the standard decimal
       format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
       `ipv6_address` must be set.
       
      repeated string ipv4_addresses = 2;
      Parameters:
      value - The bytes of the ipv4Addresses to add.
      Returns:
      This builder for chaining.
    • getIpv6AddressesList

      public com.google.protobuf.ProtocolStringList getIpv6AddressesList()
       List of IPv6 addresses corresponding to this host in the standard
       hexadecimal format (e.g. `2001:db8::`). At least one of
       `ipv4_address` and `ipv6_address` must be set.
       
      repeated string ipv6_addresses = 3;
      Specified by:
      getIpv6AddressesList in interface DnsSettings.GlueRecordOrBuilder
      Returns:
      A list containing the ipv6Addresses.
    • getIpv6AddressesCount

      public int getIpv6AddressesCount()
       List of IPv6 addresses corresponding to this host in the standard
       hexadecimal format (e.g. `2001:db8::`). At least one of
       `ipv4_address` and `ipv6_address` must be set.
       
      repeated string ipv6_addresses = 3;
      Specified by:
      getIpv6AddressesCount in interface DnsSettings.GlueRecordOrBuilder
      Returns:
      The count of ipv6Addresses.
    • getIpv6Addresses

      public String getIpv6Addresses(int index)
       List of IPv6 addresses corresponding to this host in the standard
       hexadecimal format (e.g. `2001:db8::`). At least one of
       `ipv4_address` and `ipv6_address` must be set.
       
      repeated string ipv6_addresses = 3;
      Specified by:
      getIpv6Addresses in interface DnsSettings.GlueRecordOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ipv6Addresses at the given index.
    • getIpv6AddressesBytes

      public com.google.protobuf.ByteString getIpv6AddressesBytes(int index)
       List of IPv6 addresses corresponding to this host in the standard
       hexadecimal format (e.g. `2001:db8::`). At least one of
       `ipv4_address` and `ipv6_address` must be set.
       
      repeated string ipv6_addresses = 3;
      Specified by:
      getIpv6AddressesBytes in interface DnsSettings.GlueRecordOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ipv6Addresses at the given index.
    • setIpv6Addresses

      public DnsSettings.GlueRecord.Builder setIpv6Addresses(int index, String value)
       List of IPv6 addresses corresponding to this host in the standard
       hexadecimal format (e.g. `2001:db8::`). At least one of
       `ipv4_address` and `ipv6_address` must be set.
       
      repeated string ipv6_addresses = 3;
      Parameters:
      index - The index to set the value at.
      value - The ipv6Addresses to set.
      Returns:
      This builder for chaining.
    • addIpv6Addresses

      public DnsSettings.GlueRecord.Builder addIpv6Addresses(String value)
       List of IPv6 addresses corresponding to this host in the standard
       hexadecimal format (e.g. `2001:db8::`). At least one of
       `ipv4_address` and `ipv6_address` must be set.
       
      repeated string ipv6_addresses = 3;
      Parameters:
      value - The ipv6Addresses to add.
      Returns:
      This builder for chaining.
    • addAllIpv6Addresses

      public DnsSettings.GlueRecord.Builder addAllIpv6Addresses(Iterable<String> values)
       List of IPv6 addresses corresponding to this host in the standard
       hexadecimal format (e.g. `2001:db8::`). At least one of
       `ipv4_address` and `ipv6_address` must be set.
       
      repeated string ipv6_addresses = 3;
      Parameters:
      values - The ipv6Addresses to add.
      Returns:
      This builder for chaining.
    • clearIpv6Addresses

      public DnsSettings.GlueRecord.Builder clearIpv6Addresses()
       List of IPv6 addresses corresponding to this host in the standard
       hexadecimal format (e.g. `2001:db8::`). At least one of
       `ipv4_address` and `ipv6_address` must be set.
       
      repeated string ipv6_addresses = 3;
      Returns:
      This builder for chaining.
    • addIpv6AddressesBytes

      public DnsSettings.GlueRecord.Builder addIpv6AddressesBytes(com.google.protobuf.ByteString value)
       List of IPv6 addresses corresponding to this host in the standard
       hexadecimal format (e.g. `2001:db8::`). At least one of
       `ipv4_address` and `ipv6_address` must be set.
       
      repeated string ipv6_addresses = 3;
      Parameters:
      value - The bytes of the ipv6Addresses to add.
      Returns:
      This builder for chaining.