Class ImmediateResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ImmediateResponse.Builder>
io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ImmediateResponseOrBuilder,Cloneable
- Enclosing class:
- ImmediateResponse
public static final class ImmediateResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ImmediateResponse.Builder>
implements ImmediateResponseOrBuilder
This message causes the filter to attempt to create a locally generated response, send it downstream, stop processing additional filters, and ignore any additional messages received from the remote server for this request or response. If a response has already started, then this will either ship the reply directly to the downstream codec, or reset the stream. [#next-free-field: 6]Protobuf type
envoy.service.ext_proc.v3.ImmediateResponse-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The message body to return with the response which is sent using the text/plain content type, or encoded in the grpc-message header.A string detailing why this local reply was sent, which may be included in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS% command operator field for use in access logging).clearField(com.google.protobuf.Descriptors.FieldDescriptor field) If set, then include a gRPC status trailer.Apply changes to the default headers, which will include content-type.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The response code to return.clone()com.google.protobuf.ByteStringgetBody()The message body to return with the response which is sent using the text/plain content type, or encoded in the grpc-message header.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA string detailing why this local reply was sent, which may be included in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS% command operator field for use in access logging).com.google.protobuf.ByteStringA string detailing why this local reply was sent, which may be included in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS% command operator field for use in access logging).If set, then include a gRPC status trailer.If set, then include a gRPC status trailer.If set, then include a gRPC status trailer.Apply changes to the default headers, which will include content-type.Apply changes to the default headers, which will include content-type.Apply changes to the default headers, which will include content-type.The response code to return.The response code to return.The response code to return.booleanIf set, then include a gRPC status trailer.booleanApply changes to the default headers, which will include content-type.booleanThe response code to return.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ImmediateResponse other) mergeGrpcStatus(GrpcStatus value) If set, then include a gRPC status trailer.mergeHeaders(HeaderMutation value) Apply changes to the default headers, which will include content-type.mergeStatus(HttpStatus value) The response code to return.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBody(com.google.protobuf.ByteString value) The message body to return with the response which is sent using the text/plain content type, or encoded in the grpc-message header.setDetails(String value) A string detailing why this local reply was sent, which may be included in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS% command operator field for use in access logging).setDetailsBytes(com.google.protobuf.ByteString value) A string detailing why this local reply was sent, which may be included in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS% command operator field for use in access logging).setGrpcStatus(GrpcStatus value) If set, then include a gRPC status trailer.setGrpcStatus(GrpcStatus.Builder builderForValue) If set, then include a gRPC status trailer.setHeaders(HeaderMutation value) Apply changes to the default headers, which will include content-type.setHeaders(HeaderMutation.Builder builderForValue) Apply changes to the default headers, which will include content-type.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStatus(HttpStatus value) The response code to return.setStatus(HttpStatus.Builder builderForValue) The response code to return.setUnknownFields(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<ImmediateResponse.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<ImmediateResponse.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<ImmediateResponse.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<ImmediateResponse.Builder>
-
setField
public ImmediateResponse.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<ImmediateResponse.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImmediateResponse.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ImmediateResponse.Builder>
-
setRepeatedField
public ImmediateResponse.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<ImmediateResponse.Builder>
-
addRepeatedField
public ImmediateResponse.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<ImmediateResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImmediateResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ImmediateResponse.Builder>
-
mergeFrom
public ImmediateResponse.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<ImmediateResponse.Builder>- Throws:
IOException
-
hasStatus
public boolean hasStatus()The response code to return.
.envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... }- Specified by:
hasStatusin interfaceImmediateResponseOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
The response code to return.
.envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... }- Specified by:
getStatusin interfaceImmediateResponseOrBuilder- Returns:
- The status.
-
setStatus
The response code to return.
.envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } -
setStatus
The response code to return.
.envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } -
mergeStatus
The response code to return.
.envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } -
clearStatus
The response code to return.
.envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } -
getStatusBuilder
The response code to return.
.envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } -
getStatusOrBuilder
The response code to return.
.envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... }- Specified by:
getStatusOrBuilderin interfaceImmediateResponseOrBuilder
-
hasHeaders
public boolean hasHeaders()Apply changes to the default headers, which will include content-type.
.envoy.service.ext_proc.v3.HeaderMutation headers = 2;- Specified by:
hasHeadersin interfaceImmediateResponseOrBuilder- Returns:
- Whether the headers field is set.
-
getHeaders
Apply changes to the default headers, which will include content-type.
.envoy.service.ext_proc.v3.HeaderMutation headers = 2;- Specified by:
getHeadersin interfaceImmediateResponseOrBuilder- Returns:
- The headers.
-
setHeaders
Apply changes to the default headers, which will include content-type.
.envoy.service.ext_proc.v3.HeaderMutation headers = 2; -
setHeaders
Apply changes to the default headers, which will include content-type.
.envoy.service.ext_proc.v3.HeaderMutation headers = 2; -
mergeHeaders
Apply changes to the default headers, which will include content-type.
.envoy.service.ext_proc.v3.HeaderMutation headers = 2; -
clearHeaders
Apply changes to the default headers, which will include content-type.
.envoy.service.ext_proc.v3.HeaderMutation headers = 2; -
getHeadersBuilder
Apply changes to the default headers, which will include content-type.
.envoy.service.ext_proc.v3.HeaderMutation headers = 2; -
getHeadersOrBuilder
Apply changes to the default headers, which will include content-type.
.envoy.service.ext_proc.v3.HeaderMutation headers = 2;- Specified by:
getHeadersOrBuilderin interfaceImmediateResponseOrBuilder
-
getBody
public com.google.protobuf.ByteString getBody()The message body to return with the response which is sent using the text/plain content type, or encoded in the grpc-message header.
bytes body = 3;- Specified by:
getBodyin interfaceImmediateResponseOrBuilder- Returns:
- The body.
-
setBody
The message body to return with the response which is sent using the text/plain content type, or encoded in the grpc-message header.
bytes body = 3;- Parameters:
value- The body to set.- Returns:
- This builder for chaining.
-
clearBody
The message body to return with the response which is sent using the text/plain content type, or encoded in the grpc-message header.
bytes body = 3;- Returns:
- This builder for chaining.
-
hasGrpcStatus
public boolean hasGrpcStatus()If set, then include a gRPC status trailer.
.envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4;- Specified by:
hasGrpcStatusin interfaceImmediateResponseOrBuilder- Returns:
- Whether the grpcStatus field is set.
-
getGrpcStatus
If set, then include a gRPC status trailer.
.envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4;- Specified by:
getGrpcStatusin interfaceImmediateResponseOrBuilder- Returns:
- The grpcStatus.
-
setGrpcStatus
If set, then include a gRPC status trailer.
.envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; -
setGrpcStatus
If set, then include a gRPC status trailer.
.envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; -
mergeGrpcStatus
If set, then include a gRPC status trailer.
.envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; -
clearGrpcStatus
If set, then include a gRPC status trailer.
.envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; -
getGrpcStatusBuilder
If set, then include a gRPC status trailer.
.envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; -
getGrpcStatusOrBuilder
If set, then include a gRPC status trailer.
.envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4;- Specified by:
getGrpcStatusOrBuilderin interfaceImmediateResponseOrBuilder
-
getDetails
A string detailing why this local reply was sent, which may be included in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS% command operator field for use in access logging).
string details = 5;- Specified by:
getDetailsin interfaceImmediateResponseOrBuilder- Returns:
- The details.
-
getDetailsBytes
public com.google.protobuf.ByteString getDetailsBytes()A string detailing why this local reply was sent, which may be included in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS% command operator field for use in access logging).
string details = 5;- Specified by:
getDetailsBytesin interfaceImmediateResponseOrBuilder- Returns:
- The bytes for details.
-
setDetails
A string detailing why this local reply was sent, which may be included in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS% command operator field for use in access logging).
string details = 5;- Parameters:
value- The details to set.- Returns:
- This builder for chaining.
-
clearDetails
A string detailing why this local reply was sent, which may be included in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS% command operator field for use in access logging).
string details = 5;- Returns:
- This builder for chaining.
-
setDetailsBytes
A string detailing why this local reply was sent, which may be included in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS% command operator field for use in access logging).
string details = 5;- Parameters:
value- The bytes for details to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ImmediateResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ImmediateResponse.Builder>
-
mergeUnknownFields
public final ImmediateResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ImmediateResponse.Builder>
-