public final class ResponseMapper extends com.google.protobuf.GeneratedMessageV3 implements ResponseMapperOrBuilder
The configuration to filter and change local response. [#next-free-field: 6]Protobuf type
envoy.extensions.filters.network.http_connection_manager.v4alpha.ResponseMapper| Modifier and Type | Class and Description |
|---|---|
static class |
ResponseMapper.Builder
The configuration to filter and change local response.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
BODY_FIELD_NUMBER |
static int |
BODY_FORMAT_OVERRIDE_FIELD_NUMBER |
static int |
FILTER_FIELD_NUMBER |
static int |
HEADERS_TO_ADD_FIELD_NUMBER |
static int |
STATUS_CODE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
DataSource |
getBody()
The new local reply body text if specified.
|
SubstitutionFormatString |
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>`.
|
SubstitutionFormatStringOrBuilder |
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>`.
|
DataSourceOrBuilder |
getBodyOrBuilder()
The new local reply body text if specified.
|
static ResponseMapper |
getDefaultInstance() |
ResponseMapper |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
AccessLogFilter |
getFilter()
Filter to determine if this mapper should apply.
|
AccessLogFilterOrBuilder |
getFilterOrBuilder()
Filter to determine if this mapper should apply.
|
HeaderValueOption |
getHeadersToAdd(int index)
HTTP headers to add to a local reply.
|
int |
getHeadersToAddCount()
HTTP headers to add to a local reply.
|
List<HeaderValueOption> |
getHeadersToAddList()
HTTP headers to add to a local reply.
|
HeaderValueOptionOrBuilder |
getHeadersToAddOrBuilder(int index)
HTTP headers to add to a local reply.
|
List<? extends HeaderValueOptionOrBuilder> |
getHeadersToAddOrBuilderList()
HTTP headers to add to a local reply.
|
com.google.protobuf.Parser<ResponseMapper> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UInt32Value |
getStatusCode()
The new response status code if specified.
|
com.google.protobuf.UInt32ValueOrBuilder |
getStatusCodeOrBuilder()
The new response status code if specified.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasBody()
The new local reply body text if specified.
|
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>`.
|
boolean |
hasFilter()
Filter to determine if this mapper should apply.
|
int |
hashCode() |
boolean |
hasStatusCode()
The new response status code if specified.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ResponseMapper.Builder |
newBuilder() |
static ResponseMapper.Builder |
newBuilder(ResponseMapper prototype) |
ResponseMapper.Builder |
newBuilderForType() |
protected ResponseMapper.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ResponseMapper |
parseDelimitedFrom(InputStream input) |
static ResponseMapper |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResponseMapper |
parseFrom(byte[] data) |
static ResponseMapper |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResponseMapper |
parseFrom(ByteBuffer data) |
static ResponseMapper |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResponseMapper |
parseFrom(com.google.protobuf.ByteString data) |
static ResponseMapper |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResponseMapper |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ResponseMapper |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResponseMapper |
parseFrom(InputStream input) |
static ResponseMapper |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ResponseMapper> |
parser() |
ResponseMapper.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int FILTER_FIELD_NUMBER
public static final int STATUS_CODE_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER
public static final int BODY_FORMAT_OVERRIDE_FIELD_NUMBER
public static final int HEADERS_TO_ADD_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasFilter()
Filter to determine if this mapper should apply.
.envoy.config.accesslog.v4alpha.AccessLogFilter filter = 1 [(.validate.rules) = { ... }hasFilter in interface ResponseMapperOrBuilderpublic AccessLogFilter getFilter()
Filter to determine if this mapper should apply.
.envoy.config.accesslog.v4alpha.AccessLogFilter filter = 1 [(.validate.rules) = { ... }getFilter in interface ResponseMapperOrBuilderpublic AccessLogFilterOrBuilder getFilterOrBuilder()
Filter to determine if this mapper should apply.
.envoy.config.accesslog.v4alpha.AccessLogFilter filter = 1 [(.validate.rules) = { ... }getFilterOrBuilder in interface ResponseMapperOrBuilderpublic boolean hasStatusCode()
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 2 [(.validate.rules) = { ... }hasStatusCode in interface ResponseMapperOrBuilderpublic com.google.protobuf.UInt32Value getStatusCode()
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 2 [(.validate.rules) = { ... }getStatusCode in interface ResponseMapperOrBuilderpublic com.google.protobuf.UInt32ValueOrBuilder getStatusCodeOrBuilder()
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 2 [(.validate.rules) = { ... }getStatusCodeOrBuilder in interface ResponseMapperOrBuilderpublic 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.v4alpha.DataSource body = 3;hasBody in interface ResponseMapperOrBuilderpublic DataSource 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.v4alpha.DataSource body = 3;getBody in interface ResponseMapperOrBuilderpublic DataSourceOrBuilder 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.v4alpha.DataSource body = 3;getBodyOrBuilder in interface ResponseMapperOrBuilderpublic 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.v4alpha.SubstitutionFormatString body_format_override = 4;hasBodyFormatOverride in interface ResponseMapperOrBuilderpublic SubstitutionFormatString 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.v4alpha.SubstitutionFormatString body_format_override = 4;getBodyFormatOverride in interface ResponseMapperOrBuilderpublic SubstitutionFormatStringOrBuilder 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.v4alpha.SubstitutionFormatString body_format_override = 4;getBodyFormatOverrideOrBuilder in interface ResponseMapperOrBuilderpublic List<HeaderValueOption> 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.v4alpha.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }getHeadersToAddList in interface ResponseMapperOrBuilderpublic List<? extends HeaderValueOptionOrBuilder> 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.v4alpha.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }getHeadersToAddOrBuilderList in interface ResponseMapperOrBuilderpublic 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.v4alpha.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }getHeadersToAddCount in interface ResponseMapperOrBuilderpublic HeaderValueOption getHeadersToAdd(int index)
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.v4alpha.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }getHeadersToAdd in interface ResponseMapperOrBuilderpublic HeaderValueOptionOrBuilder getHeadersToAddOrBuilder(int index)
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.v4alpha.HeaderValueOption headers_to_add = 5 [(.validate.rules) = { ... }getHeadersToAddOrBuilder in interface ResponseMapperOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ResponseMapper parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResponseMapper parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResponseMapper parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResponseMapper parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResponseMapper parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResponseMapper parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResponseMapper parseFrom(InputStream input) throws IOException
IOExceptionpublic static ResponseMapper parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResponseMapper parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ResponseMapper parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResponseMapper parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ResponseMapper parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ResponseMapper.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ResponseMapper.Builder newBuilder()
public static ResponseMapper.Builder newBuilder(ResponseMapper prototype)
public ResponseMapper.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ResponseMapper.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ResponseMapper getDefaultInstance()
public static com.google.protobuf.Parser<ResponseMapper> parser()
public com.google.protobuf.Parser<ResponseMapper> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ResponseMapper getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.