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, Serializable

@Generated 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 type envoy.config.core.v3.ExtensionConfigSource
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    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,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    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) = { ... }
    .envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }
    com.google.protobuf.Any
    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
    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 final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Parser<ExtensionConfigSource>
     
    int
     
    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
    A set of permitted extension type URLs.
    com.google.protobuf.ProtocolStringList
    A set of permitted extension type URLs.
    boolean
    .envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }
    boolean
    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
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<ExtensionConfigSource>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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 Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • CONFIG_SOURCE_FIELD_NUMBER

      public static final int CONFIG_SOURCE_FIELD_NUMBER
      See Also:
    • DEFAULT_CONFIG_FIELD_NUMBER

      public static final int DEFAULT_CONFIG_FIELD_NUMBER
      See Also:
    • APPLY_DEFAULT_CONFIG_WITHOUT_WARMING_FIELD_NUMBER

      public static final int APPLY_DEFAULT_CONFIG_WITHOUT_WARMING_FIELD_NUMBER
      See Also:
    • TYPE_URLS_FIELD_NUMBER

      public static final int TYPE_URLS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasConfigSource

      public boolean hasConfigSource()
      .envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }
      Specified by:
      hasConfigSource in interface ExtensionConfigSourceOrBuilder
      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 interface ExtensionConfigSourceOrBuilder
      Returns:
      The configSource.
    • getConfigSourceOrBuilder

      public ConfigSourceOrBuilder getConfigSourceOrBuilder()
      .envoy.config.core.v3.ConfigSource config_source = 1 [(.validate.rules) = { ... }
      Specified by:
      getConfigSourceOrBuilder in interface ExtensionConfigSourceOrBuilder
    • 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 interface ExtensionConfigSourceOrBuilder
      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 interface ExtensionConfigSourceOrBuilder
      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 interface ExtensionConfigSourceOrBuilder
    • 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 interface ExtensionConfigSourceOrBuilder
      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 interface ExtensionConfigSourceOrBuilder
      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 interface ExtensionConfigSourceOrBuilder
      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:
      getTypeUrls in interface ExtensionConfigSourceOrBuilder
      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 interface ExtensionConfigSourceOrBuilder
      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 interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.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 interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ExtensionConfigSource.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.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 interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ExtensionConfigSource getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder