
io.envoyproxy.envoy.data.dns.v3.DnsTable Maven / Gradle / Ivy
// 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
*
*
* repeated string address = 1 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
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 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.
*
*
* string host_name = 1 [(.validate.rules) = { ... }
* @return The hostName.
*/
java.lang.String getHostName();
/**
*
* Use a resolvable hostname as the endpoint for a service.
*
*
* string host_name = 1 [(.validate.rules) = { ... }
* @return The bytes for hostName.
*/
com.google.protobuf.ByteString
getHostNameBytes();
/**
*
* Use a cluster name as the endpoint for a service.
*
*
* string cluster_name = 2 [(.validate.rules) = { ... }
* @return Whether the clusterName field is set.
*/
boolean hasClusterName();
/**
*
* Use a cluster name as the endpoint for a service.
*
*
* string cluster_name = 2 [(.validate.rules) = { ... }
* @return The clusterName.
*/
java.lang.String getClusterName();
/**
*
* Use a cluster name as the endpoint for a service.
*
*
* string cluster_name = 2 [(.validate.rules) = { ... }
* @return The bytes for clusterName.
*/
com.google.protobuf.ByteString
getClusterNameBytes();
/**
*
* The priority of the service record target
*
*
* 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.
*
*
* string host_name = 1 [(.validate.rules) = { ... }
* @return The hostName.
*/
public java.lang.String getHostName() {
java.lang.Object ref = "";
if (endpointTypeCase_ == 1) {
ref = endpointType_;
}
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 (endpointTypeCase_ == 1) {
endpointType_ = s;
}
return s;
}
}
/**
*
* Use a resolvable hostname as the endpoint for a service.
*
*
* string host_name = 1 [(.validate.rules) = { ... }
* @return The bytes for hostName.
*/
public com.google.protobuf.ByteString
getHostNameBytes() {
java.lang.Object ref = "";
if (endpointTypeCase_ == 1) {
ref = endpointType_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (endpointTypeCase_ == 1) {
endpointType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLUSTER_NAME_FIELD_NUMBER = 2;
/**
*
* Use a cluster name as the endpoint for a service.
*
*
* string cluster_name = 2 [(.validate.rules) = { ... }
* @return Whether the clusterName field is set.
*/
public boolean hasClusterName() {
return endpointTypeCase_ == 2;
}
/**
*
* Use a cluster name as the endpoint for a service.
*
*
* string cluster_name = 2 [(.validate.rules) = { ... }
* @return The clusterName.
*/
public java.lang.String getClusterName() {
java.lang.Object ref = "";
if (endpointTypeCase_ == 2) {
ref = endpointType_;
}
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 (endpointTypeCase_ == 2) {
endpointType_ = s;
}
return s;
}
}
/**
*
* 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.
*
*
* string host_name = 1 [(.validate.rules) = { ... }
* @return The hostName.
*/
@java.lang.Override
public java.lang.String getHostName() {
java.lang.Object ref = "";
if (endpointTypeCase_ == 1) {
ref = endpointType_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (endpointTypeCase_ == 1) {
endpointType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Use a resolvable hostname as the endpoint for a service.
*
*
* string host_name = 1 [(.validate.rules) = { ... }
* @return The bytes for hostName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostNameBytes() {
java.lang.Object ref = "";
if (endpointTypeCase_ == 1) {
ref = endpointType_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (endpointTypeCase_ == 1) {
endpointType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Use a resolvable hostname as the endpoint for a service.
*
*
* string host_name = 1 [(.validate.rules) = { ... }
* @param value The hostName to set.
* @return This builder for chaining.
*/
public Builder setHostName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
endpointTypeCase_ = 1;
endpointType_ = value;
onChanged();
return this;
}
/**
*
* Use a resolvable hostname as the endpoint for a service.
*
*
* string host_name = 1 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearHostName() {
if (endpointTypeCase_ == 1) {
endpointTypeCase_ = 0;
endpointType_ = null;
onChanged();
}
return this;
}
/**
*
* Use a resolvable hostname as the endpoint for a service.
*
*
* string host_name = 1 [(.validate.rules) = { ... }
* @param value The bytes for hostName to set.
* @return This builder for chaining.
*/
public Builder setHostNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
endpointTypeCase_ = 1;
endpointType_ = value;
onChanged();
return this;
}
/**
*
* Use a cluster name as the endpoint for a service.
*
*
* string cluster_name = 2 [(.validate.rules) = { ... }
* @return Whether the clusterName field is set.
*/
@java.lang.Override
public boolean hasClusterName() {
return endpointTypeCase_ == 2;
}
/**
*
* Use a cluster name as the endpoint for a service.
*
*
* string cluster_name = 2 [(.validate.rules) = { ... }
* @return The clusterName.
*/
@java.lang.Override
public java.lang.String getClusterName() {
java.lang.Object ref = "";
if (endpointTypeCase_ == 2) {
ref = endpointType_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (endpointTypeCase_ == 2) {
endpointType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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
*
*
* string service_name = 1 [(.validate.rules) = { ... }
* @return The serviceName.
*/
java.lang.String getServiceName();
/**
*
* The name of the service without the protocol or domain name
*
*
* string service_name = 1 [(.validate.rules) = { ... }
* @return The bytes for serviceName.
*/
com.google.protobuf.ByteString
getServiceNameBytes();
/**
*
* The service protocol. This can be specified as a string or the numeric value of the protocol
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
* @return Whether the protocol field is set.
*/
boolean hasProtocol();
/**
*
* The service protocol. This can be specified as a string or the numeric value of the protocol
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
* @return The protocol.
*/
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol getProtocol();
/**
*
* The service protocol. This can be specified as a string or the numeric value of the protocol
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
*/
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocolOrBuilder getProtocolOrBuilder();
/**
*
* The service entry time to live. This is independent from the DNS Answer record TTL
*
*
* .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
* @return Whether the ttl field is set.
*/
boolean hasTtl();
/**
*
* The service entry time to live. This is independent from the DNS Answer record TTL
*
*
* .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
* @return The ttl.
*/
com.google.protobuf.Duration getTtl();
/**
*
* The service entry time to live. This is independent from the DNS Answer record TTL
*
*
* .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
*/
com.google.protobuf.DurationOrBuilder getTtlOrBuilder();
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
java.util.List
getTargetsList();
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget getTargets(int index);
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
int getTargetsCount();
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
java.util.List extends io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTargetOrBuilder>
getTargetsOrBuilderList();
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTargetOrBuilder getTargetsOrBuilder(
int index);
}
/**
*
* This message defines a service selection record returned for a service query in a domain
*
*
* Protobuf type {@code envoy.data.dns.v3.DnsTable.DnsService}
*/
public static final class DnsService extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.dns.v3.DnsTable.DnsService)
DnsServiceOrBuilder {
private static final long serialVersionUID = 0L;
// Use DnsService.newBuilder() to construct.
private DnsService(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DnsService() {
serviceName_ = "";
targets_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DnsService();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DnsService(
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();
serviceName_ = s;
break;
}
case 18: {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.Builder subBuilder = null;
if (protocol_ != null) {
subBuilder = protocol_.toBuilder();
}
protocol_ = input.readMessage(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(protocol_);
protocol_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (ttl_ != null) {
subBuilder = ttl_.toBuilder();
}
ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ttl_);
ttl_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
targets_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
targets_.add(
input.readMessage(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.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)) {
targets_ = java.util.Collections.unmodifiableList(targets_);
}
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_DnsService_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_DnsService_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.class, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.Builder.class);
}
public static final int SERVICE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object serviceName_;
/**
*
* The name of the service without the protocol or domain name
*
*
* string service_name = 1 [(.validate.rules) = { ... }
* @return The serviceName.
*/
@java.lang.Override
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
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();
serviceName_ = s;
return s;
}
}
/**
*
* The name of the service without the protocol or domain name
*
*
* string service_name = 1 [(.validate.rules) = { ... }
* @return The bytes for serviceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROTOCOL_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol_;
/**
*
* The service protocol. This can be specified as a string or the numeric value of the protocol
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
* @return Whether the protocol field is set.
*/
@java.lang.Override
public boolean hasProtocol() {
return protocol_ != null;
}
/**
*
* The service protocol. This can be specified as a string or the numeric value of the protocol
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
* @return The protocol.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol getProtocol() {
return protocol_ == null ? io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.getDefaultInstance() : protocol_;
}
/**
*
* The service protocol. This can be specified as a string or the numeric value of the protocol
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocolOrBuilder getProtocolOrBuilder() {
return getProtocol();
}
public static final int TTL_FIELD_NUMBER = 3;
private com.google.protobuf.Duration ttl_;
/**
*
* The service entry time to live. This is independent from the DNS Answer record TTL
*
*
* .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
* @return Whether the ttl field is set.
*/
@java.lang.Override
public boolean hasTtl() {
return ttl_ != null;
}
/**
*
* The service entry time to live. This is independent from the DNS Answer record TTL
*
*
* .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
* @return The ttl.
*/
@java.lang.Override
public com.google.protobuf.Duration getTtl() {
return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_;
}
/**
*
* The service entry time to live. This is independent from the DNS Answer record TTL
*
*
* .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
return getTtl();
}
public static final int TARGETS_FIELD_NUMBER = 4;
private java.util.List targets_;
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List getTargetsList() {
return targets_;
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTargetOrBuilder>
getTargetsOrBuilderList() {
return targets_;
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
@java.lang.Override
public int getTargetsCount() {
return targets_.size();
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget getTargets(int index) {
return targets_.get(index);
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTargetOrBuilder getTargetsOrBuilder(
int index) {
return targets_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceName_);
}
if (protocol_ != null) {
output.writeMessage(2, getProtocol());
}
if (ttl_ != null) {
output.writeMessage(3, getTtl());
}
for (int i = 0; i < targets_.size(); i++) {
output.writeMessage(4, targets_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceName_);
}
if (protocol_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getProtocol());
}
if (ttl_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTtl());
}
for (int i = 0; i < targets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, targets_.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.DnsService)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService other = (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService) obj;
if (!getServiceName()
.equals(other.getServiceName())) return false;
if (hasProtocol() != other.hasProtocol()) return false;
if (hasProtocol()) {
if (!getProtocol()
.equals(other.getProtocol())) return false;
}
if (hasTtl() != other.hasTtl()) return false;
if (hasTtl()) {
if (!getTtl()
.equals(other.getTtl())) return false;
}
if (!getTargetsList()
.equals(other.getTargetsList())) 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) + SERVICE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getServiceName().hashCode();
if (hasProtocol()) {
hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
hash = (53 * hash) + getProtocol().hashCode();
}
if (hasTtl()) {
hash = (37 * hash) + TTL_FIELD_NUMBER;
hash = (53 * hash) + getTtl().hashCode();
}
if (getTargetsCount() > 0) {
hash = (37 * hash) + TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getTargetsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService 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.DnsService parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService 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.DnsService parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService 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.DnsService 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.DnsService 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.DnsService 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.DnsService 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.DnsService 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.DnsService 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.DnsService 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 defines a service selection record returned for a service query in a domain
*
*
* Protobuf type {@code envoy.data.dns.v3.DnsTable.DnsService}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.dns.v3.DnsTable.DnsService)
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_DnsService_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_DnsService_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.class, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTargetsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
serviceName_ = "";
if (protocolBuilder_ == null) {
protocol_ = null;
} else {
protocol_ = null;
protocolBuilder_ = null;
}
if (ttlBuilder_ == null) {
ttl_ = null;
} else {
ttl_ = null;
ttlBuilder_ = null;
}
if (targetsBuilder_ == null) {
targets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
targetsBuilder_.clear();
}
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_DnsService_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService build() {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService buildPartial() {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService result = new io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService(this);
int from_bitField0_ = bitField0_;
result.serviceName_ = serviceName_;
if (protocolBuilder_ == null) {
result.protocol_ = protocol_;
} else {
result.protocol_ = protocolBuilder_.build();
}
if (ttlBuilder_ == null) {
result.ttl_ = ttl_;
} else {
result.ttl_ = ttlBuilder_.build();
}
if (targetsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
targets_ = java.util.Collections.unmodifiableList(targets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.targets_ = targets_;
} else {
result.targets_ = targetsBuilder_.build();
}
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.DnsService) {
return mergeFrom((io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService other) {
if (other == io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.getDefaultInstance()) return this;
if (!other.getServiceName().isEmpty()) {
serviceName_ = other.serviceName_;
onChanged();
}
if (other.hasProtocol()) {
mergeProtocol(other.getProtocol());
}
if (other.hasTtl()) {
mergeTtl(other.getTtl());
}
if (targetsBuilder_ == null) {
if (!other.targets_.isEmpty()) {
if (targets_.isEmpty()) {
targets_ = other.targets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTargetsIsMutable();
targets_.addAll(other.targets_);
}
onChanged();
}
} else {
if (!other.targets_.isEmpty()) {
if (targetsBuilder_.isEmpty()) {
targetsBuilder_.dispose();
targetsBuilder_ = null;
targets_ = other.targets_;
bitField0_ = (bitField0_ & ~0x00000001);
targetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTargetsFieldBuilder() : null;
} else {
targetsBuilder_.addAllMessages(other.targets_);
}
}
}
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.DnsService parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object serviceName_ = "";
/**
*
* The name of the service without the protocol or domain name
*
*
* string service_name = 1 [(.validate.rules) = { ... }
* @return The serviceName.
*/
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of the service without the protocol or domain name
*
*
* string service_name = 1 [(.validate.rules) = { ... }
* @return The bytes for serviceName.
*/
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the service without the protocol or domain name
*
*
* string service_name = 1 [(.validate.rules) = { ... }
* @param value The serviceName to set.
* @return This builder for chaining.
*/
public Builder setServiceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceName_ = value;
onChanged();
return this;
}
/**
*
* The name of the service without the protocol or domain name
*
*
* string service_name = 1 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearServiceName() {
serviceName_ = getDefaultInstance().getServiceName();
onChanged();
return this;
}
/**
*
* The name of the service without the protocol or domain name
*
*
* string service_name = 1 [(.validate.rules) = { ... }
* @param value The bytes for serviceName to set.
* @return This builder for chaining.
*/
public Builder setServiceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceName_ = value;
onChanged();
return this;
}
private io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocolOrBuilder> protocolBuilder_;
/**
*
* The service protocol. This can be specified as a string or the numeric value of the protocol
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
* @return Whether the protocol field is set.
*/
public boolean hasProtocol() {
return protocolBuilder_ != null || protocol_ != null;
}
/**
*
* The service protocol. This can be specified as a string or the numeric value of the protocol
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
* @return The protocol.
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol getProtocol() {
if (protocolBuilder_ == null) {
return protocol_ == null ? io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.getDefaultInstance() : protocol_;
} else {
return protocolBuilder_.getMessage();
}
}
/**
*
* The service protocol. This can be specified as a string or the numeric value of the protocol
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
*/
public Builder setProtocol(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol value) {
if (protocolBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
protocol_ = value;
onChanged();
} else {
protocolBuilder_.setMessage(value);
}
return this;
}
/**
*
* The service protocol. This can be specified as a string or the numeric value of the protocol
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
*/
public Builder setProtocol(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.Builder builderForValue) {
if (protocolBuilder_ == null) {
protocol_ = builderForValue.build();
onChanged();
} else {
protocolBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The service protocol. This can be specified as a string or the numeric value of the protocol
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
*/
public Builder mergeProtocol(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol value) {
if (protocolBuilder_ == null) {
if (protocol_ != null) {
protocol_ =
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.newBuilder(protocol_).mergeFrom(value).buildPartial();
} else {
protocol_ = value;
}
onChanged();
} else {
protocolBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The service protocol. This can be specified as a string or the numeric value of the protocol
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
*/
public Builder clearProtocol() {
if (protocolBuilder_ == null) {
protocol_ = null;
onChanged();
} else {
protocol_ = null;
protocolBuilder_ = null;
}
return this;
}
/**
*
* The service protocol. This can be specified as a string or the numeric value of the protocol
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.Builder getProtocolBuilder() {
onChanged();
return getProtocolFieldBuilder().getBuilder();
}
/**
*
* The service protocol. This can be specified as a string or the numeric value of the protocol
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocolOrBuilder getProtocolOrBuilder() {
if (protocolBuilder_ != null) {
return protocolBuilder_.getMessageOrBuilder();
} else {
return protocol_ == null ?
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.getDefaultInstance() : protocol_;
}
}
/**
*
* The service protocol. This can be specified as a string or the numeric value of the protocol
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceProtocol protocol = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocolOrBuilder>
getProtocolFieldBuilder() {
if (protocolBuilder_ == null) {
protocolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocolOrBuilder>(
getProtocol(),
getParentForChildren(),
isClean());
protocol_ = null;
}
return protocolBuilder_;
}
private com.google.protobuf.Duration ttl_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_;
/**
*
* The service entry time to live. This is independent from the DNS Answer record TTL
*
*
* .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
* @return Whether the ttl field is set.
*/
public boolean hasTtl() {
return ttlBuilder_ != null || ttl_ != null;
}
/**
*
* The service entry time to live. This is independent from the DNS Answer record TTL
*
*
* .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
* @return The ttl.
*/
public com.google.protobuf.Duration getTtl() {
if (ttlBuilder_ == null) {
return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_;
} else {
return ttlBuilder_.getMessage();
}
}
/**
*
* The service entry time to live. This is independent from the DNS Answer record TTL
*
*
* .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
*/
public Builder setTtl(com.google.protobuf.Duration value) {
if (ttlBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ttl_ = value;
onChanged();
} else {
ttlBuilder_.setMessage(value);
}
return this;
}
/**
*
* The service entry time to live. This is independent from the DNS Answer record TTL
*
*
* .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
*/
public Builder setTtl(
com.google.protobuf.Duration.Builder builderForValue) {
if (ttlBuilder_ == null) {
ttl_ = builderForValue.build();
onChanged();
} else {
ttlBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The service entry time to live. This is independent from the DNS Answer record TTL
*
*
* .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
*/
public Builder mergeTtl(com.google.protobuf.Duration value) {
if (ttlBuilder_ == null) {
if (ttl_ != null) {
ttl_ =
com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial();
} else {
ttl_ = value;
}
onChanged();
} else {
ttlBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The service entry time to live. This is independent from the DNS Answer record TTL
*
*
* .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
*/
public Builder clearTtl() {
if (ttlBuilder_ == null) {
ttl_ = null;
onChanged();
} else {
ttl_ = null;
ttlBuilder_ = null;
}
return this;
}
/**
*
* The service entry time to live. This is independent from the DNS Answer record TTL
*
*
* .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
*/
public com.google.protobuf.Duration.Builder getTtlBuilder() {
onChanged();
return getTtlFieldBuilder().getBuilder();
}
/**
*
* The service entry time to live. This is independent from the DNS Answer record TTL
*
*
* .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
*/
public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
if (ttlBuilder_ != null) {
return ttlBuilder_.getMessageOrBuilder();
} else {
return ttl_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : ttl_;
}
}
/**
*
* The service entry time to live. This is independent from the DNS Answer record TTL
*
*
* .google.protobuf.Duration ttl = 3 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getTtlFieldBuilder() {
if (ttlBuilder_ == null) {
ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getTtl(),
getParentForChildren(),
isClean());
ttl_ = null;
}
return ttlBuilder_;
}
private java.util.List targets_ =
java.util.Collections.emptyList();
private void ensureTargetsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
targets_ = new java.util.ArrayList(targets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTargetOrBuilder> targetsBuilder_;
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public java.util.List getTargetsList() {
if (targetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(targets_);
} else {
return targetsBuilder_.getMessageList();
}
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public int getTargetsCount() {
if (targetsBuilder_ == null) {
return targets_.size();
} else {
return targetsBuilder_.getCount();
}
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget getTargets(int index) {
if (targetsBuilder_ == null) {
return targets_.get(index);
} else {
return targetsBuilder_.getMessage(index);
}
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public Builder setTargets(
int index, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget value) {
if (targetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetsIsMutable();
targets_.set(index, value);
onChanged();
} else {
targetsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public Builder setTargets(
int index, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.Builder builderForValue) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.set(index, builderForValue.build());
onChanged();
} else {
targetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public Builder addTargets(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget value) {
if (targetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetsIsMutable();
targets_.add(value);
onChanged();
} else {
targetsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public Builder addTargets(
int index, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget value) {
if (targetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetsIsMutable();
targets_.add(index, value);
onChanged();
} else {
targetsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public Builder addTargets(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.Builder builderForValue) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.add(builderForValue.build());
onChanged();
} else {
targetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public Builder addTargets(
int index, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.Builder builderForValue) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.add(index, builderForValue.build());
onChanged();
} else {
targetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public Builder addAllTargets(
java.lang.Iterable extends io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget> values) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, targets_);
onChanged();
} else {
targetsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public Builder clearTargets() {
if (targetsBuilder_ == null) {
targets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
targetsBuilder_.clear();
}
return this;
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public Builder removeTargets(int index) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.remove(index);
onChanged();
} else {
targetsBuilder_.remove(index);
}
return this;
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.Builder getTargetsBuilder(
int index) {
return getTargetsFieldBuilder().getBuilder(index);
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTargetOrBuilder getTargetsOrBuilder(
int index) {
if (targetsBuilder_ == null) {
return targets_.get(index); } else {
return targetsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public java.util.List extends io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTargetOrBuilder>
getTargetsOrBuilderList() {
if (targetsBuilder_ != null) {
return targetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(targets_);
}
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.Builder addTargetsBuilder() {
return getTargetsFieldBuilder().addBuilder(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.getDefaultInstance());
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.Builder addTargetsBuilder(
int index) {
return getTargetsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.getDefaultInstance());
}
/**
*
* The list of targets hosting the service
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsServiceTarget targets = 4 [(.validate.rules) = { ... }
*/
public java.util.List
getTargetsBuilderList() {
return getTargetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTargetOrBuilder>
getTargetsFieldBuilder() {
if (targetsBuilder_ == null) {
targetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTargetOrBuilder>(
targets_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
targets_ = null;
}
return targetsBuilder_;
}
@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.DnsService)
}
// @@protoc_insertion_point(class_scope:envoy.data.dns.v3.DnsTable.DnsService)
private static final io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService();
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DnsService parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DnsService(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.DnsService getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DnsServiceListOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.data.dns.v3.DnsTable.DnsServiceList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
java.util.List
getServicesList();
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService getServices(int index);
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
int getServicesCount();
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
java.util.List extends io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceOrBuilder>
getServicesOrBuilderList();
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceOrBuilder getServicesOrBuilder(
int index);
}
/**
*
* Define a list of service records for a given service
*
*
* Protobuf type {@code envoy.data.dns.v3.DnsTable.DnsServiceList}
*/
public static final class DnsServiceList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.dns.v3.DnsTable.DnsServiceList)
DnsServiceListOrBuilder {
private static final long serialVersionUID = 0L;
// Use DnsServiceList.newBuilder() to construct.
private DnsServiceList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DnsServiceList() {
services_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DnsServiceList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DnsServiceList(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
services_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
services_.add(
input.readMessage(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.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)) {
services_ = java.util.Collections.unmodifiableList(services_);
}
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_DnsServiceList_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_DnsServiceList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.class, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.Builder.class);
}
public static final int SERVICES_FIELD_NUMBER = 1;
private java.util.List services_;
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List getServicesList() {
return services_;
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceOrBuilder>
getServicesOrBuilderList() {
return services_;
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public int getServicesCount() {
return services_.size();
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService getServices(int index) {
return services_.get(index);
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceOrBuilder getServicesOrBuilder(
int index) {
return services_.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 {
for (int i = 0; i < services_.size(); i++) {
output.writeMessage(1, services_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < services_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, services_.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.DnsServiceList)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList other = (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList) obj;
if (!getServicesList()
.equals(other.getServicesList())) 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 (getServicesCount() > 0) {
hash = (37 * hash) + SERVICES_FIELD_NUMBER;
hash = (53 * hash) + getServicesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList 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.DnsServiceList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList 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.DnsServiceList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList 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.DnsServiceList 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.DnsServiceList 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.DnsServiceList 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.DnsServiceList 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.DnsServiceList 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.DnsServiceList 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.DnsServiceList 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;
}
/**
*
* Define a list of service records for a given service
*
*
* Protobuf type {@code envoy.data.dns.v3.DnsTable.DnsServiceList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.dns.v3.DnsTable.DnsServiceList)
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_DnsServiceList_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_DnsServiceList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.class, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getServicesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (servicesBuilder_ == null) {
services_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
servicesBuilder_.clear();
}
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_DnsServiceList_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList build() {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList buildPartial() {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList result = new io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList(this);
int from_bitField0_ = bitField0_;
if (servicesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
services_ = java.util.Collections.unmodifiableList(services_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.services_ = services_;
} else {
result.services_ = servicesBuilder_.build();
}
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.DnsServiceList) {
return mergeFrom((io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList other) {
if (other == io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.getDefaultInstance()) return this;
if (servicesBuilder_ == null) {
if (!other.services_.isEmpty()) {
if (services_.isEmpty()) {
services_ = other.services_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureServicesIsMutable();
services_.addAll(other.services_);
}
onChanged();
}
} else {
if (!other.services_.isEmpty()) {
if (servicesBuilder_.isEmpty()) {
servicesBuilder_.dispose();
servicesBuilder_ = null;
services_ = other.services_;
bitField0_ = (bitField0_ & ~0x00000001);
servicesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getServicesFieldBuilder() : null;
} else {
servicesBuilder_.addAllMessages(other.services_);
}
}
}
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.DnsServiceList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List services_ =
java.util.Collections.emptyList();
private void ensureServicesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
services_ = new java.util.ArrayList(services_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceOrBuilder> servicesBuilder_;
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public java.util.List getServicesList() {
if (servicesBuilder_ == null) {
return java.util.Collections.unmodifiableList(services_);
} else {
return servicesBuilder_.getMessageList();
}
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public int getServicesCount() {
if (servicesBuilder_ == null) {
return services_.size();
} else {
return servicesBuilder_.getCount();
}
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService getServices(int index) {
if (servicesBuilder_ == null) {
return services_.get(index);
} else {
return servicesBuilder_.getMessage(index);
}
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public Builder setServices(
int index, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService value) {
if (servicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServicesIsMutable();
services_.set(index, value);
onChanged();
} else {
servicesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public Builder setServices(
int index, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.Builder builderForValue) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.set(index, builderForValue.build());
onChanged();
} else {
servicesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public Builder addServices(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService value) {
if (servicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServicesIsMutable();
services_.add(value);
onChanged();
} else {
servicesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public Builder addServices(
int index, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService value) {
if (servicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServicesIsMutable();
services_.add(index, value);
onChanged();
} else {
servicesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public Builder addServices(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.Builder builderForValue) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.add(builderForValue.build());
onChanged();
} else {
servicesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public Builder addServices(
int index, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.Builder builderForValue) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.add(index, builderForValue.build());
onChanged();
} else {
servicesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public Builder addAllServices(
java.lang.Iterable extends io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService> values) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, services_);
onChanged();
} else {
servicesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public Builder clearServices() {
if (servicesBuilder_ == null) {
services_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
servicesBuilder_.clear();
}
return this;
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public Builder removeServices(int index) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.remove(index);
onChanged();
} else {
servicesBuilder_.remove(index);
}
return this;
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.Builder getServicesBuilder(
int index) {
return getServicesFieldBuilder().getBuilder(index);
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceOrBuilder getServicesOrBuilder(
int index) {
if (servicesBuilder_ == null) {
return services_.get(index); } else {
return servicesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public java.util.List extends io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceOrBuilder>
getServicesOrBuilderList() {
if (servicesBuilder_ != null) {
return servicesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(services_);
}
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.Builder addServicesBuilder() {
return getServicesFieldBuilder().addBuilder(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.getDefaultInstance());
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.Builder addServicesBuilder(
int index) {
return getServicesFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.getDefaultInstance());
}
/**
* repeated .envoy.data.dns.v3.DnsTable.DnsService services = 1 [(.validate.rules) = { ... }
*/
public java.util.List
getServicesBuilderList() {
return getServicesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceOrBuilder>
getServicesFieldBuilder() {
if (servicesBuilder_ == null) {
servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsService.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceOrBuilder>(
services_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
services_ = null;
}
return servicesBuilder_;
}
@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.DnsServiceList)
}
// @@protoc_insertion_point(class_scope:envoy.data.dns.v3.DnsTable.DnsServiceList)
private static final io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList();
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DnsServiceList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DnsServiceList(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.DnsServiceList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DnsEndpointOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.data.dns.v3.DnsTable.DnsEndpoint)
com.google.protobuf.MessageOrBuilder {
/**
*
* Define a list of addresses to return for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.AddressList address_list = 1;
* @return Whether the addressList field is set.
*/
boolean hasAddressList();
/**
*
* Define a list of addresses to return for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.AddressList address_list = 1;
* @return The addressList.
*/
io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList getAddressList();
/**
*
* Define a list of addresses to return for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.AddressList address_list = 1;
*/
io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressListOrBuilder getAddressListOrBuilder();
/**
*
* Define a cluster whose addresses are returned for the specified endpoint
*
*
* string cluster_name = 2;
* @return Whether the clusterName field is set.
*/
boolean hasClusterName();
/**
*
* Define a cluster whose addresses are returned for the specified endpoint
*
*
* string cluster_name = 2;
* @return The clusterName.
*/
java.lang.String getClusterName();
/**
*
* Define a cluster whose addresses are returned for the specified endpoint
*
*
* string cluster_name = 2;
* @return The bytes for clusterName.
*/
com.google.protobuf.ByteString
getClusterNameBytes();
/**
*
* Define a DNS Service List for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceList service_list = 3;
* @return Whether the serviceList field is set.
*/
boolean hasServiceList();
/**
*
* Define a DNS Service List for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceList service_list = 3;
* @return The serviceList.
*/
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList getServiceList();
/**
*
* Define a DNS Service List for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceList service_list = 3;
*/
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceListOrBuilder getServiceListOrBuilder();
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.EndpointConfigCase getEndpointConfigCase();
}
/**
* Protobuf type {@code envoy.data.dns.v3.DnsTable.DnsEndpoint}
*/
public static final class DnsEndpoint extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.dns.v3.DnsTable.DnsEndpoint)
DnsEndpointOrBuilder {
private static final long serialVersionUID = 0L;
// Use DnsEndpoint.newBuilder() to construct.
private DnsEndpoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DnsEndpoint() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DnsEndpoint();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DnsEndpoint(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.Builder subBuilder = null;
if (endpointConfigCase_ == 1) {
subBuilder = ((io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList) endpointConfig_).toBuilder();
}
endpointConfig_ =
input.readMessage(io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList) endpointConfig_);
endpointConfig_ = subBuilder.buildPartial();
}
endpointConfigCase_ = 1;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
endpointConfigCase_ = 2;
endpointConfig_ = s;
break;
}
case 26: {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.Builder subBuilder = null;
if (endpointConfigCase_ == 3) {
subBuilder = ((io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList) endpointConfig_).toBuilder();
}
endpointConfig_ =
input.readMessage(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList) endpointConfig_);
endpointConfig_ = subBuilder.buildPartial();
}
endpointConfigCase_ = 3;
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_DnsEndpoint_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_DnsEndpoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.class, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder.class);
}
private int endpointConfigCase_ = 0;
private java.lang.Object endpointConfig_;
public enum EndpointConfigCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ADDRESS_LIST(1),
CLUSTER_NAME(2),
SERVICE_LIST(3),
ENDPOINTCONFIG_NOT_SET(0);
private final int value;
private EndpointConfigCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EndpointConfigCase valueOf(int value) {
return forNumber(value);
}
public static EndpointConfigCase forNumber(int value) {
switch (value) {
case 1: return ADDRESS_LIST;
case 2: return CLUSTER_NAME;
case 3: return SERVICE_LIST;
case 0: return ENDPOINTCONFIG_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public EndpointConfigCase
getEndpointConfigCase() {
return EndpointConfigCase.forNumber(
endpointConfigCase_);
}
public static final int ADDRESS_LIST_FIELD_NUMBER = 1;
/**
*
* Define a list of addresses to return for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.AddressList address_list = 1;
* @return Whether the addressList field is set.
*/
@java.lang.Override
public boolean hasAddressList() {
return endpointConfigCase_ == 1;
}
/**
*
* Define a list of addresses to return for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.AddressList address_list = 1;
* @return The addressList.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList getAddressList() {
if (endpointConfigCase_ == 1) {
return (io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList) endpointConfig_;
}
return io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.getDefaultInstance();
}
/**
*
* Define a list of addresses to return for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.AddressList address_list = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressListOrBuilder getAddressListOrBuilder() {
if (endpointConfigCase_ == 1) {
return (io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList) endpointConfig_;
}
return io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.getDefaultInstance();
}
public static final int CLUSTER_NAME_FIELD_NUMBER = 2;
/**
*
* Define a cluster whose addresses are returned for the specified endpoint
*
*
* string cluster_name = 2;
* @return Whether the clusterName field is set.
*/
public boolean hasClusterName() {
return endpointConfigCase_ == 2;
}
/**
*
* Define a cluster whose addresses are returned for the specified endpoint
*
*
* string cluster_name = 2;
* @return The clusterName.
*/
public java.lang.String getClusterName() {
java.lang.Object ref = "";
if (endpointConfigCase_ == 2) {
ref = endpointConfig_;
}
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 (endpointConfigCase_ == 2) {
endpointConfig_ = s;
}
return s;
}
}
/**
*
* Define a cluster whose addresses are returned for the specified endpoint
*
*
* string cluster_name = 2;
* @return The bytes for clusterName.
*/
public com.google.protobuf.ByteString
getClusterNameBytes() {
java.lang.Object ref = "";
if (endpointConfigCase_ == 2) {
ref = endpointConfig_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (endpointConfigCase_ == 2) {
endpointConfig_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERVICE_LIST_FIELD_NUMBER = 3;
/**
*
* Define a DNS Service List for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceList service_list = 3;
* @return Whether the serviceList field is set.
*/
@java.lang.Override
public boolean hasServiceList() {
return endpointConfigCase_ == 3;
}
/**
*
* Define a DNS Service List for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceList service_list = 3;
* @return The serviceList.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList getServiceList() {
if (endpointConfigCase_ == 3) {
return (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList) endpointConfig_;
}
return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.getDefaultInstance();
}
/**
*
* Define a DNS Service List for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceList service_list = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceListOrBuilder getServiceListOrBuilder() {
if (endpointConfigCase_ == 3) {
return (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList) endpointConfig_;
}
return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (endpointConfigCase_ == 1) {
output.writeMessage(1, (io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList) endpointConfig_);
}
if (endpointConfigCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endpointConfig_);
}
if (endpointConfigCase_ == 3) {
output.writeMessage(3, (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList) endpointConfig_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (endpointConfigCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList) endpointConfig_);
}
if (endpointConfigCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endpointConfig_);
}
if (endpointConfigCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList) endpointConfig_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint other = (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint) obj;
if (!getEndpointConfigCase().equals(other.getEndpointConfigCase())) return false;
switch (endpointConfigCase_) {
case 1:
if (!getAddressList()
.equals(other.getAddressList())) return false;
break;
case 2:
if (!getClusterName()
.equals(other.getClusterName())) return false;
break;
case 3:
if (!getServiceList()
.equals(other.getServiceList())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (endpointConfigCase_) {
case 1:
hash = (37 * hash) + ADDRESS_LIST_FIELD_NUMBER;
hash = (53 * hash) + getAddressList().hashCode();
break;
case 2:
hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getClusterName().hashCode();
break;
case 3:
hash = (37 * hash) + SERVICE_LIST_FIELD_NUMBER;
hash = (53 * hash) + getServiceList().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code envoy.data.dns.v3.DnsTable.DnsEndpoint}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.dns.v3.DnsTable.DnsEndpoint)
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpointOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_DnsEndpoint_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_DnsEndpoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.class, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
endpointConfigCase_ = 0;
endpointConfig_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_DnsEndpoint_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint build() {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint buildPartial() {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint result = new io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint(this);
if (endpointConfigCase_ == 1) {
if (addressListBuilder_ == null) {
result.endpointConfig_ = endpointConfig_;
} else {
result.endpointConfig_ = addressListBuilder_.build();
}
}
if (endpointConfigCase_ == 2) {
result.endpointConfig_ = endpointConfig_;
}
if (endpointConfigCase_ == 3) {
if (serviceListBuilder_ == null) {
result.endpointConfig_ = endpointConfig_;
} else {
result.endpointConfig_ = serviceListBuilder_.build();
}
}
result.endpointConfigCase_ = endpointConfigCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint) {
return mergeFrom((io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint other) {
if (other == io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.getDefaultInstance()) return this;
switch (other.getEndpointConfigCase()) {
case ADDRESS_LIST: {
mergeAddressList(other.getAddressList());
break;
}
case CLUSTER_NAME: {
endpointConfigCase_ = 2;
endpointConfig_ = other.endpointConfig_;
onChanged();
break;
}
case SERVICE_LIST: {
mergeServiceList(other.getServiceList());
break;
}
case ENDPOINTCONFIG_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int endpointConfigCase_ = 0;
private java.lang.Object endpointConfig_;
public EndpointConfigCase
getEndpointConfigCase() {
return EndpointConfigCase.forNumber(
endpointConfigCase_);
}
public Builder clearEndpointConfig() {
endpointConfigCase_ = 0;
endpointConfig_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList, io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressListOrBuilder> addressListBuilder_;
/**
*
* Define a list of addresses to return for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.AddressList address_list = 1;
* @return Whether the addressList field is set.
*/
@java.lang.Override
public boolean hasAddressList() {
return endpointConfigCase_ == 1;
}
/**
*
* Define a list of addresses to return for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.AddressList address_list = 1;
* @return The addressList.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList getAddressList() {
if (addressListBuilder_ == null) {
if (endpointConfigCase_ == 1) {
return (io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList) endpointConfig_;
}
return io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.getDefaultInstance();
} else {
if (endpointConfigCase_ == 1) {
return addressListBuilder_.getMessage();
}
return io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.getDefaultInstance();
}
}
/**
*
* Define a list of addresses to return for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.AddressList address_list = 1;
*/
public Builder setAddressList(io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList value) {
if (addressListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endpointConfig_ = value;
onChanged();
} else {
addressListBuilder_.setMessage(value);
}
endpointConfigCase_ = 1;
return this;
}
/**
*
* Define a list of addresses to return for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.AddressList address_list = 1;
*/
public Builder setAddressList(
io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.Builder builderForValue) {
if (addressListBuilder_ == null) {
endpointConfig_ = builderForValue.build();
onChanged();
} else {
addressListBuilder_.setMessage(builderForValue.build());
}
endpointConfigCase_ = 1;
return this;
}
/**
*
* Define a list of addresses to return for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.AddressList address_list = 1;
*/
public Builder mergeAddressList(io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList value) {
if (addressListBuilder_ == null) {
if (endpointConfigCase_ == 1 &&
endpointConfig_ != io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.getDefaultInstance()) {
endpointConfig_ = io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.newBuilder((io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList) endpointConfig_)
.mergeFrom(value).buildPartial();
} else {
endpointConfig_ = value;
}
onChanged();
} else {
if (endpointConfigCase_ == 1) {
addressListBuilder_.mergeFrom(value);
} else {
addressListBuilder_.setMessage(value);
}
}
endpointConfigCase_ = 1;
return this;
}
/**
*
* Define a list of addresses to return for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.AddressList address_list = 1;
*/
public Builder clearAddressList() {
if (addressListBuilder_ == null) {
if (endpointConfigCase_ == 1) {
endpointConfigCase_ = 0;
endpointConfig_ = null;
onChanged();
}
} else {
if (endpointConfigCase_ == 1) {
endpointConfigCase_ = 0;
endpointConfig_ = null;
}
addressListBuilder_.clear();
}
return this;
}
/**
*
* Define a list of addresses to return for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.AddressList address_list = 1;
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.Builder getAddressListBuilder() {
return getAddressListFieldBuilder().getBuilder();
}
/**
*
* Define a list of addresses to return for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.AddressList address_list = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressListOrBuilder getAddressListOrBuilder() {
if ((endpointConfigCase_ == 1) && (addressListBuilder_ != null)) {
return addressListBuilder_.getMessageOrBuilder();
} else {
if (endpointConfigCase_ == 1) {
return (io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList) endpointConfig_;
}
return io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.getDefaultInstance();
}
}
/**
*
* Define a list of addresses to return for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.AddressList address_list = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList, io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressListOrBuilder>
getAddressListFieldBuilder() {
if (addressListBuilder_ == null) {
if (!(endpointConfigCase_ == 1)) {
endpointConfig_ = io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.getDefaultInstance();
}
addressListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList, io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressListOrBuilder>(
(io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList) endpointConfig_,
getParentForChildren(),
isClean());
endpointConfig_ = null;
}
endpointConfigCase_ = 1;
onChanged();;
return addressListBuilder_;
}
/**
*
* Define a cluster whose addresses are returned for the specified endpoint
*
*
* string cluster_name = 2;
* @return Whether the clusterName field is set.
*/
@java.lang.Override
public boolean hasClusterName() {
return endpointConfigCase_ == 2;
}
/**
*
* Define a cluster whose addresses are returned for the specified endpoint
*
*
* string cluster_name = 2;
* @return The clusterName.
*/
@java.lang.Override
public java.lang.String getClusterName() {
java.lang.Object ref = "";
if (endpointConfigCase_ == 2) {
ref = endpointConfig_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (endpointConfigCase_ == 2) {
endpointConfig_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Define a cluster whose addresses are returned for the specified endpoint
*
*
* string cluster_name = 2;
* @return The bytes for clusterName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterNameBytes() {
java.lang.Object ref = "";
if (endpointConfigCase_ == 2) {
ref = endpointConfig_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (endpointConfigCase_ == 2) {
endpointConfig_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Define a cluster whose addresses are returned for the specified endpoint
*
*
* string cluster_name = 2;
* @param value The clusterName to set.
* @return This builder for chaining.
*/
public Builder setClusterName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
endpointConfigCase_ = 2;
endpointConfig_ = value;
onChanged();
return this;
}
/**
*
* Define a cluster whose addresses are returned for the specified endpoint
*
*
* string cluster_name = 2;
* @return This builder for chaining.
*/
public Builder clearClusterName() {
if (endpointConfigCase_ == 2) {
endpointConfigCase_ = 0;
endpointConfig_ = null;
onChanged();
}
return this;
}
/**
*
* Define a cluster whose addresses are returned for the specified endpoint
*
*
* string cluster_name = 2;
* @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);
endpointConfigCase_ = 2;
endpointConfig_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceListOrBuilder> serviceListBuilder_;
/**
*
* Define a DNS Service List for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceList service_list = 3;
* @return Whether the serviceList field is set.
*/
@java.lang.Override
public boolean hasServiceList() {
return endpointConfigCase_ == 3;
}
/**
*
* Define a DNS Service List for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceList service_list = 3;
* @return The serviceList.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList getServiceList() {
if (serviceListBuilder_ == null) {
if (endpointConfigCase_ == 3) {
return (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList) endpointConfig_;
}
return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.getDefaultInstance();
} else {
if (endpointConfigCase_ == 3) {
return serviceListBuilder_.getMessage();
}
return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.getDefaultInstance();
}
}
/**
*
* Define a DNS Service List for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceList service_list = 3;
*/
public Builder setServiceList(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList value) {
if (serviceListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endpointConfig_ = value;
onChanged();
} else {
serviceListBuilder_.setMessage(value);
}
endpointConfigCase_ = 3;
return this;
}
/**
*
* Define a DNS Service List for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceList service_list = 3;
*/
public Builder setServiceList(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.Builder builderForValue) {
if (serviceListBuilder_ == null) {
endpointConfig_ = builderForValue.build();
onChanged();
} else {
serviceListBuilder_.setMessage(builderForValue.build());
}
endpointConfigCase_ = 3;
return this;
}
/**
*
* Define a DNS Service List for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceList service_list = 3;
*/
public Builder mergeServiceList(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList value) {
if (serviceListBuilder_ == null) {
if (endpointConfigCase_ == 3 &&
endpointConfig_ != io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.getDefaultInstance()) {
endpointConfig_ = io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.newBuilder((io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList) endpointConfig_)
.mergeFrom(value).buildPartial();
} else {
endpointConfig_ = value;
}
onChanged();
} else {
if (endpointConfigCase_ == 3) {
serviceListBuilder_.mergeFrom(value);
} else {
serviceListBuilder_.setMessage(value);
}
}
endpointConfigCase_ = 3;
return this;
}
/**
*
* Define a DNS Service List for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceList service_list = 3;
*/
public Builder clearServiceList() {
if (serviceListBuilder_ == null) {
if (endpointConfigCase_ == 3) {
endpointConfigCase_ = 0;
endpointConfig_ = null;
onChanged();
}
} else {
if (endpointConfigCase_ == 3) {
endpointConfigCase_ = 0;
endpointConfig_ = null;
}
serviceListBuilder_.clear();
}
return this;
}
/**
*
* Define a DNS Service List for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceList service_list = 3;
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.Builder getServiceListBuilder() {
return getServiceListFieldBuilder().getBuilder();
}
/**
*
* Define a DNS Service List for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceList service_list = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceListOrBuilder getServiceListOrBuilder() {
if ((endpointConfigCase_ == 3) && (serviceListBuilder_ != null)) {
return serviceListBuilder_.getMessageOrBuilder();
} else {
if (endpointConfigCase_ == 3) {
return (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList) endpointConfig_;
}
return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.getDefaultInstance();
}
}
/**
*
* Define a DNS Service List for the specified endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsServiceList service_list = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceListOrBuilder>
getServiceListFieldBuilder() {
if (serviceListBuilder_ == null) {
if (!(endpointConfigCase_ == 3)) {
endpointConfig_ = io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.getDefaultInstance();
}
serviceListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceListOrBuilder>(
(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList) endpointConfig_,
getParentForChildren(),
isClean());
endpointConfig_ = null;
}
endpointConfigCase_ = 3;
onChanged();;
return serviceListBuilder_;
}
@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.DnsEndpoint)
}
// @@protoc_insertion_point(class_scope:envoy.data.dns.v3.DnsTable.DnsEndpoint)
private static final io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint();
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DnsEndpoint parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DnsEndpoint(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DnsVirtualDomainOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.data.dns.v3.DnsTable.DnsVirtualDomain)
com.google.protobuf.MessageOrBuilder {
/**
*
* A domain name for which Envoy will respond to query requests
*
*
* string name = 1 [(.validate.rules) = { ... }
* @return The name.
*/
java.lang.String getName();
/**
*
* A domain name for which Envoy will respond to query requests
*
*
* string name = 1 [(.validate.rules) = { ... }
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* The configuration containing the method to determine the address of this endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsEndpoint endpoint = 2;
* @return Whether the endpoint field is set.
*/
boolean hasEndpoint();
/**
*
* The configuration containing the method to determine the address of this endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsEndpoint endpoint = 2;
* @return The endpoint.
*/
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint getEndpoint();
/**
*
* The configuration containing the method to determine the address of this endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsEndpoint endpoint = 2;
*/
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpointOrBuilder getEndpointOrBuilder();
/**
*
* 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) = { ... }
* @return Whether the answerTtl field is set.
*/
boolean hasAnswerTtl();
/**
*
* 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) = { ... }
* @return The answerTtl.
*/
com.google.protobuf.Duration getAnswerTtl();
/**
*
* 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) = { ... }
*/
com.google.protobuf.DurationOrBuilder getAnswerTtlOrBuilder();
}
/**
* Protobuf type {@code envoy.data.dns.v3.DnsTable.DnsVirtualDomain}
*/
public static final class DnsVirtualDomain extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.dns.v3.DnsTable.DnsVirtualDomain)
DnsVirtualDomainOrBuilder {
private static final long serialVersionUID = 0L;
// Use DnsVirtualDomain.newBuilder() to construct.
private DnsVirtualDomain(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DnsVirtualDomain() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DnsVirtualDomain();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DnsVirtualDomain(
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();
name_ = s;
break;
}
case 18: {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder subBuilder = null;
if (endpoint_ != null) {
subBuilder = endpoint_.toBuilder();
}
endpoint_ = input.readMessage(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(endpoint_);
endpoint_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (answerTtl_ != null) {
subBuilder = answerTtl_.toBuilder();
}
answerTtl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(answerTtl_);
answerTtl_ = subBuilder.buildPartial();
}
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_DnsVirtualDomain_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_DnsVirtualDomain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.class, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* A domain name for which Envoy will respond to query requests
*
*
* string name = 1 [(.validate.rules) = { ... }
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* A domain name for which Envoy will respond to query requests
*
*
* string name = 1 [(.validate.rules) = { ... }
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.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;
}
}
public static final int ENDPOINT_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint endpoint_;
/**
*
* 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.
*/
@java.lang.Override
public boolean hasEndpoint() {
return endpoint_ != null;
}
/**
*
* The configuration containing the method to determine the address of this endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsEndpoint endpoint = 2;
* @return The endpoint.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint getEndpoint() {
return endpoint_ == null ? io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.getDefaultInstance() : endpoint_;
}
/**
*
* The configuration containing the method to determine the address of this endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsEndpoint endpoint = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpointOrBuilder getEndpointOrBuilder() {
return getEndpoint();
}
public static final int ANSWER_TTL_FIELD_NUMBER = 3;
private com.google.protobuf.Duration answerTtl_;
/**
*
* 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) = { ... }
* @return Whether the answerTtl field is set.
*/
@java.lang.Override
public boolean hasAnswerTtl() {
return answerTtl_ != null;
}
/**
*
* 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) = { ... }
* @return The answerTtl.
*/
@java.lang.Override
public com.google.protobuf.Duration getAnswerTtl() {
return answerTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : answerTtl_;
}
/**
*
* 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) = { ... }
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getAnswerTtlOrBuilder() {
return getAnswerTtl();
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (endpoint_ != null) {
output.writeMessage(2, getEndpoint());
}
if (answerTtl_ != null) {
output.writeMessage(3, getAnswerTtl());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (endpoint_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getEndpoint());
}
if (answerTtl_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAnswerTtl());
}
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.DnsVirtualDomain)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain other = (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasEndpoint() != other.hasEndpoint()) return false;
if (hasEndpoint()) {
if (!getEndpoint()
.equals(other.getEndpoint())) return false;
}
if (hasAnswerTtl() != other.hasAnswerTtl()) return false;
if (hasAnswerTtl()) {
if (!getAnswerTtl()
.equals(other.getAnswerTtl())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasEndpoint()) {
hash = (37 * hash) + ENDPOINT_FIELD_NUMBER;
hash = (53 * hash) + getEndpoint().hashCode();
}
if (hasAnswerTtl()) {
hash = (37 * hash) + ANSWER_TTL_FIELD_NUMBER;
hash = (53 * hash) + getAnswerTtl().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain 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.DnsVirtualDomain parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain 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.DnsVirtualDomain parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain 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.DnsVirtualDomain 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.DnsVirtualDomain 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.DnsVirtualDomain 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.DnsVirtualDomain 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.DnsVirtualDomain 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.DnsVirtualDomain 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.DnsVirtualDomain 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;
}
/**
* Protobuf type {@code envoy.data.dns.v3.DnsTable.DnsVirtualDomain}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.dns.v3.DnsTable.DnsVirtualDomain)
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomainOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.dns.v3.DnsTableProto.internal_static_envoy_data_dns_v3_DnsTable_DnsVirtualDomain_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_DnsVirtualDomain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.class, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.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();
name_ = "";
if (endpointBuilder_ == null) {
endpoint_ = null;
} else {
endpoint_ = null;
endpointBuilder_ = null;
}
if (answerTtlBuilder_ == null) {
answerTtl_ = null;
} else {
answerTtl_ = null;
answerTtlBuilder_ = 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_DnsVirtualDomain_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain build() {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain buildPartial() {
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain result = new io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain(this);
result.name_ = name_;
if (endpointBuilder_ == null) {
result.endpoint_ = endpoint_;
} else {
result.endpoint_ = endpointBuilder_.build();
}
if (answerTtlBuilder_ == null) {
result.answerTtl_ = answerTtl_;
} else {
result.answerTtl_ = answerTtlBuilder_.build();
}
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.DnsVirtualDomain) {
return mergeFrom((io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain other) {
if (other == io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasEndpoint()) {
mergeEndpoint(other.getEndpoint());
}
if (other.hasAnswerTtl()) {
mergeAnswerTtl(other.getAnswerTtl());
}
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.DnsVirtualDomain parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* A domain name for which Envoy will respond to query requests
*
*
* string name = 1 [(.validate.rules) = { ... }
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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
*
*
* .envoy.data.dns.v3.DnsTable.DnsEndpoint endpoint = 2;
* @return The endpoint.
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint getEndpoint() {
if (endpointBuilder_ == null) {
return endpoint_ == null ? io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.getDefaultInstance() : endpoint_;
} else {
return endpointBuilder_.getMessage();
}
}
/**
*
* The configuration containing the method to determine the address of this endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsEndpoint endpoint = 2;
*/
public Builder setEndpoint(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint value) {
if (endpointBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endpoint_ = value;
onChanged();
} else {
endpointBuilder_.setMessage(value);
}
return this;
}
/**
*
* The configuration containing the method to determine the address of this endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsEndpoint endpoint = 2;
*/
public Builder setEndpoint(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder builderForValue) {
if (endpointBuilder_ == null) {
endpoint_ = builderForValue.build();
onChanged();
} else {
endpointBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The configuration containing the method to determine the address of this endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsEndpoint endpoint = 2;
*/
public Builder mergeEndpoint(io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint value) {
if (endpointBuilder_ == null) {
if (endpoint_ != null) {
endpoint_ =
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.newBuilder(endpoint_).mergeFrom(value).buildPartial();
} else {
endpoint_ = value;
}
onChanged();
} else {
endpointBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The configuration containing the method to determine the address of this endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsEndpoint endpoint = 2;
*/
public Builder clearEndpoint() {
if (endpointBuilder_ == null) {
endpoint_ = null;
onChanged();
} else {
endpoint_ = null;
endpointBuilder_ = null;
}
return this;
}
/**
*
* The configuration containing the method to determine the address of this endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsEndpoint endpoint = 2;
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder getEndpointBuilder() {
onChanged();
return getEndpointFieldBuilder().getBuilder();
}
/**
*
* The configuration containing the method to determine the address of this endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsEndpoint endpoint = 2;
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpointOrBuilder getEndpointOrBuilder() {
if (endpointBuilder_ != null) {
return endpointBuilder_.getMessageOrBuilder();
} else {
return endpoint_ == null ?
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.getDefaultInstance() : endpoint_;
}
}
/**
*
* The configuration containing the method to determine the address of this endpoint
*
*
* .envoy.data.dns.v3.DnsTable.DnsEndpoint endpoint = 2;
*/
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>
getEndpointFieldBuilder() {
if (endpointBuilder_ == null) {
endpointBuilder_ = new 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>(
getEndpoint(),
getParentForChildren(),
isClean());
endpoint_ = null;
}
return endpointBuilder_;
}
private com.google.protobuf.Duration answerTtl_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> answerTtlBuilder_;
/**
*
* 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) = { ... }
* @return Whether the answerTtl field is set.
*/
public boolean hasAnswerTtl() {
return answerTtlBuilder_ != null || answerTtl_ != null;
}
/**
*
* 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) = { ... }
* @return The answerTtl.
*/
public com.google.protobuf.Duration getAnswerTtl() {
if (answerTtlBuilder_ == null) {
return answerTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : answerTtl_;
} else {
return answerTtlBuilder_.getMessage();
}
}
/**
*
* 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) = { ... }
*/
public Builder setAnswerTtl(com.google.protobuf.Duration value) {
if (answerTtlBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
answerTtl_ = value;
onChanged();
} else {
answerTtlBuilder_.setMessage(value);
}
return this;
}
/**
*
* 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) = { ... }
*/
public Builder setAnswerTtl(
com.google.protobuf.Duration.Builder builderForValue) {
if (answerTtlBuilder_ == null) {
answerTtl_ = builderForValue.build();
onChanged();
} else {
answerTtlBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* 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) = { ... }
*/
public Builder mergeAnswerTtl(com.google.protobuf.Duration value) {
if (answerTtlBuilder_ == null) {
if (answerTtl_ != null) {
answerTtl_ =
com.google.protobuf.Duration.newBuilder(answerTtl_).mergeFrom(value).buildPartial();
} else {
answerTtl_ = value;
}
onChanged();
} else {
answerTtlBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* 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) = { ... }
*/
public Builder clearAnswerTtl() {
if (answerTtlBuilder_ == null) {
answerTtl_ = null;
onChanged();
} else {
answerTtl_ = null;
answerTtlBuilder_ = null;
}
return this;
}
/**
*
* 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) = { ... }
*/
public com.google.protobuf.Duration.Builder getAnswerTtlBuilder() {
onChanged();
return getAnswerTtlFieldBuilder().getBuilder();
}
/**
*
* 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) = { ... }
*/
public com.google.protobuf.DurationOrBuilder getAnswerTtlOrBuilder() {
if (answerTtlBuilder_ != null) {
return answerTtlBuilder_.getMessageOrBuilder();
} else {
return answerTtl_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : answerTtl_;
}
}
/**
*
* 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
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
@java.lang.Override
public java.util.List getVirtualDomainsList() {
return 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
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomainOrBuilder>
getVirtualDomainsOrBuilderList() {
return 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
*
*
* 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
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain getVirtualDomains(int index) {
return virtualDomains_.get(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;
*/
@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
*
*
* 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 java.util.List getKnownSuffixesList() {
return 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
*
*
* 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 java.util.List extends io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder>
getKnownSuffixesOrBuilderList() {
return 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
*
*
* 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 int getKnownSuffixesCount() {
return knownSuffixes_.size();
}
/**
*
* 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.StringMatcher getKnownSuffixes(int index) {
return knownSuffixes_.get(index);
}
/**
*
* 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
*
*
* Protobuf type {@code envoy.data.dns.v3.DnsTable}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.dns.v3.DnsTable)
io.envoyproxy.envoy.data.dns.v3.DnsTableOrBuilder {
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);
}
// Construct using io.envoyproxy.envoy.data.dns.v3.DnsTable.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getVirtualDomainsFieldBuilder();
getKnownSuffixesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
externalRetryCount_ = 0;
if (virtualDomainsBuilder_ == null) {
virtualDomains_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
virtualDomainsBuilder_.clear();
}
if (knownSuffixesBuilder_ == null) {
knownSuffixes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
knownSuffixesBuilder_.clear();
}
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_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.dns.v3.DnsTable.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable build() {
io.envoyproxy.envoy.data.dns.v3.DnsTable result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.dns.v3.DnsTable buildPartial() {
io.envoyproxy.envoy.data.dns.v3.DnsTable result = new io.envoyproxy.envoy.data.dns.v3.DnsTable(this);
int from_bitField0_ = bitField0_;
result.externalRetryCount_ = externalRetryCount_;
if (virtualDomainsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
virtualDomains_ = java.util.Collections.unmodifiableList(virtualDomains_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.virtualDomains_ = virtualDomains_;
} else {
result.virtualDomains_ = virtualDomainsBuilder_.build();
}
if (knownSuffixesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
knownSuffixes_ = java.util.Collections.unmodifiableList(knownSuffixes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.knownSuffixes_ = knownSuffixes_;
} else {
result.knownSuffixes_ = knownSuffixesBuilder_.build();
}
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) {
return mergeFrom((io.envoyproxy.envoy.data.dns.v3.DnsTable)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.dns.v3.DnsTable other) {
if (other == io.envoyproxy.envoy.data.dns.v3.DnsTable.getDefaultInstance()) return this;
if (other.getExternalRetryCount() != 0) {
setExternalRetryCount(other.getExternalRetryCount());
}
if (virtualDomainsBuilder_ == null) {
if (!other.virtualDomains_.isEmpty()) {
if (virtualDomains_.isEmpty()) {
virtualDomains_ = other.virtualDomains_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureVirtualDomainsIsMutable();
virtualDomains_.addAll(other.virtualDomains_);
}
onChanged();
}
} else {
if (!other.virtualDomains_.isEmpty()) {
if (virtualDomainsBuilder_.isEmpty()) {
virtualDomainsBuilder_.dispose();
virtualDomainsBuilder_ = null;
virtualDomains_ = other.virtualDomains_;
bitField0_ = (bitField0_ & ~0x00000001);
virtualDomainsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getVirtualDomainsFieldBuilder() : null;
} else {
virtualDomainsBuilder_.addAllMessages(other.virtualDomains_);
}
}
}
if (knownSuffixesBuilder_ == null) {
if (!other.knownSuffixes_.isEmpty()) {
if (knownSuffixes_.isEmpty()) {
knownSuffixes_ = other.knownSuffixes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureKnownSuffixesIsMutable();
knownSuffixes_.addAll(other.knownSuffixes_);
}
onChanged();
}
} else {
if (!other.knownSuffixes_.isEmpty()) {
if (knownSuffixesBuilder_.isEmpty()) {
knownSuffixesBuilder_.dispose();
knownSuffixesBuilder_ = null;
knownSuffixes_ = other.knownSuffixes_;
bitField0_ = (bitField0_ & ~0x00000002);
knownSuffixesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getKnownSuffixesFieldBuilder() : null;
} else {
knownSuffixesBuilder_.addAllMessages(other.knownSuffixes_);
}
}
}
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 parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.dns.v3.DnsTable) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
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_;
}
/**
*
* Control how many times Envoy makes an attempt to forward a query to an external DNS server
*
*
* uint32 external_retry_count = 1 [(.validate.rules) = { ... }
* @param value The externalRetryCount to set.
* @return This builder for chaining.
*/
public Builder setExternalRetryCount(int value) {
externalRetryCount_ = value;
onChanged();
return this;
}
/**
*
* 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 This builder for chaining.
*/
public Builder clearExternalRetryCount() {
externalRetryCount_ = 0;
onChanged();
return this;
}
private java.util.List virtualDomains_ =
java.util.Collections.emptyList();
private void ensureVirtualDomainsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
virtualDomains_ = new java.util.ArrayList(virtualDomains_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomainOrBuilder> virtualDomainsBuilder_;
/**
*
* 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 java.util.List getVirtualDomainsList() {
if (virtualDomainsBuilder_ == null) {
return java.util.Collections.unmodifiableList(virtualDomains_);
} else {
return virtualDomainsBuilder_.getMessageList();
}
}
/**
*
* 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
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain getVirtualDomains(int index) {
if (virtualDomainsBuilder_ == null) {
return virtualDomains_.get(index);
} else {
return virtualDomainsBuilder_.getMessage(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 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
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
public Builder setVirtualDomains(
int index, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.Builder builderForValue) {
if (virtualDomainsBuilder_ == null) {
ensureVirtualDomainsIsMutable();
virtualDomains_.set(index, builderForValue.build());
onChanged();
} else {
virtualDomainsBuilder_.setMessage(index, builderForValue.build());
}
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(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
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
public Builder addVirtualDomains(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.Builder builderForValue) {
if (virtualDomainsBuilder_ == null) {
ensureVirtualDomainsIsMutable();
virtualDomains_.add(builderForValue.build());
onChanged();
} else {
virtualDomainsBuilder_.addMessage(builderForValue.build());
}
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.Builder builderForValue) {
if (virtualDomainsBuilder_ == null) {
ensureVirtualDomainsIsMutable();
virtualDomains_.add(index, builderForValue.build());
onChanged();
} else {
virtualDomainsBuilder_.addMessage(index, builderForValue.build());
}
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 addAllVirtualDomains(
java.lang.Iterable extends io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain> values) {
if (virtualDomainsBuilder_ == null) {
ensureVirtualDomainsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, virtualDomains_);
onChanged();
} else {
virtualDomainsBuilder_.addAllMessages(values);
}
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 clearVirtualDomains() {
if (virtualDomainsBuilder_ == null) {
virtualDomains_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
virtualDomainsBuilder_.clear();
}
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 removeVirtualDomains(int index) {
if (virtualDomainsBuilder_ == null) {
ensureVirtualDomainsIsMutable();
virtualDomains_.remove(index);
onChanged();
} else {
virtualDomainsBuilder_.remove(index);
}
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 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
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
public java.util.List extends io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomainOrBuilder>
getVirtualDomainsOrBuilderList() {
if (virtualDomainsBuilder_ != null) {
return virtualDomainsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(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
*
*
* repeated .envoy.data.dns.v3.DnsTable.DnsVirtualDomain virtual_domains = 2;
*/
public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.Builder addVirtualDomainsBuilder() {
return getVirtualDomainsFieldBuilder().addBuilder(
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.getDefaultInstance());
}
/**
*
* 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 addVirtualDomainsBuilder(
int index) {
return getVirtualDomainsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.getDefaultInstance());
}
/**
*
* 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 java.util.List
getVirtualDomainsBuilderList() {
return getVirtualDomainsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomainOrBuilder>
getVirtualDomainsFieldBuilder() {
if (virtualDomainsBuilder_ == null) {
virtualDomainsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomainOrBuilder>(
virtualDomains_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
virtualDomains_ = null;
}
return virtualDomainsBuilder_;
}
private java.util.List knownSuffixes_ =
java.util.Collections.emptyList();
private void ensureKnownSuffixesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
knownSuffixes_ = new java.util.ArrayList(knownSuffixes_);
bitField0_ |= 0x00000002;
}
}
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> knownSuffixesBuilder_;
/**
*
* 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 getKnownSuffixesList() {
if (knownSuffixesBuilder_ == null) {
return java.util.Collections.unmodifiableList(knownSuffixes_);
} else {
return knownSuffixesBuilder_.getMessageList();
}
}
/**
*
* 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 int getKnownSuffixesCount() {
if (knownSuffixesBuilder_ == null) {
return knownSuffixes_.size();
} else {
return knownSuffixesBuilder_.getCount();
}
}
/**
*
* 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 io.envoyproxy.envoy.type.matcher.v3.StringMatcher getKnownSuffixes(int index) {
if (knownSuffixesBuilder_ == null) {
return knownSuffixes_.get(index);
} else {
return knownSuffixesBuilder_.getMessage(index);
}
}
/**
*
* 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 Builder setKnownSuffixes(
int index, io.envoyproxy.envoy.type.matcher.v3.StringMatcher value) {
if (knownSuffixesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKnownSuffixesIsMutable();
knownSuffixes_.set(index, value);
onChanged();
} else {
knownSuffixesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* This field 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 Builder setKnownSuffixes(
int index, io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder builderForValue) {
if (knownSuffixesBuilder_ == null) {
ensureKnownSuffixesIsMutable();
knownSuffixes_.set(index, builderForValue.build());
onChanged();
} else {
knownSuffixesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* 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 Builder addKnownSuffixes(io.envoyproxy.envoy.type.matcher.v3.StringMatcher value) {
if (knownSuffixesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKnownSuffixesIsMutable();
knownSuffixes_.add(value);
onChanged();
} else {
knownSuffixesBuilder_.addMessage(value);
}
return this;
}
/**
*
* 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 Builder addKnownSuffixes(
int index, io.envoyproxy.envoy.type.matcher.v3.StringMatcher value) {
if (knownSuffixesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKnownSuffixesIsMutable();
knownSuffixes_.add(index, value);
onChanged();
} else {
knownSuffixesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* This field 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 Builder addKnownSuffixes(
io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder builderForValue) {
if (knownSuffixesBuilder_ == null) {
ensureKnownSuffixesIsMutable();
knownSuffixes_.add(builderForValue.build());
onChanged();
} else {
knownSuffixesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* 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 Builder addKnownSuffixes(
int index, io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder builderForValue) {
if (knownSuffixesBuilder_ == null) {
ensureKnownSuffixesIsMutable();
knownSuffixes_.add(index, builderForValue.build());
onChanged();
} else {
knownSuffixesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* 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 Builder addAllKnownSuffixes(
java.lang.Iterable extends io.envoyproxy.envoy.type.matcher.v3.StringMatcher> values) {
if (knownSuffixesBuilder_ == null) {
ensureKnownSuffixesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, knownSuffixes_);
onChanged();
} else {
knownSuffixesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* 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 Builder clearKnownSuffixes() {
if (knownSuffixesBuilder_ == null) {
knownSuffixes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
knownSuffixesBuilder_.clear();
}
return this;
}
/**
*
* 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 Builder removeKnownSuffixes(int index) {
if (knownSuffixesBuilder_ == null) {
ensureKnownSuffixesIsMutable();
knownSuffixes_.remove(index);
onChanged();
} else {
knownSuffixesBuilder_.remove(index);
}
return this;
}
/**
*
* 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 io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder getKnownSuffixesBuilder(
int index) {
return getKnownSuffixesFieldBuilder().getBuilder(index);
}
/**
*
* 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 io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder getKnownSuffixesOrBuilder(
int index) {
if (knownSuffixesBuilder_ == null) {
return knownSuffixes_.get(index); } else {
return knownSuffixesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* 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 extends io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder>
getKnownSuffixesOrBuilderList() {
if (knownSuffixesBuilder_ != null) {
return knownSuffixesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(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
*
*
* repeated .envoy.type.matcher.v3.StringMatcher known_suffixes = 3 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder addKnownSuffixesBuilder() {
return getKnownSuffixesFieldBuilder().addBuilder(
io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance());
}
/**
*
* 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 io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder addKnownSuffixesBuilder(
int index) {
return getKnownSuffixesFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance());
}
/**
*
* 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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy