public static final class ConfigSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ConfigSource.Builder> implements ConfigSourceOrBuilder
Configuration for :ref:`listeners <config_listeners>`, :ref:`clusters <config_cluster_manager>`, :ref:`routes <envoy_api_msg_RouteConfiguration>`, :ref:`endpoints <arch_overview_service_discovery>` etc. may either be sourced from the filesystem or from an xDS API source. Filesystem configs are watched with inotify for updates.Protobuf type
envoy.api.v2.core.ConfigSource| Modifier and Type | Method and Description |
|---|---|
ConfigSource.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ConfigSource |
build() |
ConfigSource |
buildPartial() |
ConfigSource.Builder |
clear() |
ConfigSource.Builder |
clearAds()
When set, ADS will be used to fetch resources.
|
ConfigSource.Builder |
clearApiConfigSource()
API configuration source.
|
ConfigSource.Builder |
clearConfigSourceSpecifier() |
ConfigSource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ConfigSource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ConfigSource.Builder |
clearPath()
Path on the filesystem to source and watch for configuration updates.
.. note::
The path to the source must exist at config load time.
.. note::
Envoy will only watch the file path for *moves.* This is because in general only moves
are atomic.
|
ConfigSource.Builder |
clone() |
AggregatedConfigSource |
getAds()
When set, ADS will be used to fetch resources.
|
AggregatedConfigSource.Builder |
getAdsBuilder()
When set, ADS will be used to fetch resources.
|
AggregatedConfigSourceOrBuilder |
getAdsOrBuilder()
When set, ADS will be used to fetch resources.
|
ApiConfigSource |
getApiConfigSource()
API configuration source.
|
ApiConfigSource.Builder |
getApiConfigSourceBuilder()
API configuration source.
|
ApiConfigSourceOrBuilder |
getApiConfigSourceOrBuilder()
API configuration source.
|
ConfigSource.ConfigSourceSpecifierCase |
getConfigSourceSpecifierCase() |
ConfigSource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getPath()
Path on the filesystem to source and watch for configuration updates.
.. note::
The path to the source must exist at config load time.
.. note::
Envoy will only watch the file path for *moves.* This is because in general only moves
are atomic.
|
com.google.protobuf.ByteString |
getPathBytes()
Path on the filesystem to source and watch for configuration updates.
.. note::
The path to the source must exist at config load time.
.. note::
Envoy will only watch the file path for *moves.* This is because in general only moves
are atomic.
|
boolean |
hasAds()
When set, ADS will be used to fetch resources.
|
boolean |
hasApiConfigSource()
API configuration source.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ConfigSource.Builder |
mergeAds(AggregatedConfigSource value)
When set, ADS will be used to fetch resources.
|
ConfigSource.Builder |
mergeApiConfigSource(ApiConfigSource value)
API configuration source.
|
ConfigSource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ConfigSource.Builder |
mergeFrom(ConfigSource other) |
ConfigSource.Builder |
mergeFrom(com.google.protobuf.Message other) |
ConfigSource.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ConfigSource.Builder |
setAds(AggregatedConfigSource.Builder builderForValue)
When set, ADS will be used to fetch resources.
|
ConfigSource.Builder |
setAds(AggregatedConfigSource value)
When set, ADS will be used to fetch resources.
|
ConfigSource.Builder |
setApiConfigSource(ApiConfigSource.Builder builderForValue)
API configuration source.
|
ConfigSource.Builder |
setApiConfigSource(ApiConfigSource value)
API configuration source.
|
ConfigSource.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ConfigSource.Builder |
setPath(String value)
Path on the filesystem to source and watch for configuration updates.
.. note::
The path to the source must exist at config load time.
.. note::
Envoy will only watch the file path for *moves.* This is because in general only moves
are atomic.
|
ConfigSource.Builder |
setPathBytes(com.google.protobuf.ByteString value)
Path on the filesystem to source and watch for configuration updates.
.. note::
The path to the source must exist at config load time.
.. note::
Envoy will only watch the file path for *moves.* This is because in general only moves
are atomic.
|
ConfigSource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ConfigSource.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigSource.Builder>public ConfigSource.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigSource.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigSource.Builder>public ConfigSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ConfigSource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ConfigSource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ConfigSource.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigSource.Builder>public ConfigSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigSource.Builder>public ConfigSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigSource.Builder>public ConfigSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigSource.Builder>public ConfigSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigSource.Builder>public ConfigSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigSource.Builder>public ConfigSource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConfigSource.Builder>public ConfigSource.Builder mergeFrom(ConfigSource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigSource.Builder>public ConfigSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConfigSource.Builder>IOExceptionpublic ConfigSource.ConfigSourceSpecifierCase getConfigSourceSpecifierCase()
getConfigSourceSpecifierCase in interface ConfigSourceOrBuilderpublic ConfigSource.Builder clearConfigSourceSpecifier()
public String getPath()
Path on the filesystem to source and watch for configuration updates. .. note:: The path to the source must exist at config load time. .. note:: Envoy will only watch the file path for *moves.* This is because in general only moves are atomic. The same method of swapping files as is demonstrated in the :ref:`runtime documentation <config_runtime_symbolic_link_swap>` can be used here also.
string path = 1;getPath in interface ConfigSourceOrBuilderpublic com.google.protobuf.ByteString getPathBytes()
Path on the filesystem to source and watch for configuration updates. .. note:: The path to the source must exist at config load time. .. note:: Envoy will only watch the file path for *moves.* This is because in general only moves are atomic. The same method of swapping files as is demonstrated in the :ref:`runtime documentation <config_runtime_symbolic_link_swap>` can be used here also.
string path = 1;getPathBytes in interface ConfigSourceOrBuilderpublic ConfigSource.Builder setPath(String value)
Path on the filesystem to source and watch for configuration updates. .. note:: The path to the source must exist at config load time. .. note:: Envoy will only watch the file path for *moves.* This is because in general only moves are atomic. The same method of swapping files as is demonstrated in the :ref:`runtime documentation <config_runtime_symbolic_link_swap>` can be used here also.
string path = 1;public ConfigSource.Builder clearPath()
Path on the filesystem to source and watch for configuration updates. .. note:: The path to the source must exist at config load time. .. note:: Envoy will only watch the file path for *moves.* This is because in general only moves are atomic. The same method of swapping files as is demonstrated in the :ref:`runtime documentation <config_runtime_symbolic_link_swap>` can be used here also.
string path = 1;public ConfigSource.Builder setPathBytes(com.google.protobuf.ByteString value)
Path on the filesystem to source and watch for configuration updates. .. note:: The path to the source must exist at config load time. .. note:: Envoy will only watch the file path for *moves.* This is because in general only moves are atomic. The same method of swapping files as is demonstrated in the :ref:`runtime documentation <config_runtime_symbolic_link_swap>` can be used here also.
string path = 1;public boolean hasApiConfigSource()
API configuration source.
.envoy.api.v2.core.ApiConfigSource api_config_source = 2;hasApiConfigSource in interface ConfigSourceOrBuilderpublic ApiConfigSource getApiConfigSource()
API configuration source.
.envoy.api.v2.core.ApiConfigSource api_config_source = 2;getApiConfigSource in interface ConfigSourceOrBuilderpublic ConfigSource.Builder setApiConfigSource(ApiConfigSource value)
API configuration source.
.envoy.api.v2.core.ApiConfigSource api_config_source = 2;public ConfigSource.Builder setApiConfigSource(ApiConfigSource.Builder builderForValue)
API configuration source.
.envoy.api.v2.core.ApiConfigSource api_config_source = 2;public ConfigSource.Builder mergeApiConfigSource(ApiConfigSource value)
API configuration source.
.envoy.api.v2.core.ApiConfigSource api_config_source = 2;public ConfigSource.Builder clearApiConfigSource()
API configuration source.
.envoy.api.v2.core.ApiConfigSource api_config_source = 2;public ApiConfigSource.Builder getApiConfigSourceBuilder()
API configuration source.
.envoy.api.v2.core.ApiConfigSource api_config_source = 2;public ApiConfigSourceOrBuilder getApiConfigSourceOrBuilder()
API configuration source.
.envoy.api.v2.core.ApiConfigSource api_config_source = 2;getApiConfigSourceOrBuilder in interface ConfigSourceOrBuilderpublic boolean hasAds()
When set, ADS will be used to fetch resources. The ADS API configuration source in the bootstrap configuration is used.
.envoy.api.v2.core.AggregatedConfigSource ads = 3;hasAds in interface ConfigSourceOrBuilderpublic AggregatedConfigSource getAds()
When set, ADS will be used to fetch resources. The ADS API configuration source in the bootstrap configuration is used.
.envoy.api.v2.core.AggregatedConfigSource ads = 3;getAds in interface ConfigSourceOrBuilderpublic ConfigSource.Builder setAds(AggregatedConfigSource value)
When set, ADS will be used to fetch resources. The ADS API configuration source in the bootstrap configuration is used.
.envoy.api.v2.core.AggregatedConfigSource ads = 3;public ConfigSource.Builder setAds(AggregatedConfigSource.Builder builderForValue)
When set, ADS will be used to fetch resources. The ADS API configuration source in the bootstrap configuration is used.
.envoy.api.v2.core.AggregatedConfigSource ads = 3;public ConfigSource.Builder mergeAds(AggregatedConfigSource value)
When set, ADS will be used to fetch resources. The ADS API configuration source in the bootstrap configuration is used.
.envoy.api.v2.core.AggregatedConfigSource ads = 3;public ConfigSource.Builder clearAds()
When set, ADS will be used to fetch resources. The ADS API configuration source in the bootstrap configuration is used.
.envoy.api.v2.core.AggregatedConfigSource ads = 3;public AggregatedConfigSource.Builder getAdsBuilder()
When set, ADS will be used to fetch resources. The ADS API configuration source in the bootstrap configuration is used.
.envoy.api.v2.core.AggregatedConfigSource ads = 3;public AggregatedConfigSourceOrBuilder getAdsOrBuilder()
When set, ADS will be used to fetch resources. The ADS API configuration source in the bootstrap configuration is used.
.envoy.api.v2.core.AggregatedConfigSource ads = 3;getAdsOrBuilder in interface ConfigSourceOrBuilderpublic final ConfigSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigSource.Builder>public final ConfigSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigSource.Builder>Copyright © 2018–2019 The Envoy Project. All rights reserved.