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/v3/dns_table.proto
package io.envoyproxy.envoy.data.dns.v3;
/**
*
* This message contains the configuration for the DNS Filter if populated
* from the control plane
*
*
* Protobuf type {@code envoy.data.dns.v3.DnsTable}
*/
public final class DnsTable extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.dns.v3.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.v3.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.v3.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.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v3.DnsTable.class, io.envoyproxy.envoy.data.dns.v3.DnsTable.Builder.class);
}
public interface AddressListOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.data.dns.v3.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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
*
* 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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
*
* 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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
*
* 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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
*
* 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.v3.DnsTable.AddressList}
*/
public static final class AddressList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.dns.v3.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.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_AddressList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_AddressList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.class, io.envoyproxy.envoy.data.dns.v3.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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
*
* 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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
*
* 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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
*
* 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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
*
* 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.v3.DnsTable.AddressList)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList other = (io.envoyproxy.envoy.data.dns.v3.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.v3.DnsTable.AddressList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.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.v3.DnsTable.AddressList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.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.v3.DnsTable.AddressList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.DnsTable.AddressList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.dns.v3.DnsTable.AddressList)
io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_AddressList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_AddressList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.class, io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.dns.v3.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.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_AddressList_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList build() {
io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList buildPartial() {
io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList result = new io.envoyproxy.envoy.data.dns.v3.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.v3.DnsTable.AddressList) {
return mergeFrom((io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList other) {
if (other == io.envoyproxy.envoy.data.dns.v3.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.v3.DnsTable.AddressList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.dns.v3.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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
*
* 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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
*
* 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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
*
* 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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
*
* 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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
*
* 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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
*
* 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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
*
* 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 as many entries from this list in the DNS response while
* keeping the response under 512 bytes
*
* 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) = { ... }
* @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.v3.DnsTable.AddressList)
}
// @@protoc_insertion_point(class_scope:envoy.data.dns.v3.DnsTable.AddressList)
private static final io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList();
}
public static io.envoyproxy.envoy.data.dns.v3.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.v3.DnsTable.AddressList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DnsServiceProtocolOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.data.dns.v3.DnsTable.DnsServiceProtocol)
com.google.protobuf.MessageOrBuilder {
/**
*
* Specify the protocol number for the service. Envoy will try to resolve the number to
* the protocol name. For example, 6 will resolve to "tcp". Refer to:
* https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
* for protocol names and numbers
*
*
* uint32 number = 1 [(.validate.rules) = { ... }
* @return Whether the number field is set.
*/
boolean hasNumber();
/**
*
* Specify the protocol number for the service. Envoy will try to resolve the number to
* the protocol name. For example, 6 will resolve to "tcp". Refer to:
* https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
* for protocol names and numbers
*
*
* uint32 number = 1 [(.validate.rules) = { ... }
* @return The number.
*/
int getNumber();
/**
*
* Specify the protocol name for the service.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return Whether the name field is set.
*/
boolean hasName();
/**
*
* Specify the protocol name for the service.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return The name.
*/
java.lang.String getName();
/**
*
* Specify the protocol name for the service.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.ProtocolConfigCase getProtocolConfigCase();
}
/**
*
* Specify the service protocol using a numeric or string value
*
*
* Protobuf type {@code envoy.data.dns.v3.DnsTable.DnsServiceProtocol}
*/
public static final class DnsServiceProtocol extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.dns.v3.DnsTable.DnsServiceProtocol)
DnsServiceProtocolOrBuilder {
private static final long serialVersionUID = 0L;
// Use DnsServiceProtocol.newBuilder() to construct.
private DnsServiceProtocol(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DnsServiceProtocol() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DnsServiceProtocol();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DnsServiceProtocol(
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 8: {
protocolConfig_ = input.readUInt32();
protocolConfigCase_ = 1;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
protocolConfigCase_ = 2;
protocolConfig_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_DnsServiceProtocol_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_DnsServiceProtocol_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.class, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.Builder.class);
}
private int protocolConfigCase_ = 0;
private java.lang.Object protocolConfig_;
public enum ProtocolConfigCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
NUMBER(1),
NAME(2),
PROTOCOLCONFIG_NOT_SET(0);
private final int value;
private ProtocolConfigCase(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 ProtocolConfigCase valueOf(int value) {
return forNumber(value);
}
public static ProtocolConfigCase forNumber(int value) {
switch (value) {
case 1: return NUMBER;
case 2: return NAME;
case 0: return PROTOCOLCONFIG_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ProtocolConfigCase
getProtocolConfigCase() {
return ProtocolConfigCase.forNumber(
protocolConfigCase_);
}
public static final int NUMBER_FIELD_NUMBER = 1;
/**
*
* Specify the protocol number for the service. Envoy will try to resolve the number to
* the protocol name. For example, 6 will resolve to "tcp". Refer to:
* https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
* for protocol names and numbers
*
*
* uint32 number = 1 [(.validate.rules) = { ... }
* @return Whether the number field is set.
*/
@java.lang.Override
public boolean hasNumber() {
return protocolConfigCase_ == 1;
}
/**
*
* Specify the protocol number for the service. Envoy will try to resolve the number to
* the protocol name. For example, 6 will resolve to "tcp". Refer to:
* https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
* for protocol names and numbers
*
*
* uint32 number = 1 [(.validate.rules) = { ... }
* @return The number.
*/
@java.lang.Override
public int getNumber() {
if (protocolConfigCase_ == 1) {
return (java.lang.Integer) protocolConfig_;
}
return 0;
}
public static final int NAME_FIELD_NUMBER = 2;
/**
*
* Specify the protocol name for the service.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return Whether the name field is set.
*/
public boolean hasName() {
return protocolConfigCase_ == 2;
}
/**
*
* Specify the protocol name for the service.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = "";
if (protocolConfigCase_ == 2) {
ref = protocolConfig_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (protocolConfigCase_ == 2) {
protocolConfig_ = s;
}
return s;
}
}
/**
*
* Specify the protocol name for the service.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = "";
if (protocolConfigCase_ == 2) {
ref = protocolConfig_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (protocolConfigCase_ == 2) {
protocolConfig_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (protocolConfigCase_ == 1) {
output.writeUInt32(
1, (int)((java.lang.Integer) protocolConfig_));
}
if (protocolConfigCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, protocolConfig_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (protocolConfigCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(
1, (int)((java.lang.Integer) protocolConfig_));
}
if (protocolConfigCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, protocolConfig_);
}
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.v3.DnsTable.DnsServiceProtocol)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol other = (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol) obj;
if (!getProtocolConfigCase().equals(other.getProtocolConfigCase())) return false;
switch (protocolConfigCase_) {
case 1:
if (getNumber()
!= other.getNumber()) return false;
break;
case 2:
if (!getName()
.equals(other.getName())) 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 (protocolConfigCase_) {
case 1:
hash = (37 * hash) + NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getNumber();
break;
case 2:
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol 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.v3.DnsTable.DnsServiceProtocol parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol 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.v3.DnsTable.DnsServiceProtocol parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol 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.v3.DnsTable.DnsServiceProtocol parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol 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.v3.DnsTable.DnsServiceProtocol parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol 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.v3.DnsTable.DnsServiceProtocol 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.v3.DnsTable.DnsServiceProtocol 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.v3.DnsTable.DnsServiceProtocol 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;
}
/**
*
* Specify the service protocol using a numeric or string value
*
*
* Protobuf type {@code envoy.data.dns.v3.DnsTable.DnsServiceProtocol}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.dns.v3.DnsTable.DnsServiceProtocol)
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocolOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_DnsServiceProtocol_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_DnsServiceProtocol_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.class, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.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();
protocolConfigCase_ = 0;
protocolConfig_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_DnsServiceProtocol_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol build() {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol buildPartial() {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol result = new io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol(this);
if (protocolConfigCase_ == 1) {
result.protocolConfig_ = protocolConfig_;
}
if (protocolConfigCase_ == 2) {
result.protocolConfig_ = protocolConfig_;
}
result.protocolConfigCase_ = protocolConfigCase_;
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.v3.DnsTable.DnsServiceProtocol) {
return mergeFrom((io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol other) {
if (other == io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.getDefaultInstance()) return this;
switch (other.getProtocolConfigCase()) {
case NUMBER: {
setNumber(other.getNumber());
break;
}
case NAME: {
protocolConfigCase_ = 2;
protocolConfig_ = other.protocolConfig_;
onChanged();
break;
}
case PROTOCOLCONFIG_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.v3.DnsTable.DnsServiceProtocol parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int protocolConfigCase_ = 0;
private java.lang.Object protocolConfig_;
public ProtocolConfigCase
getProtocolConfigCase() {
return ProtocolConfigCase.forNumber(
protocolConfigCase_);
}
public Builder clearProtocolConfig() {
protocolConfigCase_ = 0;
protocolConfig_ = null;
onChanged();
return this;
}
/**
*
* Specify the protocol number for the service. Envoy will try to resolve the number to
* the protocol name. For example, 6 will resolve to "tcp". Refer to:
* https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
* for protocol names and numbers
*
*
* uint32 number = 1 [(.validate.rules) = { ... }
* @return Whether the number field is set.
*/
public boolean hasNumber() {
return protocolConfigCase_ == 1;
}
/**
*
* Specify the protocol number for the service. Envoy will try to resolve the number to
* the protocol name. For example, 6 will resolve to "tcp". Refer to:
* https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
* for protocol names and numbers
*
*
* uint32 number = 1 [(.validate.rules) = { ... }
* @return The number.
*/
public int getNumber() {
if (protocolConfigCase_ == 1) {
return (java.lang.Integer) protocolConfig_;
}
return 0;
}
/**
*
* Specify the protocol number for the service. Envoy will try to resolve the number to
* the protocol name. For example, 6 will resolve to "tcp". Refer to:
* https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
* for protocol names and numbers
*
*
* uint32 number = 1 [(.validate.rules) = { ... }
* @param value The number to set.
* @return This builder for chaining.
*/
public Builder setNumber(int value) {
protocolConfigCase_ = 1;
protocolConfig_ = value;
onChanged();
return this;
}
/**
*
* Specify the protocol number for the service. Envoy will try to resolve the number to
* the protocol name. For example, 6 will resolve to "tcp". Refer to:
* https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
* for protocol names and numbers
*
*
* uint32 number = 1 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearNumber() {
if (protocolConfigCase_ == 1) {
protocolConfigCase_ = 0;
protocolConfig_ = null;
onChanged();
}
return this;
}
/**
*
* Specify the protocol name for the service.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return protocolConfigCase_ == 2;
}
/**
*
* Specify the protocol name for the service.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = "";
if (protocolConfigCase_ == 2) {
ref = protocolConfig_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (protocolConfigCase_ == 2) {
protocolConfig_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Specify the protocol name for the service.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = "";
if (protocolConfigCase_ == 2) {
ref = protocolConfig_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (protocolConfigCase_ == 2) {
protocolConfig_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Specify the protocol name for the service.
*
*
* string name = 2 [(.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();
}
protocolConfigCase_ = 2;
protocolConfig_ = value;
onChanged();
return this;
}
/**
*
* Specify the protocol name for the service.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearName() {
if (protocolConfigCase_ == 2) {
protocolConfigCase_ = 0;
protocolConfig_ = null;
onChanged();
}
return this;
}
/**
*
* Specify the protocol name for the service.
*
*
* string name = 2 [(.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);
protocolConfigCase_ = 2;
protocolConfig_ = 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.v3.DnsTable.DnsServiceProtocol)
}
// @@protoc_insertion_point(class_scope:envoy.data.dns.v3.DnsTable.DnsServiceProtocol)
private static final io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol();
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DnsServiceProtocol parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DnsServiceProtocol(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.v3.DnsTable.DnsServiceProtocol getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DnsServiceTargetOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.data.dns.v3.DnsTable.DnsServiceTarget)
com.google.protobuf.MessageOrBuilder {
/**
*
* Use a resolvable hostname as the endpoint for a service.
*
*
* string host_name = 1 [(.validate.rules) = { ... }
* @return Whether the hostName field is set.
*/
boolean hasHostName();
/**
*
* Use a resolvable hostname as the endpoint for a service.
*
*
* uint32 priority = 3 [(.validate.rules) = { ... }
* @return The priority.
*/
int getPriority();
/**
*
* The weight of the service record target
*
*
* uint32 weight = 4 [(.validate.rules) = { ... }
* @return The weight.
*/
int getWeight();
/**
*
* The port to which the service is bound. This value is optional if the target is a
* cluster. Setting port to zero in this case makes the filter use the port value
* from the cluster host
*
*
* uint32 port = 5 [(.validate.rules) = { ... }
* @return The port.
*/
int getPort();
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.EndpointTypeCase getEndpointTypeCase();
}
/**
*
* Specify the target for a given DNS service
* [#next-free-field: 6]
*
*
* Protobuf type {@code envoy.data.dns.v3.DnsTable.DnsServiceTarget}
*/
public static final class DnsServiceTarget extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.dns.v3.DnsTable.DnsServiceTarget)
DnsServiceTargetOrBuilder {
private static final long serialVersionUID = 0L;
// Use DnsServiceTarget.newBuilder() to construct.
private DnsServiceTarget(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DnsServiceTarget() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DnsServiceTarget();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DnsServiceTarget(
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: {
java.lang.String s = input.readStringRequireUtf8();
endpointTypeCase_ = 1;
endpointType_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
endpointTypeCase_ = 2;
endpointType_ = s;
break;
}
case 24: {
priority_ = input.readUInt32();
break;
}
case 32: {
weight_ = input.readUInt32();
break;
}
case 40: {
port_ = input.readUInt32();
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.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_DnsServiceTarget_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_DnsServiceTarget_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.class, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.Builder.class);
}
private int endpointTypeCase_ = 0;
private java.lang.Object endpointType_;
public enum EndpointTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
HOST_NAME(1),
CLUSTER_NAME(2),
ENDPOINTTYPE_NOT_SET(0);
private final int value;
private EndpointTypeCase(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 EndpointTypeCase valueOf(int value) {
return forNumber(value);
}
public static EndpointTypeCase forNumber(int value) {
switch (value) {
case 1: return HOST_NAME;
case 2: return CLUSTER_NAME;
case 0: return ENDPOINTTYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public EndpointTypeCase
getEndpointTypeCase() {
return EndpointTypeCase.forNumber(
endpointTypeCase_);
}
public static final int HOST_NAME_FIELD_NUMBER = 1;
/**
*
* Use a resolvable hostname as the endpoint for a service.
*
*
* string host_name = 1 [(.validate.rules) = { ... }
* @return Whether the hostName field is set.
*/
public boolean hasHostName() {
return endpointTypeCase_ == 1;
}
/**
*
* Use a resolvable hostname as the endpoint for a service.
*
* Use a cluster name as the endpoint for a service.
*
*
* string cluster_name = 2 [(.validate.rules) = { ... }
* @return The bytes for clusterName.
*/
public com.google.protobuf.ByteString
getClusterNameBytes() {
java.lang.Object ref = "";
if (endpointTypeCase_ == 2) {
ref = endpointType_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (endpointTypeCase_ == 2) {
endpointType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRIORITY_FIELD_NUMBER = 3;
private int priority_;
/**
*
* The priority of the service record target
*
*
* uint32 priority = 3 [(.validate.rules) = { ... }
* @return The priority.
*/
@java.lang.Override
public int getPriority() {
return priority_;
}
public static final int WEIGHT_FIELD_NUMBER = 4;
private int weight_;
/**
*
* The weight of the service record target
*
*
* uint32 weight = 4 [(.validate.rules) = { ... }
* @return The weight.
*/
@java.lang.Override
public int getWeight() {
return weight_;
}
public static final int PORT_FIELD_NUMBER = 5;
private int port_;
/**
*
* The port to which the service is bound. This value is optional if the target is a
* cluster. Setting port to zero in this case makes the filter use the port value
* from the cluster host
*
*
* uint32 port = 5 [(.validate.rules) = { ... }
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
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 (endpointTypeCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpointType_);
}
if (endpointTypeCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endpointType_);
}
if (priority_ != 0) {
output.writeUInt32(3, priority_);
}
if (weight_ != 0) {
output.writeUInt32(4, weight_);
}
if (port_ != 0) {
output.writeUInt32(5, port_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (endpointTypeCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpointType_);
}
if (endpointTypeCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endpointType_);
}
if (priority_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, priority_);
}
if (weight_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, weight_);
}
if (port_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, port_);
}
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.v3.DnsTable.DnsServiceTarget)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget other = (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget) obj;
if (getPriority()
!= other.getPriority()) return false;
if (getWeight()
!= other.getWeight()) return false;
if (getPort()
!= other.getPort()) return false;
if (!getEndpointTypeCase().equals(other.getEndpointTypeCase())) return false;
switch (endpointTypeCase_) {
case 1:
if (!getHostName()
.equals(other.getHostName())) return false;
break;
case 2:
if (!getClusterName()
.equals(other.getClusterName())) 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();
hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
hash = (53 * hash) + getPriority();
hash = (37 * hash) + WEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getWeight();
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort();
switch (endpointTypeCase_) {
case 1:
hash = (37 * hash) + HOST_NAME_FIELD_NUMBER;
hash = (53 * hash) + getHostName().hashCode();
break;
case 2:
hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getClusterName().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget 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.v3.DnsTable.DnsServiceTarget parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget 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.v3.DnsTable.DnsServiceTarget parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget 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.v3.DnsTable.DnsServiceTarget parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget 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.v3.DnsTable.DnsServiceTarget parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget 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.v3.DnsTable.DnsServiceTarget 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.v3.DnsTable.DnsServiceTarget 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.v3.DnsTable.DnsServiceTarget 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;
}
/**
*
* Specify the target for a given DNS service
* [#next-free-field: 6]
*
*
* Protobuf type {@code envoy.data.dns.v3.DnsTable.DnsServiceTarget}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.dns.v3.DnsTable.DnsServiceTarget)
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTargetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_DnsServiceTarget_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_DnsServiceTarget_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.class, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.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();
priority_ = 0;
weight_ = 0;
port_ = 0;
endpointTypeCase_ = 0;
endpointType_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_DnsServiceTarget_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget build() {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget buildPartial() {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget result = new io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget(this);
if (endpointTypeCase_ == 1) {
result.endpointType_ = endpointType_;
}
if (endpointTypeCase_ == 2) {
result.endpointType_ = endpointType_;
}
result.priority_ = priority_;
result.weight_ = weight_;
result.port_ = port_;
result.endpointTypeCase_ = endpointTypeCase_;
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.v3.DnsTable.DnsServiceTarget) {
return mergeFrom((io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget other) {
if (other == io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.getDefaultInstance()) return this;
if (other.getPriority() != 0) {
setPriority(other.getPriority());
}
if (other.getWeight() != 0) {
setWeight(other.getWeight());
}
if (other.getPort() != 0) {
setPort(other.getPort());
}
switch (other.getEndpointTypeCase()) {
case HOST_NAME: {
endpointTypeCase_ = 1;
endpointType_ = other.endpointType_;
onChanged();
break;
}
case CLUSTER_NAME: {
endpointTypeCase_ = 2;
endpointType_ = other.endpointType_;
onChanged();
break;
}
case ENDPOINTTYPE_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.v3.DnsTable.DnsServiceTarget parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int endpointTypeCase_ = 0;
private java.lang.Object endpointType_;
public EndpointTypeCase
getEndpointTypeCase() {
return EndpointTypeCase.forNumber(
endpointTypeCase_);
}
public Builder clearEndpointType() {
endpointTypeCase_ = 0;
endpointType_ = null;
onChanged();
return this;
}
/**
*
* Use a resolvable hostname as the endpoint for a service.
*
*
* string host_name = 1 [(.validate.rules) = { ... }
* @return Whether the hostName field is set.
*/
@java.lang.Override
public boolean hasHostName() {
return endpointTypeCase_ == 1;
}
/**
*
* Use a resolvable hostname as the endpoint for a service.
*
* Use a cluster name as the endpoint for a service.
*
*
* string cluster_name = 2 [(.validate.rules) = { ... }
* @return The bytes for clusterName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterNameBytes() {
java.lang.Object ref = "";
if (endpointTypeCase_ == 2) {
ref = endpointType_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (endpointTypeCase_ == 2) {
endpointType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Use a cluster name as the endpoint for a service.
*
*
* string cluster_name = 2 [(.validate.rules) = { ... }
* @param value The clusterName to set.
* @return This builder for chaining.
*/
public Builder setClusterName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
endpointTypeCase_ = 2;
endpointType_ = value;
onChanged();
return this;
}
/**
*
* Use a cluster name as the endpoint for a service.
*
*
* string cluster_name = 2 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearClusterName() {
if (endpointTypeCase_ == 2) {
endpointTypeCase_ = 0;
endpointType_ = null;
onChanged();
}
return this;
}
/**
*
* Use a cluster name as the endpoint for a service.
*
*
* string cluster_name = 2 [(.validate.rules) = { ... }
* @param value The bytes for clusterName to set.
* @return This builder for chaining.
*/
public Builder setClusterNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
endpointTypeCase_ = 2;
endpointType_ = value;
onChanged();
return this;
}
private int priority_ ;
/**
*
* The priority of the service record target
*
*
* uint32 priority = 3 [(.validate.rules) = { ... }
* @return The priority.
*/
@java.lang.Override
public int getPriority() {
return priority_;
}
/**
*
* The priority of the service record target
*
*
* uint32 priority = 3 [(.validate.rules) = { ... }
* @param value The priority to set.
* @return This builder for chaining.
*/
public Builder setPriority(int value) {
priority_ = value;
onChanged();
return this;
}
/**
*
* The priority of the service record target
*
*
* uint32 priority = 3 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearPriority() {
priority_ = 0;
onChanged();
return this;
}
private int weight_ ;
/**
*
* The weight of the service record target
*
*
* uint32 weight = 4 [(.validate.rules) = { ... }
* @return The weight.
*/
@java.lang.Override
public int getWeight() {
return weight_;
}
/**
*
* The weight of the service record target
*
*
* uint32 weight = 4 [(.validate.rules) = { ... }
* @param value The weight to set.
* @return This builder for chaining.
*/
public Builder setWeight(int value) {
weight_ = value;
onChanged();
return this;
}
/**
*
* The weight of the service record target
*
*
* uint32 weight = 4 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearWeight() {
weight_ = 0;
onChanged();
return this;
}
private int port_ ;
/**
*
* The port to which the service is bound. This value is optional if the target is a
* cluster. Setting port to zero in this case makes the filter use the port value
* from the cluster host
*
*
* uint32 port = 5 [(.validate.rules) = { ... }
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
/**
*
* The port to which the service is bound. This value is optional if the target is a
* cluster. Setting port to zero in this case makes the filter use the port value
* from the cluster host
*
*
* uint32 port = 5 [(.validate.rules) = { ... }
* @param value The port to set.
* @return This builder for chaining.
*/
public Builder setPort(int value) {
port_ = value;
onChanged();
return this;
}
/**
*
* The port to which the service is bound. This value is optional if the target is a
* cluster. Setting port to zero in this case makes the filter use the port value
* from the cluster host
*
*
* uint32 port = 5 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearPort() {
port_ = 0;
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.v3.DnsTable.DnsServiceTarget)
}
// @@protoc_insertion_point(class_scope:envoy.data.dns.v3.DnsTable.DnsServiceTarget)
private static final io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget();
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DnsServiceTarget parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DnsServiceTarget(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.v3.DnsTable.DnsServiceTarget getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DnsServiceOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.data.dns.v3.DnsTable.DnsService)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of the service without the protocol or domain name
*
* A 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;
}
}
/**
*
* A 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;
}
/**
*
* A 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;
}
/**
*
* A 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.v3.DnsTable.DnsEndpoint endpoint_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpointOrBuilder> endpointBuilder_;
/**
*
* The configuration containing the method to determine the address of this endpoint
*
*
* .envoy.data.dns.v3.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
*
* Sets the TTL in DNS answers from Envoy returned to the client. The default TTL is 300s
*
*
* .google.protobuf.Duration answer_ttl = 3 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getAnswerTtlFieldBuilder() {
if (answerTtlBuilder_ == null) {
answerTtlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getAnswerTtl(),
getParentForChildren(),
isClean());
answerTtl_ = null;
}
return answerTtlBuilder_;
}
@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.v3.DnsTable.DnsVirtualDomain)
}
// @@protoc_insertion_point(class_scope:envoy.data.dns.v3.DnsTable.DnsVirtualDomain)
private static final io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain();
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DnsVirtualDomain parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DnsVirtualDomain(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.v3.DnsTable.DnsVirtualDomain getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int EXTERNAL_RETRY_COUNT_FIELD_NUMBER = 1;
private int externalRetryCount_;
/**
*
* Control how many times Envoy makes an attempt to forward a query to an external DNS server
*
*
* uint32 external_retry_count = 1 [(.validate.rules) = { ... }
* @return The externalRetryCount.
*/
@java.lang.Override
public int getExternalRetryCount() {
return externalRetryCount_;
}
public static final int VIRTUAL_DOMAINS_FIELD_NUMBER = 2;
private java.util.List virtualDomains_;
/**
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
@java.lang.Override
public int getVirtualDomainsCount() {
return virtualDomains_.size();
}
/**
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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.v3.StringMatcher known_suffixes = 3 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Override
@java.lang.Deprecated public io.envoyproxy.envoy.type.matcher.v3.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.v3.DnsTable)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.dns.v3.DnsTable other = (io.envoyproxy.envoy.data.dns.v3.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.v3.DnsTable parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.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.v3.DnsTable parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.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.v3.DnsTable parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
public int getVirtualDomainsCount() {
if (virtualDomainsBuilder_ == null) {
return virtualDomains_.size();
} else {
return virtualDomainsBuilder_.getCount();
}
}
/**
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
public Builder setVirtualDomains(
int index, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain value) {
if (virtualDomainsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVirtualDomainsIsMutable();
virtualDomains_.set(index, value);
onChanged();
} else {
virtualDomainsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
public Builder addVirtualDomains(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain value) {
if (virtualDomainsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVirtualDomainsIsMutable();
virtualDomains_.add(value);
onChanged();
} else {
virtualDomainsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
public Builder addVirtualDomains(
int index, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain value) {
if (virtualDomainsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVirtualDomainsIsMutable();
virtualDomains_.add(index, value);
onChanged();
} else {
virtualDomainsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.Builder getVirtualDomainsBuilder(
int index) {
return getVirtualDomainsFieldBuilder().getBuilder(index);
}
/**
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomainOrBuilder getVirtualDomainsOrBuilder(
int index) {
if (virtualDomainsBuilder_ == null) {
return virtualDomains_.get(index); } else {
return virtualDomainsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
* Fully qualified domain names for which Envoy will respond to DNS queries. By leaving this
* list empty, Envoy will forward all queries to external resolvers
*
* This field is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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 is deprecated and no longer used in Envoy. The filter's behavior has changed
* internally to use a different data structure allowing the filter to determine whether a
* query is for known domain without the use of this field.
* 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.v3.StringMatcher known_suffixes = 3 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public java.util.List
getKnownSuffixesBuilderList() {
return getKnownSuffixesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.StringMatcher, io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder>
getKnownSuffixesFieldBuilder() {
if (knownSuffixesBuilder_ == null) {
knownSuffixesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.StringMatcher, io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.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.v3.DnsTable)
}
// @@protoc_insertion_point(class_scope:envoy.data.dns.v3.DnsTable)
private static final io.envoyproxy.envoy.data.dns.v3.DnsTable DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.dns.v3.DnsTable();
}
public static io.envoyproxy.envoy.data.dns.v3.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.v3.DnsTable getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}