Class FilterStateValue.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<FilterStateValue.Builder>
io.envoyproxy.envoy.extensions.filters.common.set_filter_state.v3.FilterStateValue.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,FilterStateValueOrBuilder,Cloneable
- Enclosing class:
- FilterStateValue
public static final class FilterStateValue.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<FilterStateValue.Builder>
implements FilterStateValueOrBuilder
A filter state key and value pair. [#next-free-field: 7]Protobuf type
envoy.extensions.filters.common.set_filter_state.v3.FilterStateValue-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Optional filter object factory lookup key.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.clearKey()Filter state object key.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If marked as read-only, the filter state key value is locked, and cannot be overridden by any filter, including this filter.Configures the object to be shared with the upstream internal connections.Skip the update if the value evaluates to an empty string.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional filter object factory lookup key.com.google.protobuf.ByteStringOptional filter object factory lookup key.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.Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.Filter state object key.com.google.protobuf.ByteStringFilter state object key.booleanIf marked as read-only, the filter state key value is locked, and cannot be overridden by any filter, including this filter.Configures the object to be shared with the upstream internal connections.intConfigures the object to be shared with the upstream internal connections.booleanSkip the update if the value evaluates to an empty string.booleanUses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.booleanFilter state object key.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanUses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(FilterStateValue other) final FilterStateValue.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setFactoryKey(String value) Optional filter object factory lookup key.setFactoryKeyBytes(com.google.protobuf.ByteString value) Optional filter object factory lookup key.Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.setFormatString(SubstitutionFormatString.Builder builderForValue) Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.setObjectKey(String value) Filter state object key.setObjectKeyBytes(com.google.protobuf.ByteString value) Filter state object key.setReadOnly(boolean value) If marked as read-only, the filter state key value is locked, and cannot be overridden by any filter, including this filter.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Configures the object to be shared with the upstream internal connections.setSharedWithUpstreamValue(int value) Configures the object to be shared with the upstream internal connections.setSkipIfEmpty(boolean value) Skip the update if the value evaluates to an empty string.final FilterStateValue.BuildersetUnknownFields(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<FilterStateValue.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<FilterStateValue.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<FilterStateValue.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<FilterStateValue.Builder>
-
setField
public FilterStateValue.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<FilterStateValue.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterStateValue.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterStateValue.Builder>
-
setRepeatedField
public FilterStateValue.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<FilterStateValue.Builder>
-
addRepeatedField
public FilterStateValue.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<FilterStateValue.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FilterStateValue.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterStateValue.Builder>
-
mergeFrom
public FilterStateValue.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<FilterStateValue.Builder>- Throws:
IOException
-
getKeyCase
- Specified by:
getKeyCasein interfaceFilterStateValueOrBuilder
-
clearKey
-
getValueCase
- Specified by:
getValueCasein interfaceFilterStateValueOrBuilder
-
clearValue
-
hasObjectKey
public boolean hasObjectKey()Filter state object key. The key is used to lookup the object factory, unless :ref:`factory_key <envoy_v3_api_field_extensions.filters.common.set_filter_state.v3.FilterStateValue.factory_key>` is set. See :ref:`the well-known filter state keys <well_known_filter_state>` for a list of valid object keys.
string object_key = 1 [(.validate.rules) = { ... }- Specified by:
hasObjectKeyin interfaceFilterStateValueOrBuilder- Returns:
- Whether the objectKey field is set.
-
getObjectKey
Filter state object key. The key is used to lookup the object factory, unless :ref:`factory_key <envoy_v3_api_field_extensions.filters.common.set_filter_state.v3.FilterStateValue.factory_key>` is set. See :ref:`the well-known filter state keys <well_known_filter_state>` for a list of valid object keys.
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 used to lookup the object factory, unless :ref:`factory_key <envoy_v3_api_field_extensions.filters.common.set_filter_state.v3.FilterStateValue.factory_key>` is set. See :ref:`the well-known filter state keys <well_known_filter_state>` for a list of valid object keys.
string object_key = 1 [(.validate.rules) = { ... }- Specified by:
getObjectKeyBytesin interfaceFilterStateValueOrBuilder- Returns:
- The bytes for objectKey.
-
setObjectKey
Filter state object key. The key is used to lookup the object factory, unless :ref:`factory_key <envoy_v3_api_field_extensions.filters.common.set_filter_state.v3.FilterStateValue.factory_key>` is set. See :ref:`the well-known filter state keys <well_known_filter_state>` for a list of valid object keys.
string object_key = 1 [(.validate.rules) = { ... }- Parameters:
value- The objectKey to set.- Returns:
- This builder for chaining.
-
clearObjectKey
Filter state object key. The key is used to lookup the object factory, unless :ref:`factory_key <envoy_v3_api_field_extensions.filters.common.set_filter_state.v3.FilterStateValue.factory_key>` is set. See :ref:`the well-known filter state keys <well_known_filter_state>` for a list of valid object keys.
string object_key = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setObjectKeyBytes
Filter state object key. The key is used to lookup the object factory, unless :ref:`factory_key <envoy_v3_api_field_extensions.filters.common.set_filter_state.v3.FilterStateValue.factory_key>` is set. See :ref:`the well-known filter state keys <well_known_filter_state>` for a list of valid object keys.
string object_key = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for objectKey to set.- Returns:
- This builder for chaining.
-
getFactoryKey
Optional filter object factory lookup key. See :ref:`the well-known filter state keys <well_known_filter_state>` for a list of valid factory keys.
string factory_key = 6;- Specified by:
getFactoryKeyin interfaceFilterStateValueOrBuilder- Returns:
- The factoryKey.
-
getFactoryKeyBytes
public com.google.protobuf.ByteString getFactoryKeyBytes()Optional filter object factory lookup key. See :ref:`the well-known filter state keys <well_known_filter_state>` for a list of valid factory keys.
string factory_key = 6;- Specified by:
getFactoryKeyBytesin interfaceFilterStateValueOrBuilder- Returns:
- The bytes for factoryKey.
-
setFactoryKey
Optional filter object factory lookup key. See :ref:`the well-known filter state keys <well_known_filter_state>` for a list of valid factory keys.
string factory_key = 6;- Parameters:
value- The factoryKey to set.- Returns:
- This builder for chaining.
-
clearFactoryKey
Optional filter object factory lookup key. See :ref:`the well-known filter state keys <well_known_filter_state>` for a list of valid factory keys.
string factory_key = 6;- Returns:
- This builder for chaining.
-
setFactoryKeyBytes
Optional filter object factory lookup key. See :ref:`the well-known filter state keys <well_known_filter_state>` for a list of valid factory keys.
string factory_key = 6;- Parameters:
value- The bytes for factoryKey to set.- Returns:
- This builder for chaining.
-
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
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.
-
setFormatString
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; -
setFormatString
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; -
mergeFormatString
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; -
clearFormatString
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; -
getFormatStringBuilder
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; -
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.
-
setReadOnly
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;- Parameters:
value- The readOnly to set.- Returns:
- This builder for chaining.
-
clearReadOnly
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;- Returns:
- This builder for chaining.
-
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.
-
setSkipIfEmpty
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;- Parameters:
value- The skipIfEmpty to set.- Returns:
- This builder for chaining.
-
clearSkipIfEmpty
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final FilterStateValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterStateValue.Builder>
-
mergeUnknownFields
public final FilterStateValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterStateValue.Builder>
-