Class DnsTable.AddressList.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DnsTable.AddressListOrBuilder, Cloneable
Enclosing class:
DnsTable.AddressList

public static final class DnsTable.AddressList.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder> implements DnsTable.AddressListOrBuilder
 This message contains a list of IP addresses returned for a query for a known name
 
Protobuf type envoy.data.dns.v3.DnsTable.AddressList
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.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.GeneratedMessageV3.Builder<DnsTable.AddressList.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.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
    • getDefaultInstanceForType

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

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

      public DnsTable.AddressList buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
    • setField

      public DnsTable.AddressList.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
    • clearField

      public DnsTable.AddressList.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
    • clearOneof

      public DnsTable.AddressList.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
    • setRepeatedField

      public DnsTable.AddressList.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
    • addRepeatedField

      public DnsTable.AddressList.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
    • mergeFrom

      public DnsTable.AddressList.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<DnsTable.AddressList.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
    • mergeFrom

      public DnsTable.AddressList.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<DnsTable.AddressList.Builder>
      Throws:
      IOException
    • getAddressList

      public com.google.protobuf.ProtocolStringList getAddressList()
       This field contains a well formed IP address that is returned in the answer for a
       name query. The address field can be an IPv4 or IPv6 address. Address family
       detection is done automatically when Envoy parses the string. Since this field is
       repeated, Envoy will return as many entries from this list in the DNS response while
       keeping the response under 512 bytes
       
      repeated string address = 1 [(.validate.rules) = { ... }
      Specified by:
      getAddressList in interface DnsTable.AddressListOrBuilder
      Returns:
      A list containing the address.
    • getAddressCount

      public int getAddressCount()
       This field contains a well formed IP address that is returned in the answer for a
       name query. The address field can be an IPv4 or IPv6 address. Address family
       detection is done automatically when Envoy parses the string. Since this field is
       repeated, Envoy will return as many entries from this list in the DNS response while
       keeping the response under 512 bytes
       
      repeated string address = 1 [(.validate.rules) = { ... }
      Specified by:
      getAddressCount in interface DnsTable.AddressListOrBuilder
      Returns:
      The count of address.
    • getAddress

      public String getAddress(int index)
       This field contains a well formed IP address that is returned in the answer for a
       name query. The address field can be an IPv4 or IPv6 address. Address family
       detection is done automatically when Envoy parses the string. Since this field is
       repeated, Envoy will return as many entries from this list in the DNS response while
       keeping the response under 512 bytes
       
      repeated string address = 1 [(.validate.rules) = { ... }
      Specified by:
      getAddress in interface DnsTable.AddressListOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The address at the given index.
    • getAddressBytes

      public com.google.protobuf.ByteString getAddressBytes(int index)
       This field contains a well formed IP address that is returned in the answer for a
       name query. The address field can be an IPv4 or IPv6 address. Address family
       detection is done automatically when Envoy parses the string. Since this field is
       repeated, Envoy will return as many entries from this list in the DNS response while
       keeping the response under 512 bytes
       
      repeated string address = 1 [(.validate.rules) = { ... }
      Specified by:
      getAddressBytes in interface DnsTable.AddressListOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the address at the given index.
    • setAddress

      public DnsTable.AddressList.Builder setAddress(int index, String value)
       This field contains a well formed IP address that is returned in the answer for a
       name query. The address field can be an IPv4 or IPv6 address. Address family
       detection is done automatically when Envoy parses the string. Since this field is
       repeated, Envoy will return as many entries from this list in the DNS response while
       keeping the response under 512 bytes
       
      repeated string address = 1 [(.validate.rules) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The address to set.
      Returns:
      This builder for chaining.
    • addAddress

      public DnsTable.AddressList.Builder addAddress(String value)
       This field contains a well formed IP address that is returned in the answer for a
       name query. The address field can be an IPv4 or IPv6 address. Address family
       detection is done automatically when Envoy parses the string. Since this field is
       repeated, Envoy will return as many entries from this list in the DNS response while
       keeping the response under 512 bytes
       
      repeated string address = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The address to add.
      Returns:
      This builder for chaining.
    • addAllAddress

      public DnsTable.AddressList.Builder addAllAddress(Iterable<String> values)
       This field contains a well formed IP address that is returned in the answer for a
       name query. The address field can be an IPv4 or IPv6 address. Address family
       detection is done automatically when Envoy parses the string. Since this field is
       repeated, Envoy will return as many entries from this list in the DNS response while
       keeping the response under 512 bytes
       
      repeated string address = 1 [(.validate.rules) = { ... }
      Parameters:
      values - The address to add.
      Returns:
      This builder for chaining.
    • clearAddress

      public DnsTable.AddressList.Builder clearAddress()
       This field contains a well formed IP address that is returned in the answer for a
       name query. The address field can be an IPv4 or IPv6 address. Address family
       detection is done automatically when Envoy parses the string. Since this field is
       repeated, Envoy will return as many entries from this list in the DNS response while
       keeping the response under 512 bytes
       
      repeated string address = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • addAddressBytes

      public DnsTable.AddressList.Builder addAddressBytes(com.google.protobuf.ByteString value)
       This field contains a well formed IP address that is returned in the answer for a
       name query. The address field can be an IPv4 or IPv6 address. Address family
       detection is done automatically when Envoy parses the string. Since this field is
       repeated, Envoy will return as many entries from this list in the DNS response while
       keeping the response under 512 bytes
       
      repeated string address = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes of the address to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final DnsTable.AddressList.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
    • mergeUnknownFields

      public final DnsTable.AddressList.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>