Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/bootstrap/v3/bootstrap.proto
package io.envoyproxy.envoy.config.bootstrap.v3;
/**
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* Static :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>`. These listeners are
* available regardless of LDS configuration.
*
*
* repeated .envoy.config.listener.v3.Listener listeners = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.listener.v3.ListenerOrBuilder getListenersOrBuilder(
int index) {
return listeners_.get(index);
}
public static final int CLUSTERS_FIELD_NUMBER = 2;
private java.util.List clusters_;
/**
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
*
* repeated .envoy.config.cluster.v3.Cluster clusters = 2;
*/
@java.lang.Override
public int getClustersCount() {
return clusters_.size();
}
/**
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
*
* repeated .envoy.config.cluster.v3.Cluster clusters = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.cluster.v3.ClusterOrBuilder getClustersOrBuilder(
int index) {
return clusters_.get(index);
}
public static final int SECRETS_FIELD_NUMBER = 3;
private java.util.List secrets_;
/**
*
* These static secrets can be used by :ref:`SdsSecretConfig
* <envoy_v3_api_msg_extensions.transport_sockets.tls.v3.SdsSecretConfig>`
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
*
* repeated .envoy.config.cluster.v3.Cluster clusters = 2;
*/
public int getClustersCount() {
if (clustersBuilder_ == null) {
return clusters_.size();
} else {
return clustersBuilder_.getCount();
}
}
/**
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
*
* repeated .envoy.config.cluster.v3.Cluster clusters = 2;
*/
public Builder setClusters(
int index, io.envoyproxy.envoy.config.cluster.v3.Cluster value) {
if (clustersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClustersIsMutable();
clusters_.set(index, value);
onChanged();
} else {
clustersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
*
* repeated .envoy.config.cluster.v3.Cluster clusters = 2;
*/
public Builder addClusters(io.envoyproxy.envoy.config.cluster.v3.Cluster value) {
if (clustersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClustersIsMutable();
clusters_.add(value);
onChanged();
} else {
clustersBuilder_.addMessage(value);
}
return this;
}
/**
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
*
* repeated .envoy.config.cluster.v3.Cluster clusters = 2;
*/
public Builder addClusters(
int index, io.envoyproxy.envoy.config.cluster.v3.Cluster value) {
if (clustersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClustersIsMutable();
clusters_.add(index, value);
onChanged();
} else {
clustersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
*
* repeated .envoy.config.cluster.v3.Cluster clusters = 2;
*/
public io.envoyproxy.envoy.config.cluster.v3.Cluster.Builder getClustersBuilder(
int index) {
return getClustersFieldBuilder().getBuilder(index);
}
/**
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
*
* repeated .envoy.config.cluster.v3.Cluster clusters = 2;
*/
public io.envoyproxy.envoy.config.cluster.v3.ClusterOrBuilder getClustersOrBuilder(
int index) {
if (clustersBuilder_ == null) {
return clusters_.get(index); } else {
return clustersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* If a network based configuration source is specified for :ref:`cds_config
* <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.DynamicResources.cds_config>`, it's necessary
* to have some initial cluster definitions available to allow Envoy to know
* how to speak to the management server. These cluster definitions may not
* use :ref:`EDS <arch_overview_dynamic_config_eds>` (i.e. they should be static
* IP or DNS-based).
*
* These static secrets can be used by :ref:`SdsSecretConfig
* <envoy_v3_api_msg_extensions.transport_sockets.tls.v3.SdsSecretConfig>`
*
*
* repeated .envoy.extensions.transport_sockets.tls.v3.Secret secrets = 3;
*/
public java.util.List
getSecretsBuilderList() {
return getSecretsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.extensions.transport_sockets.tls.v3.Secret, io.envoyproxy.envoy.extensions.transport_sockets.tls.v3.Secret.Builder, io.envoyproxy.envoy.extensions.transport_sockets.tls.v3.SecretOrBuilder>
getSecretsFieldBuilder() {
if (secretsBuilder_ == null) {
secretsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.extensions.transport_sockets.tls.v3.Secret, io.envoyproxy.envoy.extensions.transport_sockets.tls.v3.Secret.Builder, io.envoyproxy.envoy.extensions.transport_sockets.tls.v3.SecretOrBuilder>(
secrets_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
secrets_ = null;
}
return secretsBuilder_;
}
@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.config.bootstrap.v3.Bootstrap.StaticResources)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v3.Bootstrap.StaticResources)
private static final io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.StaticResources DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.StaticResources();
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.StaticResources getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StaticResources parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StaticResources(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.config.bootstrap.v3.Bootstrap.StaticResources getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DynamicResourcesOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.bootstrap.v3.Bootstrap.DynamicResources)
com.google.protobuf.MessageOrBuilder {
/**
*
* All :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>` are provided by a single
* :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
*
*
* .envoy.config.core.v3.ConfigSource lds_config = 1;
* @return Whether the ldsConfig field is set.
*/
boolean hasLdsConfig();
/**
*
* All :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>` are provided by a single
* :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
*
* All :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>` are provided by a single
* :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
*
* xdstp:// resource locator for listener collection.
* [#not-implemented-hide:]
*
*
* string lds_resources_locator = 5;
* @return The bytes for ldsResourcesLocator.
*/
com.google.protobuf.ByteString
getLdsResourcesLocatorBytes();
/**
*
* All post-bootstrap :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` definitions are
* provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
* configuration source.
*
*
* .envoy.config.core.v3.ConfigSource cds_config = 2;
* @return Whether the cdsConfig field is set.
*/
boolean hasCdsConfig();
/**
*
* All post-bootstrap :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` definitions are
* provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
* configuration source.
*
* All post-bootstrap :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` definitions are
* provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
* configuration source.
*
* xdstp:// resource locator for cluster collection.
* [#not-implemented-hide:]
*
*
* string cds_resources_locator = 6;
* @return The bytes for cdsResourcesLocator.
*/
com.google.protobuf.ByteString
getCdsResourcesLocatorBytes();
/**
*
* A single :ref:`ADS <config_overview_ads>` source may be optionally
* specified. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
* :ref:`ConfigSources <envoy_v3_api_msg_config.core.v3.ConfigSource>` that have
* the :ref:`ads <envoy_v3_api_field_config.core.v3.ConfigSource.ads>` field set will be
* streamed on the ADS channel.
*
*
* .envoy.config.core.v3.ApiConfigSource ads_config = 3;
* @return Whether the adsConfig field is set.
*/
boolean hasAdsConfig();
/**
*
* A single :ref:`ADS <config_overview_ads>` source may be optionally
* specified. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
* :ref:`ConfigSources <envoy_v3_api_msg_config.core.v3.ConfigSource>` that have
* the :ref:`ads <envoy_v3_api_field_config.core.v3.ConfigSource.ads>` field set will be
* streamed on the ADS channel.
*
* A single :ref:`ADS <config_overview_ads>` source may be optionally
* specified. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
* :ref:`ConfigSources <envoy_v3_api_msg_config.core.v3.ConfigSource>` that have
* the :ref:`ads <envoy_v3_api_field_config.core.v3.ConfigSource.ads>` field set will be
* streamed on the ADS channel.
*
*
* Protobuf type {@code envoy.config.bootstrap.v3.Bootstrap.DynamicResources}
*/
public static final class DynamicResources extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v3.Bootstrap.DynamicResources)
DynamicResourcesOrBuilder {
private static final long serialVersionUID = 0L;
// Use DynamicResources.newBuilder() to construct.
private DynamicResources(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DynamicResources() {
ldsResourcesLocator_ = "";
cdsResourcesLocator_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DynamicResources();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DynamicResources(
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.config.core.v3.ConfigSource.Builder subBuilder = null;
if (ldsConfig_ != null) {
subBuilder = ldsConfig_.toBuilder();
}
ldsConfig_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.ConfigSource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ldsConfig_);
ldsConfig_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.envoyproxy.envoy.config.core.v3.ConfigSource.Builder subBuilder = null;
if (cdsConfig_ != null) {
subBuilder = cdsConfig_.toBuilder();
}
cdsConfig_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.ConfigSource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cdsConfig_);
cdsConfig_ = subBuilder.buildPartial();
}
break;
}
case 26: {
io.envoyproxy.envoy.config.core.v3.ApiConfigSource.Builder subBuilder = null;
if (adsConfig_ != null) {
subBuilder = adsConfig_.toBuilder();
}
adsConfig_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.ApiConfigSource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(adsConfig_);
adsConfig_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
ldsResourcesLocator_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
cdsResourcesLocator_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_DynamicResources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_DynamicResources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DynamicResources.class, io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DynamicResources.Builder.class);
}
public static final int LDS_CONFIG_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.config.core.v3.ConfigSource ldsConfig_;
/**
*
* All :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>` are provided by a single
* :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
*
*
* .envoy.config.core.v3.ConfigSource lds_config = 1;
* @return Whether the ldsConfig field is set.
*/
@java.lang.Override
public boolean hasLdsConfig() {
return ldsConfig_ != null;
}
/**
*
* All :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>` are provided by a single
* :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
*
* All :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>` are provided by a single
* :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
*
*
* .envoy.config.core.v3.ConfigSource lds_config = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.ConfigSourceOrBuilder getLdsConfigOrBuilder() {
return getLdsConfig();
}
public static final int LDS_RESOURCES_LOCATOR_FIELD_NUMBER = 5;
private volatile java.lang.Object ldsResourcesLocator_;
/**
*
* xdstp:// resource locator for listener collection.
* [#not-implemented-hide:]
*
* xdstp:// resource locator for listener collection.
* [#not-implemented-hide:]
*
*
* string lds_resources_locator = 5;
* @return The bytes for ldsResourcesLocator.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLdsResourcesLocatorBytes() {
java.lang.Object ref = ldsResourcesLocator_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ldsResourcesLocator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CDS_CONFIG_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.config.core.v3.ConfigSource cdsConfig_;
/**
*
* All post-bootstrap :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` definitions are
* provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
* configuration source.
*
*
* .envoy.config.core.v3.ConfigSource cds_config = 2;
* @return Whether the cdsConfig field is set.
*/
@java.lang.Override
public boolean hasCdsConfig() {
return cdsConfig_ != null;
}
/**
*
* All post-bootstrap :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` definitions are
* provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
* configuration source.
*
* All post-bootstrap :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` definitions are
* provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
* configuration source.
*
*
* .envoy.config.core.v3.ConfigSource cds_config = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.ConfigSourceOrBuilder getCdsConfigOrBuilder() {
return getCdsConfig();
}
public static final int CDS_RESOURCES_LOCATOR_FIELD_NUMBER = 6;
private volatile java.lang.Object cdsResourcesLocator_;
/**
*
* xdstp:// resource locator for cluster collection.
* [#not-implemented-hide:]
*
* xdstp:// resource locator for cluster collection.
* [#not-implemented-hide:]
*
*
* string cds_resources_locator = 6;
* @return The bytes for cdsResourcesLocator.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCdsResourcesLocatorBytes() {
java.lang.Object ref = cdsResourcesLocator_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cdsResourcesLocator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADS_CONFIG_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.config.core.v3.ApiConfigSource adsConfig_;
/**
*
* A single :ref:`ADS <config_overview_ads>` source may be optionally
* specified. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
* :ref:`ConfigSources <envoy_v3_api_msg_config.core.v3.ConfigSource>` that have
* the :ref:`ads <envoy_v3_api_field_config.core.v3.ConfigSource.ads>` field set will be
* streamed on the ADS channel.
*
*
* .envoy.config.core.v3.ApiConfigSource ads_config = 3;
* @return Whether the adsConfig field is set.
*/
@java.lang.Override
public boolean hasAdsConfig() {
return adsConfig_ != null;
}
/**
*
* A single :ref:`ADS <config_overview_ads>` source may be optionally
* specified. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
* :ref:`ConfigSources <envoy_v3_api_msg_config.core.v3.ConfigSource>` that have
* the :ref:`ads <envoy_v3_api_field_config.core.v3.ConfigSource.ads>` field set will be
* streamed on the ADS channel.
*
* A single :ref:`ADS <config_overview_ads>` source may be optionally
* specified. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
* :ref:`ConfigSources <envoy_v3_api_msg_config.core.v3.ConfigSource>` that have
* the :ref:`ads <envoy_v3_api_field_config.core.v3.ConfigSource.ads>` field set will be
* streamed on the ADS channel.
*
*
* .envoy.config.core.v3.ApiConfigSource ads_config = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.ApiConfigSourceOrBuilder getAdsConfigOrBuilder() {
return getAdsConfig();
}
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 (ldsConfig_ != null) {
output.writeMessage(1, getLdsConfig());
}
if (cdsConfig_ != null) {
output.writeMessage(2, getCdsConfig());
}
if (adsConfig_ != null) {
output.writeMessage(3, getAdsConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ldsResourcesLocator_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ldsResourcesLocator_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cdsResourcesLocator_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, cdsResourcesLocator_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ldsConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLdsConfig());
}
if (cdsConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCdsConfig());
}
if (adsConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAdsConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ldsResourcesLocator_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ldsResourcesLocator_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cdsResourcesLocator_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, cdsResourcesLocator_);
}
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.config.bootstrap.v3.Bootstrap.DynamicResources)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DynamicResources other = (io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DynamicResources) obj;
if (hasLdsConfig() != other.hasLdsConfig()) return false;
if (hasLdsConfig()) {
if (!getLdsConfig()
.equals(other.getLdsConfig())) return false;
}
if (!getLdsResourcesLocator()
.equals(other.getLdsResourcesLocator())) return false;
if (hasCdsConfig() != other.hasCdsConfig()) return false;
if (hasCdsConfig()) {
if (!getCdsConfig()
.equals(other.getCdsConfig())) return false;
}
if (!getCdsResourcesLocator()
.equals(other.getCdsResourcesLocator())) return false;
if (hasAdsConfig() != other.hasAdsConfig()) return false;
if (hasAdsConfig()) {
if (!getAdsConfig()
.equals(other.getAdsConfig())) 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 (hasLdsConfig()) {
hash = (37 * hash) + LDS_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getLdsConfig().hashCode();
}
hash = (37 * hash) + LDS_RESOURCES_LOCATOR_FIELD_NUMBER;
hash = (53 * hash) + getLdsResourcesLocator().hashCode();
if (hasCdsConfig()) {
hash = (37 * hash) + CDS_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getCdsConfig().hashCode();
}
hash = (37 * hash) + CDS_RESOURCES_LOCATOR_FIELD_NUMBER;
hash = (53 * hash) + getCdsResourcesLocator().hashCode();
if (hasAdsConfig()) {
hash = (37 * hash) + ADS_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getAdsConfig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DynamicResources parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DynamicResources 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.config.bootstrap.v3.Bootstrap.DynamicResources parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DynamicResources 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.config.bootstrap.v3.Bootstrap.DynamicResources parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DynamicResources parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DynamicResources parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DynamicResources 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.config.bootstrap.v3.Bootstrap.DynamicResources parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DynamicResources 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.config.bootstrap.v3.Bootstrap.DynamicResources parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DynamicResources 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.config.bootstrap.v3.Bootstrap.DynamicResources 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;
}
/**
*
* All :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>` are provided by a single
* :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
*
*
* .envoy.config.core.v3.ConfigSource lds_config = 1;
* @return Whether the ldsConfig field is set.
*/
public boolean hasLdsConfig() {
return ldsConfigBuilder_ != null || ldsConfig_ != null;
}
/**
*
* All :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>` are provided by a single
* :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
*
* All :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>` are provided by a single
* :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
*
*
* .envoy.config.core.v3.ConfigSource lds_config = 1;
*/
public Builder setLdsConfig(io.envoyproxy.envoy.config.core.v3.ConfigSource value) {
if (ldsConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ldsConfig_ = value;
onChanged();
} else {
ldsConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* All :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>` are provided by a single
* :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
*
* All :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>` are provided by a single
* :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
*
* All :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>` are provided by a single
* :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
*
* All :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>` are provided by a single
* :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
*
* All :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>` are provided by a single
* :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
*
* All :ref:`Listeners <envoy_v3_api_msg_config.listener.v3.Listener>` are provided by a single
* :ref:`LDS <arch_overview_dynamic_config_lds>` configuration source.
*
* xdstp:// resource locator for listener collection.
* [#not-implemented-hide:]
*
*
* string lds_resources_locator = 5;
* @return The bytes for ldsResourcesLocator.
*/
public com.google.protobuf.ByteString
getLdsResourcesLocatorBytes() {
java.lang.Object ref = ldsResourcesLocator_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ldsResourcesLocator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* xdstp:// resource locator for listener collection.
* [#not-implemented-hide:]
*
*
* string lds_resources_locator = 5;
* @param value The ldsResourcesLocator to set.
* @return This builder for chaining.
*/
public Builder setLdsResourcesLocator(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ldsResourcesLocator_ = value;
onChanged();
return this;
}
/**
*
* xdstp:// resource locator for listener collection.
* [#not-implemented-hide:]
*
*
* string lds_resources_locator = 5;
* @return This builder for chaining.
*/
public Builder clearLdsResourcesLocator() {
ldsResourcesLocator_ = getDefaultInstance().getLdsResourcesLocator();
onChanged();
return this;
}
/**
*
* xdstp:// resource locator for listener collection.
* [#not-implemented-hide:]
*
*
* string lds_resources_locator = 5;
* @param value The bytes for ldsResourcesLocator to set.
* @return This builder for chaining.
*/
public Builder setLdsResourcesLocatorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ldsResourcesLocator_ = value;
onChanged();
return this;
}
private io.envoyproxy.envoy.config.core.v3.ConfigSource cdsConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.ConfigSource, io.envoyproxy.envoy.config.core.v3.ConfigSource.Builder, io.envoyproxy.envoy.config.core.v3.ConfigSourceOrBuilder> cdsConfigBuilder_;
/**
*
* All post-bootstrap :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` definitions are
* provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
* configuration source.
*
*
* .envoy.config.core.v3.ConfigSource cds_config = 2;
* @return Whether the cdsConfig field is set.
*/
public boolean hasCdsConfig() {
return cdsConfigBuilder_ != null || cdsConfig_ != null;
}
/**
*
* All post-bootstrap :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` definitions are
* provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
* configuration source.
*
* All post-bootstrap :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` definitions are
* provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
* configuration source.
*
*
* .envoy.config.core.v3.ConfigSource cds_config = 2;
*/
public Builder setCdsConfig(io.envoyproxy.envoy.config.core.v3.ConfigSource value) {
if (cdsConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cdsConfig_ = value;
onChanged();
} else {
cdsConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* All post-bootstrap :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` definitions are
* provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
* configuration source.
*
* All post-bootstrap :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` definitions are
* provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
* configuration source.
*
* All post-bootstrap :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` definitions are
* provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
* configuration source.
*
* All post-bootstrap :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` definitions are
* provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
* configuration source.
*
* All post-bootstrap :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` definitions are
* provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
* configuration source.
*
* All post-bootstrap :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` definitions are
* provided by a single :ref:`CDS <arch_overview_dynamic_config_cds>`
* configuration source.
*
* xdstp:// resource locator for cluster collection.
* [#not-implemented-hide:]
*
*
* string cds_resources_locator = 6;
* @return The bytes for cdsResourcesLocator.
*/
public com.google.protobuf.ByteString
getCdsResourcesLocatorBytes() {
java.lang.Object ref = cdsResourcesLocator_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cdsResourcesLocator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* xdstp:// resource locator for cluster collection.
* [#not-implemented-hide:]
*
*
* string cds_resources_locator = 6;
* @param value The cdsResourcesLocator to set.
* @return This builder for chaining.
*/
public Builder setCdsResourcesLocator(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cdsResourcesLocator_ = value;
onChanged();
return this;
}
/**
*
* xdstp:// resource locator for cluster collection.
* [#not-implemented-hide:]
*
*
* string cds_resources_locator = 6;
* @return This builder for chaining.
*/
public Builder clearCdsResourcesLocator() {
cdsResourcesLocator_ = getDefaultInstance().getCdsResourcesLocator();
onChanged();
return this;
}
/**
*
* xdstp:// resource locator for cluster collection.
* [#not-implemented-hide:]
*
*
* string cds_resources_locator = 6;
* @param value The bytes for cdsResourcesLocator to set.
* @return This builder for chaining.
*/
public Builder setCdsResourcesLocatorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cdsResourcesLocator_ = value;
onChanged();
return this;
}
private io.envoyproxy.envoy.config.core.v3.ApiConfigSource adsConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.ApiConfigSource, io.envoyproxy.envoy.config.core.v3.ApiConfigSource.Builder, io.envoyproxy.envoy.config.core.v3.ApiConfigSourceOrBuilder> adsConfigBuilder_;
/**
*
* A single :ref:`ADS <config_overview_ads>` source may be optionally
* specified. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
* :ref:`ConfigSources <envoy_v3_api_msg_config.core.v3.ConfigSource>` that have
* the :ref:`ads <envoy_v3_api_field_config.core.v3.ConfigSource.ads>` field set will be
* streamed on the ADS channel.
*
*
* .envoy.config.core.v3.ApiConfigSource ads_config = 3;
* @return Whether the adsConfig field is set.
*/
public boolean hasAdsConfig() {
return adsConfigBuilder_ != null || adsConfig_ != null;
}
/**
*
* A single :ref:`ADS <config_overview_ads>` source may be optionally
* specified. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
* :ref:`ConfigSources <envoy_v3_api_msg_config.core.v3.ConfigSource>` that have
* the :ref:`ads <envoy_v3_api_field_config.core.v3.ConfigSource.ads>` field set will be
* streamed on the ADS channel.
*
* A single :ref:`ADS <config_overview_ads>` source may be optionally
* specified. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
* :ref:`ConfigSources <envoy_v3_api_msg_config.core.v3.ConfigSource>` that have
* the :ref:`ads <envoy_v3_api_field_config.core.v3.ConfigSource.ads>` field set will be
* streamed on the ADS channel.
*
*
* .envoy.config.core.v3.ApiConfigSource ads_config = 3;
*/
public Builder setAdsConfig(io.envoyproxy.envoy.config.core.v3.ApiConfigSource value) {
if (adsConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
adsConfig_ = value;
onChanged();
} else {
adsConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* A single :ref:`ADS <config_overview_ads>` source may be optionally
* specified. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
* :ref:`ConfigSources <envoy_v3_api_msg_config.core.v3.ConfigSource>` that have
* the :ref:`ads <envoy_v3_api_field_config.core.v3.ConfigSource.ads>` field set will be
* streamed on the ADS channel.
*
* A single :ref:`ADS <config_overview_ads>` source may be optionally
* specified. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
* :ref:`ConfigSources <envoy_v3_api_msg_config.core.v3.ConfigSource>` that have
* the :ref:`ads <envoy_v3_api_field_config.core.v3.ConfigSource.ads>` field set will be
* streamed on the ADS channel.
*
* A single :ref:`ADS <config_overview_ads>` source may be optionally
* specified. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
* :ref:`ConfigSources <envoy_v3_api_msg_config.core.v3.ConfigSource>` that have
* the :ref:`ads <envoy_v3_api_field_config.core.v3.ConfigSource.ads>` field set will be
* streamed on the ADS channel.
*
* A single :ref:`ADS <config_overview_ads>` source may be optionally
* specified. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
* :ref:`ConfigSources <envoy_v3_api_msg_config.core.v3.ConfigSource>` that have
* the :ref:`ads <envoy_v3_api_field_config.core.v3.ConfigSource.ads>` field set will be
* streamed on the ADS channel.
*
* A single :ref:`ADS <config_overview_ads>` source may be optionally
* specified. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
* :ref:`ConfigSources <envoy_v3_api_msg_config.core.v3.ConfigSource>` that have
* the :ref:`ads <envoy_v3_api_field_config.core.v3.ConfigSource.ads>` field set will be
* streamed on the ADS channel.
*
* A single :ref:`ADS <config_overview_ads>` source may be optionally
* specified. This must have :ref:`api_type
* <envoy_v3_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
* <envoy_v3_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`. Only
* :ref:`ConfigSources <envoy_v3_api_msg_config.core.v3.ConfigSource>` that have
* the :ref:`ads <envoy_v3_api_field_config.core.v3.ConfigSource.ads>` field set will be
* streamed on the ADS channel.
*
*
* .envoy.config.core.v3.ApiConfigSource ads_config = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.ApiConfigSource, io.envoyproxy.envoy.config.core.v3.ApiConfigSource.Builder, io.envoyproxy.envoy.config.core.v3.ApiConfigSourceOrBuilder>
getAdsConfigFieldBuilder() {
if (adsConfigBuilder_ == null) {
adsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.ApiConfigSource, io.envoyproxy.envoy.config.core.v3.ApiConfigSource.Builder, io.envoyproxy.envoy.config.core.v3.ApiConfigSourceOrBuilder>(
getAdsConfig(),
getParentForChildren(),
isClean());
adsConfig_ = null;
}
return adsConfigBuilder_;
}
@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.config.bootstrap.v3.Bootstrap.DynamicResources)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v3.Bootstrap.DynamicResources)
private static final io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DynamicResources DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DynamicResources();
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DynamicResources getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DynamicResources parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DynamicResources(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.config.bootstrap.v3.Bootstrap.DynamicResources getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ApplicationLogConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* Optional field to set the application logs format. If this field is set, it will override
* the default log format. Setting both this field and :option:`--log-format` command line
* option is not allowed, and will cause a bootstrap error.
*
*
* .envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat log_format = 1;
* @return Whether the logFormat field is set.
*/
boolean hasLogFormat();
/**
*
* Optional field to set the application logs format. If this field is set, it will override
* the default log format. Setting both this field and :option:`--log-format` command line
* option is not allowed, and will cause a bootstrap error.
*
* Optional field to set the application logs format. If this field is set, it will override
* the default log format. Setting both this field and :option:`--log-format` command line
* option is not allowed, and will cause a bootstrap error.
*
*
* .envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat log_format = 1;
*/
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormatOrBuilder getLogFormatOrBuilder();
}
/**
* Protobuf type {@code envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig}
*/
public static final class ApplicationLogConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig)
ApplicationLogConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApplicationLogConfig.newBuilder() to construct.
private ApplicationLogConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApplicationLogConfig() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ApplicationLogConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ApplicationLogConfig(
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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat.Builder subBuilder = null;
if (logFormat_ != null) {
subBuilder = logFormat_.toBuilder();
}
logFormat_ = input.readMessage(io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(logFormat_);
logFormat_ = 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.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_ApplicationLogConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_ApplicationLogConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.class, io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.Builder.class);
}
public interface LogFormatOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat)
com.google.protobuf.MessageOrBuilder {
/**
*
* Flush application logs in JSON format. The configured JSON struct can
* support all the format flags specified in the :option:`--log-format`
* command line options section, except for the ``%v`` and ``%_`` flags.
*
*
* .google.protobuf.Struct json_format = 1;
* @return Whether the jsonFormat field is set.
*/
boolean hasJsonFormat();
/**
*
* Flush application logs in JSON format. The configured JSON struct can
* support all the format flags specified in the :option:`--log-format`
* command line options section, except for the ``%v`` and ``%_`` flags.
*
* Flush application logs in JSON format. The configured JSON struct can
* support all the format flags specified in the :option:`--log-format`
* command line options section, except for the ``%v`` and ``%_`` flags.
*
* Flush application log in a format defined by a string. The text format
* can support all the format flags specified in the :option:`--log-format`
* command line option section.
*
*
* string text_format = 2;
* @return Whether the textFormat field is set.
*/
boolean hasTextFormat();
/**
*
* Flush application log in a format defined by a string. The text format
* can support all the format flags specified in the :option:`--log-format`
* command line option section.
*
* Flush application log in a format defined by a string. The text format
* can support all the format flags specified in the :option:`--log-format`
* command line option section.
*
*
* string text_format = 2;
* @return The bytes for textFormat.
*/
com.google.protobuf.ByteString
getTextFormatBytes();
public io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat.LogFormatCase getLogFormatCase();
}
/**
* Protobuf type {@code envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat}
*/
public static final class LogFormat extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat)
LogFormatOrBuilder {
private static final long serialVersionUID = 0L;
// Use LogFormat.newBuilder() to construct.
private LogFormat(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LogFormat() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LogFormat();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LogFormat(
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: {
com.google.protobuf.Struct.Builder subBuilder = null;
if (logFormatCase_ == 1) {
subBuilder = ((com.google.protobuf.Struct) logFormat_).toBuilder();
}
logFormat_ =
input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.google.protobuf.Struct) logFormat_);
logFormat_ = subBuilder.buildPartial();
}
logFormatCase_ = 1;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
logFormatCase_ = 2;
logFormat_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_ApplicationLogConfig_LogFormat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_ApplicationLogConfig_LogFormat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat.class, io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat.Builder.class);
}
private int logFormatCase_ = 0;
private java.lang.Object logFormat_;
public enum LogFormatCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
JSON_FORMAT(1),
TEXT_FORMAT(2),
LOGFORMAT_NOT_SET(0);
private final int value;
private LogFormatCase(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 LogFormatCase valueOf(int value) {
return forNumber(value);
}
public static LogFormatCase forNumber(int value) {
switch (value) {
case 1: return JSON_FORMAT;
case 2: return TEXT_FORMAT;
case 0: return LOGFORMAT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public LogFormatCase
getLogFormatCase() {
return LogFormatCase.forNumber(
logFormatCase_);
}
public static final int JSON_FORMAT_FIELD_NUMBER = 1;
/**
*
* Flush application logs in JSON format. The configured JSON struct can
* support all the format flags specified in the :option:`--log-format`
* command line options section, except for the ``%v`` and ``%_`` flags.
*
*
* .google.protobuf.Struct json_format = 1;
* @return Whether the jsonFormat field is set.
*/
@java.lang.Override
public boolean hasJsonFormat() {
return logFormatCase_ == 1;
}
/**
*
* Flush application logs in JSON format. The configured JSON struct can
* support all the format flags specified in the :option:`--log-format`
* command line options section, except for the ``%v`` and ``%_`` flags.
*
*
* .google.protobuf.Struct json_format = 1;
* @return The jsonFormat.
*/
@java.lang.Override
public com.google.protobuf.Struct getJsonFormat() {
if (logFormatCase_ == 1) {
return (com.google.protobuf.Struct) logFormat_;
}
return com.google.protobuf.Struct.getDefaultInstance();
}
/**
*
* Flush application logs in JSON format. The configured JSON struct can
* support all the format flags specified in the :option:`--log-format`
* command line options section, except for the ``%v`` and ``%_`` flags.
*
*
* .google.protobuf.Struct json_format = 1;
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getJsonFormatOrBuilder() {
if (logFormatCase_ == 1) {
return (com.google.protobuf.Struct) logFormat_;
}
return com.google.protobuf.Struct.getDefaultInstance();
}
public static final int TEXT_FORMAT_FIELD_NUMBER = 2;
/**
*
* Flush application log in a format defined by a string. The text format
* can support all the format flags specified in the :option:`--log-format`
* command line option section.
*
*
* string text_format = 2;
* @return Whether the textFormat field is set.
*/
public boolean hasTextFormat() {
return logFormatCase_ == 2;
}
/**
*
* Flush application log in a format defined by a string. The text format
* can support all the format flags specified in the :option:`--log-format`
* command line option section.
*
* Flush application log in a format defined by a string. The text format
* can support all the format flags specified in the :option:`--log-format`
* command line option section.
*
*
* string text_format = 2;
* @return The bytes for textFormat.
*/
public com.google.protobuf.ByteString
getTextFormatBytes() {
java.lang.Object ref = "";
if (logFormatCase_ == 2) {
ref = logFormat_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (logFormatCase_ == 2) {
logFormat_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (logFormatCase_ == 1) {
output.writeMessage(1, (com.google.protobuf.Struct) logFormat_);
}
if (logFormatCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, logFormat_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (logFormatCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.google.protobuf.Struct) logFormat_);
}
if (logFormatCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, logFormat_);
}
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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat other = (io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat) obj;
if (!getLogFormatCase().equals(other.getLogFormatCase())) return false;
switch (logFormatCase_) {
case 1:
if (!getJsonFormat()
.equals(other.getJsonFormat())) return false;
break;
case 2:
if (!getTextFormat()
.equals(other.getTextFormat())) 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 (logFormatCase_) {
case 1:
hash = (37 * hash) + JSON_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + getJsonFormat().hashCode();
break;
case 2:
hash = (37 * hash) + TEXT_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + getTextFormat().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat 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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat 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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat 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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat 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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat 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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat 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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat)
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormatOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_ApplicationLogConfig_LogFormat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_ApplicationLogConfig_LogFormat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat.class, io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat.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();
logFormatCase_ = 0;
logFormat_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_ApplicationLogConfig_LogFormat_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat build() {
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat result = new io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat(this);
if (logFormatCase_ == 1) {
if (jsonFormatBuilder_ == null) {
result.logFormat_ = logFormat_;
} else {
result.logFormat_ = jsonFormatBuilder_.build();
}
}
if (logFormatCase_ == 2) {
result.logFormat_ = logFormat_;
}
result.logFormatCase_ = logFormatCase_;
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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat.getDefaultInstance()) return this;
switch (other.getLogFormatCase()) {
case JSON_FORMAT: {
mergeJsonFormat(other.getJsonFormat());
break;
}
case TEXT_FORMAT: {
logFormatCase_ = 2;
logFormat_ = other.logFormat_;
onChanged();
break;
}
case LOGFORMAT_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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int logFormatCase_ = 0;
private java.lang.Object logFormat_;
public LogFormatCase
getLogFormatCase() {
return LogFormatCase.forNumber(
logFormatCase_);
}
public Builder clearLogFormat() {
logFormatCase_ = 0;
logFormat_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> jsonFormatBuilder_;
/**
*
* Flush application logs in JSON format. The configured JSON struct can
* support all the format flags specified in the :option:`--log-format`
* command line options section, except for the ``%v`` and ``%_`` flags.
*
*
* .google.protobuf.Struct json_format = 1;
* @return Whether the jsonFormat field is set.
*/
@java.lang.Override
public boolean hasJsonFormat() {
return logFormatCase_ == 1;
}
/**
*
* Flush application logs in JSON format. The configured JSON struct can
* support all the format flags specified in the :option:`--log-format`
* command line options section, except for the ``%v`` and ``%_`` flags.
*
*
* .google.protobuf.Struct json_format = 1;
* @return The jsonFormat.
*/
@java.lang.Override
public com.google.protobuf.Struct getJsonFormat() {
if (jsonFormatBuilder_ == null) {
if (logFormatCase_ == 1) {
return (com.google.protobuf.Struct) logFormat_;
}
return com.google.protobuf.Struct.getDefaultInstance();
} else {
if (logFormatCase_ == 1) {
return jsonFormatBuilder_.getMessage();
}
return com.google.protobuf.Struct.getDefaultInstance();
}
}
/**
*
* Flush application logs in JSON format. The configured JSON struct can
* support all the format flags specified in the :option:`--log-format`
* command line options section, except for the ``%v`` and ``%_`` flags.
*
* Flush application logs in JSON format. The configured JSON struct can
* support all the format flags specified in the :option:`--log-format`
* command line options section, except for the ``%v`` and ``%_`` flags.
*
* Flush application logs in JSON format. The configured JSON struct can
* support all the format flags specified in the :option:`--log-format`
* command line options section, except for the ``%v`` and ``%_`` flags.
*
* Flush application logs in JSON format. The configured JSON struct can
* support all the format flags specified in the :option:`--log-format`
* command line options section, except for the ``%v`` and ``%_`` flags.
*
* Flush application logs in JSON format. The configured JSON struct can
* support all the format flags specified in the :option:`--log-format`
* command line options section, except for the ``%v`` and ``%_`` flags.
*
* Flush application logs in JSON format. The configured JSON struct can
* support all the format flags specified in the :option:`--log-format`
* command line options section, except for the ``%v`` and ``%_`` flags.
*
* Flush application logs in JSON format. The configured JSON struct can
* support all the format flags specified in the :option:`--log-format`
* command line options section, except for the ``%v`` and ``%_`` flags.
*
* Flush application log in a format defined by a string. The text format
* can support all the format flags specified in the :option:`--log-format`
* command line option section.
*
*
* string text_format = 2;
* @return Whether the textFormat field is set.
*/
@java.lang.Override
public boolean hasTextFormat() {
return logFormatCase_ == 2;
}
/**
*
* Flush application log in a format defined by a string. The text format
* can support all the format flags specified in the :option:`--log-format`
* command line option section.
*
* Flush application log in a format defined by a string. The text format
* can support all the format flags specified in the :option:`--log-format`
* command line option section.
*
*
* string text_format = 2;
* @return The bytes for textFormat.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextFormatBytes() {
java.lang.Object ref = "";
if (logFormatCase_ == 2) {
ref = logFormat_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (logFormatCase_ == 2) {
logFormat_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Flush application log in a format defined by a string. The text format
* can support all the format flags specified in the :option:`--log-format`
* command line option section.
*
*
* string text_format = 2;
* @param value The textFormat to set.
* @return This builder for chaining.
*/
public Builder setTextFormat(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
logFormatCase_ = 2;
logFormat_ = value;
onChanged();
return this;
}
/**
*
* Flush application log in a format defined by a string. The text format
* can support all the format flags specified in the :option:`--log-format`
* command line option section.
*
*
* string text_format = 2;
* @return This builder for chaining.
*/
public Builder clearTextFormat() {
if (logFormatCase_ == 2) {
logFormatCase_ = 0;
logFormat_ = null;
onChanged();
}
return this;
}
/**
*
* Flush application log in a format defined by a string. The text format
* can support all the format flags specified in the :option:`--log-format`
* command line option section.
*
*
* string text_format = 2;
* @param value The bytes for textFormat to set.
* @return This builder for chaining.
*/
public Builder setTextFormatBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
logFormatCase_ = 2;
logFormat_ = 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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat)
private static final io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat();
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LogFormat parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LogFormat(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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int LOG_FORMAT_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat logFormat_;
/**
*
* Optional field to set the application logs format. If this field is set, it will override
* the default log format. Setting both this field and :option:`--log-format` command line
* option is not allowed, and will cause a bootstrap error.
*
*
* .envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat log_format = 1;
* @return Whether the logFormat field is set.
*/
@java.lang.Override
public boolean hasLogFormat() {
return logFormat_ != null;
}
/**
*
* Optional field to set the application logs format. If this field is set, it will override
* the default log format. Setting both this field and :option:`--log-format` command line
* option is not allowed, and will cause a bootstrap error.
*
* Optional field to set the application logs format. If this field is set, it will override
* the default log format. Setting both this field and :option:`--log-format` command line
* option is not allowed, and will cause a bootstrap error.
*
*
* .envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat log_format = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormatOrBuilder getLogFormatOrBuilder() {
return getLogFormat();
}
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 (logFormat_ != null) {
output.writeMessage(1, getLogFormat());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (logFormat_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLogFormat());
}
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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig other = (io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig) obj;
if (hasLogFormat() != other.hasLogFormat()) return false;
if (hasLogFormat()) {
if (!getLogFormat()
.equals(other.getLogFormat())) 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 (hasLogFormat()) {
hash = (37 * hash) + LOG_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + getLogFormat().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig 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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig 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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig 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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig 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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig 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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig 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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig)
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_ApplicationLogConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_ApplicationLogConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.class, io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.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();
if (logFormatBuilder_ == null) {
logFormat_ = null;
} else {
logFormat_ = null;
logFormatBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_ApplicationLogConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig build() {
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig result = new io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig(this);
if (logFormatBuilder_ == null) {
result.logFormat_ = logFormat_;
} else {
result.logFormat_ = logFormatBuilder_.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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.getDefaultInstance()) return this;
if (other.hasLogFormat()) {
mergeLogFormat(other.getLogFormat());
}
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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat logFormat_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat, io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat.Builder, io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormatOrBuilder> logFormatBuilder_;
/**
*
* Optional field to set the application logs format. If this field is set, it will override
* the default log format. Setting both this field and :option:`--log-format` command line
* option is not allowed, and will cause a bootstrap error.
*
*
* .envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat log_format = 1;
* @return Whether the logFormat field is set.
*/
public boolean hasLogFormat() {
return logFormatBuilder_ != null || logFormat_ != null;
}
/**
*
* Optional field to set the application logs format. If this field is set, it will override
* the default log format. Setting both this field and :option:`--log-format` command line
* option is not allowed, and will cause a bootstrap error.
*
* Optional field to set the application logs format. If this field is set, it will override
* the default log format. Setting both this field and :option:`--log-format` command line
* option is not allowed, and will cause a bootstrap error.
*
*
* .envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat log_format = 1;
*/
public Builder setLogFormat(io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat value) {
if (logFormatBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logFormat_ = value;
onChanged();
} else {
logFormatBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional field to set the application logs format. If this field is set, it will override
* the default log format. Setting both this field and :option:`--log-format` command line
* option is not allowed, and will cause a bootstrap error.
*
* Optional field to set the application logs format. If this field is set, it will override
* the default log format. Setting both this field and :option:`--log-format` command line
* option is not allowed, and will cause a bootstrap error.
*
* Optional field to set the application logs format. If this field is set, it will override
* the default log format. Setting both this field and :option:`--log-format` command line
* option is not allowed, and will cause a bootstrap error.
*
* Optional field to set the application logs format. If this field is set, it will override
* the default log format. Setting both this field and :option:`--log-format` command line
* option is not allowed, and will cause a bootstrap error.
*
* Optional field to set the application logs format. If this field is set, it will override
* the default log format. Setting both this field and :option:`--log-format` command line
* option is not allowed, and will cause a bootstrap error.
*
* Optional field to set the application logs format. If this field is set, it will override
* the default log format. Setting both this field and :option:`--log-format` command line
* option is not allowed, and will cause a bootstrap error.
*
*
* .envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat log_format = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat, io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat.Builder, io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormatOrBuilder>
getLogFormatFieldBuilder() {
if (logFormatBuilder_ == null) {
logFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat, io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormat.Builder, io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig.LogFormatOrBuilder>(
getLogFormat(),
getParentForChildren(),
isClean());
logFormat_ = null;
}
return logFormatBuilder_;
}
@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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig)
private static final io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig();
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ApplicationLogConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ApplicationLogConfig(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.config.bootstrap.v3.Bootstrap.ApplicationLogConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeferredStatOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* When the flag is enabled, Envoy will lazily initialize a subset of the stats (see below).
* This will save memory and CPU cycles when creating the objects that own these stats, if those
* stats are never referenced throughout the lifetime of the process. However, it will incur additional
* memory overhead for these objects, and a small increase of CPU usage when a at least one of the stats
* is updated for the first time.
* Groups of stats that will be lazily initialized:
* - Cluster traffic stats: a subgroup of the :ref:`cluster statistics <config_cluster_manager_cluster_stats>`
* that are used when requests are routed to the cluster.
*
*
* bool enable_deferred_creation_stats = 1;
* @return The enableDeferredCreationStats.
*/
boolean getEnableDeferredCreationStats();
}
/**
* Protobuf type {@code envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions}
*/
public static final class DeferredStatOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions)
DeferredStatOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeferredStatOptions.newBuilder() to construct.
private DeferredStatOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeferredStatOptions() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeferredStatOptions();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeferredStatOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
enableDeferredCreationStats_ = input.readBool();
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.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_DeferredStatOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_DeferredStatOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions.class, io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions.Builder.class);
}
public static final int ENABLE_DEFERRED_CREATION_STATS_FIELD_NUMBER = 1;
private boolean enableDeferredCreationStats_;
/**
*
* When the flag is enabled, Envoy will lazily initialize a subset of the stats (see below).
* This will save memory and CPU cycles when creating the objects that own these stats, if those
* stats are never referenced throughout the lifetime of the process. However, it will incur additional
* memory overhead for these objects, and a small increase of CPU usage when a at least one of the stats
* is updated for the first time.
* Groups of stats that will be lazily initialized:
* - Cluster traffic stats: a subgroup of the :ref:`cluster statistics <config_cluster_manager_cluster_stats>`
* that are used when requests are routed to the cluster.
*
*
* bool enable_deferred_creation_stats = 1;
* @return The enableDeferredCreationStats.
*/
@java.lang.Override
public boolean getEnableDeferredCreationStats() {
return enableDeferredCreationStats_;
}
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 (enableDeferredCreationStats_ != false) {
output.writeBool(1, enableDeferredCreationStats_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (enableDeferredCreationStats_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, enableDeferredCreationStats_);
}
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.config.bootstrap.v3.Bootstrap.DeferredStatOptions)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions other = (io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions) obj;
if (getEnableDeferredCreationStats()
!= other.getEnableDeferredCreationStats()) 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) + ENABLE_DEFERRED_CREATION_STATS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnableDeferredCreationStats());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions 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.config.bootstrap.v3.Bootstrap.DeferredStatOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions 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.config.bootstrap.v3.Bootstrap.DeferredStatOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions 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.config.bootstrap.v3.Bootstrap.DeferredStatOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions 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.config.bootstrap.v3.Bootstrap.DeferredStatOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions 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.config.bootstrap.v3.Bootstrap.DeferredStatOptions 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.config.bootstrap.v3.Bootstrap.DeferredStatOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions)
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_DeferredStatOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_DeferredStatOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions.class, io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions.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();
enableDeferredCreationStats_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_DeferredStatOptions_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions build() {
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions result = new io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions(this);
result.enableDeferredCreationStats_ = enableDeferredCreationStats_;
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.config.bootstrap.v3.Bootstrap.DeferredStatOptions) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions.getDefaultInstance()) return this;
if (other.getEnableDeferredCreationStats() != false) {
setEnableDeferredCreationStats(other.getEnableDeferredCreationStats());
}
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.config.bootstrap.v3.Bootstrap.DeferredStatOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean enableDeferredCreationStats_ ;
/**
*
* When the flag is enabled, Envoy will lazily initialize a subset of the stats (see below).
* This will save memory and CPU cycles when creating the objects that own these stats, if those
* stats are never referenced throughout the lifetime of the process. However, it will incur additional
* memory overhead for these objects, and a small increase of CPU usage when a at least one of the stats
* is updated for the first time.
* Groups of stats that will be lazily initialized:
* - Cluster traffic stats: a subgroup of the :ref:`cluster statistics <config_cluster_manager_cluster_stats>`
* that are used when requests are routed to the cluster.
*
* When the flag is enabled, Envoy will lazily initialize a subset of the stats (see below).
* This will save memory and CPU cycles when creating the objects that own these stats, if those
* stats are never referenced throughout the lifetime of the process. However, it will incur additional
* memory overhead for these objects, and a small increase of CPU usage when a at least one of the stats
* is updated for the first time.
* Groups of stats that will be lazily initialized:
* - Cluster traffic stats: a subgroup of the :ref:`cluster statistics <config_cluster_manager_cluster_stats>`
* that are used when requests are routed to the cluster.
*
*
* bool enable_deferred_creation_stats = 1;
* @param value The enableDeferredCreationStats to set.
* @return This builder for chaining.
*/
public Builder setEnableDeferredCreationStats(boolean value) {
enableDeferredCreationStats_ = value;
onChanged();
return this;
}
/**
*
* When the flag is enabled, Envoy will lazily initialize a subset of the stats (see below).
* This will save memory and CPU cycles when creating the objects that own these stats, if those
* stats are never referenced throughout the lifetime of the process. However, it will incur additional
* memory overhead for these objects, and a small increase of CPU usage when a at least one of the stats
* is updated for the first time.
* Groups of stats that will be lazily initialized:
* - Cluster traffic stats: a subgroup of the :ref:`cluster statistics <config_cluster_manager_cluster_stats>`
* that are used when requests are routed to the cluster.
*
*
* bool enable_deferred_creation_stats = 1;
* @return This builder for chaining.
*/
public Builder clearEnableDeferredCreationStats() {
enableDeferredCreationStats_ = false;
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.config.bootstrap.v3.Bootstrap.DeferredStatOptions)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions)
private static final io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions();
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.DeferredStatOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeferredStatOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeferredStatOptions(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.config.bootstrap.v3.Bootstrap.DeferredStatOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GrpcAsyncClientManagerConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.bootstrap.v3.Bootstrap.GrpcAsyncClientManagerConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* Optional field to set the expiration time for the cached gRPC client object.
* The minimal value is 5s and the default is 50s.
*
*
* .google.protobuf.Duration max_cached_entry_idle_duration = 1 [(.validate.rules) = { ... }
* @return Whether the maxCachedEntryIdleDuration field is set.
*/
boolean hasMaxCachedEntryIdleDuration();
/**
*
* Optional field to set the expiration time for the cached gRPC client object.
* The minimal value is 5s and the default is 50s.
*
* Node identity to present to the management server and for instance
* identification purposes (e.g. in generated headers).
*
*
* .envoy.config.core.v3.Node node = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.NodeOrBuilder getNodeOrBuilder() {
return getNode();
}
public static final int NODE_CONTEXT_PARAMS_FIELD_NUMBER = 26;
private com.google.protobuf.LazyStringList nodeContextParams_;
/**
*
* A list of :ref:`Node <envoy_v3_api_msg_config.core.v3.Node>` field names
* that will be included in the context parameters of the effective
* xdstp:// URL that is sent in a discovery request when resource
* locators are used for LDS/CDS. Any non-string field will have its JSON
* encoding set as the context parameter value, with the exception of
* metadata, which will be flattened (see example below). The supported field
* names are:
* - "cluster"
* - "id"
* - "locality.region"
* - "locality.sub_zone"
* - "locality.zone"
* - "metadata"
* - "user_agent_build_version.metadata"
* - "user_agent_build_version.version"
* - "user_agent_name"
* - "user_agent_version"
* The node context parameters act as a base layer dictionary for the context
* parameters (i.e. more specific resource specific context parameters will
* override). Field names will be prefixed with “udpa.node.” when included in
* context parameters.
* For example, if node_context_params is ``["user_agent_name", "metadata"]``,
* the implied context parameters might be::
* node.user_agent_name: "envoy"
* node.metadata.foo: "{\"bar\": \"baz\"}"
* node.metadata.some: "42"
* node.metadata.thing: "\"thing\""
* [#not-implemented-hide:]
*
*
* repeated string node_context_params = 26;
* @return A list containing the nodeContextParams.
*/
public com.google.protobuf.ProtocolStringList
getNodeContextParamsList() {
return nodeContextParams_;
}
/**
*
* A list of :ref:`Node <envoy_v3_api_msg_config.core.v3.Node>` field names
* that will be included in the context parameters of the effective
* xdstp:// URL that is sent in a discovery request when resource
* locators are used for LDS/CDS. Any non-string field will have its JSON
* encoding set as the context parameter value, with the exception of
* metadata, which will be flattened (see example below). The supported field
* names are:
* - "cluster"
* - "id"
* - "locality.region"
* - "locality.sub_zone"
* - "locality.zone"
* - "metadata"
* - "user_agent_build_version.metadata"
* - "user_agent_build_version.version"
* - "user_agent_name"
* - "user_agent_version"
* The node context parameters act as a base layer dictionary for the context
* parameters (i.e. more specific resource specific context parameters will
* override). Field names will be prefixed with “udpa.node.” when included in
* context parameters.
* For example, if node_context_params is ``["user_agent_name", "metadata"]``,
* the implied context parameters might be::
* node.user_agent_name: "envoy"
* node.metadata.foo: "{\"bar\": \"baz\"}"
* node.metadata.some: "42"
* node.metadata.thing: "\"thing\""
* [#not-implemented-hide:]
*
*
* repeated string node_context_params = 26;
* @return The count of nodeContextParams.
*/
public int getNodeContextParamsCount() {
return nodeContextParams_.size();
}
/**
*
* A list of :ref:`Node <envoy_v3_api_msg_config.core.v3.Node>` field names
* that will be included in the context parameters of the effective
* xdstp:// URL that is sent in a discovery request when resource
* locators are used for LDS/CDS. Any non-string field will have its JSON
* encoding set as the context parameter value, with the exception of
* metadata, which will be flattened (see example below). The supported field
* names are:
* - "cluster"
* - "id"
* - "locality.region"
* - "locality.sub_zone"
* - "locality.zone"
* - "metadata"
* - "user_agent_build_version.metadata"
* - "user_agent_build_version.version"
* - "user_agent_name"
* - "user_agent_version"
* The node context parameters act as a base layer dictionary for the context
* parameters (i.e. more specific resource specific context parameters will
* override). Field names will be prefixed with “udpa.node.” when included in
* context parameters.
* For example, if node_context_params is ``["user_agent_name", "metadata"]``,
* the implied context parameters might be::
* node.user_agent_name: "envoy"
* node.metadata.foo: "{\"bar\": \"baz\"}"
* node.metadata.some: "42"
* node.metadata.thing: "\"thing\""
* [#not-implemented-hide:]
*
*
* repeated string node_context_params = 26;
* @param index The index of the element to return.
* @return The nodeContextParams at the given index.
*/
public java.lang.String getNodeContextParams(int index) {
return nodeContextParams_.get(index);
}
/**
*
* A list of :ref:`Node <envoy_v3_api_msg_config.core.v3.Node>` field names
* that will be included in the context parameters of the effective
* xdstp:// URL that is sent in a discovery request when resource
* locators are used for LDS/CDS. Any non-string field will have its JSON
* encoding set as the context parameter value, with the exception of
* metadata, which will be flattened (see example below). The supported field
* names are:
* - "cluster"
* - "id"
* - "locality.region"
* - "locality.sub_zone"
* - "locality.zone"
* - "metadata"
* - "user_agent_build_version.metadata"
* - "user_agent_build_version.version"
* - "user_agent_name"
* - "user_agent_version"
* The node context parameters act as a base layer dictionary for the context
* parameters (i.e. more specific resource specific context parameters will
* override). Field names will be prefixed with “udpa.node.” when included in
* context parameters.
* For example, if node_context_params is ``["user_agent_name", "metadata"]``,
* the implied context parameters might be::
* node.user_agent_name: "envoy"
* node.metadata.foo: "{\"bar\": \"baz\"}"
* node.metadata.some: "42"
* node.metadata.thing: "\"thing\""
* [#not-implemented-hide:]
*
*
* repeated string node_context_params = 26;
* @param index The index of the value to return.
* @return The bytes of the nodeContextParams at the given index.
*/
public com.google.protobuf.ByteString
getNodeContextParamsBytes(int index) {
return nodeContextParams_.getByteString(index);
}
public static final int STATIC_RESOURCES_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.StaticResources staticResources_;
/**
*
* Statically specified resources.
*
*
* .envoy.config.bootstrap.v3.Bootstrap.StaticResources static_resources = 2;
* @return Whether the staticResources field is set.
*/
@java.lang.Override
public boolean hasStaticResources() {
return staticResources_ != null;
}
/**
*
* Configuration for internal processing of stats.
*
*
* .envoy.config.metrics.v3.StatsConfig stats_config = 13;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.metrics.v3.StatsConfigOrBuilder getStatsConfigOrBuilder() {
return getStatsConfig();
}
public static final int STATS_FLUSH_INTERVAL_FIELD_NUMBER = 7;
private com.google.protobuf.Duration statsFlushInterval_;
/**
*
* Optional duration between flushes to configured stats sinks. For
* performance reasons Envoy latches counters and only flushes counters and
* gauges at a periodic interval. If not specified the default is 5000ms (5
* seconds). Only one of ``stats_flush_interval`` or ``stats_flush_on_admin``
* can be set.
* Duration must be at least 1ms and at most 5 min.
*
*
* .google.protobuf.Duration stats_flush_interval = 7 [(.validate.rules) = { ... }
* @return Whether the statsFlushInterval field is set.
*/
@java.lang.Override
public boolean hasStatsFlushInterval() {
return statsFlushInterval_ != null;
}
/**
*
* Optional duration between flushes to configured stats sinks. For
* performance reasons Envoy latches counters and only flushes counters and
* gauges at a periodic interval. If not specified the default is 5000ms (5
* seconds). Only one of ``stats_flush_interval`` or ``stats_flush_on_admin``
* can be set.
* Duration must be at least 1ms and at most 5 min.
*
* Optional duration between flushes to configured stats sinks. For
* performance reasons Envoy latches counters and only flushes counters and
* gauges at a periodic interval. If not specified the default is 5000ms (5
* seconds). Only one of ``stats_flush_interval`` or ``stats_flush_on_admin``
* can be set.
* Duration must be at least 1ms and at most 5 min.
*
*
* .google.protobuf.Duration stats_flush_interval = 7 [(.validate.rules) = { ... }
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getStatsFlushIntervalOrBuilder() {
return getStatsFlushInterval();
}
public static final int STATS_FLUSH_ON_ADMIN_FIELD_NUMBER = 29;
/**
*
* Flush stats to sinks only when queried for on the admin interface. If set,
* a flush timer is not created. Only one of ``stats_flush_on_admin`` or
* ``stats_flush_interval`` can be set.
*
*
* bool stats_flush_on_admin = 29 [(.validate.rules) = { ... }
* @return Whether the statsFlushOnAdmin field is set.
*/
@java.lang.Override
public boolean hasStatsFlushOnAdmin() {
return statsFlushCase_ == 29;
}
/**
*
* Flush stats to sinks only when queried for on the admin interface. If set,
* a flush timer is not created. Only one of ``stats_flush_on_admin`` or
* ``stats_flush_interval`` can be set.
*
*
* bool stats_flush_on_admin = 29 [(.validate.rules) = { ... }
* @return The statsFlushOnAdmin.
*/
@java.lang.Override
public boolean getStatsFlushOnAdmin() {
if (statsFlushCase_ == 29) {
return (java.lang.Boolean) statsFlush_;
}
return false;
}
public static final int WATCHDOG_FIELD_NUMBER = 8;
private io.envoyproxy.envoy.config.bootstrap.v3.Watchdog watchdog_;
/**
*
* Optional watchdog configuration.
* This is for a single watchdog configuration for the entire system.
* Deprecated in favor of ``watchdogs`` which has finer granularity.
*
*
* .envoy.config.bootstrap.v3.Watchdog watchdog = 8 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.bootstrap.v3.Bootstrap.watchdog is deprecated.
* See envoy/config/bootstrap/v3/bootstrap.proto;l=237
* @return Whether the watchdog field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasWatchdog() {
return watchdog_ != null;
}
/**
*
* Optional watchdog configuration.
* This is for a single watchdog configuration for the entire system.
* Deprecated in favor of ``watchdogs`` which has finer granularity.
*
* Optional watchdog configuration.
* This is for a single watchdog configuration for the entire system.
* Deprecated in favor of ``watchdogs`` which has finer granularity.
*
*
* .envoy.config.bootstrap.v3.Watchdog watchdog = 8 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Override
@java.lang.Deprecated public io.envoyproxy.envoy.config.bootstrap.v3.WatchdogOrBuilder getWatchdogOrBuilder() {
return getWatchdog();
}
public static final int WATCHDOGS_FIELD_NUMBER = 27;
private io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs watchdogs_;
/**
*
* Optional watchdogs configuration.
* This is used for specifying different watchdogs for the different subsystems.
* [#extension-category: envoy.guarddog_actions]
*
*
* .envoy.config.bootstrap.v3.Watchdogs watchdogs = 27;
* @return Whether the watchdogs field is set.
*/
@java.lang.Override
public boolean hasWatchdogs() {
return watchdogs_ != null;
}
/**
*
* Optional watchdogs configuration.
* This is used for specifying different watchdogs for the different subsystems.
* [#extension-category: envoy.guarddog_actions]
*
* Optional watchdogs configuration.
* This is used for specifying different watchdogs for the different subsystems.
* [#extension-category: envoy.guarddog_actions]
*
*
* .envoy.config.bootstrap.v3.Watchdogs watchdogs = 27;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.WatchdogsOrBuilder getWatchdogsOrBuilder() {
return getWatchdogs();
}
public static final int TRACING_FIELD_NUMBER = 9;
private io.envoyproxy.envoy.config.trace.v3.Tracing tracing_;
/**
*
* Configuration for an external tracing provider.
* .. attention::
* This field has been deprecated in favor of :ref:`HttpConnectionManager.Tracing.provider
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.provider>`.
*
*
* .envoy.config.trace.v3.Tracing tracing = 9 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.bootstrap.v3.Bootstrap.tracing is deprecated.
* See envoy/config/bootstrap/v3/bootstrap.proto;l=250
* @return Whether the tracing field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasTracing() {
return tracing_ != null;
}
/**
*
* Configuration for an external tracing provider.
* .. attention::
* This field has been deprecated in favor of :ref:`HttpConnectionManager.Tracing.provider
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.provider>`.
*
* Configuration for an external tracing provider.
* .. attention::
* This field has been deprecated in favor of :ref:`HttpConnectionManager.Tracing.provider
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.provider>`.
*
*
* .envoy.config.trace.v3.Tracing tracing = 9 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Override
@java.lang.Deprecated public io.envoyproxy.envoy.config.trace.v3.TracingOrBuilder getTracingOrBuilder() {
return getTracing();
}
public static final int LAYERED_RUNTIME_FIELD_NUMBER = 17;
private io.envoyproxy.envoy.config.bootstrap.v3.LayeredRuntime layeredRuntime_;
/**
*
* Configuration for the runtime configuration provider. If not
* specified, a “null” provider will be used which will result in all defaults
* being used.
*
*
* .envoy.config.bootstrap.v3.LayeredRuntime layered_runtime = 17;
* @return Whether the layeredRuntime field is set.
*/
@java.lang.Override
public boolean hasLayeredRuntime() {
return layeredRuntime_ != null;
}
/**
*
* Configuration for the runtime configuration provider. If not
* specified, a “null” provider will be used which will result in all defaults
* being used.
*
* Configuration for the runtime configuration provider. If not
* specified, a “null” provider will be used which will result in all defaults
* being used.
*
*
* .envoy.config.bootstrap.v3.LayeredRuntime layered_runtime = 17;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.LayeredRuntimeOrBuilder getLayeredRuntimeOrBuilder() {
return getLayeredRuntime();
}
public static final int ADMIN_FIELD_NUMBER = 12;
private io.envoyproxy.envoy.config.bootstrap.v3.Admin admin_;
/**
*
* Configuration for the local administration HTTP server.
*
*
* .envoy.config.bootstrap.v3.Admin admin = 12;
* @return Whether the admin field is set.
*/
@java.lang.Override
public boolean hasAdmin() {
return admin_ != null;
}
/**
*
* Configuration for the local administration HTTP server.
*
*
* .envoy.config.overload.v3.OverloadManager overload_manager = 15 [(.udpa.annotations.security) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.OverloadManagerOrBuilder getOverloadManagerOrBuilder() {
return getOverloadManager();
}
public static final int ENABLE_DISPATCHER_STATS_FIELD_NUMBER = 16;
private boolean enableDispatcherStats_;
/**
*
* Enable :ref:`stats for event dispatcher <operations_performance>`, defaults to false.
* Note that this records a value for each iteration of the event loop on every thread. This
* should normally be minimal overhead, but when using
* :ref:`statsd <envoy_v3_api_msg_config.metrics.v3.StatsdSink>`, it will send each observed value
* over the wire individually because the statsd protocol doesn't have any way to represent a
* histogram summary. Be aware that this can be a very large volume of data.
*
*
* bool enable_dispatcher_stats = 16;
* @return The enableDispatcherStats.
*/
@java.lang.Override
public boolean getEnableDispatcherStats() {
return enableDispatcherStats_;
}
public static final int HEADER_PREFIX_FIELD_NUMBER = 18;
private volatile java.lang.Object headerPrefix_;
/**
*
* Optional string which will be used in lieu of x-envoy in prefixing headers.
* For example, if this string is present and set to X-Foo, then x-envoy-retry-on will be
* transformed into x-foo-retry-on etc.
* Note this applies to the headers Envoy will generate, the headers Envoy will sanitize, and the
* headers Envoy will trust for core code and core extensions only. Be VERY careful making
* changes to this string, especially in multi-layer Envoy deployments or deployments using
* extensions which are not upstream.
*
* Optional string which will be used in lieu of x-envoy in prefixing headers.
* For example, if this string is present and set to X-Foo, then x-envoy-retry-on will be
* transformed into x-foo-retry-on etc.
* Note this applies to the headers Envoy will generate, the headers Envoy will sanitize, and the
* headers Envoy will trust for core code and core extensions only. Be VERY careful making
* changes to this string, especially in multi-layer Envoy deployments or deployments using
* extensions which are not upstream.
*
*
* string header_prefix = 18;
* @return The bytes for headerPrefix.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHeaderPrefixBytes() {
java.lang.Object ref = headerPrefix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
headerPrefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATS_SERVER_VERSION_OVERRIDE_FIELD_NUMBER = 19;
private com.google.protobuf.UInt64Value statsServerVersionOverride_;
/**
*
* Optional proxy version which will be used to set the value of :ref:`server.version statistic
* <server_statistics>` if specified. Envoy will not process this value, it will be sent as is to
* :ref:`stats sinks <envoy_v3_api_msg_config.metrics.v3.StatsSink>`.
*
*
* .google.protobuf.UInt64Value stats_server_version_override = 19;
* @return Whether the statsServerVersionOverride field is set.
*/
@java.lang.Override
public boolean hasStatsServerVersionOverride() {
return statsServerVersionOverride_ != null;
}
/**
*
* Optional proxy version which will be used to set the value of :ref:`server.version statistic
* <server_statistics>` if specified. Envoy will not process this value, it will be sent as is to
* :ref:`stats sinks <envoy_v3_api_msg_config.metrics.v3.StatsSink>`.
*
* Optional proxy version which will be used to set the value of :ref:`server.version statistic
* <server_statistics>` if specified. Envoy will not process this value, it will be sent as is to
* :ref:`stats sinks <envoy_v3_api_msg_config.metrics.v3.StatsSink>`.
*
*
* .google.protobuf.UInt64Value stats_server_version_override = 19;
*/
@java.lang.Override
public com.google.protobuf.UInt64ValueOrBuilder getStatsServerVersionOverrideOrBuilder() {
return getStatsServerVersionOverride();
}
public static final int USE_TCP_FOR_DNS_LOOKUPS_FIELD_NUMBER = 20;
private boolean useTcpForDnsLookups_;
/**
*
* Always use TCP queries instead of UDP queries for DNS lookups.
* This may be overridden on a per-cluster basis in cds_config,
* when :ref:`dns_resolvers <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolvers>` and
* :ref:`use_tcp_for_dns_lookups <envoy_v3_api_field_config.cluster.v3.Cluster.use_tcp_for_dns_lookups>` are
* specified.
* This field is deprecated in favor of ``dns_resolution_config``
* which aggregates all of the DNS resolver configuration in a single message.
*
*
* bool use_tcp_for_dns_lookups = 20 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.bootstrap.v3.Bootstrap.use_tcp_for_dns_lookups is deprecated.
* See envoy/config/bootstrap/v3/bootstrap.proto;l=298
* @return The useTcpForDnsLookups.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getUseTcpForDnsLookups() {
return useTcpForDnsLookups_;
}
public static final int DNS_RESOLUTION_CONFIG_FIELD_NUMBER = 30;
private io.envoyproxy.envoy.config.core.v3.DnsResolutionConfig dnsResolutionConfig_;
/**
*
* DNS resolution configuration which includes the underlying dns resolver addresses and options.
* This may be overridden on a per-cluster basis in cds_config, when
* :ref:`dns_resolution_config <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolution_config>`
* is specified.
* This field is deprecated in favor of
* :ref:`typed_dns_resolver_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.typed_dns_resolver_config>`.
*
*
* .envoy.config.core.v3.DnsResolutionConfig dns_resolution_config = 30 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.bootstrap.v3.Bootstrap.dns_resolution_config is deprecated.
* See envoy/config/bootstrap/v3/bootstrap.proto;l=307
* @return Whether the dnsResolutionConfig field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasDnsResolutionConfig() {
return dnsResolutionConfig_ != null;
}
/**
*
* DNS resolution configuration which includes the underlying dns resolver addresses and options.
* This may be overridden on a per-cluster basis in cds_config, when
* :ref:`dns_resolution_config <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolution_config>`
* is specified.
* This field is deprecated in favor of
* :ref:`typed_dns_resolver_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.typed_dns_resolver_config>`.
*
* DNS resolution configuration which includes the underlying dns resolver addresses and options.
* This may be overridden on a per-cluster basis in cds_config, when
* :ref:`dns_resolution_config <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolution_config>`
* is specified.
* This field is deprecated in favor of
* :ref:`typed_dns_resolver_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.typed_dns_resolver_config>`.
*
*
* .envoy.config.core.v3.DnsResolutionConfig dns_resolution_config = 30 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Override
@java.lang.Deprecated public io.envoyproxy.envoy.config.core.v3.DnsResolutionConfigOrBuilder getDnsResolutionConfigOrBuilder() {
return getDnsResolutionConfig();
}
public static final int TYPED_DNS_RESOLVER_CONFIG_FIELD_NUMBER = 31;
private io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig typedDnsResolverConfig_;
/**
*
* DNS resolver type configuration extension. This extension can be used to configure c-ares, apple,
* or any other DNS resolver types and the related parameters.
* For example, an object of
* :ref:`CaresDnsResolverConfig <envoy_v3_api_msg_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig>`
* can be packed into this ``typed_dns_resolver_config``. This configuration replaces the
* :ref:`dns_resolution_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.dns_resolution_config>`
* configuration.
* During the transition period when both ``dns_resolution_config`` and ``typed_dns_resolver_config`` exists,
* when ``typed_dns_resolver_config`` is in place, Envoy will use it and ignore ``dns_resolution_config``.
* When ``typed_dns_resolver_config`` is missing, the default behavior is in place.
* [#extension-category: envoy.network.dns_resolver]
*
*
* .envoy.config.core.v3.TypedExtensionConfig typed_dns_resolver_config = 31;
* @return Whether the typedDnsResolverConfig field is set.
*/
@java.lang.Override
public boolean hasTypedDnsResolverConfig() {
return typedDnsResolverConfig_ != null;
}
/**
*
* DNS resolver type configuration extension. This extension can be used to configure c-ares, apple,
* or any other DNS resolver types and the related parameters.
* For example, an object of
* :ref:`CaresDnsResolverConfig <envoy_v3_api_msg_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig>`
* can be packed into this ``typed_dns_resolver_config``. This configuration replaces the
* :ref:`dns_resolution_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.dns_resolution_config>`
* configuration.
* During the transition period when both ``dns_resolution_config`` and ``typed_dns_resolver_config`` exists,
* when ``typed_dns_resolver_config`` is in place, Envoy will use it and ignore ``dns_resolution_config``.
* When ``typed_dns_resolver_config`` is missing, the default behavior is in place.
* [#extension-category: envoy.network.dns_resolver]
*
* DNS resolver type configuration extension. This extension can be used to configure c-ares, apple,
* or any other DNS resolver types and the related parameters.
* For example, an object of
* :ref:`CaresDnsResolverConfig <envoy_v3_api_msg_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig>`
* can be packed into this ``typed_dns_resolver_config``. This configuration replaces the
* :ref:`dns_resolution_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.dns_resolution_config>`
* configuration.
* During the transition period when both ``dns_resolution_config`` and ``typed_dns_resolver_config`` exists,
* when ``typed_dns_resolver_config`` is in place, Envoy will use it and ignore ``dns_resolution_config``.
* When ``typed_dns_resolver_config`` is missing, the default behavior is in place.
* [#extension-category: envoy.network.dns_resolver]
*
*
* .envoy.config.core.v3.TypedExtensionConfig typed_dns_resolver_config = 31;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getTypedDnsResolverConfigOrBuilder() {
return getTypedDnsResolverConfig();
}
public static final int BOOTSTRAP_EXTENSIONS_FIELD_NUMBER = 21;
private java.util.List bootstrapExtensions_;
/**
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
*
* repeated .envoy.config.core.v3.TypedExtensionConfig bootstrap_extensions = 21;
*/
@java.lang.Override
public int getBootstrapExtensionsCount() {
return bootstrapExtensions_.size();
}
/**
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
*
* repeated .envoy.config.core.v3.TypedExtensionConfig bootstrap_extensions = 21;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getBootstrapExtensionsOrBuilder(
int index) {
return bootstrapExtensions_.get(index);
}
public static final int FATAL_ACTIONS_FIELD_NUMBER = 28;
private java.util.List fatalActions_;
/**
*
* Specifies optional extensions instantiated at startup time and
* invoked during crash time on the request that caused the crash.
*
* Specifies optional extensions instantiated at startup time and
* invoked during crash time on the request that caused the crash.
*
*
* repeated .envoy.config.bootstrap.v3.FatalAction fatal_actions = 28;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.FatalActionOrBuilder getFatalActionsOrBuilder(
int index) {
return fatalActions_.get(index);
}
public static final int CONFIG_SOURCES_FIELD_NUMBER = 22;
private java.util.List configSources_;
/**
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
*
* repeated .envoy.config.core.v3.ConfigSource config_sources = 22;
*/
@java.lang.Override
public int getConfigSourcesCount() {
return configSources_.size();
}
/**
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
*
* repeated .envoy.config.core.v3.ConfigSource config_sources = 22;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.ConfigSourceOrBuilder getConfigSourcesOrBuilder(
int index) {
return configSources_.get(index);
}
public static final int DEFAULT_CONFIG_SOURCE_FIELD_NUMBER = 23;
private io.envoyproxy.envoy.config.core.v3.ConfigSource defaultConfigSource_;
/**
*
* Default configuration source for xdstp:// URLs if all
* other resolution fails.
* [#not-implemented-hide:]
*
*
* .envoy.config.core.v3.ConfigSource default_config_source = 23;
* @return Whether the defaultConfigSource field is set.
*/
@java.lang.Override
public boolean hasDefaultConfigSource() {
return defaultConfigSource_ != null;
}
/**
*
* Default configuration source for xdstp:// URLs if all
* other resolution fails.
* [#not-implemented-hide:]
*
* Default configuration source for xdstp:// URLs if all
* other resolution fails.
* [#not-implemented-hide:]
*
*
* .envoy.config.core.v3.ConfigSource default_config_source = 23;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.ConfigSourceOrBuilder getDefaultConfigSourceOrBuilder() {
return getDefaultConfigSource();
}
public static final int DEFAULT_SOCKET_INTERFACE_FIELD_NUMBER = 24;
private volatile java.lang.Object defaultSocketInterface_;
/**
*
* Optional overriding of default socket interface. The value must be the name of one of the
* socket interface factories initialized through a bootstrap extension
*
* Optional overriding of default socket interface. The value must be the name of one of the
* socket interface factories initialized through a bootstrap extension
*
*
* string default_socket_interface = 24;
* @return The bytes for defaultSocketInterface.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultSocketInterfaceBytes() {
java.lang.Object ref = defaultSocketInterface_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultSocketInterface_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CERTIFICATE_PROVIDER_INSTANCES_FIELD_NUMBER = 25;
private static final class CertificateProviderInstancesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig> certificateProviderInstances_;
private com.google.protobuf.MapField
internalGetCertificateProviderInstances() {
if (certificateProviderInstances_ == null) {
return com.google.protobuf.MapField.emptyMapField(
CertificateProviderInstancesDefaultEntryHolder.defaultEntry);
}
return certificateProviderInstances_;
}
public int getCertificateProviderInstancesCount() {
return internalGetCertificateProviderInstances().getMap().size();
}
/**
*
* Global map of CertificateProvider instances. These instances are referred to by name in the
* :ref:`CommonTlsContext.CertificateProviderInstance.instance_name
* <envoy_v3_api_field_extensions.transport_sockets.tls.v3.CommonTlsContext.CertificateProviderInstance.instance_name>`
* field.
* [#not-implemented-hide:]
*
*
* map<string, .envoy.config.core.v3.TypedExtensionConfig> certificate_provider_instances = 25;
*/
@java.lang.Override
public boolean containsCertificateProviderInstances(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetCertificateProviderInstances().getMap().containsKey(key);
}
/**
* Use {@link #getCertificateProviderInstancesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getCertificateProviderInstances() {
return getCertificateProviderInstancesMap();
}
/**
*
* Global map of CertificateProvider instances. These instances are referred to by name in the
* :ref:`CommonTlsContext.CertificateProviderInstance.instance_name
* <envoy_v3_api_field_extensions.transport_sockets.tls.v3.CommonTlsContext.CertificateProviderInstance.instance_name>`
* field.
* [#not-implemented-hide:]
*
* Global map of CertificateProvider instances. These instances are referred to by name in the
* :ref:`CommonTlsContext.CertificateProviderInstance.instance_name
* <envoy_v3_api_field_extensions.transport_sockets.tls.v3.CommonTlsContext.CertificateProviderInstance.instance_name>`
* field.
* [#not-implemented-hide:]
*
* Global map of CertificateProvider instances. These instances are referred to by name in the
* :ref:`CommonTlsContext.CertificateProviderInstance.instance_name
* <envoy_v3_api_field_extensions.transport_sockets.tls.v3.CommonTlsContext.CertificateProviderInstance.instance_name>`
* field.
* [#not-implemented-hide:]
*
*
* map<string, .envoy.config.core.v3.TypedExtensionConfig> certificate_provider_instances = 25;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getCertificateProviderInstancesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetCertificateProviderInstances().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int INLINE_HEADERS_FIELD_NUMBER = 32;
private java.util.List inlineHeaders_;
/**
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
*
* repeated .envoy.config.bootstrap.v3.CustomInlineHeader inline_headers = 32;
*/
@java.lang.Override
public int getInlineHeadersCount() {
return inlineHeaders_.size();
}
/**
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
*
* repeated .envoy.config.bootstrap.v3.CustomInlineHeader inline_headers = 32;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.CustomInlineHeaderOrBuilder getInlineHeadersOrBuilder(
int index) {
return inlineHeaders_.get(index);
}
public static final int PERF_TRACING_FILE_PATH_FIELD_NUMBER = 33;
private volatile java.lang.Object perfTracingFilePath_;
/**
*
* Optional path to a file with performance tracing data created by "Perfetto" SDK in binary
* ProtoBuf format. The default value is "envoy.pftrace".
*
* Optional path to a file with performance tracing data created by "Perfetto" SDK in binary
* ProtoBuf format. The default value is "envoy.pftrace".
*
*
* string perf_tracing_file_path = 33;
* @return The bytes for perfTracingFilePath.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPerfTracingFilePathBytes() {
java.lang.Object ref = perfTracingFilePath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
perfTracingFilePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULT_REGEX_ENGINE_FIELD_NUMBER = 34;
private io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig defaultRegexEngine_;
/**
*
* Optional overriding of default regex engine.
* If the value is not specified, Google RE2 will be used by default.
* [#extension-category: envoy.regex_engines]
*
*
* .envoy.config.core.v3.TypedExtensionConfig default_regex_engine = 34;
* @return Whether the defaultRegexEngine field is set.
*/
@java.lang.Override
public boolean hasDefaultRegexEngine() {
return defaultRegexEngine_ != null;
}
/**
*
* Optional overriding of default regex engine.
* If the value is not specified, Google RE2 will be used by default.
* [#extension-category: envoy.regex_engines]
*
* Optional overriding of default regex engine.
* If the value is not specified, Google RE2 will be used by default.
* [#extension-category: envoy.regex_engines]
*
*
* .envoy.config.core.v3.TypedExtensionConfig default_regex_engine = 34;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getDefaultRegexEngineOrBuilder() {
return getDefaultRegexEngine();
}
public static final int XDS_DELEGATE_EXTENSION_FIELD_NUMBER = 35;
private io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig xdsDelegateExtension_;
/**
*
* Optional XdsResourcesDelegate configuration, which allows plugging custom logic into both
* fetch and load events during xDS processing.
* If a value is not specified, no XdsResourcesDelegate will be used.
* TODO(abeyad): Add public-facing documentation.
* [#not-implemented-hide:]
*
*
* .envoy.config.core.v3.TypedExtensionConfig xds_delegate_extension = 35;
* @return Whether the xdsDelegateExtension field is set.
*/
@java.lang.Override
public boolean hasXdsDelegateExtension() {
return xdsDelegateExtension_ != null;
}
/**
*
* Optional XdsResourcesDelegate configuration, which allows plugging custom logic into both
* fetch and load events during xDS processing.
* If a value is not specified, no XdsResourcesDelegate will be used.
* TODO(abeyad): Add public-facing documentation.
* [#not-implemented-hide:]
*
* Optional XdsResourcesDelegate configuration, which allows plugging custom logic into both
* fetch and load events during xDS processing.
* If a value is not specified, no XdsResourcesDelegate will be used.
* TODO(abeyad): Add public-facing documentation.
* [#not-implemented-hide:]
*
*
* .envoy.config.core.v3.TypedExtensionConfig xds_delegate_extension = 35;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getXdsDelegateExtensionOrBuilder() {
return getXdsDelegateExtension();
}
public static final int XDS_CONFIG_TRACKER_EXTENSION_FIELD_NUMBER = 36;
private io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig xdsConfigTrackerExtension_;
/**
*
* Optional XdsConfigTracker configuration, which allows tracking xDS responses in external components,
* e.g., external tracer or monitor. It provides the process point when receive, ingest, or fail to
* process xDS resources and messages. If a value is not specified, no XdsConfigTracker will be used.
* .. note::
* There are no in-repo extensions currently, and the :repo:`XdsConfigTracker <envoy/config/xds_config_tracker.h>`
* interface should be implemented before using.
* See :repo:`xds_config_tracker_integration_test <test/integration/xds_config_tracker_integration_test.cc>`
* for an example usage of the interface.
*
*
* .envoy.config.core.v3.TypedExtensionConfig xds_config_tracker_extension = 36;
* @return Whether the xdsConfigTrackerExtension field is set.
*/
@java.lang.Override
public boolean hasXdsConfigTrackerExtension() {
return xdsConfigTrackerExtension_ != null;
}
/**
*
* Optional XdsConfigTracker configuration, which allows tracking xDS responses in external components,
* e.g., external tracer or monitor. It provides the process point when receive, ingest, or fail to
* process xDS resources and messages. If a value is not specified, no XdsConfigTracker will be used.
* .. note::
* There are no in-repo extensions currently, and the :repo:`XdsConfigTracker <envoy/config/xds_config_tracker.h>`
* interface should be implemented before using.
* See :repo:`xds_config_tracker_integration_test <test/integration/xds_config_tracker_integration_test.cc>`
* for an example usage of the interface.
*
* Optional XdsConfigTracker configuration, which allows tracking xDS responses in external components,
* e.g., external tracer or monitor. It provides the process point when receive, ingest, or fail to
* process xDS resources and messages. If a value is not specified, no XdsConfigTracker will be used.
* .. note::
* There are no in-repo extensions currently, and the :repo:`XdsConfigTracker <envoy/config/xds_config_tracker.h>`
* interface should be implemented before using.
* See :repo:`xds_config_tracker_integration_test <test/integration/xds_config_tracker_integration_test.cc>`
* for an example usage of the interface.
*
*
* .envoy.config.core.v3.TypedExtensionConfig xds_config_tracker_extension = 36;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getXdsConfigTrackerExtensionOrBuilder() {
return getXdsConfigTrackerExtension();
}
public static final int LISTENER_MANAGER_FIELD_NUMBER = 37;
private io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig listenerManager_;
/**
*
* [#not-implemented-hide:]
* This controls the type of listener manager configured for Envoy. Currently
* Envoy only supports ListenerManager for this field and Envoy Mobile
* supports ApiListenerManager.
*
*
* .envoy.config.core.v3.TypedExtensionConfig listener_manager = 37;
* @return Whether the listenerManager field is set.
*/
@java.lang.Override
public boolean hasListenerManager() {
return listenerManager_ != null;
}
/**
*
* [#not-implemented-hide:]
* This controls the type of listener manager configured for Envoy. Currently
* Envoy only supports ListenerManager for this field and Envoy Mobile
* supports ApiListenerManager.
*
* [#not-implemented-hide:]
* This controls the type of listener manager configured for Envoy. Currently
* Envoy only supports ListenerManager for this field and Envoy Mobile
* supports ApiListenerManager.
*
*
* .envoy.config.core.v3.TypedExtensionConfig listener_manager = 37;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getListenerManagerOrBuilder() {
return getListenerManager();
}
public static final int APPLICATION_LOG_CONFIG_FIELD_NUMBER = 38;
private io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig applicationLogConfig_;
/**
*
* Optional application log configuration.
*
*
* .envoy.config.bootstrap.v3.Bootstrap.ApplicationLogConfig application_log_config = 38;
* @return Whether the applicationLogConfig field is set.
*/
@java.lang.Override
public boolean hasApplicationLogConfig() {
return applicationLogConfig_ != null;
}
/**
*
* A list of :ref:`Node <envoy_v3_api_msg_config.core.v3.Node>` field names
* that will be included in the context parameters of the effective
* xdstp:// URL that is sent in a discovery request when resource
* locators are used for LDS/CDS. Any non-string field will have its JSON
* encoding set as the context parameter value, with the exception of
* metadata, which will be flattened (see example below). The supported field
* names are:
* - "cluster"
* - "id"
* - "locality.region"
* - "locality.sub_zone"
* - "locality.zone"
* - "metadata"
* - "user_agent_build_version.metadata"
* - "user_agent_build_version.version"
* - "user_agent_name"
* - "user_agent_version"
* The node context parameters act as a base layer dictionary for the context
* parameters (i.e. more specific resource specific context parameters will
* override). Field names will be prefixed with “udpa.node.” when included in
* context parameters.
* For example, if node_context_params is ``["user_agent_name", "metadata"]``,
* the implied context parameters might be::
* node.user_agent_name: "envoy"
* node.metadata.foo: "{\"bar\": \"baz\"}"
* node.metadata.some: "42"
* node.metadata.thing: "\"thing\""
* [#not-implemented-hide:]
*
*
* repeated string node_context_params = 26;
* @return A list containing the nodeContextParams.
*/
public com.google.protobuf.ProtocolStringList
getNodeContextParamsList() {
return nodeContextParams_.getUnmodifiableView();
}
/**
*
* A list of :ref:`Node <envoy_v3_api_msg_config.core.v3.Node>` field names
* that will be included in the context parameters of the effective
* xdstp:// URL that is sent in a discovery request when resource
* locators are used for LDS/CDS. Any non-string field will have its JSON
* encoding set as the context parameter value, with the exception of
* metadata, which will be flattened (see example below). The supported field
* names are:
* - "cluster"
* - "id"
* - "locality.region"
* - "locality.sub_zone"
* - "locality.zone"
* - "metadata"
* - "user_agent_build_version.metadata"
* - "user_agent_build_version.version"
* - "user_agent_name"
* - "user_agent_version"
* The node context parameters act as a base layer dictionary for the context
* parameters (i.e. more specific resource specific context parameters will
* override). Field names will be prefixed with “udpa.node.” when included in
* context parameters.
* For example, if node_context_params is ``["user_agent_name", "metadata"]``,
* the implied context parameters might be::
* node.user_agent_name: "envoy"
* node.metadata.foo: "{\"bar\": \"baz\"}"
* node.metadata.some: "42"
* node.metadata.thing: "\"thing\""
* [#not-implemented-hide:]
*
*
* repeated string node_context_params = 26;
* @return The count of nodeContextParams.
*/
public int getNodeContextParamsCount() {
return nodeContextParams_.size();
}
/**
*
* A list of :ref:`Node <envoy_v3_api_msg_config.core.v3.Node>` field names
* that will be included in the context parameters of the effective
* xdstp:// URL that is sent in a discovery request when resource
* locators are used for LDS/CDS. Any non-string field will have its JSON
* encoding set as the context parameter value, with the exception of
* metadata, which will be flattened (see example below). The supported field
* names are:
* - "cluster"
* - "id"
* - "locality.region"
* - "locality.sub_zone"
* - "locality.zone"
* - "metadata"
* - "user_agent_build_version.metadata"
* - "user_agent_build_version.version"
* - "user_agent_name"
* - "user_agent_version"
* The node context parameters act as a base layer dictionary for the context
* parameters (i.e. more specific resource specific context parameters will
* override). Field names will be prefixed with “udpa.node.” when included in
* context parameters.
* For example, if node_context_params is ``["user_agent_name", "metadata"]``,
* the implied context parameters might be::
* node.user_agent_name: "envoy"
* node.metadata.foo: "{\"bar\": \"baz\"}"
* node.metadata.some: "42"
* node.metadata.thing: "\"thing\""
* [#not-implemented-hide:]
*
*
* repeated string node_context_params = 26;
* @param index The index of the element to return.
* @return The nodeContextParams at the given index.
*/
public java.lang.String getNodeContextParams(int index) {
return nodeContextParams_.get(index);
}
/**
*
* A list of :ref:`Node <envoy_v3_api_msg_config.core.v3.Node>` field names
* that will be included in the context parameters of the effective
* xdstp:// URL that is sent in a discovery request when resource
* locators are used for LDS/CDS. Any non-string field will have its JSON
* encoding set as the context parameter value, with the exception of
* metadata, which will be flattened (see example below). The supported field
* names are:
* - "cluster"
* - "id"
* - "locality.region"
* - "locality.sub_zone"
* - "locality.zone"
* - "metadata"
* - "user_agent_build_version.metadata"
* - "user_agent_build_version.version"
* - "user_agent_name"
* - "user_agent_version"
* The node context parameters act as a base layer dictionary for the context
* parameters (i.e. more specific resource specific context parameters will
* override). Field names will be prefixed with “udpa.node.” when included in
* context parameters.
* For example, if node_context_params is ``["user_agent_name", "metadata"]``,
* the implied context parameters might be::
* node.user_agent_name: "envoy"
* node.metadata.foo: "{\"bar\": \"baz\"}"
* node.metadata.some: "42"
* node.metadata.thing: "\"thing\""
* [#not-implemented-hide:]
*
*
* repeated string node_context_params = 26;
* @param index The index of the value to return.
* @return The bytes of the nodeContextParams at the given index.
*/
public com.google.protobuf.ByteString
getNodeContextParamsBytes(int index) {
return nodeContextParams_.getByteString(index);
}
/**
*
* A list of :ref:`Node <envoy_v3_api_msg_config.core.v3.Node>` field names
* that will be included in the context parameters of the effective
* xdstp:// URL that is sent in a discovery request when resource
* locators are used for LDS/CDS. Any non-string field will have its JSON
* encoding set as the context parameter value, with the exception of
* metadata, which will be flattened (see example below). The supported field
* names are:
* - "cluster"
* - "id"
* - "locality.region"
* - "locality.sub_zone"
* - "locality.zone"
* - "metadata"
* - "user_agent_build_version.metadata"
* - "user_agent_build_version.version"
* - "user_agent_name"
* - "user_agent_version"
* The node context parameters act as a base layer dictionary for the context
* parameters (i.e. more specific resource specific context parameters will
* override). Field names will be prefixed with “udpa.node.” when included in
* context parameters.
* For example, if node_context_params is ``["user_agent_name", "metadata"]``,
* the implied context parameters might be::
* node.user_agent_name: "envoy"
* node.metadata.foo: "{\"bar\": \"baz\"}"
* node.metadata.some: "42"
* node.metadata.thing: "\"thing\""
* [#not-implemented-hide:]
*
*
* repeated string node_context_params = 26;
* @param index The index to set the value at.
* @param value The nodeContextParams to set.
* @return This builder for chaining.
*/
public Builder setNodeContextParams(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeContextParamsIsMutable();
nodeContextParams_.set(index, value);
onChanged();
return this;
}
/**
*
* A list of :ref:`Node <envoy_v3_api_msg_config.core.v3.Node>` field names
* that will be included in the context parameters of the effective
* xdstp:// URL that is sent in a discovery request when resource
* locators are used for LDS/CDS. Any non-string field will have its JSON
* encoding set as the context parameter value, with the exception of
* metadata, which will be flattened (see example below). The supported field
* names are:
* - "cluster"
* - "id"
* - "locality.region"
* - "locality.sub_zone"
* - "locality.zone"
* - "metadata"
* - "user_agent_build_version.metadata"
* - "user_agent_build_version.version"
* - "user_agent_name"
* - "user_agent_version"
* The node context parameters act as a base layer dictionary for the context
* parameters (i.e. more specific resource specific context parameters will
* override). Field names will be prefixed with “udpa.node.” when included in
* context parameters.
* For example, if node_context_params is ``["user_agent_name", "metadata"]``,
* the implied context parameters might be::
* node.user_agent_name: "envoy"
* node.metadata.foo: "{\"bar\": \"baz\"}"
* node.metadata.some: "42"
* node.metadata.thing: "\"thing\""
* [#not-implemented-hide:]
*
*
* repeated string node_context_params = 26;
* @param value The nodeContextParams to add.
* @return This builder for chaining.
*/
public Builder addNodeContextParams(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeContextParamsIsMutable();
nodeContextParams_.add(value);
onChanged();
return this;
}
/**
*
* A list of :ref:`Node <envoy_v3_api_msg_config.core.v3.Node>` field names
* that will be included in the context parameters of the effective
* xdstp:// URL that is sent in a discovery request when resource
* locators are used for LDS/CDS. Any non-string field will have its JSON
* encoding set as the context parameter value, with the exception of
* metadata, which will be flattened (see example below). The supported field
* names are:
* - "cluster"
* - "id"
* - "locality.region"
* - "locality.sub_zone"
* - "locality.zone"
* - "metadata"
* - "user_agent_build_version.metadata"
* - "user_agent_build_version.version"
* - "user_agent_name"
* - "user_agent_version"
* The node context parameters act as a base layer dictionary for the context
* parameters (i.e. more specific resource specific context parameters will
* override). Field names will be prefixed with “udpa.node.” when included in
* context parameters.
* For example, if node_context_params is ``["user_agent_name", "metadata"]``,
* the implied context parameters might be::
* node.user_agent_name: "envoy"
* node.metadata.foo: "{\"bar\": \"baz\"}"
* node.metadata.some: "42"
* node.metadata.thing: "\"thing\""
* [#not-implemented-hide:]
*
*
* repeated string node_context_params = 26;
* @param values The nodeContextParams to add.
* @return This builder for chaining.
*/
public Builder addAllNodeContextParams(
java.lang.Iterable values) {
ensureNodeContextParamsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nodeContextParams_);
onChanged();
return this;
}
/**
*
* A list of :ref:`Node <envoy_v3_api_msg_config.core.v3.Node>` field names
* that will be included in the context parameters of the effective
* xdstp:// URL that is sent in a discovery request when resource
* locators are used for LDS/CDS. Any non-string field will have its JSON
* encoding set as the context parameter value, with the exception of
* metadata, which will be flattened (see example below). The supported field
* names are:
* - "cluster"
* - "id"
* - "locality.region"
* - "locality.sub_zone"
* - "locality.zone"
* - "metadata"
* - "user_agent_build_version.metadata"
* - "user_agent_build_version.version"
* - "user_agent_name"
* - "user_agent_version"
* The node context parameters act as a base layer dictionary for the context
* parameters (i.e. more specific resource specific context parameters will
* override). Field names will be prefixed with “udpa.node.” when included in
* context parameters.
* For example, if node_context_params is ``["user_agent_name", "metadata"]``,
* the implied context parameters might be::
* node.user_agent_name: "envoy"
* node.metadata.foo: "{\"bar\": \"baz\"}"
* node.metadata.some: "42"
* node.metadata.thing: "\"thing\""
* [#not-implemented-hide:]
*
* A list of :ref:`Node <envoy_v3_api_msg_config.core.v3.Node>` field names
* that will be included in the context parameters of the effective
* xdstp:// URL that is sent in a discovery request when resource
* locators are used for LDS/CDS. Any non-string field will have its JSON
* encoding set as the context parameter value, with the exception of
* metadata, which will be flattened (see example below). The supported field
* names are:
* - "cluster"
* - "id"
* - "locality.region"
* - "locality.sub_zone"
* - "locality.zone"
* - "metadata"
* - "user_agent_build_version.metadata"
* - "user_agent_build_version.version"
* - "user_agent_name"
* - "user_agent_version"
* The node context parameters act as a base layer dictionary for the context
* parameters (i.e. more specific resource specific context parameters will
* override). Field names will be prefixed with “udpa.node.” when included in
* context parameters.
* For example, if node_context_params is ``["user_agent_name", "metadata"]``,
* the implied context parameters might be::
* node.user_agent_name: "envoy"
* node.metadata.foo: "{\"bar\": \"baz\"}"
* node.metadata.some: "42"
* node.metadata.thing: "\"thing\""
* [#not-implemented-hide:]
*
*
* repeated string node_context_params = 26;
* @param value The bytes of the nodeContextParams to add.
* @return This builder for chaining.
*/
public Builder addNodeContextParamsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureNodeContextParamsIsMutable();
nodeContextParams_.add(value);
onChanged();
return this;
}
private io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.StaticResources staticResources_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.StaticResources, io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.StaticResources.Builder, io.envoyproxy.envoy.config.bootstrap.v3.Bootstrap.StaticResourcesOrBuilder> staticResourcesBuilder_;
/**
*
* Statically specified resources.
*
*
* .envoy.config.bootstrap.v3.Bootstrap.StaticResources static_resources = 2;
* @return Whether the staticResources field is set.
*/
public boolean hasStaticResources() {
return staticResourcesBuilder_ != null || staticResources_ != null;
}
/**
*
* Optional duration between flushes to configured stats sinks. For
* performance reasons Envoy latches counters and only flushes counters and
* gauges at a periodic interval. If not specified the default is 5000ms (5
* seconds). Only one of ``stats_flush_interval`` or ``stats_flush_on_admin``
* can be set.
* Duration must be at least 1ms and at most 5 min.
*
*
* .google.protobuf.Duration stats_flush_interval = 7 [(.validate.rules) = { ... }
* @return Whether the statsFlushInterval field is set.
*/
public boolean hasStatsFlushInterval() {
return statsFlushIntervalBuilder_ != null || statsFlushInterval_ != null;
}
/**
*
* Optional duration between flushes to configured stats sinks. For
* performance reasons Envoy latches counters and only flushes counters and
* gauges at a periodic interval. If not specified the default is 5000ms (5
* seconds). Only one of ``stats_flush_interval`` or ``stats_flush_on_admin``
* can be set.
* Duration must be at least 1ms and at most 5 min.
*
* Optional duration between flushes to configured stats sinks. For
* performance reasons Envoy latches counters and only flushes counters and
* gauges at a periodic interval. If not specified the default is 5000ms (5
* seconds). Only one of ``stats_flush_interval`` or ``stats_flush_on_admin``
* can be set.
* Duration must be at least 1ms and at most 5 min.
*
* Optional duration between flushes to configured stats sinks. For
* performance reasons Envoy latches counters and only flushes counters and
* gauges at a periodic interval. If not specified the default is 5000ms (5
* seconds). Only one of ``stats_flush_interval`` or ``stats_flush_on_admin``
* can be set.
* Duration must be at least 1ms and at most 5 min.
*
* Optional duration between flushes to configured stats sinks. For
* performance reasons Envoy latches counters and only flushes counters and
* gauges at a periodic interval. If not specified the default is 5000ms (5
* seconds). Only one of ``stats_flush_interval`` or ``stats_flush_on_admin``
* can be set.
* Duration must be at least 1ms and at most 5 min.
*
* Optional duration between flushes to configured stats sinks. For
* performance reasons Envoy latches counters and only flushes counters and
* gauges at a periodic interval. If not specified the default is 5000ms (5
* seconds). Only one of ``stats_flush_interval`` or ``stats_flush_on_admin``
* can be set.
* Duration must be at least 1ms and at most 5 min.
*
* Optional duration between flushes to configured stats sinks. For
* performance reasons Envoy latches counters and only flushes counters and
* gauges at a periodic interval. If not specified the default is 5000ms (5
* seconds). Only one of ``stats_flush_interval`` or ``stats_flush_on_admin``
* can be set.
* Duration must be at least 1ms and at most 5 min.
*
* Optional duration between flushes to configured stats sinks. For
* performance reasons Envoy latches counters and only flushes counters and
* gauges at a periodic interval. If not specified the default is 5000ms (5
* seconds). Only one of ``stats_flush_interval`` or ``stats_flush_on_admin``
* can be set.
* Duration must be at least 1ms and at most 5 min.
*
* Optional duration between flushes to configured stats sinks. For
* performance reasons Envoy latches counters and only flushes counters and
* gauges at a periodic interval. If not specified the default is 5000ms (5
* seconds). Only one of ``stats_flush_interval`` or ``stats_flush_on_admin``
* can be set.
* Duration must be at least 1ms and at most 5 min.
*
* Flush stats to sinks only when queried for on the admin interface. If set,
* a flush timer is not created. Only one of ``stats_flush_on_admin`` or
* ``stats_flush_interval`` can be set.
*
*
* bool stats_flush_on_admin = 29 [(.validate.rules) = { ... }
* @return Whether the statsFlushOnAdmin field is set.
*/
public boolean hasStatsFlushOnAdmin() {
return statsFlushCase_ == 29;
}
/**
*
* Flush stats to sinks only when queried for on the admin interface. If set,
* a flush timer is not created. Only one of ``stats_flush_on_admin`` or
* ``stats_flush_interval`` can be set.
*
* Flush stats to sinks only when queried for on the admin interface. If set,
* a flush timer is not created. Only one of ``stats_flush_on_admin`` or
* ``stats_flush_interval`` can be set.
*
*
* bool stats_flush_on_admin = 29 [(.validate.rules) = { ... }
* @param value The statsFlushOnAdmin to set.
* @return This builder for chaining.
*/
public Builder setStatsFlushOnAdmin(boolean value) {
statsFlushCase_ = 29;
statsFlush_ = value;
onChanged();
return this;
}
/**
*
* Flush stats to sinks only when queried for on the admin interface. If set,
* a flush timer is not created. Only one of ``stats_flush_on_admin`` or
* ``stats_flush_interval`` can be set.
*
* Optional watchdog configuration.
* This is for a single watchdog configuration for the entire system.
* Deprecated in favor of ``watchdogs`` which has finer granularity.
*
*
* .envoy.config.bootstrap.v3.Watchdog watchdog = 8 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.bootstrap.v3.Bootstrap.watchdog is deprecated.
* See envoy/config/bootstrap/v3/bootstrap.proto;l=237
* @return Whether the watchdog field is set.
*/
@java.lang.Deprecated public boolean hasWatchdog() {
return watchdogBuilder_ != null || watchdog_ != null;
}
/**
*
* Optional watchdog configuration.
* This is for a single watchdog configuration for the entire system.
* Deprecated in favor of ``watchdogs`` which has finer granularity.
*
* Optional watchdog configuration.
* This is for a single watchdog configuration for the entire system.
* Deprecated in favor of ``watchdogs`` which has finer granularity.
*
* Optional watchdog configuration.
* This is for a single watchdog configuration for the entire system.
* Deprecated in favor of ``watchdogs`` which has finer granularity.
*
* Optional watchdog configuration.
* This is for a single watchdog configuration for the entire system.
* Deprecated in favor of ``watchdogs`` which has finer granularity.
*
* Optional watchdog configuration.
* This is for a single watchdog configuration for the entire system.
* Deprecated in favor of ``watchdogs`` which has finer granularity.
*
* Optional watchdog configuration.
* This is for a single watchdog configuration for the entire system.
* Deprecated in favor of ``watchdogs`` which has finer granularity.
*
* Optional watchdog configuration.
* This is for a single watchdog configuration for the entire system.
* Deprecated in favor of ``watchdogs`` which has finer granularity.
*
* Optional watchdog configuration.
* This is for a single watchdog configuration for the entire system.
* Deprecated in favor of ``watchdogs`` which has finer granularity.
*
* Optional watchdogs configuration.
* This is used for specifying different watchdogs for the different subsystems.
* [#extension-category: envoy.guarddog_actions]
*
*
* .envoy.config.bootstrap.v3.Watchdogs watchdogs = 27;
* @return Whether the watchdogs field is set.
*/
public boolean hasWatchdogs() {
return watchdogsBuilder_ != null || watchdogs_ != null;
}
/**
*
* Optional watchdogs configuration.
* This is used for specifying different watchdogs for the different subsystems.
* [#extension-category: envoy.guarddog_actions]
*
* Optional watchdogs configuration.
* This is used for specifying different watchdogs for the different subsystems.
* [#extension-category: envoy.guarddog_actions]
*
*
* .envoy.config.bootstrap.v3.Watchdogs watchdogs = 27;
*/
public Builder setWatchdogs(io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs value) {
if (watchdogsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
watchdogs_ = value;
onChanged();
} else {
watchdogsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional watchdogs configuration.
* This is used for specifying different watchdogs for the different subsystems.
* [#extension-category: envoy.guarddog_actions]
*
* Optional watchdogs configuration.
* This is used for specifying different watchdogs for the different subsystems.
* [#extension-category: envoy.guarddog_actions]
*
* Optional watchdogs configuration.
* This is used for specifying different watchdogs for the different subsystems.
* [#extension-category: envoy.guarddog_actions]
*
* Optional watchdogs configuration.
* This is used for specifying different watchdogs for the different subsystems.
* [#extension-category: envoy.guarddog_actions]
*
* Optional watchdogs configuration.
* This is used for specifying different watchdogs for the different subsystems.
* [#extension-category: envoy.guarddog_actions]
*
* Optional watchdogs configuration.
* This is used for specifying different watchdogs for the different subsystems.
* [#extension-category: envoy.guarddog_actions]
*
* Configuration for an external tracing provider.
* .. attention::
* This field has been deprecated in favor of :ref:`HttpConnectionManager.Tracing.provider
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.provider>`.
*
*
* .envoy.config.trace.v3.Tracing tracing = 9 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.bootstrap.v3.Bootstrap.tracing is deprecated.
* See envoy/config/bootstrap/v3/bootstrap.proto;l=250
* @return Whether the tracing field is set.
*/
@java.lang.Deprecated public boolean hasTracing() {
return tracingBuilder_ != null || tracing_ != null;
}
/**
*
* Configuration for an external tracing provider.
* .. attention::
* This field has been deprecated in favor of :ref:`HttpConnectionManager.Tracing.provider
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.provider>`.
*
* Configuration for an external tracing provider.
* .. attention::
* This field has been deprecated in favor of :ref:`HttpConnectionManager.Tracing.provider
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.provider>`.
*
* Configuration for an external tracing provider.
* .. attention::
* This field has been deprecated in favor of :ref:`HttpConnectionManager.Tracing.provider
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.provider>`.
*
* Configuration for an external tracing provider.
* .. attention::
* This field has been deprecated in favor of :ref:`HttpConnectionManager.Tracing.provider
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.provider>`.
*
* Configuration for an external tracing provider.
* .. attention::
* This field has been deprecated in favor of :ref:`HttpConnectionManager.Tracing.provider
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.provider>`.
*
* Configuration for an external tracing provider.
* .. attention::
* This field has been deprecated in favor of :ref:`HttpConnectionManager.Tracing.provider
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.provider>`.
*
* Configuration for an external tracing provider.
* .. attention::
* This field has been deprecated in favor of :ref:`HttpConnectionManager.Tracing.provider
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.provider>`.
*
* Configuration for an external tracing provider.
* .. attention::
* This field has been deprecated in favor of :ref:`HttpConnectionManager.Tracing.provider
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.provider>`.
*
* Configuration for the runtime configuration provider. If not
* specified, a “null” provider will be used which will result in all defaults
* being used.
*
*
* .envoy.config.bootstrap.v3.LayeredRuntime layered_runtime = 17;
* @return Whether the layeredRuntime field is set.
*/
public boolean hasLayeredRuntime() {
return layeredRuntimeBuilder_ != null || layeredRuntime_ != null;
}
/**
*
* Configuration for the runtime configuration provider. If not
* specified, a “null” provider will be used which will result in all defaults
* being used.
*
* Configuration for the runtime configuration provider. If not
* specified, a “null” provider will be used which will result in all defaults
* being used.
*
*
* .envoy.config.bootstrap.v3.LayeredRuntime layered_runtime = 17;
*/
public Builder setLayeredRuntime(io.envoyproxy.envoy.config.bootstrap.v3.LayeredRuntime value) {
if (layeredRuntimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
layeredRuntime_ = value;
onChanged();
} else {
layeredRuntimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Configuration for the runtime configuration provider. If not
* specified, a “null” provider will be used which will result in all defaults
* being used.
*
* Configuration for the runtime configuration provider. If not
* specified, a “null” provider will be used which will result in all defaults
* being used.
*
* Configuration for the runtime configuration provider. If not
* specified, a “null” provider will be used which will result in all defaults
* being used.
*
* Configuration for the runtime configuration provider. If not
* specified, a “null” provider will be used which will result in all defaults
* being used.
*
* Configuration for the runtime configuration provider. If not
* specified, a “null” provider will be used which will result in all defaults
* being used.
*
* Configuration for the runtime configuration provider. If not
* specified, a “null” provider will be used which will result in all defaults
* being used.
*
* Enable :ref:`stats for event dispatcher <operations_performance>`, defaults to false.
* Note that this records a value for each iteration of the event loop on every thread. This
* should normally be minimal overhead, but when using
* :ref:`statsd <envoy_v3_api_msg_config.metrics.v3.StatsdSink>`, it will send each observed value
* over the wire individually because the statsd protocol doesn't have any way to represent a
* histogram summary. Be aware that this can be a very large volume of data.
*
* Enable :ref:`stats for event dispatcher <operations_performance>`, defaults to false.
* Note that this records a value for each iteration of the event loop on every thread. This
* should normally be minimal overhead, but when using
* :ref:`statsd <envoy_v3_api_msg_config.metrics.v3.StatsdSink>`, it will send each observed value
* over the wire individually because the statsd protocol doesn't have any way to represent a
* histogram summary. Be aware that this can be a very large volume of data.
*
*
* bool enable_dispatcher_stats = 16;
* @param value The enableDispatcherStats to set.
* @return This builder for chaining.
*/
public Builder setEnableDispatcherStats(boolean value) {
enableDispatcherStats_ = value;
onChanged();
return this;
}
/**
*
* Enable :ref:`stats for event dispatcher <operations_performance>`, defaults to false.
* Note that this records a value for each iteration of the event loop on every thread. This
* should normally be minimal overhead, but when using
* :ref:`statsd <envoy_v3_api_msg_config.metrics.v3.StatsdSink>`, it will send each observed value
* over the wire individually because the statsd protocol doesn't have any way to represent a
* histogram summary. Be aware that this can be a very large volume of data.
*
* Optional string which will be used in lieu of x-envoy in prefixing headers.
* For example, if this string is present and set to X-Foo, then x-envoy-retry-on will be
* transformed into x-foo-retry-on etc.
* Note this applies to the headers Envoy will generate, the headers Envoy will sanitize, and the
* headers Envoy will trust for core code and core extensions only. Be VERY careful making
* changes to this string, especially in multi-layer Envoy deployments or deployments using
* extensions which are not upstream.
*
* Optional string which will be used in lieu of x-envoy in prefixing headers.
* For example, if this string is present and set to X-Foo, then x-envoy-retry-on will be
* transformed into x-foo-retry-on etc.
* Note this applies to the headers Envoy will generate, the headers Envoy will sanitize, and the
* headers Envoy will trust for core code and core extensions only. Be VERY careful making
* changes to this string, especially in multi-layer Envoy deployments or deployments using
* extensions which are not upstream.
*
*
* string header_prefix = 18;
* @return The bytes for headerPrefix.
*/
public com.google.protobuf.ByteString
getHeaderPrefixBytes() {
java.lang.Object ref = headerPrefix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
headerPrefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional string which will be used in lieu of x-envoy in prefixing headers.
* For example, if this string is present and set to X-Foo, then x-envoy-retry-on will be
* transformed into x-foo-retry-on etc.
* Note this applies to the headers Envoy will generate, the headers Envoy will sanitize, and the
* headers Envoy will trust for core code and core extensions only. Be VERY careful making
* changes to this string, especially in multi-layer Envoy deployments or deployments using
* extensions which are not upstream.
*
*
* string header_prefix = 18;
* @param value The headerPrefix to set.
* @return This builder for chaining.
*/
public Builder setHeaderPrefix(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
headerPrefix_ = value;
onChanged();
return this;
}
/**
*
* Optional string which will be used in lieu of x-envoy in prefixing headers.
* For example, if this string is present and set to X-Foo, then x-envoy-retry-on will be
* transformed into x-foo-retry-on etc.
* Note this applies to the headers Envoy will generate, the headers Envoy will sanitize, and the
* headers Envoy will trust for core code and core extensions only. Be VERY careful making
* changes to this string, especially in multi-layer Envoy deployments or deployments using
* extensions which are not upstream.
*
*
* string header_prefix = 18;
* @return This builder for chaining.
*/
public Builder clearHeaderPrefix() {
headerPrefix_ = getDefaultInstance().getHeaderPrefix();
onChanged();
return this;
}
/**
*
* Optional string which will be used in lieu of x-envoy in prefixing headers.
* For example, if this string is present and set to X-Foo, then x-envoy-retry-on will be
* transformed into x-foo-retry-on etc.
* Note this applies to the headers Envoy will generate, the headers Envoy will sanitize, and the
* headers Envoy will trust for core code and core extensions only. Be VERY careful making
* changes to this string, especially in multi-layer Envoy deployments or deployments using
* extensions which are not upstream.
*
*
* string header_prefix = 18;
* @param value The bytes for headerPrefix to set.
* @return This builder for chaining.
*/
public Builder setHeaderPrefixBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
headerPrefix_ = value;
onChanged();
return this;
}
private com.google.protobuf.UInt64Value statsServerVersionOverride_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> statsServerVersionOverrideBuilder_;
/**
*
* Optional proxy version which will be used to set the value of :ref:`server.version statistic
* <server_statistics>` if specified. Envoy will not process this value, it will be sent as is to
* :ref:`stats sinks <envoy_v3_api_msg_config.metrics.v3.StatsSink>`.
*
*
* .google.protobuf.UInt64Value stats_server_version_override = 19;
* @return Whether the statsServerVersionOverride field is set.
*/
public boolean hasStatsServerVersionOverride() {
return statsServerVersionOverrideBuilder_ != null || statsServerVersionOverride_ != null;
}
/**
*
* Optional proxy version which will be used to set the value of :ref:`server.version statistic
* <server_statistics>` if specified. Envoy will not process this value, it will be sent as is to
* :ref:`stats sinks <envoy_v3_api_msg_config.metrics.v3.StatsSink>`.
*
* Optional proxy version which will be used to set the value of :ref:`server.version statistic
* <server_statistics>` if specified. Envoy will not process this value, it will be sent as is to
* :ref:`stats sinks <envoy_v3_api_msg_config.metrics.v3.StatsSink>`.
*
*
* .google.protobuf.UInt64Value stats_server_version_override = 19;
*/
public Builder setStatsServerVersionOverride(com.google.protobuf.UInt64Value value) {
if (statsServerVersionOverrideBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statsServerVersionOverride_ = value;
onChanged();
} else {
statsServerVersionOverrideBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional proxy version which will be used to set the value of :ref:`server.version statistic
* <server_statistics>` if specified. Envoy will not process this value, it will be sent as is to
* :ref:`stats sinks <envoy_v3_api_msg_config.metrics.v3.StatsSink>`.
*
* Optional proxy version which will be used to set the value of :ref:`server.version statistic
* <server_statistics>` if specified. Envoy will not process this value, it will be sent as is to
* :ref:`stats sinks <envoy_v3_api_msg_config.metrics.v3.StatsSink>`.
*
* Optional proxy version which will be used to set the value of :ref:`server.version statistic
* <server_statistics>` if specified. Envoy will not process this value, it will be sent as is to
* :ref:`stats sinks <envoy_v3_api_msg_config.metrics.v3.StatsSink>`.
*
* Optional proxy version which will be used to set the value of :ref:`server.version statistic
* <server_statistics>` if specified. Envoy will not process this value, it will be sent as is to
* :ref:`stats sinks <envoy_v3_api_msg_config.metrics.v3.StatsSink>`.
*
* Optional proxy version which will be used to set the value of :ref:`server.version statistic
* <server_statistics>` if specified. Envoy will not process this value, it will be sent as is to
* :ref:`stats sinks <envoy_v3_api_msg_config.metrics.v3.StatsSink>`.
*
* Optional proxy version which will be used to set the value of :ref:`server.version statistic
* <server_statistics>` if specified. Envoy will not process this value, it will be sent as is to
* :ref:`stats sinks <envoy_v3_api_msg_config.metrics.v3.StatsSink>`.
*
* Always use TCP queries instead of UDP queries for DNS lookups.
* This may be overridden on a per-cluster basis in cds_config,
* when :ref:`dns_resolvers <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolvers>` and
* :ref:`use_tcp_for_dns_lookups <envoy_v3_api_field_config.cluster.v3.Cluster.use_tcp_for_dns_lookups>` are
* specified.
* This field is deprecated in favor of ``dns_resolution_config``
* which aggregates all of the DNS resolver configuration in a single message.
*
*
* bool use_tcp_for_dns_lookups = 20 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.bootstrap.v3.Bootstrap.use_tcp_for_dns_lookups is deprecated.
* See envoy/config/bootstrap/v3/bootstrap.proto;l=298
* @return The useTcpForDnsLookups.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getUseTcpForDnsLookups() {
return useTcpForDnsLookups_;
}
/**
*
* Always use TCP queries instead of UDP queries for DNS lookups.
* This may be overridden on a per-cluster basis in cds_config,
* when :ref:`dns_resolvers <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolvers>` and
* :ref:`use_tcp_for_dns_lookups <envoy_v3_api_field_config.cluster.v3.Cluster.use_tcp_for_dns_lookups>` are
* specified.
* This field is deprecated in favor of ``dns_resolution_config``
* which aggregates all of the DNS resolver configuration in a single message.
*
*
* bool use_tcp_for_dns_lookups = 20 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.bootstrap.v3.Bootstrap.use_tcp_for_dns_lookups is deprecated.
* See envoy/config/bootstrap/v3/bootstrap.proto;l=298
* @param value The useTcpForDnsLookups to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setUseTcpForDnsLookups(boolean value) {
useTcpForDnsLookups_ = value;
onChanged();
return this;
}
/**
*
* Always use TCP queries instead of UDP queries for DNS lookups.
* This may be overridden on a per-cluster basis in cds_config,
* when :ref:`dns_resolvers <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolvers>` and
* :ref:`use_tcp_for_dns_lookups <envoy_v3_api_field_config.cluster.v3.Cluster.use_tcp_for_dns_lookups>` are
* specified.
* This field is deprecated in favor of ``dns_resolution_config``
* which aggregates all of the DNS resolver configuration in a single message.
*
*
* bool use_tcp_for_dns_lookups = 20 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.bootstrap.v3.Bootstrap.use_tcp_for_dns_lookups is deprecated.
* See envoy/config/bootstrap/v3/bootstrap.proto;l=298
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearUseTcpForDnsLookups() {
useTcpForDnsLookups_ = false;
onChanged();
return this;
}
private io.envoyproxy.envoy.config.core.v3.DnsResolutionConfig dnsResolutionConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.DnsResolutionConfig, io.envoyproxy.envoy.config.core.v3.DnsResolutionConfig.Builder, io.envoyproxy.envoy.config.core.v3.DnsResolutionConfigOrBuilder> dnsResolutionConfigBuilder_;
/**
*
* DNS resolution configuration which includes the underlying dns resolver addresses and options.
* This may be overridden on a per-cluster basis in cds_config, when
* :ref:`dns_resolution_config <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolution_config>`
* is specified.
* This field is deprecated in favor of
* :ref:`typed_dns_resolver_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.typed_dns_resolver_config>`.
*
*
* .envoy.config.core.v3.DnsResolutionConfig dns_resolution_config = 30 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.config.bootstrap.v3.Bootstrap.dns_resolution_config is deprecated.
* See envoy/config/bootstrap/v3/bootstrap.proto;l=307
* @return Whether the dnsResolutionConfig field is set.
*/
@java.lang.Deprecated public boolean hasDnsResolutionConfig() {
return dnsResolutionConfigBuilder_ != null || dnsResolutionConfig_ != null;
}
/**
*
* DNS resolution configuration which includes the underlying dns resolver addresses and options.
* This may be overridden on a per-cluster basis in cds_config, when
* :ref:`dns_resolution_config <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolution_config>`
* is specified.
* This field is deprecated in favor of
* :ref:`typed_dns_resolver_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.typed_dns_resolver_config>`.
*
* DNS resolution configuration which includes the underlying dns resolver addresses and options.
* This may be overridden on a per-cluster basis in cds_config, when
* :ref:`dns_resolution_config <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolution_config>`
* is specified.
* This field is deprecated in favor of
* :ref:`typed_dns_resolver_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.typed_dns_resolver_config>`.
*
* DNS resolution configuration which includes the underlying dns resolver addresses and options.
* This may be overridden on a per-cluster basis in cds_config, when
* :ref:`dns_resolution_config <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolution_config>`
* is specified.
* This field is deprecated in favor of
* :ref:`typed_dns_resolver_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.typed_dns_resolver_config>`.
*
* DNS resolution configuration which includes the underlying dns resolver addresses and options.
* This may be overridden on a per-cluster basis in cds_config, when
* :ref:`dns_resolution_config <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolution_config>`
* is specified.
* This field is deprecated in favor of
* :ref:`typed_dns_resolver_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.typed_dns_resolver_config>`.
*
* DNS resolution configuration which includes the underlying dns resolver addresses and options.
* This may be overridden on a per-cluster basis in cds_config, when
* :ref:`dns_resolution_config <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolution_config>`
* is specified.
* This field is deprecated in favor of
* :ref:`typed_dns_resolver_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.typed_dns_resolver_config>`.
*
* DNS resolution configuration which includes the underlying dns resolver addresses and options.
* This may be overridden on a per-cluster basis in cds_config, when
* :ref:`dns_resolution_config <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolution_config>`
* is specified.
* This field is deprecated in favor of
* :ref:`typed_dns_resolver_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.typed_dns_resolver_config>`.
*
* DNS resolution configuration which includes the underlying dns resolver addresses and options.
* This may be overridden on a per-cluster basis in cds_config, when
* :ref:`dns_resolution_config <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolution_config>`
* is specified.
* This field is deprecated in favor of
* :ref:`typed_dns_resolver_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.typed_dns_resolver_config>`.
*
* DNS resolution configuration which includes the underlying dns resolver addresses and options.
* This may be overridden on a per-cluster basis in cds_config, when
* :ref:`dns_resolution_config <envoy_v3_api_field_config.cluster.v3.Cluster.dns_resolution_config>`
* is specified.
* This field is deprecated in favor of
* :ref:`typed_dns_resolver_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.typed_dns_resolver_config>`.
*
* DNS resolver type configuration extension. This extension can be used to configure c-ares, apple,
* or any other DNS resolver types and the related parameters.
* For example, an object of
* :ref:`CaresDnsResolverConfig <envoy_v3_api_msg_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig>`
* can be packed into this ``typed_dns_resolver_config``. This configuration replaces the
* :ref:`dns_resolution_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.dns_resolution_config>`
* configuration.
* During the transition period when both ``dns_resolution_config`` and ``typed_dns_resolver_config`` exists,
* when ``typed_dns_resolver_config`` is in place, Envoy will use it and ignore ``dns_resolution_config``.
* When ``typed_dns_resolver_config`` is missing, the default behavior is in place.
* [#extension-category: envoy.network.dns_resolver]
*
*
* .envoy.config.core.v3.TypedExtensionConfig typed_dns_resolver_config = 31;
* @return Whether the typedDnsResolverConfig field is set.
*/
public boolean hasTypedDnsResolverConfig() {
return typedDnsResolverConfigBuilder_ != null || typedDnsResolverConfig_ != null;
}
/**
*
* DNS resolver type configuration extension. This extension can be used to configure c-ares, apple,
* or any other DNS resolver types and the related parameters.
* For example, an object of
* :ref:`CaresDnsResolverConfig <envoy_v3_api_msg_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig>`
* can be packed into this ``typed_dns_resolver_config``. This configuration replaces the
* :ref:`dns_resolution_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.dns_resolution_config>`
* configuration.
* During the transition period when both ``dns_resolution_config`` and ``typed_dns_resolver_config`` exists,
* when ``typed_dns_resolver_config`` is in place, Envoy will use it and ignore ``dns_resolution_config``.
* When ``typed_dns_resolver_config`` is missing, the default behavior is in place.
* [#extension-category: envoy.network.dns_resolver]
*
* DNS resolver type configuration extension. This extension can be used to configure c-ares, apple,
* or any other DNS resolver types and the related parameters.
* For example, an object of
* :ref:`CaresDnsResolverConfig <envoy_v3_api_msg_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig>`
* can be packed into this ``typed_dns_resolver_config``. This configuration replaces the
* :ref:`dns_resolution_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.dns_resolution_config>`
* configuration.
* During the transition period when both ``dns_resolution_config`` and ``typed_dns_resolver_config`` exists,
* when ``typed_dns_resolver_config`` is in place, Envoy will use it and ignore ``dns_resolution_config``.
* When ``typed_dns_resolver_config`` is missing, the default behavior is in place.
* [#extension-category: envoy.network.dns_resolver]
*
*
* .envoy.config.core.v3.TypedExtensionConfig typed_dns_resolver_config = 31;
*/
public Builder setTypedDnsResolverConfig(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) {
if (typedDnsResolverConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
typedDnsResolverConfig_ = value;
onChanged();
} else {
typedDnsResolverConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* DNS resolver type configuration extension. This extension can be used to configure c-ares, apple,
* or any other DNS resolver types and the related parameters.
* For example, an object of
* :ref:`CaresDnsResolverConfig <envoy_v3_api_msg_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig>`
* can be packed into this ``typed_dns_resolver_config``. This configuration replaces the
* :ref:`dns_resolution_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.dns_resolution_config>`
* configuration.
* During the transition period when both ``dns_resolution_config`` and ``typed_dns_resolver_config`` exists,
* when ``typed_dns_resolver_config`` is in place, Envoy will use it and ignore ``dns_resolution_config``.
* When ``typed_dns_resolver_config`` is missing, the default behavior is in place.
* [#extension-category: envoy.network.dns_resolver]
*
* DNS resolver type configuration extension. This extension can be used to configure c-ares, apple,
* or any other DNS resolver types and the related parameters.
* For example, an object of
* :ref:`CaresDnsResolverConfig <envoy_v3_api_msg_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig>`
* can be packed into this ``typed_dns_resolver_config``. This configuration replaces the
* :ref:`dns_resolution_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.dns_resolution_config>`
* configuration.
* During the transition period when both ``dns_resolution_config`` and ``typed_dns_resolver_config`` exists,
* when ``typed_dns_resolver_config`` is in place, Envoy will use it and ignore ``dns_resolution_config``.
* When ``typed_dns_resolver_config`` is missing, the default behavior is in place.
* [#extension-category: envoy.network.dns_resolver]
*
* DNS resolver type configuration extension. This extension can be used to configure c-ares, apple,
* or any other DNS resolver types and the related parameters.
* For example, an object of
* :ref:`CaresDnsResolverConfig <envoy_v3_api_msg_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig>`
* can be packed into this ``typed_dns_resolver_config``. This configuration replaces the
* :ref:`dns_resolution_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.dns_resolution_config>`
* configuration.
* During the transition period when both ``dns_resolution_config`` and ``typed_dns_resolver_config`` exists,
* when ``typed_dns_resolver_config`` is in place, Envoy will use it and ignore ``dns_resolution_config``.
* When ``typed_dns_resolver_config`` is missing, the default behavior is in place.
* [#extension-category: envoy.network.dns_resolver]
*
* DNS resolver type configuration extension. This extension can be used to configure c-ares, apple,
* or any other DNS resolver types and the related parameters.
* For example, an object of
* :ref:`CaresDnsResolverConfig <envoy_v3_api_msg_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig>`
* can be packed into this ``typed_dns_resolver_config``. This configuration replaces the
* :ref:`dns_resolution_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.dns_resolution_config>`
* configuration.
* During the transition period when both ``dns_resolution_config`` and ``typed_dns_resolver_config`` exists,
* when ``typed_dns_resolver_config`` is in place, Envoy will use it and ignore ``dns_resolution_config``.
* When ``typed_dns_resolver_config`` is missing, the default behavior is in place.
* [#extension-category: envoy.network.dns_resolver]
*
* DNS resolver type configuration extension. This extension can be used to configure c-ares, apple,
* or any other DNS resolver types and the related parameters.
* For example, an object of
* :ref:`CaresDnsResolverConfig <envoy_v3_api_msg_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig>`
* can be packed into this ``typed_dns_resolver_config``. This configuration replaces the
* :ref:`dns_resolution_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.dns_resolution_config>`
* configuration.
* During the transition period when both ``dns_resolution_config`` and ``typed_dns_resolver_config`` exists,
* when ``typed_dns_resolver_config`` is in place, Envoy will use it and ignore ``dns_resolution_config``.
* When ``typed_dns_resolver_config`` is missing, the default behavior is in place.
* [#extension-category: envoy.network.dns_resolver]
*
* DNS resolver type configuration extension. This extension can be used to configure c-ares, apple,
* or any other DNS resolver types and the related parameters.
* For example, an object of
* :ref:`CaresDnsResolverConfig <envoy_v3_api_msg_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig>`
* can be packed into this ``typed_dns_resolver_config``. This configuration replaces the
* :ref:`dns_resolution_config <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.dns_resolution_config>`
* configuration.
* During the transition period when both ``dns_resolution_config`` and ``typed_dns_resolver_config`` exists,
* when ``typed_dns_resolver_config`` is in place, Envoy will use it and ignore ``dns_resolution_config``.
* When ``typed_dns_resolver_config`` is missing, the default behavior is in place.
* [#extension-category: envoy.network.dns_resolver]
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
*
* repeated .envoy.config.core.v3.TypedExtensionConfig bootstrap_extensions = 21;
*/
public int getBootstrapExtensionsCount() {
if (bootstrapExtensionsBuilder_ == null) {
return bootstrapExtensions_.size();
} else {
return bootstrapExtensionsBuilder_.getCount();
}
}
/**
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
*
* repeated .envoy.config.core.v3.TypedExtensionConfig bootstrap_extensions = 21;
*/
public Builder setBootstrapExtensions(
int index, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) {
if (bootstrapExtensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBootstrapExtensionsIsMutable();
bootstrapExtensions_.set(index, value);
onChanged();
} else {
bootstrapExtensionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
*
* repeated .envoy.config.core.v3.TypedExtensionConfig bootstrap_extensions = 21;
*/
public Builder addBootstrapExtensions(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) {
if (bootstrapExtensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBootstrapExtensionsIsMutable();
bootstrapExtensions_.add(value);
onChanged();
} else {
bootstrapExtensionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
*
* repeated .envoy.config.core.v3.TypedExtensionConfig bootstrap_extensions = 21;
*/
public Builder addBootstrapExtensions(
int index, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) {
if (bootstrapExtensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBootstrapExtensionsIsMutable();
bootstrapExtensions_.add(index, value);
onChanged();
} else {
bootstrapExtensionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
*
* repeated .envoy.config.core.v3.TypedExtensionConfig bootstrap_extensions = 21;
*/
public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder getBootstrapExtensionsBuilder(
int index) {
return getBootstrapExtensionsFieldBuilder().getBuilder(index);
}
/**
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
*
* repeated .envoy.config.core.v3.TypedExtensionConfig bootstrap_extensions = 21;
*/
public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getBootstrapExtensionsOrBuilder(
int index) {
if (bootstrapExtensionsBuilder_ == null) {
return bootstrapExtensions_.get(index); } else {
return bootstrapExtensionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
* Specifies optional bootstrap extensions to be instantiated at startup time.
* Each item contains extension specific configuration.
* [#extension-category: envoy.bootstrap]
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
*
* repeated .envoy.config.core.v3.ConfigSource config_sources = 22;
*/
public int getConfigSourcesCount() {
if (configSourcesBuilder_ == null) {
return configSources_.size();
} else {
return configSourcesBuilder_.getCount();
}
}
/**
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
*
* repeated .envoy.config.core.v3.ConfigSource config_sources = 22;
*/
public Builder setConfigSources(
int index, io.envoyproxy.envoy.config.core.v3.ConfigSource value) {
if (configSourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigSourcesIsMutable();
configSources_.set(index, value);
onChanged();
} else {
configSourcesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
*
* repeated .envoy.config.core.v3.ConfigSource config_sources = 22;
*/
public Builder addConfigSources(io.envoyproxy.envoy.config.core.v3.ConfigSource value) {
if (configSourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigSourcesIsMutable();
configSources_.add(value);
onChanged();
} else {
configSourcesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
*
* repeated .envoy.config.core.v3.ConfigSource config_sources = 22;
*/
public Builder addConfigSources(
int index, io.envoyproxy.envoy.config.core.v3.ConfigSource value) {
if (configSourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigSourcesIsMutable();
configSources_.add(index, value);
onChanged();
} else {
configSourcesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
*
* repeated .envoy.config.core.v3.ConfigSource config_sources = 22;
*/
public io.envoyproxy.envoy.config.core.v3.ConfigSource.Builder getConfigSourcesBuilder(
int index) {
return getConfigSourcesFieldBuilder().getBuilder(index);
}
/**
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
*
* repeated .envoy.config.core.v3.ConfigSource config_sources = 22;
*/
public io.envoyproxy.envoy.config.core.v3.ConfigSourceOrBuilder getConfigSourcesOrBuilder(
int index) {
if (configSourcesBuilder_ == null) {
return configSources_.get(index); } else {
return configSourcesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
* Configuration sources that will participate in
* xdstp:// URL authority resolution. The algorithm is as
* follows:
* 1. The authority field is taken from the xdstp:// URL, call
* this ``resource_authority``.
* 2. ``resource_authority`` is compared against the authorities in any peer
* ``ConfigSource``. The peer ``ConfigSource`` is the configuration source
* message which would have been used unconditionally for resolution
* with opaque resource names. If there is a match with an authority, the
* peer ``ConfigSource`` message is used.
* 3. ``resource_authority`` is compared sequentially with the authorities in
* each configuration source in ``config_sources``. The first ``ConfigSource``
* to match wins.
* 4. As a fallback, if no configuration source matches, then
* ``default_config_source`` is used.
* 5. If ``default_config_source`` is not specified, resolution fails.
* [#not-implemented-hide:]
*
* Optional overriding of default socket interface. The value must be the name of one of the
* socket interface factories initialized through a bootstrap extension
*
* Optional overriding of default socket interface. The value must be the name of one of the
* socket interface factories initialized through a bootstrap extension
*
*
* string default_socket_interface = 24;
* @return The bytes for defaultSocketInterface.
*/
public com.google.protobuf.ByteString
getDefaultSocketInterfaceBytes() {
java.lang.Object ref = defaultSocketInterface_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultSocketInterface_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional overriding of default socket interface. The value must be the name of one of the
* socket interface factories initialized through a bootstrap extension
*
*
* string default_socket_interface = 24;
* @param value The defaultSocketInterface to set.
* @return This builder for chaining.
*/
public Builder setDefaultSocketInterface(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
defaultSocketInterface_ = value;
onChanged();
return this;
}
/**
*
* Optional overriding of default socket interface. The value must be the name of one of the
* socket interface factories initialized through a bootstrap extension
*
*
* string default_socket_interface = 24;
* @return This builder for chaining.
*/
public Builder clearDefaultSocketInterface() {
defaultSocketInterface_ = getDefaultInstance().getDefaultSocketInterface();
onChanged();
return this;
}
/**
*
* Optional overriding of default socket interface. The value must be the name of one of the
* socket interface factories initialized through a bootstrap extension
*
*
* string default_socket_interface = 24;
* @param value The bytes for defaultSocketInterface to set.
* @return This builder for chaining.
*/
public Builder setDefaultSocketInterfaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
defaultSocketInterface_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig> certificateProviderInstances_;
private com.google.protobuf.MapField
internalGetCertificateProviderInstances() {
if (certificateProviderInstances_ == null) {
return com.google.protobuf.MapField.emptyMapField(
CertificateProviderInstancesDefaultEntryHolder.defaultEntry);
}
return certificateProviderInstances_;
}
private com.google.protobuf.MapField
internalGetMutableCertificateProviderInstances() {
onChanged();;
if (certificateProviderInstances_ == null) {
certificateProviderInstances_ = com.google.protobuf.MapField.newMapField(
CertificateProviderInstancesDefaultEntryHolder.defaultEntry);
}
if (!certificateProviderInstances_.isMutable()) {
certificateProviderInstances_ = certificateProviderInstances_.copy();
}
return certificateProviderInstances_;
}
public int getCertificateProviderInstancesCount() {
return internalGetCertificateProviderInstances().getMap().size();
}
/**
*
* Global map of CertificateProvider instances. These instances are referred to by name in the
* :ref:`CommonTlsContext.CertificateProviderInstance.instance_name
* <envoy_v3_api_field_extensions.transport_sockets.tls.v3.CommonTlsContext.CertificateProviderInstance.instance_name>`
* field.
* [#not-implemented-hide:]
*
*
* map<string, .envoy.config.core.v3.TypedExtensionConfig> certificate_provider_instances = 25;
*/
@java.lang.Override
public boolean containsCertificateProviderInstances(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetCertificateProviderInstances().getMap().containsKey(key);
}
/**
* Use {@link #getCertificateProviderInstancesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getCertificateProviderInstances() {
return getCertificateProviderInstancesMap();
}
/**
*
* Global map of CertificateProvider instances. These instances are referred to by name in the
* :ref:`CommonTlsContext.CertificateProviderInstance.instance_name
* <envoy_v3_api_field_extensions.transport_sockets.tls.v3.CommonTlsContext.CertificateProviderInstance.instance_name>`
* field.
* [#not-implemented-hide:]
*
* Global map of CertificateProvider instances. These instances are referred to by name in the
* :ref:`CommonTlsContext.CertificateProviderInstance.instance_name
* <envoy_v3_api_field_extensions.transport_sockets.tls.v3.CommonTlsContext.CertificateProviderInstance.instance_name>`
* field.
* [#not-implemented-hide:]
*
* Global map of CertificateProvider instances. These instances are referred to by name in the
* :ref:`CommonTlsContext.CertificateProviderInstance.instance_name
* <envoy_v3_api_field_extensions.transport_sockets.tls.v3.CommonTlsContext.CertificateProviderInstance.instance_name>`
* field.
* [#not-implemented-hide:]
*
*
* map<string, .envoy.config.core.v3.TypedExtensionConfig> certificate_provider_instances = 25;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getCertificateProviderInstancesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetCertificateProviderInstances().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearCertificateProviderInstances() {
internalGetMutableCertificateProviderInstances().getMutableMap()
.clear();
return this;
}
/**
*
* Global map of CertificateProvider instances. These instances are referred to by name in the
* :ref:`CommonTlsContext.CertificateProviderInstance.instance_name
* <envoy_v3_api_field_extensions.transport_sockets.tls.v3.CommonTlsContext.CertificateProviderInstance.instance_name>`
* field.
* [#not-implemented-hide:]
*
*
* map<string, .envoy.config.core.v3.TypedExtensionConfig> certificate_provider_instances = 25;
*/
public Builder removeCertificateProviderInstances(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableCertificateProviderInstances().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableCertificateProviderInstances() {
return internalGetMutableCertificateProviderInstances().getMutableMap();
}
/**
*
* Global map of CertificateProvider instances. These instances are referred to by name in the
* :ref:`CommonTlsContext.CertificateProviderInstance.instance_name
* <envoy_v3_api_field_extensions.transport_sockets.tls.v3.CommonTlsContext.CertificateProviderInstance.instance_name>`
* field.
* [#not-implemented-hide:]
*
*
* map<string, .envoy.config.core.v3.TypedExtensionConfig> certificate_provider_instances = 25;
*/
public Builder putCertificateProviderInstances(
java.lang.String key,
io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableCertificateProviderInstances().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Global map of CertificateProvider instances. These instances are referred to by name in the
* :ref:`CommonTlsContext.CertificateProviderInstance.instance_name
* <envoy_v3_api_field_extensions.transport_sockets.tls.v3.CommonTlsContext.CertificateProviderInstance.instance_name>`
* field.
* [#not-implemented-hide:]
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
*
* repeated .envoy.config.bootstrap.v3.CustomInlineHeader inline_headers = 32;
*/
public int getInlineHeadersCount() {
if (inlineHeadersBuilder_ == null) {
return inlineHeaders_.size();
} else {
return inlineHeadersBuilder_.getCount();
}
}
/**
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
*
* repeated .envoy.config.bootstrap.v3.CustomInlineHeader inline_headers = 32;
*/
public Builder setInlineHeaders(
int index, io.envoyproxy.envoy.config.bootstrap.v3.CustomInlineHeader value) {
if (inlineHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInlineHeadersIsMutable();
inlineHeaders_.set(index, value);
onChanged();
} else {
inlineHeadersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
*
* repeated .envoy.config.bootstrap.v3.CustomInlineHeader inline_headers = 32;
*/
public Builder addInlineHeaders(io.envoyproxy.envoy.config.bootstrap.v3.CustomInlineHeader value) {
if (inlineHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInlineHeadersIsMutable();
inlineHeaders_.add(value);
onChanged();
} else {
inlineHeadersBuilder_.addMessage(value);
}
return this;
}
/**
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
*
* repeated .envoy.config.bootstrap.v3.CustomInlineHeader inline_headers = 32;
*/
public Builder addInlineHeaders(
int index, io.envoyproxy.envoy.config.bootstrap.v3.CustomInlineHeader value) {
if (inlineHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInlineHeadersIsMutable();
inlineHeaders_.add(index, value);
onChanged();
} else {
inlineHeadersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
*
* repeated .envoy.config.bootstrap.v3.CustomInlineHeader inline_headers = 32;
*/
public io.envoyproxy.envoy.config.bootstrap.v3.CustomInlineHeader.Builder getInlineHeadersBuilder(
int index) {
return getInlineHeadersFieldBuilder().getBuilder(index);
}
/**
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
*
* repeated .envoy.config.bootstrap.v3.CustomInlineHeader inline_headers = 32;
*/
public io.envoyproxy.envoy.config.bootstrap.v3.CustomInlineHeaderOrBuilder getInlineHeadersOrBuilder(
int index) {
if (inlineHeadersBuilder_ == null) {
return inlineHeaders_.get(index); } else {
return inlineHeadersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
* Specifies a set of headers that need to be registered as inline header. This configuration
* allows users to customize the inline headers on-demand at Envoy startup without modifying
* Envoy's source code.
* Note that the 'set-cookie' header cannot be registered as inline header.
*
* Optional path to a file with performance tracing data created by "Perfetto" SDK in binary
* ProtoBuf format. The default value is "envoy.pftrace".
*
*
* string perf_tracing_file_path = 33;
* @return The bytes for perfTracingFilePath.
*/
public com.google.protobuf.ByteString
getPerfTracingFilePathBytes() {
java.lang.Object ref = perfTracingFilePath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
perfTracingFilePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional path to a file with performance tracing data created by "Perfetto" SDK in binary
* ProtoBuf format. The default value is "envoy.pftrace".
*
*
* string perf_tracing_file_path = 33;
* @param value The perfTracingFilePath to set.
* @return This builder for chaining.
*/
public Builder setPerfTracingFilePath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
perfTracingFilePath_ = value;
onChanged();
return this;
}
/**
*
* Optional path to a file with performance tracing data created by "Perfetto" SDK in binary
* ProtoBuf format. The default value is "envoy.pftrace".
*
*
* string perf_tracing_file_path = 33;
* @return This builder for chaining.
*/
public Builder clearPerfTracingFilePath() {
perfTracingFilePath_ = getDefaultInstance().getPerfTracingFilePath();
onChanged();
return this;
}
/**
*
* Optional path to a file with performance tracing data created by "Perfetto" SDK in binary
* ProtoBuf format. The default value is "envoy.pftrace".
*
*
* string perf_tracing_file_path = 33;
* @param value The bytes for perfTracingFilePath to set.
* @return This builder for chaining.
*/
public Builder setPerfTracingFilePathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
perfTracingFilePath_ = value;
onChanged();
return this;
}
private io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig defaultRegexEngine_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> defaultRegexEngineBuilder_;
/**
*
* Optional overriding of default regex engine.
* If the value is not specified, Google RE2 will be used by default.
* [#extension-category: envoy.regex_engines]
*
*
* .envoy.config.core.v3.TypedExtensionConfig default_regex_engine = 34;
* @return Whether the defaultRegexEngine field is set.
*/
public boolean hasDefaultRegexEngine() {
return defaultRegexEngineBuilder_ != null || defaultRegexEngine_ != null;
}
/**
*
* Optional overriding of default regex engine.
* If the value is not specified, Google RE2 will be used by default.
* [#extension-category: envoy.regex_engines]
*
* Optional overriding of default regex engine.
* If the value is not specified, Google RE2 will be used by default.
* [#extension-category: envoy.regex_engines]
*
*
* .envoy.config.core.v3.TypedExtensionConfig default_regex_engine = 34;
*/
public Builder setDefaultRegexEngine(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) {
if (defaultRegexEngineBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultRegexEngine_ = value;
onChanged();
} else {
defaultRegexEngineBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional overriding of default regex engine.
* If the value is not specified, Google RE2 will be used by default.
* [#extension-category: envoy.regex_engines]
*
* Optional overriding of default regex engine.
* If the value is not specified, Google RE2 will be used by default.
* [#extension-category: envoy.regex_engines]
*
* Optional overriding of default regex engine.
* If the value is not specified, Google RE2 will be used by default.
* [#extension-category: envoy.regex_engines]
*
* Optional overriding of default regex engine.
* If the value is not specified, Google RE2 will be used by default.
* [#extension-category: envoy.regex_engines]
*
* Optional overriding of default regex engine.
* If the value is not specified, Google RE2 will be used by default.
* [#extension-category: envoy.regex_engines]
*
* Optional overriding of default regex engine.
* If the value is not specified, Google RE2 will be used by default.
* [#extension-category: envoy.regex_engines]
*
* Optional XdsResourcesDelegate configuration, which allows plugging custom logic into both
* fetch and load events during xDS processing.
* If a value is not specified, no XdsResourcesDelegate will be used.
* TODO(abeyad): Add public-facing documentation.
* [#not-implemented-hide:]
*
*
* .envoy.config.core.v3.TypedExtensionConfig xds_delegate_extension = 35;
* @return Whether the xdsDelegateExtension field is set.
*/
public boolean hasXdsDelegateExtension() {
return xdsDelegateExtensionBuilder_ != null || xdsDelegateExtension_ != null;
}
/**
*
* Optional XdsResourcesDelegate configuration, which allows plugging custom logic into both
* fetch and load events during xDS processing.
* If a value is not specified, no XdsResourcesDelegate will be used.
* TODO(abeyad): Add public-facing documentation.
* [#not-implemented-hide:]
*
* Optional XdsResourcesDelegate configuration, which allows plugging custom logic into both
* fetch and load events during xDS processing.
* If a value is not specified, no XdsResourcesDelegate will be used.
* TODO(abeyad): Add public-facing documentation.
* [#not-implemented-hide:]
*
*
* .envoy.config.core.v3.TypedExtensionConfig xds_delegate_extension = 35;
*/
public Builder setXdsDelegateExtension(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) {
if (xdsDelegateExtensionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
xdsDelegateExtension_ = value;
onChanged();
} else {
xdsDelegateExtensionBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional XdsResourcesDelegate configuration, which allows plugging custom logic into both
* fetch and load events during xDS processing.
* If a value is not specified, no XdsResourcesDelegate will be used.
* TODO(abeyad): Add public-facing documentation.
* [#not-implemented-hide:]
*
* Optional XdsResourcesDelegate configuration, which allows plugging custom logic into both
* fetch and load events during xDS processing.
* If a value is not specified, no XdsResourcesDelegate will be used.
* TODO(abeyad): Add public-facing documentation.
* [#not-implemented-hide:]
*
* Optional XdsResourcesDelegate configuration, which allows plugging custom logic into both
* fetch and load events during xDS processing.
* If a value is not specified, no XdsResourcesDelegate will be used.
* TODO(abeyad): Add public-facing documentation.
* [#not-implemented-hide:]
*
* Optional XdsResourcesDelegate configuration, which allows plugging custom logic into both
* fetch and load events during xDS processing.
* If a value is not specified, no XdsResourcesDelegate will be used.
* TODO(abeyad): Add public-facing documentation.
* [#not-implemented-hide:]
*
* Optional XdsResourcesDelegate configuration, which allows plugging custom logic into both
* fetch and load events during xDS processing.
* If a value is not specified, no XdsResourcesDelegate will be used.
* TODO(abeyad): Add public-facing documentation.
* [#not-implemented-hide:]
*
* Optional XdsResourcesDelegate configuration, which allows plugging custom logic into both
* fetch and load events during xDS processing.
* If a value is not specified, no XdsResourcesDelegate will be used.
* TODO(abeyad): Add public-facing documentation.
* [#not-implemented-hide:]
*
* Optional XdsConfigTracker configuration, which allows tracking xDS responses in external components,
* e.g., external tracer or monitor. It provides the process point when receive, ingest, or fail to
* process xDS resources and messages. If a value is not specified, no XdsConfigTracker will be used.
* .. note::
* There are no in-repo extensions currently, and the :repo:`XdsConfigTracker <envoy/config/xds_config_tracker.h>`
* interface should be implemented before using.
* See :repo:`xds_config_tracker_integration_test <test/integration/xds_config_tracker_integration_test.cc>`
* for an example usage of the interface.
*
*
* .envoy.config.core.v3.TypedExtensionConfig xds_config_tracker_extension = 36;
* @return Whether the xdsConfigTrackerExtension field is set.
*/
public boolean hasXdsConfigTrackerExtension() {
return xdsConfigTrackerExtensionBuilder_ != null || xdsConfigTrackerExtension_ != null;
}
/**
*
* Optional XdsConfigTracker configuration, which allows tracking xDS responses in external components,
* e.g., external tracer or monitor. It provides the process point when receive, ingest, or fail to
* process xDS resources and messages. If a value is not specified, no XdsConfigTracker will be used.
* .. note::
* There are no in-repo extensions currently, and the :repo:`XdsConfigTracker <envoy/config/xds_config_tracker.h>`
* interface should be implemented before using.
* See :repo:`xds_config_tracker_integration_test <test/integration/xds_config_tracker_integration_test.cc>`
* for an example usage of the interface.
*
* Optional XdsConfigTracker configuration, which allows tracking xDS responses in external components,
* e.g., external tracer or monitor. It provides the process point when receive, ingest, or fail to
* process xDS resources and messages. If a value is not specified, no XdsConfigTracker will be used.
* .. note::
* There are no in-repo extensions currently, and the :repo:`XdsConfigTracker <envoy/config/xds_config_tracker.h>`
* interface should be implemented before using.
* See :repo:`xds_config_tracker_integration_test <test/integration/xds_config_tracker_integration_test.cc>`
* for an example usage of the interface.
*
*
* .envoy.config.core.v3.TypedExtensionConfig xds_config_tracker_extension = 36;
*/
public Builder setXdsConfigTrackerExtension(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) {
if (xdsConfigTrackerExtensionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
xdsConfigTrackerExtension_ = value;
onChanged();
} else {
xdsConfigTrackerExtensionBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional XdsConfigTracker configuration, which allows tracking xDS responses in external components,
* e.g., external tracer or monitor. It provides the process point when receive, ingest, or fail to
* process xDS resources and messages. If a value is not specified, no XdsConfigTracker will be used.
* .. note::
* There are no in-repo extensions currently, and the :repo:`XdsConfigTracker <envoy/config/xds_config_tracker.h>`
* interface should be implemented before using.
* See :repo:`xds_config_tracker_integration_test <test/integration/xds_config_tracker_integration_test.cc>`
* for an example usage of the interface.
*
* Optional XdsConfigTracker configuration, which allows tracking xDS responses in external components,
* e.g., external tracer or monitor. It provides the process point when receive, ingest, or fail to
* process xDS resources and messages. If a value is not specified, no XdsConfigTracker will be used.
* .. note::
* There are no in-repo extensions currently, and the :repo:`XdsConfigTracker <envoy/config/xds_config_tracker.h>`
* interface should be implemented before using.
* See :repo:`xds_config_tracker_integration_test <test/integration/xds_config_tracker_integration_test.cc>`
* for an example usage of the interface.
*
* Optional XdsConfigTracker configuration, which allows tracking xDS responses in external components,
* e.g., external tracer or monitor. It provides the process point when receive, ingest, or fail to
* process xDS resources and messages. If a value is not specified, no XdsConfigTracker will be used.
* .. note::
* There are no in-repo extensions currently, and the :repo:`XdsConfigTracker <envoy/config/xds_config_tracker.h>`
* interface should be implemented before using.
* See :repo:`xds_config_tracker_integration_test <test/integration/xds_config_tracker_integration_test.cc>`
* for an example usage of the interface.
*
* Optional XdsConfigTracker configuration, which allows tracking xDS responses in external components,
* e.g., external tracer or monitor. It provides the process point when receive, ingest, or fail to
* process xDS resources and messages. If a value is not specified, no XdsConfigTracker will be used.
* .. note::
* There are no in-repo extensions currently, and the :repo:`XdsConfigTracker <envoy/config/xds_config_tracker.h>`
* interface should be implemented before using.
* See :repo:`xds_config_tracker_integration_test <test/integration/xds_config_tracker_integration_test.cc>`
* for an example usage of the interface.
*
* Optional XdsConfigTracker configuration, which allows tracking xDS responses in external components,
* e.g., external tracer or monitor. It provides the process point when receive, ingest, or fail to
* process xDS resources and messages. If a value is not specified, no XdsConfigTracker will be used.
* .. note::
* There are no in-repo extensions currently, and the :repo:`XdsConfigTracker <envoy/config/xds_config_tracker.h>`
* interface should be implemented before using.
* See :repo:`xds_config_tracker_integration_test <test/integration/xds_config_tracker_integration_test.cc>`
* for an example usage of the interface.
*
* Optional XdsConfigTracker configuration, which allows tracking xDS responses in external components,
* e.g., external tracer or monitor. It provides the process point when receive, ingest, or fail to
* process xDS resources and messages. If a value is not specified, no XdsConfigTracker will be used.
* .. note::
* There are no in-repo extensions currently, and the :repo:`XdsConfigTracker <envoy/config/xds_config_tracker.h>`
* interface should be implemented before using.
* See :repo:`xds_config_tracker_integration_test <test/integration/xds_config_tracker_integration_test.cc>`
* for an example usage of the interface.
*
* [#not-implemented-hide:]
* This controls the type of listener manager configured for Envoy. Currently
* Envoy only supports ListenerManager for this field and Envoy Mobile
* supports ApiListenerManager.
*
*
* .envoy.config.core.v3.TypedExtensionConfig listener_manager = 37;
* @return Whether the listenerManager field is set.
*/
public boolean hasListenerManager() {
return listenerManagerBuilder_ != null || listenerManager_ != null;
}
/**
*
* [#not-implemented-hide:]
* This controls the type of listener manager configured for Envoy. Currently
* Envoy only supports ListenerManager for this field and Envoy Mobile
* supports ApiListenerManager.
*
* [#not-implemented-hide:]
* This controls the type of listener manager configured for Envoy. Currently
* Envoy only supports ListenerManager for this field and Envoy Mobile
* supports ApiListenerManager.
*
*
* .envoy.config.core.v3.TypedExtensionConfig listener_manager = 37;
*/
public Builder setListenerManager(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) {
if (listenerManagerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
listenerManager_ = value;
onChanged();
} else {
listenerManagerBuilder_.setMessage(value);
}
return this;
}
/**
*
* [#not-implemented-hide:]
* This controls the type of listener manager configured for Envoy. Currently
* Envoy only supports ListenerManager for this field and Envoy Mobile
* supports ApiListenerManager.
*
* [#not-implemented-hide:]
* This controls the type of listener manager configured for Envoy. Currently
* Envoy only supports ListenerManager for this field and Envoy Mobile
* supports ApiListenerManager.
*
* [#not-implemented-hide:]
* This controls the type of listener manager configured for Envoy. Currently
* Envoy only supports ListenerManager for this field and Envoy Mobile
* supports ApiListenerManager.
*
* [#not-implemented-hide:]
* This controls the type of listener manager configured for Envoy. Currently
* Envoy only supports ListenerManager for this field and Envoy Mobile
* supports ApiListenerManager.
*
* [#not-implemented-hide:]
* This controls the type of listener manager configured for Envoy. Currently
* Envoy only supports ListenerManager for this field and Envoy Mobile
* supports ApiListenerManager.
*
* [#not-implemented-hide:]
* This controls the type of listener manager configured for Envoy. Currently
* Envoy only supports ListenerManager for this field and Envoy Mobile
* supports ApiListenerManager.
*