All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.data.dns.v2alpha.DnsTable Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/data/dns/v2alpha/dns_table.proto

package io.envoyproxy.envoy.data.dns.v2alpha;

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy