Class 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: 6]
     
    Protobuf type envoy.extensions.filters.common.set_filter_state.v3.FilterStateValue
    See Also:
    Serialized Form
    • Field Detail

      • OBJECT_KEY_FIELD_NUMBER

        public static final int OBJECT_KEY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FORMAT_STRING_FIELD_NUMBER

        public static final int FORMAT_STRING_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SHARED_WITH_UPSTREAM_FIELD_NUMBER

        public static final int SHARED_WITH_UPSTREAM_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SKIP_IF_EMPTY_FIELD_NUMBER

        public static final int SKIP_IF_EMPTY_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

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

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields 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
      • hasObjectKey

        public boolean hasObjectKey()
         Filter state object key. The key is expected to be registered via an object factory, see
         :ref:`the well-known filter state keys <well_known_filter_state>`.
         
        string object_key = 1 [(.validate.rules) = { ... }
        Specified by:
        hasObjectKey in interface FilterStateValueOrBuilder
        Returns:
        Whether the objectKey field is set.
      • getObjectKey

        public String getObjectKey()
         Filter state object key. The key is expected to be registered via an object factory, see
         :ref:`the well-known filter state keys <well_known_filter_state>`.
         
        string object_key = 1 [(.validate.rules) = { ... }
        Specified by:
        getObjectKey in interface FilterStateValueOrBuilder
        Returns:
        The objectKey.
      • getObjectKeyBytes

        public com.google.protobuf.ByteString getObjectKeyBytes()
         Filter state object key. The key is expected to be registered via an object factory, see
         :ref:`the well-known filter state keys <well_known_filter_state>`.
         
        string object_key = 1 [(.validate.rules) = { ... }
        Specified by:
        getObjectKeyBytes in interface FilterStateValueOrBuilder
        Returns:
        The bytes for objectKey.
      • 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.
      • 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​(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
      • 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
      • 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