Class StreamedBodyResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
io.envoyproxy.envoy.service.ext_proc.v3.StreamedBodyResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,StreamedBodyResponseOrBuilder,Cloneable
- Enclosing class:
- StreamedBodyResponse
public static final class StreamedBodyResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
implements StreamedBodyResponseOrBuilder
The body response message corresponding to ``FULL_DUPLEX_STREAMED`` or ``GRPC`` body modes.Protobuf type
envoy.service.ext_proc.v3.StreamedBodyResponse-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()In ``FULL_DUPLEX_STREAMED`` body send mode, contains the body response chunk that will be passed to the upstream/downstream by the data plane.The server sets this flag to true if it has received a body request with :ref:`end_of_stream <envoy_v3_api_field_service.ext_proc.v3.HttpBody.end_of_stream>` set to true, and this is the last chunk of body responses.This field is used in ``GRPC`` body send mode when ``end_of_stream`` is true and ``body`` is empty.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) This field is used in ``GRPC`` body send mode to indicate whether the message is compressed.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()com.google.protobuf.ByteStringgetBody()In ``FULL_DUPLEX_STREAMED`` body send mode, contains the body response chunk that will be passed to the upstream/downstream by the data plane.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanThe server sets this flag to true if it has received a body request with :ref:`end_of_stream <envoy_v3_api_field_service.ext_proc.v3.HttpBody.end_of_stream>` set to true, and this is the last chunk of body responses.booleanThis field is used in ``GRPC`` body send mode when ``end_of_stream`` is true and ``body`` is empty.booleanThis field is used in ``GRPC`` body send mode to indicate whether the message is compressed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(StreamedBodyResponse other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBody(com.google.protobuf.ByteString value) In ``FULL_DUPLEX_STREAMED`` body send mode, contains the body response chunk that will be passed to the upstream/downstream by the data plane.setEndOfStream(boolean value) The server sets this flag to true if it has received a body request with :ref:`end_of_stream <envoy_v3_api_field_service.ext_proc.v3.HttpBody.end_of_stream>` set to true, and this is the last chunk of body responses.setEndOfStreamWithoutMessage(boolean value) This field is used in ``GRPC`` body send mode when ``end_of_stream`` is true and ``body`` is empty.setGrpcMessageCompressed(boolean value) This field is used in ``GRPC`` body send mode to indicate whether the message is compressed.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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<StreamedBodyResponse.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<StreamedBodyResponse.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<StreamedBodyResponse.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<StreamedBodyResponse.Builder>
-
setField
public StreamedBodyResponse.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<StreamedBodyResponse.Builder>
-
clearField
public StreamedBodyResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
-
clearOneof
public StreamedBodyResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
-
setRepeatedField
public StreamedBodyResponse.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<StreamedBodyResponse.Builder>
-
addRepeatedField
public StreamedBodyResponse.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<StreamedBodyResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamedBodyResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
-
mergeFrom
public StreamedBodyResponse.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<StreamedBodyResponse.Builder>- Throws:
IOException
-
getBody
public com.google.protobuf.ByteString getBody()In ``FULL_DUPLEX_STREAMED`` body send mode, contains the body response chunk that will be passed to the upstream/downstream by the data plane. In ``GRPC`` body send mode, contains a serialized gRPC message to be passed to the upstream/downstream by the data plane.
bytes body = 1;- Specified by:
getBodyin interfaceStreamedBodyResponseOrBuilder- Returns:
- The body.
-
setBody
In ``FULL_DUPLEX_STREAMED`` body send mode, contains the body response chunk that will be passed to the upstream/downstream by the data plane. In ``GRPC`` body send mode, contains a serialized gRPC message to be passed to the upstream/downstream by the data plane.
bytes body = 1;- Parameters:
value- The body to set.- Returns:
- This builder for chaining.
-
clearBody
In ``FULL_DUPLEX_STREAMED`` body send mode, contains the body response chunk that will be passed to the upstream/downstream by the data plane. In ``GRPC`` body send mode, contains a serialized gRPC message to be passed to the upstream/downstream by the data plane.
bytes body = 1;- Returns:
- This builder for chaining.
-
getEndOfStream
public boolean getEndOfStream()The server sets this flag to true if it has received a body request with :ref:`end_of_stream <envoy_v3_api_field_service.ext_proc.v3.HttpBody.end_of_stream>` set to true, and this is the last chunk of body responses. Note that in ``GRPC`` body send mode, this allows the ext_proc server to tell the data plane to send a half close after a client message, which will result in discarding any other messages sent by the client application.
bool end_of_stream = 2;- Specified by:
getEndOfStreamin interfaceStreamedBodyResponseOrBuilder- Returns:
- The endOfStream.
-
setEndOfStream
The server sets this flag to true if it has received a body request with :ref:`end_of_stream <envoy_v3_api_field_service.ext_proc.v3.HttpBody.end_of_stream>` set to true, and this is the last chunk of body responses. Note that in ``GRPC`` body send mode, this allows the ext_proc server to tell the data plane to send a half close after a client message, which will result in discarding any other messages sent by the client application.
bool end_of_stream = 2;- Parameters:
value- The endOfStream to set.- Returns:
- This builder for chaining.
-
clearEndOfStream
The server sets this flag to true if it has received a body request with :ref:`end_of_stream <envoy_v3_api_field_service.ext_proc.v3.HttpBody.end_of_stream>` set to true, and this is the last chunk of body responses. Note that in ``GRPC`` body send mode, this allows the ext_proc server to tell the data plane to send a half close after a client message, which will result in discarding any other messages sent by the client application.
bool end_of_stream = 2;- Returns:
- This builder for chaining.
-
getEndOfStreamWithoutMessage
public boolean getEndOfStreamWithoutMessage()This field is used in ``GRPC`` body send mode when ``end_of_stream`` is true and ``body`` is empty. Those values would normally indicate an empty message on the stream with the end-of-stream bit set. However, if the half-close happens after the last message on the stream was already sent, then this field will be true to indicate an end-of-stream with *no* message (as opposed to an empty message).
bool end_of_stream_without_message = 3;- Specified by:
getEndOfStreamWithoutMessagein interfaceStreamedBodyResponseOrBuilder- Returns:
- The endOfStreamWithoutMessage.
-
setEndOfStreamWithoutMessage
This field is used in ``GRPC`` body send mode when ``end_of_stream`` is true and ``body`` is empty. Those values would normally indicate an empty message on the stream with the end-of-stream bit set. However, if the half-close happens after the last message on the stream was already sent, then this field will be true to indicate an end-of-stream with *no* message (as opposed to an empty message).
bool end_of_stream_without_message = 3;- Parameters:
value- The endOfStreamWithoutMessage to set.- Returns:
- This builder for chaining.
-
clearEndOfStreamWithoutMessage
This field is used in ``GRPC`` body send mode when ``end_of_stream`` is true and ``body`` is empty. Those values would normally indicate an empty message on the stream with the end-of-stream bit set. However, if the half-close happens after the last message on the stream was already sent, then this field will be true to indicate an end-of-stream with *no* message (as opposed to an empty message).
bool end_of_stream_without_message = 3;- Returns:
- This builder for chaining.
-
getGrpcMessageCompressed
public boolean getGrpcMessageCompressed()This field is used in ``GRPC`` body send mode to indicate whether the message is compressed. This will never be set to true by gRPC but may be set to true by a proxy like Envoy.
bool grpc_message_compressed = 4;- Specified by:
getGrpcMessageCompressedin interfaceStreamedBodyResponseOrBuilder- Returns:
- The grpcMessageCompressed.
-
setGrpcMessageCompressed
This field is used in ``GRPC`` body send mode to indicate whether the message is compressed. This will never be set to true by gRPC but may be set to true by a proxy like Envoy.
bool grpc_message_compressed = 4;- Parameters:
value- The grpcMessageCompressed to set.- Returns:
- This builder for chaining.
-
clearGrpcMessageCompressed
This field is used in ``GRPC`` body send mode to indicate whether the message is compressed. This will never be set to true by gRPC but may be set to true by a proxy like Envoy.
bool grpc_message_compressed = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final StreamedBodyResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
-
mergeUnknownFields
public final StreamedBodyResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
-