Interface HttpBodyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
HttpBody, HttpBody.Builder

public interface HttpBodyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.ByteString
    The contents of the body in the HTTP request/response.
    boolean
    If ``true``, this will be the last ``HttpBody`` message that will be sent and no trailers will be sent for the current request/response.
    boolean
    This field is used in ``GRPC`` body send mode when ``end_of_stream`` is true and ``body`` is empty.
    boolean
    This field is used in ``GRPC`` body send mode to indicate whether the message is compressed.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getBody

      com.google.protobuf.ByteString getBody()
       The contents of the body in the HTTP request/response. Note that in
       streaming mode multiple ``HttpBody`` messages may be sent.
      
       In ``GRPC`` body send mode, a separate ``HttpBody`` message will be
       sent for each message in the gRPC stream.
       
      bytes body = 1;
      Returns:
      The body.
    • getEndOfStream

      boolean getEndOfStream()
       If ``true``, this will be the last ``HttpBody`` message that will be sent and no
       trailers will be sent for the current request/response.
       
      bool end_of_stream = 2;
      Returns:
      The endOfStream.
    • getEndOfStreamWithoutMessage

      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;
      Returns:
      The endOfStreamWithoutMessage.
    • getGrpcMessageCompressed

      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;
      Returns:
      The grpcMessageCompressed.