Class CommonResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CommonResponseOrBuilder,Serializable
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 typeenvoy.service.ext_proc.v3.CommonResponse- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommonResponse.BuilderThis message contains common fields between header and body responses.static classCommonResponse.ResponseStatusProtobuf enumenvoy.service.ext_proc.v3.CommonResponse.ResponseStatus-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intBODY_MUTATION_FIELD_NUMBERstatic intCLEAR_ROUTE_CACHE_FIELD_NUMBERstatic intHEADER_MUTATION_FIELD_NUMBERstatic intSTATUS_FIELD_NUMBERstatic intTRAILERS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)BodyMutationgetBodyMutation()Replace the body of the last message sent to the remote server on this stream.BodyMutationOrBuildergetBodyMutationOrBuilder()Replace the body of the last message sent to the remote server on this stream.booleangetClearRouteCache()Clear the route cache for the current request.static CommonResponsegetDefaultInstance()CommonResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()HeaderMutationgetHeaderMutation()Instructions on how to manipulate the headers.HeaderMutationOrBuildergetHeaderMutationOrBuilder()Instructions on how to manipulate the headers.com.google.protobuf.Parser<CommonResponse>getParserForType()intgetSerializedSize()CommonResponse.ResponseStatusgetStatus()If set, provide additional direction on how the Envoy proxy should handle the rest of the HTTP filter chain.intgetStatusValue()If set, provide additional direction on how the Envoy proxy should handle the rest of the HTTP filter chain.HeaderMapgetTrailers()[#not-implemented-hide:] Add new trailers to the message.HeaderMapOrBuildergetTrailersOrBuilder()[#not-implemented-hide:] Add new trailers to the message.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasBodyMutation()Replace the body of the last message sent to the remote server on this stream.inthashCode()booleanhasHeaderMutation()Instructions on how to manipulate the headers.booleanhasTrailers()[#not-implemented-hide:] Add new trailers to the message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static CommonResponse.BuildernewBuilder()static CommonResponse.BuildernewBuilder(CommonResponse prototype)CommonResponse.BuildernewBuilderForType()protected CommonResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static CommonResponseparseDelimitedFrom(InputStream input)static CommonResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommonResponseparseFrom(byte[] data)static CommonResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommonResponseparseFrom(com.google.protobuf.ByteString data)static CommonResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommonResponseparseFrom(com.google.protobuf.CodedInputStream input)static CommonResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommonResponseparseFrom(InputStream input)static CommonResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommonResponseparseFrom(ByteBuffer data)static CommonResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<CommonResponse>parser()CommonResponse.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEADER_MUTATION_FIELD_NUMBER
public static final int HEADER_MUTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BODY_MUTATION_FIELD_NUMBER
public static final int BODY_MUTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRAILERS_FIELD_NUMBER
public static final int TRAILERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLEAR_ROUTE_CACHE_FIELD_NUMBER
public static final int CLEAR_ROUTE_CACHE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
getStatusValue
public 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.v3.CommonResponse.ResponseStatus status = 1 [(.validate.rules) = { ... }- Specified by:
getStatusValuein interfaceCommonResponseOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
getStatus
public 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.v3.CommonResponse.ResponseStatus status = 1 [(.validate.rules) = { ... }- Specified by:
getStatusin interfaceCommonResponseOrBuilder- Returns:
- The status.
-
hasHeaderMutation
public boolean hasHeaderMutation()
Instructions on how to manipulate the headers. When responding to an HttpBody request, header mutations will only take effect if the current processing mode for the body is BUFFERED.
.envoy.service.ext_proc.v3.HeaderMutation header_mutation = 2;- Specified by:
hasHeaderMutationin interfaceCommonResponseOrBuilder- Returns:
- Whether the headerMutation field is set.
-
getHeaderMutation
public HeaderMutation getHeaderMutation()
Instructions on how to manipulate the headers. When responding to an HttpBody request, header mutations will only take effect if the current processing mode for the body is BUFFERED.
.envoy.service.ext_proc.v3.HeaderMutation header_mutation = 2;- Specified by:
getHeaderMutationin interfaceCommonResponseOrBuilder- Returns:
- The headerMutation.
-
getHeaderMutationOrBuilder
public HeaderMutationOrBuilder getHeaderMutationOrBuilder()
Instructions on how to manipulate the headers. When responding to an HttpBody request, header mutations will only take effect if the current processing mode for the body is BUFFERED.
.envoy.service.ext_proc.v3.HeaderMutation header_mutation = 2;- Specified by:
getHeaderMutationOrBuilderin interfaceCommonResponseOrBuilder
-
hasBodyMutation
public 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. Body mutations only take effect in response to ``body`` messages and are ignored otherwise.
.envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;- Specified by:
hasBodyMutationin interfaceCommonResponseOrBuilder- Returns:
- Whether the bodyMutation field is set.
-
getBodyMutation
public 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. Body mutations only take effect in response to ``body`` messages and are ignored otherwise.
.envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;- Specified by:
getBodyMutationin interfaceCommonResponseOrBuilder- Returns:
- The bodyMutation.
-
getBodyMutationOrBuilder
public 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. Body mutations only take effect in response to ``body`` messages and are ignored otherwise.
.envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;- Specified by:
getBodyMutationOrBuilderin interfaceCommonResponseOrBuilder
-
hasTrailers
public boolean hasTrailers()
[#not-implemented-hide:] 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;- Specified by:
hasTrailersin interfaceCommonResponseOrBuilder- Returns:
- Whether the trailers field is set.
-
getTrailers
public HeaderMap getTrailers()
[#not-implemented-hide:] 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;- Specified by:
getTrailersin interfaceCommonResponseOrBuilder- Returns:
- The trailers.
-
getTrailersOrBuilder
public HeaderMapOrBuilder getTrailersOrBuilder()
[#not-implemented-hide:] 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;- Specified by:
getTrailersOrBuilderin interfaceCommonResponseOrBuilder
-
getClearRouteCache
public 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;- Specified by:
getClearRouteCachein interfaceCommonResponseOrBuilder- Returns:
- The clearRouteCache.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CommonResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommonResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommonResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommonResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommonResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommonResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommonResponse parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CommonResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CommonResponse parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CommonResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static CommonResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CommonResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public CommonResponse.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CommonResponse.Builder newBuilder()
-
newBuilder
public static CommonResponse.Builder newBuilder(CommonResponse prototype)
-
toBuilder
public CommonResponse.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CommonResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static CommonResponse getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CommonResponse> parser()
-
getParserForType
public com.google.protobuf.Parser<CommonResponse> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CommonResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-