Class ExtensionConfigSource
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- 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
,java.io.Serializable
public final class ExtensionConfigSource extends com.google.protobuf.GeneratedMessage 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 class
ExtensionConfigSource.Builder
Configuration source specifier for a late-bound extension configuration.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
APPLY_DEFAULT_CONFIG_WITHOUT_WARMING_FIELD_NUMBER
private boolean
applyDefaultConfigWithoutWarming_
private int
bitField0_
static int
CONFIG_SOURCE_FIELD_NUMBER
private ConfigSource
configSource_
static int
DEFAULT_CONFIG_FIELD_NUMBER
private static ExtensionConfigSource
DEFAULT_INSTANCE
private com.google.protobuf.Any
defaultConfig_
private byte
memoizedIsInitialized
private static com.google.protobuf.Parser<ExtensionConfigSource>
PARSER
private static long
serialVersionUID
static int
TYPE_URLS_FIELD_NUMBER
private com.google.protobuf.LazyStringArrayList
typeUrls_
-
Constructor Summary
Constructors Modifier Constructor Description private
ExtensionConfigSource()
private
ExtensionConfigSource(com.google.protobuf.GeneratedMessage.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
boolean
getApplyDefaultConfigWithoutWarming()
Use the default config as the initial configuration without warming and waiting for the first discovery response.ConfigSource
getConfigSource()
.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ...
ConfigSourceOrBuilder
getConfigSourceOrBuilder()
.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ...
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.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.static ExtensionConfigSource
getDefaultInstance()
ExtensionConfigSource
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Parser<ExtensionConfigSource>
getParserForType()
int
getSerializedSize()
java.lang.String
getTypeUrls(int index)
A set of permitted extension type URLs.com.google.protobuf.ByteString
getTypeUrlsBytes(int index)
A set of permitted extension type URLs.int
getTypeUrlsCount()
A set of permitted extension type URLs.com.google.protobuf.ProtocolStringList
getTypeUrlsList()
A set of permitted extension type URLs.boolean
hasConfigSource()
.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ...
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.int
hashCode()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static ExtensionConfigSource.Builder
newBuilder()
static ExtensionConfigSource.Builder
newBuilder(ExtensionConfigSource prototype)
ExtensionConfigSource.Builder
newBuilderForType()
protected ExtensionConfigSource.Builder
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
static ExtensionConfigSource
parseDelimitedFrom(java.io.InputStream input)
static ExtensionConfigSource
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ExtensionConfigSource
parseFrom(byte[] data)
static ExtensionConfigSource
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ExtensionConfigSource
parseFrom(com.google.protobuf.ByteString data)
static ExtensionConfigSource
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ExtensionConfigSource
parseFrom(com.google.protobuf.CodedInputStream input)
static ExtensionConfigSource
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ExtensionConfigSource
parseFrom(java.io.InputStream input)
static ExtensionConfigSource
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ExtensionConfigSource
parseFrom(java.nio.ByteBuffer data)
static ExtensionConfigSource
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ExtensionConfigSource>
parser()
ExtensionConfigSource.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, 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, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
CONFIG_SOURCE_FIELD_NUMBER
public static final int CONFIG_SOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
configSource_
private ConfigSource configSource_
-
DEFAULT_CONFIG_FIELD_NUMBER
public static final int DEFAULT_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
defaultConfig_
private com.google.protobuf.Any defaultConfig_
-
APPLY_DEFAULT_CONFIG_WITHOUT_WARMING_FIELD_NUMBER
public static final int APPLY_DEFAULT_CONFIG_WITHOUT_WARMING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
applyDefaultConfigWithoutWarming_
private boolean applyDefaultConfigWithoutWarming_
-
TYPE_URLS_FIELD_NUMBER
public static final int TYPE_URLS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
typeUrls_
private com.google.protobuf.LazyStringArrayList typeUrls_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final ExtensionConfigSource DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<ExtensionConfigSource> PARSER
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
hasConfigSource
public boolean hasConfigSource()
.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }
- Specified by:
hasConfigSource
in interfaceExtensionConfigSourceOrBuilder
- Returns:
- Whether the configSource field is set.
-
getConfigSource
public ConfigSource getConfigSource()
.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }
- Specified by:
getConfigSource
in interfaceExtensionConfigSourceOrBuilder
- Returns:
- The configSource.
-
getConfigSourceOrBuilder
public ConfigSourceOrBuilder getConfigSourceOrBuilder()
.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }
- Specified by:
getConfigSourceOrBuilder
in 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:
hasDefaultConfig
in 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:
getDefaultConfig
in 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:
getDefaultConfigOrBuilder
in 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:
getApplyDefaultConfigWithoutWarming
in 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:
getTypeUrlsList
in 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:
getTypeUrlsCount
in interfaceExtensionConfigSourceOrBuilder
- Returns:
- The count of typeUrls.
-
getTypeUrls
public java.lang.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:
getTypeUrls
in 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:
getTypeUrlsBytes
in 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:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ExtensionConfigSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExtensionConfigSource parseFrom(java.nio.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(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ExtensionConfigSource parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static ExtensionConfigSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static ExtensionConfigSource parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ExtensionConfigSource parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ExtensionConfigSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public ExtensionConfigSource.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ExtensionConfigSource.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static ExtensionConfigSource getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ExtensionConfigSource> parser()
-
getParserForType
public com.google.protobuf.Parser<ExtensionConfigSource> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public ExtensionConfigSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-