Class ExtensionConfigSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ExtensionConfigSource.Builder>
io.envoyproxy.envoy.config.core.v3.ExtensionConfigSource.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ExtensionConfigSourceOrBuilder,Cloneable
- Enclosing class:
- ExtensionConfigSource
public static final class ExtensionConfigSource.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ExtensionConfigSource.Builder>
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 type
envoy.config.core.v3.ExtensionConfigSource-
Method Summary
Modifier and TypeMethodDescriptionaddAllTypeUrls(Iterable<String> values) A set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTypeUrls(String value) A set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`.addTypeUrlsBytes(com.google.protobuf.ByteString value) A set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`.build()clear()Use the default config as the initial configuration without warming and waiting for the first discovery response..envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }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.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) A set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`.clone()booleanUse the default config as the initial configuration without warming and waiting for the first discovery response..envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }com.google.protobuf.AnyOptional 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.Any.BuilderOptional 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.AnyOrBuilderOptional 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 final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetTypeUrls(int index) A set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`.com.google.protobuf.ByteStringgetTypeUrlsBytes(int index) A set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`.intA set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`.com.google.protobuf.ProtocolStringListA set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`.boolean.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }booleanOptional 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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeConfigSource(ConfigSource value) .envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }mergeDefaultConfig(com.google.protobuf.Any value) 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.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ExtensionConfigSource other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setApplyDefaultConfigWithoutWarming(boolean value) Use the default config as the initial configuration without warming and waiting for the first discovery response.setConfigSource(ConfigSource value) .envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }setConfigSource(ConfigSource.Builder builderForValue) .envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }setDefaultConfig(com.google.protobuf.Any value) 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.setDefaultConfig(com.google.protobuf.Any.Builder builderForValue) 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.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTypeUrls(int index, String value) A set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<ExtensionConfigSource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ExtensionConfigSource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ExtensionConfigSource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ExtensionConfigSource.Builder>
-
setField
public ExtensionConfigSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExtensionConfigSource.Builder>
-
clearField
public ExtensionConfigSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExtensionConfigSource.Builder>
-
clearOneof
public ExtensionConfigSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ExtensionConfigSource.Builder>
-
setRepeatedField
public ExtensionConfigSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExtensionConfigSource.Builder>
-
addRepeatedField
public ExtensionConfigSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExtensionConfigSource.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExtensionConfigSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ExtensionConfigSource.Builder>
-
mergeFrom
public ExtensionConfigSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExtensionConfigSource.Builder>- Throws:
IOException
-
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
.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }- Specified by:
getConfigSourcein interfaceExtensionConfigSourceOrBuilder- Returns:
- The configSource.
-
setConfigSource
.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... } -
setConfigSource
.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... } -
mergeConfigSource
.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... } -
clearConfigSource
.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... } -
getConfigSourceBuilder
.envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... } -
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.
-
setDefaultConfig
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; -
setDefaultConfig
public ExtensionConfigSource.Builder setDefaultConfig(com.google.protobuf.Any.Builder builderForValue) 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; -
mergeDefaultConfig
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; -
clearDefaultConfig
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; -
getDefaultConfigBuilder
public com.google.protobuf.Any.Builder getDefaultConfigBuilder()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; -
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.
-
setApplyDefaultConfigWithoutWarming
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;- Parameters:
value- The applyDefaultConfigWithoutWarming to set.- Returns:
- This builder for chaining.
-
clearApplyDefaultConfigWithoutWarming
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;- Returns:
- This builder for chaining.
-
getTypeUrlsList
public com.google.protobuf.ProtocolStringList getTypeUrlsList()A set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`. 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 for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`. 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
A set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`. 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 for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`. 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.
-
setTypeUrls
A set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`. Extension configuration updates are rejected if they do not match any type URL in the set.
repeated string type_urls = 4 [(.validate.rules) = { ... }- Parameters:
index- The index to set the value at.value- The typeUrls to set.- Returns:
- This builder for chaining.
-
addTypeUrls
A set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`. Extension configuration updates are rejected if they do not match any type URL in the set.
repeated string type_urls = 4 [(.validate.rules) = { ... }- Parameters:
value- The typeUrls to add.- Returns:
- This builder for chaining.
-
addAllTypeUrls
A set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`. Extension configuration updates are rejected if they do not match any type URL in the set.
repeated string type_urls = 4 [(.validate.rules) = { ... }- Parameters:
values- The typeUrls to add.- Returns:
- This builder for chaining.
-
clearTypeUrls
A set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`. Extension configuration updates are rejected if they do not match any type URL in the set.
repeated string type_urls = 4 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
addTypeUrlsBytes
A set of permitted extension type URLs for the type encoded inside of the :ref:`TypedExtensionConfig <envoy_v3_api_msg_config.core.v3.TypedExtensionConfig>`. Extension configuration updates are rejected if they do not match any type URL in the set.
repeated string type_urls = 4 [(.validate.rules) = { ... }- Parameters:
value- The bytes of the typeUrls to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ExtensionConfigSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExtensionConfigSource.Builder>
-
mergeUnknownFields
public final ExtensionConfigSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExtensionConfigSource.Builder>
-