public final class CommonResponse extends com.google.protobuf.GeneratedMessageV3 implements CommonResponseOrBuilder
This message contains common fields between header and body responses. [#next-free-field: 6]Protobuf type
envoy.service.ext_proc.v3alpha.CommonResponse| Modifier and Type | Class and Description |
|---|---|
static class |
CommonResponse.Builder
This message contains common fields between header and body responses.
|
static class |
CommonResponse.ResponseStatus
Protobuf enum
envoy.service.ext_proc.v3alpha.CommonResponse.ResponseStatus |
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_MUTATION_FIELD_NUMBER |
static int |
CLEAR_ROUTE_CACHE_FIELD_NUMBER |
static int |
HEADER_MUTATION_FIELD_NUMBER |
static int |
STATUS_FIELD_NUMBER |
static int |
TRAILERS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
BodyMutation |
getBodyMutation()
Replace the body of the last message sent to the remote server on this
stream.
|
BodyMutationOrBuilder |
getBodyMutationOrBuilder()
Replace the body of the last message sent to the remote server on this
stream.
|
boolean |
getClearRouteCache()
Clear the route cache for the current request.
|
static CommonResponse |
getDefaultInstance() |
CommonResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
HeaderMutation |
getHeaderMutation()
Instructions on how to manipulate the headers.
|
HeaderMutationOrBuilder |
getHeaderMutationOrBuilder()
Instructions on how to manipulate the headers.
|
com.google.protobuf.Parser<CommonResponse> |
getParserForType() |
int |
getSerializedSize() |
CommonResponse.ResponseStatus |
getStatus()
If set, provide additional direction on how the Envoy proxy should
handle the rest of the HTTP filter chain.
|
int |
getStatusValue()
If set, provide additional direction on how the Envoy proxy should
handle the rest of the HTTP filter chain.
|
HeaderMap |
getTrailers()
Add new trailers to the message.
|
HeaderMapOrBuilder |
getTrailersOrBuilder()
Add new trailers to the message.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasBodyMutation()
Replace the body of the last message sent to the remote server on this
stream.
|
int |
hashCode() |
boolean |
hasHeaderMutation()
Instructions on how to manipulate the headers.
|
boolean |
hasTrailers()
Add new trailers to the message.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static CommonResponse.Builder |
newBuilder() |
static CommonResponse.Builder |
newBuilder(CommonResponse prototype) |
CommonResponse.Builder |
newBuilderForType() |
protected CommonResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CommonResponse |
parseDelimitedFrom(InputStream input) |
static CommonResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CommonResponse |
parseFrom(byte[] data) |
static CommonResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CommonResponse |
parseFrom(ByteBuffer data) |
static CommonResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CommonResponse |
parseFrom(com.google.protobuf.ByteString data) |
static CommonResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CommonResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CommonResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CommonResponse |
parseFrom(InputStream input) |
static CommonResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CommonResponse> |
parser() |
CommonResponse.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 STATUS_FIELD_NUMBER
public static final int HEADER_MUTATION_FIELD_NUMBER
public static final int BODY_MUTATION_FIELD_NUMBER
public static final int TRAILERS_FIELD_NUMBER
public static final int CLEAR_ROUTE_CACHE_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 int getStatusValue()
If set, provide additional direction on how the Envoy proxy should handle the rest of the HTTP filter chain.
.envoy.service.ext_proc.v3alpha.CommonResponse.ResponseStatus status = 1 [(.validate.rules) = { ... }getStatusValue in interface CommonResponseOrBuilderpublic CommonResponse.ResponseStatus getStatus()
If set, provide additional direction on how the Envoy proxy should handle the rest of the HTTP filter chain.
.envoy.service.ext_proc.v3alpha.CommonResponse.ResponseStatus status = 1 [(.validate.rules) = { ... }getStatus in interface CommonResponseOrBuilderpublic boolean hasHeaderMutation()
Instructions on how to manipulate the headers. When responding to an HttpBody request, header mutations will only take effect if the headers were not already sent further on the filter chain, which happens only if the current processing mode for the body is BUFFERED or BUFFERED_PARTIAL.
.envoy.service.ext_proc.v3alpha.HeaderMutation header_mutation = 2;hasHeaderMutation in interface CommonResponseOrBuilderpublic HeaderMutation getHeaderMutation()
Instructions on how to manipulate the headers. When responding to an HttpBody request, header mutations will only take effect if the headers were not already sent further on the filter chain, which happens only if the current processing mode for the body is BUFFERED or BUFFERED_PARTIAL.
.envoy.service.ext_proc.v3alpha.HeaderMutation header_mutation = 2;getHeaderMutation in interface CommonResponseOrBuilderpublic HeaderMutationOrBuilder getHeaderMutationOrBuilder()
Instructions on how to manipulate the headers. When responding to an HttpBody request, header mutations will only take effect if the headers were not already sent further on the filter chain, which happens only if the current processing mode for the body is BUFFERED or BUFFERED_PARTIAL.
.envoy.service.ext_proc.v3alpha.HeaderMutation header_mutation = 2;getHeaderMutationOrBuilder in interface CommonResponseOrBuilderpublic boolean hasBodyMutation()
Replace the body of the last message sent to the remote server on this stream. If responding to an HttpBody request, simply replace or clear the body chunk that was sent with that request. If responding to an HttpHeaders request, then a new body may be added to the request if this message is returned along with the CONTINUE_AND_REPLACE status.
.envoy.service.ext_proc.v3alpha.BodyMutation body_mutation = 3;hasBodyMutation in interface CommonResponseOrBuilderpublic BodyMutation getBodyMutation()
Replace the body of the last message sent to the remote server on this stream. If responding to an HttpBody request, simply replace or clear the body chunk that was sent with that request. If responding to an HttpHeaders request, then a new body may be added to the request if this message is returned along with the CONTINUE_AND_REPLACE status.
.envoy.service.ext_proc.v3alpha.BodyMutation body_mutation = 3;getBodyMutation in interface CommonResponseOrBuilderpublic BodyMutationOrBuilder getBodyMutationOrBuilder()
Replace the body of the last message sent to the remote server on this stream. If responding to an HttpBody request, simply replace or clear the body chunk that was sent with that request. If responding to an HttpHeaders request, then a new body may be added to the request if this message is returned along with the CONTINUE_AND_REPLACE status.
.envoy.service.ext_proc.v3alpha.BodyMutation body_mutation = 3;getBodyMutationOrBuilder in interface CommonResponseOrBuilderpublic boolean hasTrailers()
Add new trailers to the message. This may be used when responding to either a HttpHeaders or HttpBody message, but only if this message is returned along with the CONTINUE_AND_REPLACE status.
.envoy.config.core.v3.HeaderMap trailers = 4;hasTrailers in interface CommonResponseOrBuilderpublic HeaderMap getTrailers()
Add new trailers to the message. This may be used when responding to either a HttpHeaders or HttpBody message, but only if this message is returned along with the CONTINUE_AND_REPLACE status.
.envoy.config.core.v3.HeaderMap trailers = 4;getTrailers in interface CommonResponseOrBuilderpublic HeaderMapOrBuilder getTrailersOrBuilder()
Add new trailers to the message. This may be used when responding to either a HttpHeaders or HttpBody message, but only if this message is returned along with the CONTINUE_AND_REPLACE status.
.envoy.config.core.v3.HeaderMap trailers = 4;getTrailersOrBuilder in interface CommonResponseOrBuilderpublic boolean getClearRouteCache()
Clear the route cache for the current request. This is necessary if the remote server modified headers that are used to calculate the route.
bool clear_route_cache = 5;getClearRouteCache in interface CommonResponseOrBuilderpublic 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 CommonResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CommonResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CommonResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CommonResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CommonResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CommonResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CommonResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static CommonResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CommonResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CommonResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CommonResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CommonResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CommonResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CommonResponse.Builder newBuilder()
public static CommonResponse.Builder newBuilder(CommonResponse prototype)
public CommonResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CommonResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CommonResponse getDefaultInstance()
public static com.google.protobuf.Parser<CommonResponse> parser()
public com.google.protobuf.Parser<CommonResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CommonResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.