Class HttpBody.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder>
io.envoyproxy.envoy.service.ext_proc.v3.HttpBody.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HttpBodyOrBuilder, Cloneable
Enclosing class:
HttpBody

public static final class HttpBody.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder> implements HttpBodyOrBuilder
 This message is sent to the external server when the HTTP request and
 response bodies are received.
 
Protobuf type envoy.service.ext_proc.v3.HttpBody
  • Method Summary

    Modifier and Type
    Method
    Description
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    The contents of the body in the HTTP request/response.
    If ``true``, this will be the last ``HttpBody`` message that will be sent and no trailers will be sent for the current request/response.
    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)
     
     
    com.google.protobuf.ByteString
    The contents of the body in the HTTP request/response.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    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.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    setBody(com.google.protobuf.ByteString value)
    The contents of the body in the HTTP request/response.
    setEndOfStream(boolean value)
    If ``true``, this will be the last ``HttpBody`` message that will be sent and no trailers will be sent for the current request/response.
    This field is used in ``GRPC`` body send mode when ``end_of_stream`` is true and ``body`` is empty.
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    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, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder>
    • clear

      public HttpBody.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<HttpBody.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<HttpBody.Builder>
    • getDefaultInstanceForType

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

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

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

      public HttpBody.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<HttpBody.Builder>
    • setField

      public HttpBody.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<HttpBody.Builder>
    • clearField

      public HttpBody.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<HttpBody.Builder>
    • clearOneof

      public HttpBody.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<HttpBody.Builder>
    • setRepeatedField

      public HttpBody.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<HttpBody.Builder>
    • addRepeatedField

      public HttpBody.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<HttpBody.Builder>
    • mergeFrom

      public HttpBody.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<HttpBody.Builder>
    • mergeFrom

      public HttpBody.Builder mergeFrom(HttpBody other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder>
    • mergeFrom

      public HttpBody.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<HttpBody.Builder>
      Throws:
      IOException
    • getBody

      public 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;
      Specified by:
      getBody in interface HttpBodyOrBuilder
      Returns:
      The body.
    • setBody

      public HttpBody.Builder setBody(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The body to set.
      Returns:
      This builder for chaining.
    • clearBody

      public HttpBody.Builder clearBody()
       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:
      This builder for chaining.
    • getEndOfStream

      public 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;
      Specified by:
      getEndOfStream in interface HttpBodyOrBuilder
      Returns:
      The endOfStream.
    • setEndOfStream

      public HttpBody.Builder setEndOfStream(boolean value)
       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;
      Parameters:
      value - The endOfStream to set.
      Returns:
      This builder for chaining.
    • clearEndOfStream

      public HttpBody.Builder clearEndOfStream()
       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:
      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 HttpBodyOrBuilder
      Returns:
      The endOfStreamWithoutMessage.
    • setEndOfStreamWithoutMessage

      public HttpBody.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 HttpBody.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 HttpBodyOrBuilder
      Returns:
      The grpcMessageCompressed.
    • setGrpcMessageCompressed

      public HttpBody.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 HttpBody.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 HttpBody.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<HttpBody.Builder>
    • mergeUnknownFields

      public final HttpBody.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<HttpBody.Builder>