Class FilterStateValue.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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: 6]
Protobuf typeenvoy.extensions.filters.common.set_filter_state.v3.FilterStateValue
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterStateValue.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)FilterStateValuebuild()FilterStateValuebuildPartial()FilterStateValue.Builderclear()FilterStateValue.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)FilterStateValue.BuilderclearFormatString()Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.FilterStateValue.BuilderclearKey()FilterStateValue.BuilderclearObjectKey()Filter state object key.FilterStateValue.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)FilterStateValue.BuilderclearReadOnly()If marked as read-only, the filter state key value is locked, and cannot be overridden by any filter, including this filter.FilterStateValue.BuilderclearSharedWithUpstream()Configures the object to be shared with the upstream internal connections.FilterStateValue.BuilderclearSkipIfEmpty()Skip the update if the value evaluates to an empty string.FilterStateValue.BuilderclearValue()FilterStateValue.Builderclone()FilterStateValuegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()SubstitutionFormatStringgetFormatString()Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.SubstitutionFormatString.BuildergetFormatStringBuilder()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.booleangetReadOnly()If marked as read-only, the filter state key value is locked, and cannot be overridden by any filter, including this filter.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.FilterStateValue.ValueCasegetValueCase()booleanhasFormatString()Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.booleanhasObjectKey()Filter state object key.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()FilterStateValue.BuildermergeFormatString(SubstitutionFormatString value)Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.FilterStateValue.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)FilterStateValue.BuildermergeFrom(com.google.protobuf.Message other)FilterStateValue.BuildermergeFrom(FilterStateValue other)FilterStateValue.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)FilterStateValue.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)FilterStateValue.BuildersetFormatString(SubstitutionFormatString value)Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.FilterStateValue.BuildersetFormatString(SubstitutionFormatString.Builder builderForValue)Uses the :ref:`format string <config_access_log_format_strings>` to instantiate the filter state object value.FilterStateValue.BuildersetObjectKey(String value)Filter state object key.FilterStateValue.BuildersetObjectKeyBytes(com.google.protobuf.ByteString value)Filter state object key.FilterStateValue.BuildersetReadOnly(boolean value)If marked as read-only, the filter state key value is locked, and cannot be overridden by any filter, including this filter.FilterStateValue.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)FilterStateValue.BuildersetSharedWithUpstream(FilterStateValue.SharedWithUpstream value)Configures the object to be shared with the upstream internal connections.FilterStateValue.BuildersetSharedWithUpstreamValue(int value)Configures the object to be shared with the upstream internal connections.FilterStateValue.BuildersetSkipIfEmpty(boolean value)Skip the update if the value evaluates to an empty string.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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public FilterStateValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public FilterStateValue build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FilterStateValue buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FilterStateValue.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
public FilterStateValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterStateValue.Builder>
-
clearOneof
public FilterStateValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public FilterStateValue.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FilterStateValue.Builder>
-
mergeFrom
public FilterStateValue.Builder mergeFrom(FilterStateValue other)
-
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
public FilterStateValue.KeyCase getKeyCase()
- Specified by:
getKeyCasein interfaceFilterStateValueOrBuilder
-
clearKey
public FilterStateValue.Builder clearKey()
-
getValueCase
public FilterStateValue.ValueCase getValueCase()
- Specified by:
getValueCasein interfaceFilterStateValueOrBuilder
-
clearValue
public FilterStateValue.Builder clearValue()
-
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.
-
setObjectKey
public FilterStateValue.Builder setObjectKey(String value)
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) = { ... }- Parameters:
value- The objectKey to set.- Returns:
- This builder for chaining.
-
clearObjectKey
public FilterStateValue.Builder clearObjectKey()
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) = { ... }- Returns:
- This builder for chaining.
-
setObjectKeyBytes
public FilterStateValue.Builder setObjectKeyBytes(com.google.protobuf.ByteString value)
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) = { ... }- Parameters:
value- The bytes for objectKey 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
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.
-
setFormatString
public FilterStateValue.Builder setFormatString(SubstitutionFormatString value)
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
public FilterStateValue.Builder setFormatString(SubstitutionFormatString.Builder builderForValue)
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
public FilterStateValue.Builder mergeFormatString(SubstitutionFormatString value)
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
public FilterStateValue.Builder 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
public SubstitutionFormatString.Builder 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
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.
-
setReadOnly
public FilterStateValue.Builder 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.
bool read_only = 3;- Parameters:
value- The readOnly to set.- Returns:
- This builder for chaining.
-
clearReadOnly
public FilterStateValue.Builder 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.
-
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.
-
setSharedWithUpstreamValue
public FilterStateValue.Builder setSharedWithUpstreamValue(int value)
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;- Parameters:
value- The enum numeric value on the wire for sharedWithUpstream to set.- Returns:
- This builder for chaining.
-
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.
-
setSharedWithUpstream
public FilterStateValue.Builder setSharedWithUpstream(FilterStateValue.SharedWithUpstream value)
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;- Parameters:
value- The sharedWithUpstream to set.- Returns:
- This builder for chaining.
-
clearSharedWithUpstream
public FilterStateValue.Builder clearSharedWithUpstream()
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;- 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
public FilterStateValue.Builder setSkipIfEmpty(boolean value)
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
public FilterStateValue.Builder 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>
-
-