public final class ConfigSource extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
ConfigSource.Builder
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.
|
static class |
ConfigSource.ConfigSourceSpecifierCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ADS_FIELD_NUMBER |
static int |
API_CONFIG_SOURCE_FIELD_NUMBER |
static int |
PATH_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AggregatedConfigSource |
getAds()
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.
|
ApiConfigSourceOrBuilder |
getApiConfigSourceOrBuilder()
API configuration source.
|
ConfigSource.ConfigSourceSpecifierCase |
getConfigSourceSpecifierCase() |
static ConfigSource |
getDefaultInstance() |
ConfigSource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<ConfigSource> |
getParserForType() |
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.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAds()
When set, ADS will be used to fetch resources.
|
boolean |
hasApiConfigSource()
API configuration source.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ConfigSource.Builder |
newBuilder() |
static ConfigSource.Builder |
newBuilder(ConfigSource prototype) |
ConfigSource.Builder |
newBuilderForType() |
protected ConfigSource.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static ConfigSource |
parseDelimitedFrom(InputStream input) |
static ConfigSource |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ConfigSource |
parseFrom(byte[] data) |
static ConfigSource |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ConfigSource |
parseFrom(ByteBuffer data) |
static ConfigSource |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ConfigSource |
parseFrom(com.google.protobuf.ByteString data) |
static ConfigSource |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ConfigSource |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ConfigSource |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ConfigSource |
parseFrom(InputStream input) |
static ConfigSource |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ConfigSource> |
parser() |
ConfigSource.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PATH_FIELD_NUMBER
public static final int API_CONFIG_SOURCE_FIELD_NUMBER
public static final int ADS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public ConfigSource.ConfigSourceSpecifierCase getConfigSourceSpecifierCase()
getConfigSourceSpecifierCase in interface ConfigSourceOrBuilderpublic 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 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 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 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 boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ConfigSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ConfigSource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ConfigSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ConfigSource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ConfigSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ConfigSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ConfigSource parseFrom(InputStream input) throws IOException
IOExceptionpublic static ConfigSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ConfigSource parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ConfigSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ConfigSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ConfigSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ConfigSource.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ConfigSource.Builder newBuilder()
public static ConfigSource.Builder newBuilder(ConfigSource prototype)
public ConfigSource.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ConfigSource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ConfigSource getDefaultInstance()
public static com.google.protobuf.Parser<ConfigSource> parser()
public com.google.protobuf.Parser<ConfigSource> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ConfigSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2019 The Envoy Project. All rights reserved.