Class BodyMutation.Builder

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

public static final class BodyMutation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BodyMutation.Builder> implements BodyMutationOrBuilder
 This message specifies the body mutation the server sends to the data plane.
 
Protobuf type envoy.service.ext_proc.v3.BodyMutation
  • 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<BodyMutation.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public BodyMutation.Builder mergeFrom(BodyMutation other)
    • isInitialized

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

      public BodyMutation.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<BodyMutation.Builder>
      Throws:
      IOException
    • getMutationCase

      public BodyMutation.MutationCase getMutationCase()
      Specified by:
      getMutationCase in interface BodyMutationOrBuilder
    • clearMutation

      public BodyMutation.Builder clearMutation()
    • hasBody

      public boolean hasBody()
       The entire body to replace.
       Should only be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is not set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       
      bytes body = 1;
      Specified by:
      hasBody in interface BodyMutationOrBuilder
      Returns:
      Whether the body field is set.
    • getBody

      public com.google.protobuf.ByteString getBody()
       The entire body to replace.
       Should only be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is not set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       
      bytes body = 1;
      Specified by:
      getBody in interface BodyMutationOrBuilder
      Returns:
      The body.
    • setBody

      public BodyMutation.Builder setBody(com.google.protobuf.ByteString value)
       The entire body to replace.
       Should only be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is not set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       
      bytes body = 1;
      Parameters:
      value - The body to set.
      Returns:
      This builder for chaining.
    • clearBody

      public BodyMutation.Builder clearBody()
       The entire body to replace.
       Should only be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is not set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       
      bytes body = 1;
      Returns:
      This builder for chaining.
    • hasClearBody

      public boolean hasClearBody()
       Clear the corresponding body chunk.
       Should only be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is not set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       Clear the corresponding body chunk.
       
      bool clear_body = 2;
      Specified by:
      hasClearBody in interface BodyMutationOrBuilder
      Returns:
      Whether the clearBody field is set.
    • getClearBody

      public boolean getClearBody()
       Clear the corresponding body chunk.
       Should only be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is not set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       Clear the corresponding body chunk.
       
      bool clear_body = 2;
      Specified by:
      getClearBody in interface BodyMutationOrBuilder
      Returns:
      The clearBody.
    • setClearBody

      public BodyMutation.Builder setClearBody(boolean value)
       Clear the corresponding body chunk.
       Should only be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is not set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       Clear the corresponding body chunk.
       
      bool clear_body = 2;
      Parameters:
      value - The clearBody to set.
      Returns:
      This builder for chaining.
    • clearClearBody

      public BodyMutation.Builder clearClearBody()
       Clear the corresponding body chunk.
       Should only be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is not set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       Clear the corresponding body chunk.
       
      bool clear_body = 2;
      Returns:
      This builder for chaining.
    • hasStreamedResponse

      public boolean hasStreamedResponse()
       Must be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       
      .envoy.service.ext_proc.v3.StreamedBodyResponse streamed_response = 3 [(.xds.annotations.v3.field_status) = { ... }
      Specified by:
      hasStreamedResponse in interface BodyMutationOrBuilder
      Returns:
      Whether the streamedResponse field is set.
    • getStreamedResponse

      public StreamedBodyResponse getStreamedResponse()
       Must be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       
      .envoy.service.ext_proc.v3.StreamedBodyResponse streamed_response = 3 [(.xds.annotations.v3.field_status) = { ... }
      Specified by:
      getStreamedResponse in interface BodyMutationOrBuilder
      Returns:
      The streamedResponse.
    • setStreamedResponse

      public BodyMutation.Builder setStreamedResponse(StreamedBodyResponse value)
       Must be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       
      .envoy.service.ext_proc.v3.StreamedBodyResponse streamed_response = 3 [(.xds.annotations.v3.field_status) = { ... }
    • setStreamedResponse

      public BodyMutation.Builder setStreamedResponse(StreamedBodyResponse.Builder builderForValue)
       Must be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       
      .envoy.service.ext_proc.v3.StreamedBodyResponse streamed_response = 3 [(.xds.annotations.v3.field_status) = { ... }
    • mergeStreamedResponse

      public BodyMutation.Builder mergeStreamedResponse(StreamedBodyResponse value)
       Must be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       
      .envoy.service.ext_proc.v3.StreamedBodyResponse streamed_response = 3 [(.xds.annotations.v3.field_status) = { ... }
    • clearStreamedResponse

      public BodyMutation.Builder clearStreamedResponse()
       Must be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       
      .envoy.service.ext_proc.v3.StreamedBodyResponse streamed_response = 3 [(.xds.annotations.v3.field_status) = { ... }
    • getStreamedResponseBuilder

      public StreamedBodyResponse.Builder getStreamedResponseBuilder()
       Must be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       
      .envoy.service.ext_proc.v3.StreamedBodyResponse streamed_response = 3 [(.xds.annotations.v3.field_status) = { ... }
    • getStreamedResponseOrBuilder

      public StreamedBodyResponseOrBuilder getStreamedResponseOrBuilder()
       Must be used when the corresponding ``BodySendMode`` in the
       :ref:`processing_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.processing_mode>`
       is set to ``FULL_DUPLEX_STREAMED`` or ``GRPC``.
       
      .envoy.service.ext_proc.v3.StreamedBodyResponse streamed_response = 3 [(.xds.annotations.v3.field_status) = { ... }
      Specified by:
      getStreamedResponseOrBuilder in interface BodyMutationOrBuilder
    • setUnknownFields

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

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