Class ExtensionConfigSource
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.config.core.v3.ExtensionConfigSource
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ExtensionConfigSourceOrBuilder,Serializable
public final class ExtensionConfigSource extends com.google.protobuf.GeneratedMessageV3 implements ExtensionConfigSourceOrBuilder
Configuration source specifier for a late-bound extension configuration. The parent resource is warmed until all the initial extension configurations are received, unless the flag to apply the default configuration is set. Subsequent extension updates are atomic on a per-worker basis. Once an extension configuration is applied to a request or a connection, it remains constant for the duration of processing. If the initial delivery of the extension configuration fails, due to a timeout for example, the optional default configuration is applied. Without a default configuration, the extension is disabled, until an extension configuration is received. The behavior of a disabled extension depends on the context. For example, a filter chain with a disabled extension filter rejects all incoming streams.
Protobuf typeenvoy.config.core.v3.ExtensionConfigSource- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExtensionConfigSource.BuilderConfiguration source specifier for a late-bound extension configuration.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAPPLY_DEFAULT_CONFIG_WITHOUT_WARMING_FIELD_NUMBERstatic intCONFIG_SOURCE_FIELD_NUMBERstatic intDEFAULT_CONFIG_FIELD_NUMBERstatic intTYPE_URLS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleangetApplyDefaultConfigWithoutWarming()Use the default config as the initial configuration without warming and waiting for the first discovery response.ConfigSourcegetConfigSource().envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }ConfigSourceOrBuildergetConfigSourceOrBuilder().envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }com.google.protobuf.AnygetDefaultConfig()Optional default configuration to use as the initial configuration if there is a failure to receive the initial extension configuration or if ``apply_default_config_without_warming`` flag is set.com.google.protobuf.AnyOrBuildergetDefaultConfigOrBuilder()Optional default configuration to use as the initial configuration if there is a failure to receive the initial extension configuration or if ``apply_default_config_without_warming`` flag is set.static ExtensionConfigSourcegetDefaultInstance()ExtensionConfigSourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<ExtensionConfigSource>getParserForType()intgetSerializedSize()StringgetTypeUrls(int index)A set of permitted extension type URLs.com.google.protobuf.ByteStringgetTypeUrlsBytes(int index)A set of permitted extension type URLs.intgetTypeUrlsCount()A set of permitted extension type URLs.com.google.protobuf.ProtocolStringListgetTypeUrlsList()A set of permitted extension type URLs.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasConfigSource().envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }booleanhasDefaultConfig()Optional default configuration to use as the initial configuration if there is a failure to receive the initial extension configuration or if ``apply_default_config_without_warming`` flag is set.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ExtensionConfigSource.BuildernewBuilder()static ExtensionConfigSource.BuildernewBuilder(ExtensionConfigSource prototype)ExtensionConfigSource.BuildernewBuilderForType()protected ExtensionConfigSource.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ExtensionConfigSourceparseDelimitedFrom(InputStream input)static ExtensionConfigSourceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExtensionConfigSourceparseFrom(byte[] data)static ExtensionConfigSourceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExtensionConfigSourceparseFrom(com.google.protobuf.ByteString data)static ExtensionConfigSourceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExtensionConfigSourceparseFrom(com.google.protobuf.CodedInputStream input)static ExtensionConfigSourceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExtensionConfigSourceparseFrom(InputStream input)static ExtensionConfigSourceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExtensionConfigSourceparseFrom(ByteBuffer data)static ExtensionConfigSourceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ExtensionConfigSource>parser()ExtensionConfigSource.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CONFIG_SOURCE_FIELD_NUMBER
public static final int CONFIG_SOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEFAULT_CONFIG_FIELD_NUMBER
public static final int DEFAULT_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
APPLY_DEFAULT_CONFIG_WITHOUT_WARMING_FIELD_NUMBER
public static final int APPLY_DEFAULT_CONFIG_WITHOUT_WARMING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_URLS_FIELD_NUMBER
public static final int TYPE_URLS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasConfigSource
public boolean hasConfigSource()
.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }- Specified by:
hasConfigSourcein interfaceExtensionConfigSourceOrBuilder- Returns:
- Whether the configSource field is set.
-
getConfigSource
public ConfigSource getConfigSource()
.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }- Specified by:
getConfigSourcein interfaceExtensionConfigSourceOrBuilder- Returns:
- The configSource.
-
getConfigSourceOrBuilder
public ConfigSourceOrBuilder getConfigSourceOrBuilder()
.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }- Specified by:
getConfigSourceOrBuilderin interfaceExtensionConfigSourceOrBuilder
-
hasDefaultConfig
public boolean hasDefaultConfig()
Optional default configuration to use as the initial configuration if there is a failure to receive the initial extension configuration or if ``apply_default_config_without_warming`` flag is set.
.google.protobuf.Any default_config = 2;- Specified by:
hasDefaultConfigin interfaceExtensionConfigSourceOrBuilder- Returns:
- Whether the defaultConfig field is set.
-
getDefaultConfig
public com.google.protobuf.Any getDefaultConfig()
Optional default configuration to use as the initial configuration if there is a failure to receive the initial extension configuration or if ``apply_default_config_without_warming`` flag is set.
.google.protobuf.Any default_config = 2;- Specified by:
getDefaultConfigin interfaceExtensionConfigSourceOrBuilder- Returns:
- The defaultConfig.
-
getDefaultConfigOrBuilder
public com.google.protobuf.AnyOrBuilder getDefaultConfigOrBuilder()
Optional default configuration to use as the initial configuration if there is a failure to receive the initial extension configuration or if ``apply_default_config_without_warming`` flag is set.
.google.protobuf.Any default_config = 2;- Specified by:
getDefaultConfigOrBuilderin interfaceExtensionConfigSourceOrBuilder
-
getApplyDefaultConfigWithoutWarming
public boolean getApplyDefaultConfigWithoutWarming()
Use the default config as the initial configuration without warming and waiting for the first discovery response. Requires the default configuration to be supplied.
bool apply_default_config_without_warming = 3;- Specified by:
getApplyDefaultConfigWithoutWarmingin interfaceExtensionConfigSourceOrBuilder- Returns:
- The applyDefaultConfigWithoutWarming.
-
getTypeUrlsList
public com.google.protobuf.ProtocolStringList getTypeUrlsList()
A set of permitted extension type URLs. Extension configuration updates are rejected if they do not match any type URL in the set.
repeated string type_urls = 4 [(.validate.rules) = { ... }- Specified by:
getTypeUrlsListin interfaceExtensionConfigSourceOrBuilder- Returns:
- A list containing the typeUrls.
-
getTypeUrlsCount
public int getTypeUrlsCount()
A set of permitted extension type URLs. Extension configuration updates are rejected if they do not match any type URL in the set.
repeated string type_urls = 4 [(.validate.rules) = { ... }- Specified by:
getTypeUrlsCountin interfaceExtensionConfigSourceOrBuilder- Returns:
- The count of typeUrls.
-
getTypeUrls
public String getTypeUrls(int index)
A set of permitted extension type URLs. Extension configuration updates are rejected if they do not match any type URL in the set.
repeated string type_urls = 4 [(.validate.rules) = { ... }- Specified by:
getTypeUrlsin interfaceExtensionConfigSourceOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The typeUrls at the given index.
-
getTypeUrlsBytes
public com.google.protobuf.ByteString getTypeUrlsBytes(int index)
A set of permitted extension type URLs. Extension configuration updates are rejected if they do not match any type URL in the set.
repeated string type_urls = 4 [(.validate.rules) = { ... }- Specified by:
getTypeUrlsBytesin interfaceExtensionConfigSourceOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the typeUrls at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ExtensionConfigSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExtensionConfigSource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExtensionConfigSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExtensionConfigSource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExtensionConfigSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExtensionConfigSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExtensionConfigSource parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ExtensionConfigSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ExtensionConfigSource parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ExtensionConfigSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ExtensionConfigSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ExtensionConfigSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ExtensionConfigSource.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ExtensionConfigSource.Builder newBuilder()
-
newBuilder
public static ExtensionConfigSource.Builder newBuilder(ExtensionConfigSource prototype)
-
toBuilder
public ExtensionConfigSource.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ExtensionConfigSource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ExtensionConfigSource getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ExtensionConfigSource> parser()
-
getParserForType
public com.google.protobuf.Parser<ExtensionConfigSource> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ExtensionConfigSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-