Class ResponseMapper.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ResponseMapper.Builder>
com.google.protobuf.GeneratedMessage.Builder<ResponseMapper.Builder>
io.envoyproxy.envoy.extensions.filters.network.http_connection_manager.v3.ResponseMapper.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ResponseMapperOrBuilder, Cloneable
- Enclosing class:
ResponseMapper
public static final class ResponseMapper.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ResponseMapper.Builder>
implements ResponseMapperOrBuilder
The configuration to filter and change local response. [#next-free-field: 6]Protobuf type
envoy.extensions.filters.network.http_connection_manager.v3.ResponseMapper-
Method Summary
Modifier and TypeMethodDescriptionaddAllHeadersToAdd(Iterable<? extends HeaderValueOption> values) HTTP headers to add to a local reply.addHeadersToAdd(int index, HeaderValueOption value) HTTP headers to add to a local reply.addHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) HTTP headers to add to a local reply.addHeadersToAdd(HeaderValueOption value) HTTP headers to add to a local reply.addHeadersToAdd(HeaderValueOption.Builder builderForValue) HTTP headers to add to a local reply.HTTP headers to add to a local reply.addHeadersToAddBuilder(int index) HTTP headers to add to a local reply.build()clear()The new local reply body text if specified.A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`.Filter to determine if this mapper should apply.HTTP headers to add to a local reply.The new response status code if specified.getBody()The new local reply body text if specified.The new local reply body text if specified.A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`.A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`.A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`.The new local reply body text if specified.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorFilter to determine if this mapper should apply.Filter to determine if this mapper should apply.Filter to determine if this mapper should apply.getHeadersToAdd(int index) HTTP headers to add to a local reply.getHeadersToAddBuilder(int index) HTTP headers to add to a local reply.HTTP headers to add to a local reply.intHTTP headers to add to a local reply.HTTP headers to add to a local reply.getHeadersToAddOrBuilder(int index) HTTP headers to add to a local reply.List<? extends HeaderValueOptionOrBuilder> HTTP headers to add to a local reply.com.google.protobuf.UInt32ValueThe new response status code if specified.com.google.protobuf.UInt32Value.BuilderThe new response status code if specified.com.google.protobuf.UInt32ValueOrBuilderThe new response status code if specified.booleanhasBody()The new local reply body text if specified.booleanA per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`.booleanFilter to determine if this mapper should apply.booleanThe new response status code if specified.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBody(DataSource value) The new local reply body text if specified.A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`.mergeFilter(AccessLogFilter value) Filter to determine if this mapper should apply.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ResponseMapper other) mergeStatusCode(com.google.protobuf.UInt32Value value) The new response status code if specified.removeHeadersToAdd(int index) HTTP headers to add to a local reply.setBody(DataSource value) The new local reply body text if specified.setBody(DataSource.Builder builderForValue) The new local reply body text if specified.A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`.setBodyFormatOverride(SubstitutionFormatString.Builder builderForValue) A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`.setFilter(AccessLogFilter value) Filter to determine if this mapper should apply.setFilter(AccessLogFilter.Builder builderForValue) Filter to determine if this mapper should apply.setHeadersToAdd(int index, HeaderValueOption value) HTTP headers to add to a local reply.setHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) HTTP headers to add to a local reply.setStatusCode(com.google.protobuf.UInt32Value value) The new response status code if specified.setStatusCode(com.google.protobuf.UInt32Value.Builder builderForValue) The new response status code if specified.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ResponseMapper.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ResponseMapper.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.GeneratedMessage.Builder<ResponseMapper.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResponseMapper.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResponseMapper.Builder>
-
mergeFrom
public ResponseMapper.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<ResponseMapper.Builder>- Throws:
IOException
-
hasFilter
public boolean hasFilter()Filter to determine if this mapper should apply.
.envoy.config.accesslog.v3.AccessLogFilter filter = 1 [(.validate.rules) = { ... }- Specified by:
hasFilterin interfaceResponseMapperOrBuilder- Returns:
- Whether the filter field is set.
-
getFilter
Filter to determine if this mapper should apply.
.envoy.config.accesslog.v3.AccessLogFilter filter = 1 [(.validate.rules) = { ... }- Specified by:
getFilterin interfaceResponseMapperOrBuilder- Returns:
- The filter.
-
setFilter
Filter to determine if this mapper should apply.
.envoy.config.accesslog.v3.AccessLogFilter filter = 1 [(.validate.rules) = { ... } -
setFilter
Filter to determine if this mapper should apply.
.envoy.config.accesslog.v3.AccessLogFilter filter = 1 [(.validate.rules) = { ... } -
mergeFilter
Filter to determine if this mapper should apply.
.envoy.config.accesslog.v3.AccessLogFilter filter = 1 [(.validate.rules) = { ... } -
clearFilter
Filter to determine if this mapper should apply.
.envoy.config.accesslog.v3.AccessLogFilter filter = 1 [(.validate.rules) = { ... } -
getFilterBuilder
Filter to determine if this mapper should apply.
.envoy.config.accesslog.v3.AccessLogFilter filter = 1 [(.validate.rules) = { ... } -
getFilterOrBuilder
Filter to determine if this mapper should apply.
.envoy.config.accesslog.v3.AccessLogFilter filter = 1 [(.validate.rules) = { ... }- Specified by:
getFilterOrBuilderin interfaceResponseMapperOrBuilder
-
hasStatusCode
public boolean hasStatusCode()The new response status code if specified.
.google.protobuf.UInt32Value status_code = 2 [(.validate.rules) = { ... }- Specified by:
hasStatusCodein interfaceResponseMapperOrBuilder- Returns:
- Whether the statusCode field is set.
-
getStatusCode
public com.google.protobuf.UInt32Value getStatusCode()The new response status code if specified.
.google.protobuf.UInt32Value status_code = 2 [(.validate.rules) = { ... }- Specified by:
getStatusCodein interfaceResponseMapperOrBuilder- Returns:
- The statusCode.
-
setStatusCode
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 2 [(.validate.rules) = { ... } -
setStatusCode
public ResponseMapper.Builder setStatusCode(com.google.protobuf.UInt32Value.Builder builderForValue) The new response status code if specified.
.google.protobuf.UInt32Value status_code = 2 [(.validate.rules) = { ... } -
mergeStatusCode
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 2 [(.validate.rules) = { ... } -
clearStatusCode
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 2 [(.validate.rules) = { ... } -
getStatusCodeBuilder
public com.google.protobuf.UInt32Value.Builder getStatusCodeBuilder()The new response status code if specified.
.google.protobuf.UInt32Value status_code = 2 [(.validate.rules) = { ... } -
getStatusCodeOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getStatusCodeOrBuilder()The new response status code if specified.
.google.protobuf.UInt32Value status_code = 2 [(.validate.rules) = { ... }- Specified by:
getStatusCodeOrBuilderin interfaceResponseMapperOrBuilder
-
hasBody
public boolean hasBody()The new local reply body text if specified. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 3;- Specified by:
hasBodyin interfaceResponseMapperOrBuilder- Returns:
- Whether the body field is set.
-
getBody
The new local reply body text if specified. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 3;- Specified by:
getBodyin interfaceResponseMapperOrBuilder- Returns:
- The body.
-
setBody
The new local reply body text if specified. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 3; -
setBody
The new local reply body text if specified. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 3; -
mergeBody
The new local reply body text if specified. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 3; -
clearBody
The new local reply body text if specified. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 3; -
getBodyBuilder
The new local reply body text if specified. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 3; -
getBodyOrBuilder
The new local reply body text if specified. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 3;- Specified by:
getBodyOrBuilderin interfaceResponseMapperOrBuilder
-
hasBodyFormatOverride
public boolean hasBodyFormatOverride()A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`. It will be used when this mapper is matched.
.envoy.config.core.v3.SubstitutionFormatString body_format_override = 4;- Specified by:
hasBodyFormatOverridein interfaceResponseMapperOrBuilder- Returns:
- Whether the bodyFormatOverride field is set.
-
getBodyFormatOverride
A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`. It will be used when this mapper is matched.
.envoy.config.core.v3.SubstitutionFormatString body_format_override = 4;- Specified by:
getBodyFormatOverridein interfaceResponseMapperOrBuilder- Returns:
- The bodyFormatOverride.
-
setBodyFormatOverride
A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`. It will be used when this mapper is matched.
.envoy.config.core.v3.SubstitutionFormatString body_format_override = 4; -
setBodyFormatOverride
public ResponseMapper.Builder setBodyFormatOverride(SubstitutionFormatString.Builder builderForValue) A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`. It will be used when this mapper is matched.
.envoy.config.core.v3.SubstitutionFormatString body_format_override = 4; -
mergeBodyFormatOverride
A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`. It will be used when this mapper is matched.
.envoy.config.core.v3.SubstitutionFormatString body_format_override = 4; -
clearBodyFormatOverride
A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`. It will be used when this mapper is matched.
.envoy.config.core.v3.SubstitutionFormatString body_format_override = 4; -
getBodyFormatOverrideBuilder
A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`. It will be used when this mapper is matched.
.envoy.config.core.v3.SubstitutionFormatString body_format_override = 4; -
getBodyFormatOverrideOrBuilder
A per mapper ``body_format`` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`. It will be used when this mapper is matched.
.envoy.config.core.v3.SubstitutionFormatString body_format_override = 4;- Specified by:
getBodyFormatOverrideOrBuilderin interfaceResponseMapperOrBuilder
-
getHeadersToAddList
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }- Specified by:
getHeadersToAddListin interfaceResponseMapperOrBuilder
-
getHeadersToAddCount
public int getHeadersToAddCount()HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }- Specified by:
getHeadersToAddCountin interfaceResponseMapperOrBuilder
-
getHeadersToAdd
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }- Specified by:
getHeadersToAddin interfaceResponseMapperOrBuilder
-
setHeadersToAdd
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... } -
setHeadersToAdd
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... } -
addHeadersToAdd
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... } -
addHeadersToAdd
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... } -
addHeadersToAdd
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... } -
addHeadersToAdd
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... } -
addAllHeadersToAdd
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... } -
clearHeadersToAdd
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... } -
removeHeadersToAdd
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... } -
getHeadersToAddBuilder
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... } -
getHeadersToAddOrBuilder
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }- Specified by:
getHeadersToAddOrBuilderin interfaceResponseMapperOrBuilder
-
getHeadersToAddOrBuilderList
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }- Specified by:
getHeadersToAddOrBuilderListin interfaceResponseMapperOrBuilder
-
addHeadersToAddBuilder
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... } -
addHeadersToAddBuilder
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... } -
getHeadersToAddBuilderList
HTTP headers to add to a local reply. This allows the response mapper to append, to add or to override headers of any local reply before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }
-