Class CommonResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typeenvoy.service.ext_proc.v3.CommonResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommonResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CommonResponsebuild()CommonResponsebuildPartial()CommonResponse.Builderclear()CommonResponse.BuilderclearBodyMutation()Replace the body of the last message sent to the remote server on this stream.CommonResponse.BuilderclearClearRouteCache()Clear the route cache for the current request.CommonResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CommonResponse.BuilderclearHeaderMutation()Instructions on how to manipulate the headers.CommonResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CommonResponse.BuilderclearStatus()If set, provide additional direction on how the Envoy proxy should handle the rest of the HTTP filter chain.CommonResponse.BuilderclearTrailers()[#not-implemented-hide:] Add new trailers to the message.CommonResponse.Builderclone()BodyMutationgetBodyMutation()Replace the body of the last message sent to the remote server on this stream.BodyMutation.BuildergetBodyMutationBuilder()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.CommonResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()HeaderMutationgetHeaderMutation()Instructions on how to manipulate the headers.HeaderMutation.BuildergetHeaderMutationBuilder()Instructions on how to manipulate the headers.HeaderMutationOrBuildergetHeaderMutationOrBuilder()Instructions on how to manipulate the headers.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.HeaderMap.BuildergetTrailersBuilder()[#not-implemented-hide:] Add new trailers to the message.HeaderMapOrBuildergetTrailersOrBuilder()[#not-implemented-hide:] Add new trailers to the message.booleanhasBodyMutation()Replace the body of the last message sent to the remote server on this stream.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()CommonResponse.BuildermergeBodyMutation(BodyMutation value)Replace the body of the last message sent to the remote server on this stream.CommonResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CommonResponse.BuildermergeFrom(com.google.protobuf.Message other)CommonResponse.BuildermergeFrom(CommonResponse other)CommonResponse.BuildermergeHeaderMutation(HeaderMutation value)Instructions on how to manipulate the headers.CommonResponse.BuildermergeTrailers(HeaderMap value)[#not-implemented-hide:] Add new trailers to the message.CommonResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CommonResponse.BuildersetBodyMutation(BodyMutation value)Replace the body of the last message sent to the remote server on this stream.CommonResponse.BuildersetBodyMutation(BodyMutation.Builder builderForValue)Replace the body of the last message sent to the remote server on this stream.CommonResponse.BuildersetClearRouteCache(boolean value)Clear the route cache for the current request.CommonResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CommonResponse.BuildersetHeaderMutation(HeaderMutation value)Instructions on how to manipulate the headers.CommonResponse.BuildersetHeaderMutation(HeaderMutation.Builder builderForValue)Instructions on how to manipulate the headers.CommonResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CommonResponse.BuildersetStatus(CommonResponse.ResponseStatus value)If set, provide additional direction on how the Envoy proxy should handle the rest of the HTTP filter chain.CommonResponse.BuildersetStatusValue(int value)If set, provide additional direction on how the Envoy proxy should handle the rest of the HTTP filter chain.CommonResponse.BuildersetTrailers(HeaderMap value)[#not-implemented-hide:] Add new trailers to the message.CommonResponse.BuildersetTrailers(HeaderMap.Builder builderForValue)[#not-implemented-hide:] Add new trailers to the message.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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public CommonResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommonResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommonResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CommonResponse.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
public CommonResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonResponse.Builder>
-
clearOneof
public CommonResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public CommonResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommonResponse.Builder>
-
mergeFrom
public CommonResponse.Builder mergeFrom(CommonResponse other)
-
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 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.
-
setStatusValue
public CommonResponse.Builder setStatusValue(int value)
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) = { ... }- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
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.
-
setStatus
public CommonResponse.Builder setStatus(CommonResponse.ResponseStatus value)
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) = { ... }- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public CommonResponse.Builder clearStatus()
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) = { ... }- 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
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.
-
setHeaderMutation
public CommonResponse.Builder setHeaderMutation(HeaderMutation value)
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
public CommonResponse.Builder setHeaderMutation(HeaderMutation.Builder builderForValue)
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
public CommonResponse.Builder mergeHeaderMutation(HeaderMutation value)
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
public CommonResponse.Builder 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
public HeaderMutation.Builder 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
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.
-
setBodyMutation
public CommonResponse.Builder setBodyMutation(BodyMutation value)
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;
-
setBodyMutation
public CommonResponse.Builder setBodyMutation(BodyMutation.Builder builderForValue)
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;
-
mergeBodyMutation
public CommonResponse.Builder mergeBodyMutation(BodyMutation value)
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;
-
clearBodyMutation
public CommonResponse.Builder 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 only take effect in response to ``body`` messages and are ignored otherwise.
.envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;
-
getBodyMutationBuilder
public BodyMutation.Builder 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 only take effect in response to ``body`` messages and are ignored otherwise.
.envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;
-
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.
-
setTrailers
public CommonResponse.Builder setTrailers(HeaderMap value)
[#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;
-
setTrailers
public CommonResponse.Builder setTrailers(HeaderMap.Builder builderForValue)
[#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;
-
mergeTrailers
public CommonResponse.Builder mergeTrailers(HeaderMap value)
[#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;
-
clearTrailers
public CommonResponse.Builder 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.
.envoy.config.core.v3.HeaderMap trailers = 4;
-
getTrailersBuilder
public HeaderMap.Builder 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.
.envoy.config.core.v3.HeaderMap trailers = 4;
-
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.
-
setClearRouteCache
public CommonResponse.Builder setClearRouteCache(boolean value)
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;- Parameters:
value- The clearRouteCache to set.- Returns:
- This builder for chaining.
-
clearClearRouteCache
public CommonResponse.Builder clearClearRouteCache()
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;- 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>
-
-