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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
    • getDefaultInstanceForType

      public StreamedBodyResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public StreamedBodyResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public StreamedBodyResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
    • setField

      public StreamedBodyResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
    • clearField

      public StreamedBodyResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
    • clearOneof

      public StreamedBodyResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
    • setRepeatedField

      public StreamedBodyResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
    • addRepeatedField

      public StreamedBodyResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
    • mergeFrom

      public StreamedBodyResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamedBodyResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getBody in interface StreamedBodyResponseOrBuilder
      Returns:
      The body.
    • setBody

      public StreamedBodyResponse.Builder 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. 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

      public StreamedBodyResponse.Builder 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:
      getEndOfStream in interface StreamedBodyResponseOrBuilder
      Returns:
      The endOfStream.
    • setEndOfStream

      public StreamedBodyResponse.Builder 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.
       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

      public StreamedBodyResponse.Builder 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:
      getEndOfStreamWithoutMessage in interface StreamedBodyResponseOrBuilder
      Returns:
      The endOfStreamWithoutMessage.
    • setEndOfStreamWithoutMessage

      public StreamedBodyResponse.Builder setEndOfStreamWithoutMessage(boolean value)
       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

      public StreamedBodyResponse.Builder 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:
      getGrpcMessageCompressed in interface StreamedBodyResponseOrBuilder
      Returns:
      The grpcMessageCompressed.
    • setGrpcMessageCompressed

      public StreamedBodyResponse.Builder setGrpcMessageCompressed(boolean value)
       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

      public StreamedBodyResponse.Builder 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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>
    • mergeUnknownFields

      public final StreamedBodyResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamedBodyResponse.Builder>