Class FilterStateValue
- 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: 6]
Protobuf typeenvoy.extensions.filters.common.set_filter_state.v3.FilterStateValue- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFilterStateValue.BuilderA filter state key and value pair.static classFilterStateValue.KeyCasestatic classFilterStateValue.SharedWithUpstreamProtobuf enumenvoy.extensions.filters.common.set_filter_state.v3.FilterStateValue.SharedWithUpstreamstatic classFilterStateValue.ValueCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intFORMAT_STRING_FIELD_NUMBERstatic intOBJECT_KEY_FIELD_NUMBERstatic intREAD_ONLY_FIELD_NUMBERstatic intSHARED_WITH_UPSTREAM_FIELD_NUMBERstatic intSKIP_IF_EMPTY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static FilterStateValuegetDefaultInstance()FilterStateValuegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()SubstitutionFormatStringgetFormatString()Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.SubstitutionFormatStringOrBuildergetFormatStringOrBuilder()Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.FilterStateValue.KeyCasegetKeyCase()StringgetObjectKey()Filter state object key.com.google.protobuf.ByteStringgetObjectKeyBytes()Filter state object key.com.google.protobuf.Parser<FilterStateValue>getParserForType()booleangetReadOnly()If marked as read-only, the filter state key value is locked, and cannot be overridden by any filter, including this filter.intgetSerializedSize()FilterStateValue.SharedWithUpstreamgetSharedWithUpstream()Configures the object to be shared with the upstream internal connections.intgetSharedWithUpstreamValue()Configures the object to be shared with the upstream internal connections.booleangetSkipIfEmpty()Skip the update if the value evaluates to an empty string.com.google.protobuf.UnknownFieldSetgetUnknownFields()FilterStateValue.ValueCasegetValueCase()booleanhasFormatString()Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.inthashCode()booleanhasObjectKey()Filter state object key.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static FilterStateValue.BuildernewBuilder()static FilterStateValue.BuildernewBuilder(FilterStateValue prototype)FilterStateValue.BuildernewBuilderForType()protected FilterStateValue.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static FilterStateValueparseDelimitedFrom(InputStream input)static FilterStateValueparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FilterStateValueparseFrom(byte[] data)static FilterStateValueparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FilterStateValueparseFrom(com.google.protobuf.ByteString data)static FilterStateValueparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FilterStateValueparseFrom(com.google.protobuf.CodedInputStream input)static FilterStateValueparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FilterStateValueparseFrom(InputStream input)static FilterStateValueparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FilterStateValueparseFrom(ByteBuffer data)static FilterStateValueparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<FilterStateValue>parser()FilterStateValue.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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
-
-
-
-
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
-
READ_ONLY_FIELD_NUMBER
public static final int READ_ONLY_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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
getKeyCase
public FilterStateValue.KeyCase getKeyCase()
- Specified by:
getKeyCasein interfaceFilterStateValueOrBuilder
-
getValueCase
public FilterStateValue.ValueCase getValueCase()
- Specified by:
getValueCasein interfaceFilterStateValueOrBuilder
-
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:
hasObjectKeyin interfaceFilterStateValueOrBuilder- 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:
getObjectKeyin interfaceFilterStateValueOrBuilder- 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:
getObjectKeyBytesin interfaceFilterStateValueOrBuilder- 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:
hasFormatStringin interfaceFilterStateValueOrBuilder- 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:
getFormatStringin interfaceFilterStateValueOrBuilder- 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:
getFormatStringOrBuilderin interfaceFilterStateValueOrBuilder
-
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:
getReadOnlyin interfaceFilterStateValueOrBuilder- 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:
getSharedWithUpstreamValuein interfaceFilterStateValueOrBuilder- 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:
getSharedWithUpstreamin interfaceFilterStateValueOrBuilder- 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:
getSkipIfEmptyin interfaceFilterStateValueOrBuilder- Returns:
- The skipIfEmpty.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static FilterStateValue.Builder newBuilder()
-
newBuilder
public static FilterStateValue.Builder newBuilder(FilterStateValue prototype)
-
toBuilder
public FilterStateValue.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FilterStateValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public FilterStateValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-