java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.common.set_filter_state.v3.FilterStateValue
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, FilterStateValueOrBuilder, Serializable

public final class FilterStateValue extends com.google.protobuf.GeneratedMessageV3 implements FilterStateValueOrBuilder
 A filter state key and value pair.
 [#next-free-field: 7]
 
Protobuf type envoy.extensions.filters.common.set_filter_state.v3.FilterStateValue
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A filter state key and value pair.
    static enum 
     
    static enum 
    Protobuf enum envoy.extensions.filters.common.set_filter_state.v3.FilterStateValue.SharedWithUpstream
    static enum 
     

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

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    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
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, 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
     
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Specifies which registered factory should be used to create the filter state object from the provided value.
    com.google.protobuf.ByteString
    Specifies which registered factory should be used to create the filter state object from the provided value.
    Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.
    Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.
     
    The name under which the filter state object will be stored and can be retrieved.
    com.google.protobuf.ByteString
    The name under which the filter state object will be stored and can be retrieved.
    com.google.protobuf.Parser<FilterStateValue>
     
    boolean
    If marked as read-only, the filter state key value is locked, and cannot be overridden by any filter, including this filter.
    int
     
    Configures the object to be shared with the upstream internal connections.
    int
    Configures the object to be shared with the upstream internal connections.
    boolean
    Skip the update if the value evaluates to an empty string.
     
    boolean
    Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.
    int
     
    boolean
    The name under which the filter state object will be stored and can be retrieved.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    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<FilterStateValue>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

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

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

    • OBJECT_KEY_FIELD_NUMBER

      public static final int OBJECT_KEY_FIELD_NUMBER
      See Also:
    • FACTORY_KEY_FIELD_NUMBER

      public static final int FACTORY_KEY_FIELD_NUMBER
      See Also:
    • FORMAT_STRING_FIELD_NUMBER

      public static final int FORMAT_STRING_FIELD_NUMBER
      See Also:
    • READ_ONLY_FIELD_NUMBER

      public static final int READ_ONLY_FIELD_NUMBER
      See Also:
    • SHARED_WITH_UPSTREAM_FIELD_NUMBER

      public static final int SHARED_WITH_UPSTREAM_FIELD_NUMBER
      See Also:
    • SKIP_IF_EMPTY_FIELD_NUMBER

      public static final int SKIP_IF_EMPTY_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getKeyCase

      public FilterStateValue.KeyCase getKeyCase()
      Specified by:
      getKeyCase in interface FilterStateValueOrBuilder
    • getValueCase

      public FilterStateValue.ValueCase getValueCase()
      Specified by:
      getValueCase in interface FilterStateValueOrBuilder
    • hasObjectKey

      public boolean hasObjectKey()
       The name under which the filter state object will be stored and can be retrieved.
      
       When using :ref:`well-known filter state keys <well_known_filter_state>` (e.g.,
       ``envoy.network.upstream_server_name``, ``envoy.tcp_proxy.cluster``), the object key serves
       dual purpose where it identifies both where the data is stored and which factory creates the
       object. In this case, :ref:`factory_key
       <envoy_v3_api_field_extensions.filters.common.set_filter_state.v3.FilterStateValue.factory_key>`
       is not needed.
      
       When using a custom key name which is not from the well-known list, you must also specify
       :ref:`factory_key
       <envoy_v3_api_field_extensions.filters.common.set_filter_state.v3.FilterStateValue.factory_key>`
       to indicate which factory should create the object from your value.
      
       Example using a well-known key where ``factory_key`` is not needed:
      
       .. code-block:: yaml
      
          object_key: envoy.tcp_proxy.cluster
          format_string:
            text_format_source:
              inline_string: "my-cluster"
      
       Example using a custom key which requires a ``factory_key``:
      
       .. code-block:: yaml
      
          object_key: my.custom.key
          factory_key: envoy.string
          format_string:
            text_format_source:
              inline_string: "my-value"
       
      string object_key = 1 [(.validate.rules) = { ... }
      Specified by:
      hasObjectKey in interface FilterStateValueOrBuilder
      Returns:
      Whether the objectKey field is set.
    • getObjectKey

      public String getObjectKey()
       The name under which the filter state object will be stored and can be retrieved.
      
       When using :ref:`well-known filter state keys <well_known_filter_state>` (e.g.,
       ``envoy.network.upstream_server_name``, ``envoy.tcp_proxy.cluster``), the object key serves
       dual purpose where it identifies both where the data is stored and which factory creates the
       object. In this case, :ref:`factory_key
       <envoy_v3_api_field_extensions.filters.common.set_filter_state.v3.FilterStateValue.factory_key>`
       is not needed.
      
       When using a custom key name which is not from the well-known list, you must also specify
       :ref:`factory_key
       <envoy_v3_api_field_extensions.filters.common.set_filter_state.v3.FilterStateValue.factory_key>`
       to indicate which factory should create the object from your value.
      
       Example using a well-known key where ``factory_key`` is not needed:
      
       .. code-block:: yaml
      
          object_key: envoy.tcp_proxy.cluster
          format_string:
            text_format_source:
              inline_string: "my-cluster"
      
       Example using a custom key which requires a ``factory_key``:
      
       .. code-block:: yaml
      
          object_key: my.custom.key
          factory_key: envoy.string
          format_string:
            text_format_source:
              inline_string: "my-value"
       
      string object_key = 1 [(.validate.rules) = { ... }
      Specified by:
      getObjectKey in interface FilterStateValueOrBuilder
      Returns:
      The objectKey.
    • getObjectKeyBytes

      public com.google.protobuf.ByteString getObjectKeyBytes()
       The name under which the filter state object will be stored and can be retrieved.
      
       When using :ref:`well-known filter state keys <well_known_filter_state>` (e.g.,
       ``envoy.network.upstream_server_name``, ``envoy.tcp_proxy.cluster``), the object key serves
       dual purpose where it identifies both where the data is stored and which factory creates the
       object. In this case, :ref:`factory_key
       <envoy_v3_api_field_extensions.filters.common.set_filter_state.v3.FilterStateValue.factory_key>`
       is not needed.
      
       When using a custom key name which is not from the well-known list, you must also specify
       :ref:`factory_key
       <envoy_v3_api_field_extensions.filters.common.set_filter_state.v3.FilterStateValue.factory_key>`
       to indicate which factory should create the object from your value.
      
       Example using a well-known key where ``factory_key`` is not needed:
      
       .. code-block:: yaml
      
          object_key: envoy.tcp_proxy.cluster
          format_string:
            text_format_source:
              inline_string: "my-cluster"
      
       Example using a custom key which requires a ``factory_key``:
      
       .. code-block:: yaml
      
          object_key: my.custom.key
          factory_key: envoy.string
          format_string:
            text_format_source:
              inline_string: "my-value"
       
      string object_key = 1 [(.validate.rules) = { ... }
      Specified by:
      getObjectKeyBytes in interface FilterStateValueOrBuilder
      Returns:
      The bytes for objectKey.
    • getFactoryKey

      public String getFactoryKey()
       Specifies which registered factory should be used to create the filter state object from the
       provided value. This field is required when :ref:`object_key
       <envoy_v3_api_field_extensions.filters.common.set_filter_state.v3.FilterStateValue.object_key>`
       is a custom name not found in the :ref:`well-known filter state keys <well_known_filter_state>`.
      
       Each well-known key has a factory registered with the same name (e.g., the key
       ``envoy.tcp_proxy.cluster`` has a factory also named ``envoy.tcp_proxy.cluster``). For custom keys,
       use one of the following generic factories:
      
       * ``envoy.string``: Creates a generic string object. Use this for arbitrary string values that
         will be accessed via ``StringAccessor``.
      
       If not specified, defaults to the value of ``object_key``.
       
      string factory_key = 6;
      Specified by:
      getFactoryKey in interface FilterStateValueOrBuilder
      Returns:
      The factoryKey.
    • getFactoryKeyBytes

      public com.google.protobuf.ByteString getFactoryKeyBytes()
       Specifies which registered factory should be used to create the filter state object from the
       provided value. This field is required when :ref:`object_key
       <envoy_v3_api_field_extensions.filters.common.set_filter_state.v3.FilterStateValue.object_key>`
       is a custom name not found in the :ref:`well-known filter state keys <well_known_filter_state>`.
      
       Each well-known key has a factory registered with the same name (e.g., the key
       ``envoy.tcp_proxy.cluster`` has a factory also named ``envoy.tcp_proxy.cluster``). For custom keys,
       use one of the following generic factories:
      
       * ``envoy.string``: Creates a generic string object. Use this for arbitrary string values that
         will be accessed via ``StringAccessor``.
      
       If not specified, defaults to the value of ``object_key``.
       
      string factory_key = 6;
      Specified by:
      getFactoryKeyBytes in interface FilterStateValueOrBuilder
      Returns:
      The bytes for factoryKey.
    • hasFormatString

      public boolean hasFormatString()
       Uses the :ref:`format string <config_access_log_format_strings>` to
       instantiate the filter state object value.
       
      .envoy.config.core.v3.SubstitutionFormatString format_string = 2;
      Specified by:
      hasFormatString in interface FilterStateValueOrBuilder
      Returns:
      Whether the formatString field is set.
    • getFormatString

      public SubstitutionFormatString getFormatString()
       Uses the :ref:`format string <config_access_log_format_strings>` to
       instantiate the filter state object value.
       
      .envoy.config.core.v3.SubstitutionFormatString format_string = 2;
      Specified by:
      getFormatString in interface FilterStateValueOrBuilder
      Returns:
      The formatString.
    • getFormatStringOrBuilder

      public SubstitutionFormatStringOrBuilder getFormatStringOrBuilder()
       Uses the :ref:`format string <config_access_log_format_strings>` to
       instantiate the filter state object value.
       
      .envoy.config.core.v3.SubstitutionFormatString format_string = 2;
      Specified by:
      getFormatStringOrBuilder in interface FilterStateValueOrBuilder
    • getReadOnly

      public boolean getReadOnly()
       If marked as read-only, the filter state key value is locked, and cannot
       be overridden by any filter, including this filter.
       
      bool read_only = 3;
      Specified by:
      getReadOnly in interface FilterStateValueOrBuilder
      Returns:
      The readOnly.
    • getSharedWithUpstreamValue

      public int getSharedWithUpstreamValue()
       Configures the object to be shared with the upstream internal connections. See :ref:`internal upstream
       transport <config_internal_upstream_transport>` for more details on the filter state sharing with
       the internal connections.
       
      .envoy.extensions.filters.common.set_filter_state.v3.FilterStateValue.SharedWithUpstream shared_with_upstream = 4;
      Specified by:
      getSharedWithUpstreamValue in interface FilterStateValueOrBuilder
      Returns:
      The enum numeric value on the wire for sharedWithUpstream.
    • getSharedWithUpstream

      public FilterStateValue.SharedWithUpstream getSharedWithUpstream()
       Configures the object to be shared with the upstream internal connections. See :ref:`internal upstream
       transport <config_internal_upstream_transport>` for more details on the filter state sharing with
       the internal connections.
       
      .envoy.extensions.filters.common.set_filter_state.v3.FilterStateValue.SharedWithUpstream shared_with_upstream = 4;
      Specified by:
      getSharedWithUpstream in interface FilterStateValueOrBuilder
      Returns:
      The sharedWithUpstream.
    • getSkipIfEmpty

      public boolean getSkipIfEmpty()
       Skip the update if the value evaluates to an empty string.
       This option can be used to supply multiple alternatives for the same filter state object key.
       
      bool skip_if_empty = 5;
      Specified by:
      getSkipIfEmpty in interface FilterStateValueOrBuilder
      Returns:
      The skipIfEmpty.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • 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.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • 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 FilterStateValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FilterStateValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FilterStateValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FilterStateValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FilterStateValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FilterStateValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FilterStateValue parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FilterStateValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FilterStateValue parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FilterStateValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FilterStateValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FilterStateValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public FilterStateValue.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static FilterStateValue.Builder newBuilder()
    • newBuilder

      public static FilterStateValue.Builder newBuilder(FilterStateValue prototype)
    • toBuilder

      public FilterStateValue.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected FilterStateValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static FilterStateValue getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<FilterStateValue> parser()
    • getParserForType

      public com.google.protobuf.Parser<FilterStateValue> 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.GeneratedMessageV3
    • getDefaultInstanceForType

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