Class CommonResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CommonResponse.Builder>
io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CommonResponseOrBuilder,Cloneable
- Enclosing class:
- CommonResponse
public static final class CommonResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CommonResponse.Builder>
implements CommonResponseOrBuilder
This message contains common fields between header and body responses. [#next-free-field: 6]Protobuf type
envoy.service.ext_proc.v3.CommonResponse-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Replace the body of the last message sent to the remote server on this stream.Clear the route cache for the current client request.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Instructions on how to manipulate the headers.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If set, provide additional direction on how the data plane should handle the rest of the HTTP filter chain.[#not-implemented-hide:] Add new trailers to the message.clone()Replace the body of the last message sent to the remote server on this stream.Replace the body of the last message sent to the remote server on this stream.Replace the body of the last message sent to the remote server on this stream.booleanClear the route cache for the current client request.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorInstructions on how to manipulate the headers.Instructions on how to manipulate the headers.Instructions on how to manipulate the headers.If set, provide additional direction on how the data plane should handle the rest of the HTTP filter chain.intIf set, provide additional direction on how the data plane should handle the rest of the HTTP filter chain.[#not-implemented-hide:] Add new trailers to the message.[#not-implemented-hide:] Add new trailers to the message.[#not-implemented-hide:] Add new trailers to the message.booleanReplace the body of the last message sent to the remote server on this stream.booleanInstructions on how to manipulate the headers.boolean[#not-implemented-hide:] Add new trailers to the message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeBodyMutation(BodyMutation value) Replace the body of the last message sent to the remote server on this stream.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(CommonResponse other) Instructions on how to manipulate the headers.mergeTrailers(HeaderMap value) [#not-implemented-hide:] Add new trailers to the message.final CommonResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBodyMutation(BodyMutation value) Replace the body of the last message sent to the remote server on this stream.setBodyMutation(BodyMutation.Builder builderForValue) Replace the body of the last message sent to the remote server on this stream.setClearRouteCache(boolean value) Clear the route cache for the current client request.setHeaderMutation(HeaderMutation value) Instructions on how to manipulate the headers.setHeaderMutation(HeaderMutation.Builder builderForValue) Instructions on how to manipulate the headers.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) If set, provide additional direction on how the data plane should handle the rest of the HTTP filter chain.setStatusValue(int value) If set, provide additional direction on how the data plane should handle the rest of the HTTP filter chain.setTrailers(HeaderMap value) [#not-implemented-hide:] Add new trailers to the message.setTrailers(HeaderMap.Builder builderForValue) [#not-implemented-hide:] Add new trailers to the message.final CommonResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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 java.lang.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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CommonResponse.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<CommonResponse.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<CommonResponse.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CommonResponse.Builder>
-
setField
public CommonResponse.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<CommonResponse.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonResponse.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonResponse.Builder>
-
setRepeatedField
public CommonResponse.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<CommonResponse.Builder>
-
addRepeatedField
public CommonResponse.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<CommonResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommonResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonResponse.Builder>
-
mergeFrom
public CommonResponse.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<CommonResponse.Builder>- Throws:
IOException
-
getStatusValue
public int getStatusValue()If set, provide additional direction on how the data plane 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.
-
setStatusValue
If set, provide additional direction on how the data plane should handle the rest of the HTTP filter chain.
.envoy.service.ext_proc.v3.CommonResponse.ResponseStatus status = 1 [(.validate.rules) = { ... }- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
If set, provide additional direction on how the data plane 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.
-
setStatus
If set, provide additional direction on how the data plane should handle the rest of the HTTP filter chain.
.envoy.service.ext_proc.v3.CommonResponse.ResponseStatus status = 1 [(.validate.rules) = { ... }- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
If set, provide additional direction on how the data plane should handle the rest of the HTTP filter chain.
.envoy.service.ext_proc.v3.CommonResponse.ResponseStatus status = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
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
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.
-
setHeaderMutation
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; -
setHeaderMutation
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; -
mergeHeaderMutation
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; -
clearHeaderMutation
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; -
getHeaderMutationBuilder
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; -
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 may take effect in response either to ``header`` or ``body`` messages. When it is in response to ``header`` messages, it only take effect if the :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>` is set to CONTINUE_AND_REPLACE.
.envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;- Specified by:
hasBodyMutationin interfaceCommonResponseOrBuilder- Returns:
- Whether the bodyMutation field is set.
-
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 may take effect in response either to ``header`` or ``body`` messages. When it is in response to ``header`` messages, it only take effect if the :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>` is set to CONTINUE_AND_REPLACE.
.envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;- Specified by:
getBodyMutationin interfaceCommonResponseOrBuilder- Returns:
- The bodyMutation.
-
setBodyMutation
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 may take effect in response either to ``header`` or ``body`` messages. When it is in response to ``header`` messages, it only take effect if the :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>` is set to CONTINUE_AND_REPLACE.
.envoy.service.ext_proc.v3.BodyMutation body_mutation = 3; -
setBodyMutation
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 may take effect in response either to ``header`` or ``body`` messages. When it is in response to ``header`` messages, it only take effect if the :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>` is set to CONTINUE_AND_REPLACE.
.envoy.service.ext_proc.v3.BodyMutation body_mutation = 3; -
mergeBodyMutation
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 may take effect in response either to ``header`` or ``body`` messages. When it is in response to ``header`` messages, it only take effect if the :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>` is set to CONTINUE_AND_REPLACE.
.envoy.service.ext_proc.v3.BodyMutation body_mutation = 3; -
clearBodyMutation
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 may take effect in response either to ``header`` or ``body`` messages. When it is in response to ``header`` messages, it only take effect if the :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>` is set to CONTINUE_AND_REPLACE.
.envoy.service.ext_proc.v3.BodyMutation body_mutation = 3; -
getBodyMutationBuilder
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 may take effect in response either to ``header`` or ``body`` messages. When it is in response to ``header`` messages, it only take effect if the :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>` is set to CONTINUE_AND_REPLACE.
.envoy.service.ext_proc.v3.BodyMutation body_mutation = 3; -
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 may take effect in response either to ``header`` or ``body`` messages. When it is in response to ``header`` messages, it only take effect if the :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>` is set to CONTINUE_AND_REPLACE.
.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. The header value is encoded in the :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
.envoy.config.core.v3.HeaderMap trailers = 4;- Specified by:
hasTrailersin interfaceCommonResponseOrBuilder- Returns:
- Whether the trailers field is set.
-
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. The header value is encoded in the :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
.envoy.config.core.v3.HeaderMap trailers = 4;- Specified by:
getTrailersin interfaceCommonResponseOrBuilder- Returns:
- The trailers.
-
setTrailers
[#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. The header value is encoded in the :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
.envoy.config.core.v3.HeaderMap trailers = 4; -
setTrailers
[#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. The header value is encoded in the :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
.envoy.config.core.v3.HeaderMap trailers = 4; -
mergeTrailers
[#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. The header value is encoded in the :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
.envoy.config.core.v3.HeaderMap trailers = 4; -
clearTrailers
[#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. The header value is encoded in the :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
.envoy.config.core.v3.HeaderMap trailers = 4; -
getTrailersBuilder
[#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. The header value is encoded in the :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
.envoy.config.core.v3.HeaderMap trailers = 4; -
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. The header value is encoded in the :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
.envoy.config.core.v3.HeaderMap trailers = 4;- Specified by:
getTrailersOrBuilderin interfaceCommonResponseOrBuilder
-
getClearRouteCache
public boolean getClearRouteCache()Clear the route cache for the current client request. This is necessary if the remote server modified headers that are used to calculate the route. This field is ignored in the response direction. This field is also ignored if the data plane ext_proc filter is in the upstream filter chain.
bool clear_route_cache = 5;- Specified by:
getClearRouteCachein interfaceCommonResponseOrBuilder- Returns:
- The clearRouteCache.
-
setClearRouteCache
Clear the route cache for the current client request. This is necessary if the remote server modified headers that are used to calculate the route. This field is ignored in the response direction. This field is also ignored if the data plane ext_proc filter is in the upstream filter chain.
bool clear_route_cache = 5;- Parameters:
value- The clearRouteCache to set.- Returns:
- This builder for chaining.
-
clearClearRouteCache
Clear the route cache for the current client request. This is necessary if the remote server modified headers that are used to calculate the route. This field is ignored in the response direction. This field is also ignored if the data plane ext_proc filter is in the upstream filter chain.
bool clear_route_cache = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final CommonResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonResponse.Builder>
-
mergeUnknownFields
public final CommonResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonResponse.Builder>
-