Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/data/dns/v2alpha/dns_table.proto
package io.envoyproxy.envoy.data.dns.v2alpha;
/**
*
* This message contains the configuration for the DNS Filter if populated
* from the control plane
*
*
* Protobuf type {@code envoy.data.dns.v2alpha.DnsTable}
*/
public final class DnsTable extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.dns.v2alpha.DnsTable)
DnsTableOrBuilder {
private static final long serialVersionUID = 0L;
// Use DnsTable.newBuilder() to construct.
private DnsTable(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DnsTable() {
virtualDomains_ = java.util.Collections.emptyList();
knownSuffixes_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DnsTable();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DnsTable(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
externalRetryCount_ = input.readUInt32();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
virtualDomains_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
virtualDomains_.add(
input.readMessage(io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsVirtualDomain.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
knownSuffixes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
knownSuffixes_.add(
input.readMessage(io.envoyproxy.envoy.type.matcher.StringMatcher.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
virtualDomains_ = java.util.Collections.unmodifiableList(virtualDomains_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
knownSuffixes_ = java.util.Collections.unmodifiableList(knownSuffixes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTableProto.internal_static_envoy_data_dns_v2alpha_DnsTable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTableProto.internal_static_envoy_data_dns_v2alpha_DnsTable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.class, io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.Builder.class);
}
public interface AddressListOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.data.dns.v2alpha.DnsTable.AddressList)
com.google.protobuf.MessageOrBuilder {
/**
*
* 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) = { ... }
* @return A list containing the address.
*/
java.util.List
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) = { ... }
* @return The count of address.
*/
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) = { ... }
* @param index The index of the element to return.
* @return The address at the given index.
*/
java.lang.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) = { ... }
* @param index The index of the value to return.
* @return The bytes of the address at the given index.
*/
com.google.protobuf.ByteString
getAddressBytes(int index);
}
/**
*
* This message contains a list of IP addresses returned for a query for a known name
*
*
* Protobuf type {@code envoy.data.dns.v2alpha.DnsTable.AddressList}
*/
public static final class AddressList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.dns.v2alpha.DnsTable.AddressList)
AddressListOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddressList.newBuilder() to construct.
private AddressList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddressList() {
address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddressList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddressList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
address_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
address_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
address_ = address_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTableProto.internal_static_envoy_data_dns_v2alpha_DnsTable_AddressList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTableProto.internal_static_envoy_data_dns_v2alpha_DnsTable_AddressList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.class, io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList address_;
/**
*
* 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) = { ... }
* @return A list containing the address.
*/
public com.google.protobuf.ProtocolStringList
getAddressList() {
return address_;
}
/**
*
* 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) = { ... }
* @return The count of address.
*/
public int getAddressCount() {
return address_.size();
}
/**
*
* 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) = { ... }
* @param index The index of the element to return.
* @return The address at the given index.
*/
public java.lang.String getAddress(int index) {
return address_.get(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) = { ... }
* @param index The index of the value to return.
* @return The bytes of the address at the given index.
*/
public com.google.protobuf.ByteString
getAddressBytes(int index) {
return address_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < address_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < address_.size(); i++) {
dataSize += computeStringSizeNoTag(address_.getRaw(i));
}
size += dataSize;
size += 1 * getAddressList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList other = (io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList) obj;
if (!getAddressList()
.equals(other.getAddressList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getAddressCount() > 0) {
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddressList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* This message contains a list of IP addresses returned for a query for a known name
*
*
* Protobuf type {@code envoy.data.dns.v2alpha.DnsTable.AddressList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.dns.v2alpha.DnsTable.AddressList)
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTableProto.internal_static_envoy_data_dns_v2alpha_DnsTable_AddressList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTableProto.internal_static_envoy_data_dns_v2alpha_DnsTable_AddressList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.class, io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTableProto.internal_static_envoy_data_dns_v2alpha_DnsTable_AddressList_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList build() {
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList buildPartial() {
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList result = new io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
address_ = address_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.address_ = address_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList) {
return mergeFrom((io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList other) {
if (other == io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.getDefaultInstance()) return this;
if (!other.address_.isEmpty()) {
if (address_.isEmpty()) {
address_ = other.address_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAddressIsMutable();
address_.addAll(other.address_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAddressIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
address_ = new com.google.protobuf.LazyStringArrayList(address_);
bitField0_ |= 0x00000001;
}
}
/**
*
* 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) = { ... }
* @return A list containing the address.
*/
public com.google.protobuf.ProtocolStringList
getAddressList() {
return address_.getUnmodifiableView();
}
/**
*
* 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) = { ... }
* @return The count of address.
*/
public int getAddressCount() {
return address_.size();
}
/**
*
* 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) = { ... }
* @param index The index of the element to return.
* @return The address at the given index.
*/
public java.lang.String getAddress(int index) {
return address_.get(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) = { ... }
* @param index The index of the value to return.
* @return The bytes of the address at the given index.
*/
public com.google.protobuf.ByteString
getAddressBytes(int index) {
return address_.getByteString(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) = { ... }
* @param index The index to set the value at.
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAddressIsMutable();
address_.set(index, value);
onChanged();
return this;
}
/**
*
* 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) = { ... }
* @param value The address to add.
* @return This builder for chaining.
*/
public Builder addAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAddressIsMutable();
address_.add(value);
onChanged();
return this;
}
/**
*
* 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) = { ... }
* @param values The address to add.
* @return This builder for chaining.
*/
public Builder addAllAddress(
java.lang.Iterable values) {
ensureAddressIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, address_);
onChanged();
return this;
}
/**
*
* 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
*
* 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) = { ... }
* @param value The bytes of the address to add.
* @return This builder for chaining.
*/
public Builder addAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAddressIsMutable();
address_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.data.dns.v2alpha.DnsTable.AddressList)
}
// @@protoc_insertion_point(class_scope:envoy.data.dns.v2alpha.DnsTable.AddressList)
private static final io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList();
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AddressList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddressList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DnsEndpointOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.data.dns.v2alpha.DnsTable.DnsEndpoint)
com.google.protobuf.MessageOrBuilder {
/**
* .envoy.data.dns.v2alpha.DnsTable.AddressList address_list = 1;
* @return Whether the addressList field is set.
*/
boolean hasAddressList();
/**
* .envoy.data.dns.v2alpha.DnsTable.AddressList address_list = 1;
* @return The addressList.
*/
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList getAddressList();
/**
* .envoy.data.dns.v2alpha.DnsTable.AddressList address_list = 1;
*/
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressListOrBuilder getAddressListOrBuilder();
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint.EndpointConfigCase getEndpointConfigCase();
}
/**
*
* This message type is extensible and can contain a list of addresses
* or dictate some other method for resolving the addresses for an
* endpoint
*
*
* Protobuf type {@code envoy.data.dns.v2alpha.DnsTable.DnsEndpoint}
*/
public static final class DnsEndpoint extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.dns.v2alpha.DnsTable.DnsEndpoint)
DnsEndpointOrBuilder {
private static final long serialVersionUID = 0L;
// Use DnsEndpoint.newBuilder() to construct.
private DnsEndpoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DnsEndpoint() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DnsEndpoint();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DnsEndpoint(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.Builder subBuilder = null;
if (endpointConfigCase_ == 1) {
subBuilder = ((io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList) endpointConfig_).toBuilder();
}
endpointConfig_ =
input.readMessage(io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList) endpointConfig_);
endpointConfig_ = subBuilder.buildPartial();
}
endpointConfigCase_ = 1;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTableProto.internal_static_envoy_data_dns_v2alpha_DnsTable_DnsEndpoint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTableProto.internal_static_envoy_data_dns_v2alpha_DnsTable_DnsEndpoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint.class, io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint.Builder.class);
}
private int endpointConfigCase_ = 0;
private java.lang.Object endpointConfig_;
public enum EndpointConfigCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ADDRESS_LIST(1),
ENDPOINTCONFIG_NOT_SET(0);
private final int value;
private EndpointConfigCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EndpointConfigCase valueOf(int value) {
return forNumber(value);
}
public static EndpointConfigCase forNumber(int value) {
switch (value) {
case 1: return ADDRESS_LIST;
case 0: return ENDPOINTCONFIG_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public EndpointConfigCase
getEndpointConfigCase() {
return EndpointConfigCase.forNumber(
endpointConfigCase_);
}
public static final int ADDRESS_LIST_FIELD_NUMBER = 1;
/**
* .envoy.data.dns.v2alpha.DnsTable.AddressList address_list = 1;
* @return Whether the addressList field is set.
*/
@java.lang.Override
public boolean hasAddressList() {
return endpointConfigCase_ == 1;
}
/**
* .envoy.data.dns.v2alpha.DnsTable.AddressList address_list = 1;
* @return The addressList.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList getAddressList() {
if (endpointConfigCase_ == 1) {
return (io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList) endpointConfig_;
}
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.getDefaultInstance();
}
/**
* .envoy.data.dns.v2alpha.DnsTable.AddressList address_list = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressListOrBuilder getAddressListOrBuilder() {
if (endpointConfigCase_ == 1) {
return (io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList) endpointConfig_;
}
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (endpointConfigCase_ == 1) {
output.writeMessage(1, (io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList) endpointConfig_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (endpointConfigCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList) endpointConfig_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint other = (io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint) obj;
if (!getEndpointConfigCase().equals(other.getEndpointConfigCase())) return false;
switch (endpointConfigCase_) {
case 1:
if (!getAddressList()
.equals(other.getAddressList())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (endpointConfigCase_) {
case 1:
hash = (37 * hash) + ADDRESS_LIST_FIELD_NUMBER;
hash = (53 * hash) + getAddressList().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* This message type is extensible and can contain a list of addresses
* or dictate some other method for resolving the addresses for an
* endpoint
*
*
* Protobuf type {@code envoy.data.dns.v2alpha.DnsTable.DnsEndpoint}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.dns.v2alpha.DnsTable.DnsEndpoint)
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpointOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTableProto.internal_static_envoy_data_dns_v2alpha_DnsTable_DnsEndpoint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTableProto.internal_static_envoy_data_dns_v2alpha_DnsTable_DnsEndpoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint.class, io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
endpointConfigCase_ = 0;
endpointConfig_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTableProto.internal_static_envoy_data_dns_v2alpha_DnsTable_DnsEndpoint_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint build() {
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint buildPartial() {
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint result = new io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint(this);
if (endpointConfigCase_ == 1) {
if (addressListBuilder_ == null) {
result.endpointConfig_ = endpointConfig_;
} else {
result.endpointConfig_ = addressListBuilder_.build();
}
}
result.endpointConfigCase_ = endpointConfigCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint) {
return mergeFrom((io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint other) {
if (other == io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint.getDefaultInstance()) return this;
switch (other.getEndpointConfigCase()) {
case ADDRESS_LIST: {
mergeAddressList(other.getAddressList());
break;
}
case ENDPOINTCONFIG_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int endpointConfigCase_ = 0;
private java.lang.Object endpointConfig_;
public EndpointConfigCase
getEndpointConfigCase() {
return EndpointConfigCase.forNumber(
endpointConfigCase_);
}
public Builder clearEndpointConfig() {
endpointConfigCase_ = 0;
endpointConfig_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList, io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.Builder, io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressListOrBuilder> addressListBuilder_;
/**
* .envoy.data.dns.v2alpha.DnsTable.AddressList address_list = 1;
* @return Whether the addressList field is set.
*/
@java.lang.Override
public boolean hasAddressList() {
return endpointConfigCase_ == 1;
}
/**
* .envoy.data.dns.v2alpha.DnsTable.AddressList address_list = 1;
* @return The addressList.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList getAddressList() {
if (addressListBuilder_ == null) {
if (endpointConfigCase_ == 1) {
return (io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList) endpointConfig_;
}
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.getDefaultInstance();
} else {
if (endpointConfigCase_ == 1) {
return addressListBuilder_.getMessage();
}
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.getDefaultInstance();
}
}
/**
* .envoy.data.dns.v2alpha.DnsTable.AddressList address_list = 1;
*/
public Builder setAddressList(io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList value) {
if (addressListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endpointConfig_ = value;
onChanged();
} else {
addressListBuilder_.setMessage(value);
}
endpointConfigCase_ = 1;
return this;
}
/**
* .envoy.data.dns.v2alpha.DnsTable.AddressList address_list = 1;
*/
public Builder setAddressList(
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.Builder builderForValue) {
if (addressListBuilder_ == null) {
endpointConfig_ = builderForValue.build();
onChanged();
} else {
addressListBuilder_.setMessage(builderForValue.build());
}
endpointConfigCase_ = 1;
return this;
}
/**
* .envoy.data.dns.v2alpha.DnsTable.AddressList address_list = 1;
*/
public Builder mergeAddressList(io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList value) {
if (addressListBuilder_ == null) {
if (endpointConfigCase_ == 1 &&
endpointConfig_ != io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.getDefaultInstance()) {
endpointConfig_ = io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.newBuilder((io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList) endpointConfig_)
.mergeFrom(value).buildPartial();
} else {
endpointConfig_ = value;
}
onChanged();
} else {
if (endpointConfigCase_ == 1) {
addressListBuilder_.mergeFrom(value);
} else {
addressListBuilder_.setMessage(value);
}
}
endpointConfigCase_ = 1;
return this;
}
/**
* .envoy.data.dns.v2alpha.DnsTable.AddressList address_list = 1;
*/
public Builder clearAddressList() {
if (addressListBuilder_ == null) {
if (endpointConfigCase_ == 1) {
endpointConfigCase_ = 0;
endpointConfig_ = null;
onChanged();
}
} else {
if (endpointConfigCase_ == 1) {
endpointConfigCase_ = 0;
endpointConfig_ = null;
}
addressListBuilder_.clear();
}
return this;
}
/**
* .envoy.data.dns.v2alpha.DnsTable.AddressList address_list = 1;
*/
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.Builder getAddressListBuilder() {
return getAddressListFieldBuilder().getBuilder();
}
/**
* .envoy.data.dns.v2alpha.DnsTable.AddressList address_list = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressListOrBuilder getAddressListOrBuilder() {
if ((endpointConfigCase_ == 1) && (addressListBuilder_ != null)) {
return addressListBuilder_.getMessageOrBuilder();
} else {
if (endpointConfigCase_ == 1) {
return (io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList) endpointConfig_;
}
return io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.getDefaultInstance();
}
}
/**
* .envoy.data.dns.v2alpha.DnsTable.AddressList address_list = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList, io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.Builder, io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressListOrBuilder>
getAddressListFieldBuilder() {
if (addressListBuilder_ == null) {
if (!(endpointConfigCase_ == 1)) {
endpointConfig_ = io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.getDefaultInstance();
}
addressListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList, io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList.Builder, io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressListOrBuilder>(
(io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.AddressList) endpointConfig_,
getParentForChildren(),
isClean());
endpointConfig_ = null;
}
endpointConfigCase_ = 1;
onChanged();;
return addressListBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.data.dns.v2alpha.DnsTable.DnsEndpoint)
}
// @@protoc_insertion_point(class_scope:envoy.data.dns.v2alpha.DnsTable.DnsEndpoint)
private static final io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint();
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DnsEndpoint parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DnsEndpoint(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DnsVirtualDomainOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.data.dns.v2alpha.DnsTable.DnsVirtualDomain)
com.google.protobuf.MessageOrBuilder {
/**
*
* The domain name for which Envoy will respond to query requests
*
*
* string name = 1 [(.validate.rules) = { ... }
* @return The name.
*/
java.lang.String getName();
/**
*
* The domain name for which Envoy will respond to query requests
*
*
* string name = 1 [(.validate.rules) = { ... }
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* The configuration containing the method to determine the address
* of this endpoint
*
*
* .envoy.data.dns.v2alpha.DnsTable.DnsEndpoint endpoint = 2;
* @return Whether the endpoint field is set.
*/
boolean hasEndpoint();
/**
*
* The configuration containing the method to determine the address
* of this endpoint
*
* The domain name for which Envoy will respond to query requests
*
*
* string name = 1 [(.validate.rules) = { ... }
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The domain name for which Envoy will respond to query requests
*
*
* string name = 1 [(.validate.rules) = { ... }
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* The domain name for which Envoy will respond to query requests
*
*
* string name = 1 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* The domain name for which Envoy will respond to query requests
*
*
* string name = 1 [(.validate.rules) = { ... }
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint endpoint_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint, io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpoint.Builder, io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsEndpointOrBuilder> endpointBuilder_;
/**
*
* The configuration containing the method to determine the address
* of this endpoint
*
*
* .envoy.data.dns.v2alpha.DnsTable.DnsEndpoint endpoint = 2;
* @return Whether the endpoint field is set.
*/
public boolean hasEndpoint() {
return endpointBuilder_ != null || endpoint_ != null;
}
/**
*
* The configuration containing the method to determine the address
* of this endpoint
*
* Fully qualified domain names for which Envoy will respond to queries
*
*
* repeated .envoy.data.dns.v2alpha.DnsTable.DnsVirtualDomain virtual_domains = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable.DnsVirtualDomainOrBuilder getVirtualDomainsOrBuilder(
int index) {
return virtualDomains_.get(index);
}
public static final int KNOWN_SUFFIXES_FIELD_NUMBER = 3;
private java.util.List knownSuffixes_;
/**
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
*
* repeated .envoy.type.matcher.StringMatcher known_suffixes = 3;
*/
@java.lang.Override
public int getKnownSuffixesCount() {
return knownSuffixes_.size();
}
/**
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
*
* repeated .envoy.type.matcher.StringMatcher known_suffixes = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.StringMatcherOrBuilder getKnownSuffixesOrBuilder(
int index) {
return knownSuffixes_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (externalRetryCount_ != 0) {
output.writeUInt32(1, externalRetryCount_);
}
for (int i = 0; i < virtualDomains_.size(); i++) {
output.writeMessage(2, virtualDomains_.get(i));
}
for (int i = 0; i < knownSuffixes_.size(); i++) {
output.writeMessage(3, knownSuffixes_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (externalRetryCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, externalRetryCount_);
}
for (int i = 0; i < virtualDomains_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, virtualDomains_.get(i));
}
for (int i = 0; i < knownSuffixes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, knownSuffixes_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.data.dns.v2alpha.DnsTable)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.dns.v2alpha.DnsTable other = (io.envoyproxy.envoy.data.dns.v2alpha.DnsTable) obj;
if (getExternalRetryCount()
!= other.getExternalRetryCount()) return false;
if (!getVirtualDomainsList()
.equals(other.getVirtualDomainsList())) return false;
if (!getKnownSuffixesList()
.equals(other.getKnownSuffixesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + EXTERNAL_RETRY_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getExternalRetryCount();
if (getVirtualDomainsCount() > 0) {
hash = (37 * hash) + VIRTUAL_DOMAINS_FIELD_NUMBER;
hash = (53 * hash) + getVirtualDomainsList().hashCode();
}
if (getKnownSuffixesCount() > 0) {
hash = (37 * hash) + KNOWN_SUFFIXES_FIELD_NUMBER;
hash = (53 * hash) + getKnownSuffixesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.data.dns.v2alpha.DnsTable prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* This message contains the configuration for the DNS Filter if populated
* from the control plane
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
*
* repeated .envoy.type.matcher.StringMatcher known_suffixes = 3;
*/
public int getKnownSuffixesCount() {
if (knownSuffixesBuilder_ == null) {
return knownSuffixes_.size();
} else {
return knownSuffixesBuilder_.getCount();
}
}
/**
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
*
* repeated .envoy.type.matcher.StringMatcher known_suffixes = 3;
*/
public Builder setKnownSuffixes(
int index, io.envoyproxy.envoy.type.matcher.StringMatcher value) {
if (knownSuffixesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKnownSuffixesIsMutable();
knownSuffixes_.set(index, value);
onChanged();
} else {
knownSuffixesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
*
* repeated .envoy.type.matcher.StringMatcher known_suffixes = 3;
*/
public Builder addKnownSuffixes(io.envoyproxy.envoy.type.matcher.StringMatcher value) {
if (knownSuffixesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKnownSuffixesIsMutable();
knownSuffixes_.add(value);
onChanged();
} else {
knownSuffixesBuilder_.addMessage(value);
}
return this;
}
/**
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
*
* repeated .envoy.type.matcher.StringMatcher known_suffixes = 3;
*/
public Builder addKnownSuffixes(
int index, io.envoyproxy.envoy.type.matcher.StringMatcher value) {
if (knownSuffixesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKnownSuffixesIsMutable();
knownSuffixes_.add(index, value);
onChanged();
} else {
knownSuffixesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
*
* repeated .envoy.type.matcher.StringMatcher known_suffixes = 3;
*/
public io.envoyproxy.envoy.type.matcher.StringMatcher.Builder getKnownSuffixesBuilder(
int index) {
return getKnownSuffixesFieldBuilder().getBuilder(index);
}
/**
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
*
* repeated .envoy.type.matcher.StringMatcher known_suffixes = 3;
*/
public io.envoyproxy.envoy.type.matcher.StringMatcherOrBuilder getKnownSuffixesOrBuilder(
int index) {
if (knownSuffixesBuilder_ == null) {
return knownSuffixes_.get(index); } else {
return knownSuffixesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
* This field serves to help Envoy determine whether it can authoritatively
* answer a query for a name matching a suffix in this list. If the query
* name does not match a suffix in this list, Envoy will forward
* the query to an upstream DNS server
*
*
* repeated .envoy.type.matcher.StringMatcher known_suffixes = 3;
*/
public java.util.List
getKnownSuffixesBuilderList() {
return getKnownSuffixesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.StringMatcher, io.envoyproxy.envoy.type.matcher.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.StringMatcherOrBuilder>
getKnownSuffixesFieldBuilder() {
if (knownSuffixesBuilder_ == null) {
knownSuffixesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.StringMatcher, io.envoyproxy.envoy.type.matcher.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.StringMatcherOrBuilder>(
knownSuffixes_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
knownSuffixes_ = null;
}
return knownSuffixesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.data.dns.v2alpha.DnsTable)
}
// @@protoc_insertion_point(class_scope:envoy.data.dns.v2alpha.DnsTable)
private static final io.envoyproxy.envoy.data.dns.v2alpha.DnsTable DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.dns.v2alpha.DnsTable();
}
public static io.envoyproxy.envoy.data.dns.v2alpha.DnsTable getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DnsTable parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DnsTable(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v2alpha.DnsTable getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}