Class DnsTable.AddressList.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
-
- io.envoyproxy.envoy.data.dns.v2alpha.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 typeenvoy.data.dns.v2alpha.DnsTable.AddressList
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsTable.AddressList.BuilderaddAddress(String value)This field contains a well formed IP address that is returned in the answer for a name query.DnsTable.AddressList.BuilderaddAddressBytes(com.google.protobuf.ByteString value)This field contains a well formed IP address that is returned in the answer for a name query.DnsTable.AddressList.BuilderaddAllAddress(Iterable<String> values)This field contains a well formed IP address that is returned in the answer for a name query.DnsTable.AddressList.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DnsTable.AddressListbuild()DnsTable.AddressListbuildPartial()DnsTable.AddressList.Builderclear()DnsTable.AddressList.BuilderclearAddress()This field contains a well formed IP address that is returned in the answer for a name query.DnsTable.AddressList.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DnsTable.AddressList.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DnsTable.AddressList.Builderclone()StringgetAddress(int index)This field contains a well formed IP address that is returned in the answer for a name query.com.google.protobuf.ByteStringgetAddressBytes(int index)This field contains a well formed IP address that is returned in the answer for a name query.intgetAddressCount()This field contains a well formed IP address that is returned in the answer for a name query.com.google.protobuf.ProtocolStringListgetAddressList()This field contains a well formed IP address that is returned in the answer for a name query.DnsTable.AddressListgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DnsTable.AddressList.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DnsTable.AddressList.BuildermergeFrom(com.google.protobuf.Message other)DnsTable.AddressList.BuildermergeFrom(DnsTable.AddressList other)DnsTable.AddressList.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DnsTable.AddressList.BuildersetAddress(int index, String value)This field contains a well formed IP address that is returned in the answer for a name query.DnsTable.AddressList.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DnsTable.AddressList.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DnsTable.AddressList.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
-
clear
public DnsTable.AddressList.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
-
getDefaultInstanceForType
public DnsTable.AddressList getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DnsTable.AddressList build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DnsTable.AddressList buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DnsTable.AddressList.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
-
setField
public DnsTable.AddressList.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
-
clearField
public DnsTable.AddressList.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
-
clearOneof
public DnsTable.AddressList.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
-
addRepeatedField
public DnsTable.AddressList.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
-
mergeFrom
public DnsTable.AddressList.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DnsTable.AddressList.Builder>
-
mergeFrom
public DnsTable.AddressList.Builder mergeFrom(DnsTable.AddressList other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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 one randomly chosen entry from this list in the DNS response. The random index will vary per query so that we prevent clients pinning on a single address for a configured domain
repeated string address = 1 [(.validate.rules) = { ... }- Specified by:
getAddressListin interfaceDnsTable.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 one randomly chosen entry from this list in the DNS response. The random index will vary per query so that we prevent clients pinning on a single address for a configured domain
repeated string address = 1 [(.validate.rules) = { ... }- Specified by:
getAddressCountin interfaceDnsTable.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 one randomly chosen entry from this list in the DNS response. The random index will vary per query so that we prevent clients pinning on a single address for a configured domain
repeated string address = 1 [(.validate.rules) = { ... }- Specified by:
getAddressin interfaceDnsTable.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 one randomly chosen entry from this list in the DNS response. The random index will vary per query so that we prevent clients pinning on a single address for a configured domain
repeated string address = 1 [(.validate.rules) = { ... }- Specified by:
getAddressBytesin interfaceDnsTable.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 one randomly chosen entry from this list in the DNS response. The random index will vary per query so that we prevent clients pinning on a single address for a configured domain
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 one randomly chosen entry from this list in the DNS response. The random index will vary per query so that we prevent clients pinning on a single address for a configured domain
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 one randomly chosen entry from this list in the DNS response. The random index will vary per query so that we prevent clients pinning on a single address for a configured domain
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 one randomly chosen entry from this list in the DNS response. The random index will vary per query so that we prevent clients pinning on a single address for a configured domain
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 one randomly chosen entry from this list in the DNS response. The random index will vary per query so that we prevent clients pinning on a single address for a configured domain
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
-
mergeUnknownFields
public final DnsTable.AddressList.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsTable.AddressList.Builder>
-
-