java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BufferBehavior.Builder>
io.envoyproxy.envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BufferBehaviorOrBuilder, Cloneable
Enclosing class:
BufferBehavior

public static final class BufferBehavior.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BufferBehavior.Builder> implements BufferBehaviorOrBuilder
 The behavior of the filter for a stream.
 [#next-free-field: 6]
 
Protobuf type envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior
  • 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<BufferBehavior.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public BufferBehavior.Builder mergeFrom(BufferBehavior other)
    • isInitialized

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

      public BufferBehavior.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<BufferBehavior.Builder>
      Throws:
      IOException
    • getBehaviorCase

      public BufferBehavior.BehaviorCase getBehaviorCase()
      Specified by:
      getBehaviorCase in interface BufferBehaviorOrBuilder
    • clearBehavior

      public BufferBehavior.Builder clearBehavior()
    • hasStreamWhenPossible

      public boolean hasStreamWhenPossible()
       Don't inject ``content-length`` header.
       Output immediately, buffer only if output is slower than input.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.StreamWhenPossible stream_when_possible = 1;
      Specified by:
      hasStreamWhenPossible in interface BufferBehaviorOrBuilder
      Returns:
      Whether the streamWhenPossible field is set.
    • getStreamWhenPossible

      public BufferBehavior.StreamWhenPossible getStreamWhenPossible()
       Don't inject ``content-length`` header.
       Output immediately, buffer only if output is slower than input.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.StreamWhenPossible stream_when_possible = 1;
      Specified by:
      getStreamWhenPossible in interface BufferBehaviorOrBuilder
      Returns:
      The streamWhenPossible.
    • setStreamWhenPossible

      public BufferBehavior.Builder setStreamWhenPossible(BufferBehavior.StreamWhenPossible value)
       Don't inject ``content-length`` header.
       Output immediately, buffer only if output is slower than input.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.StreamWhenPossible stream_when_possible = 1;
    • setStreamWhenPossible

      public BufferBehavior.Builder setStreamWhenPossible(BufferBehavior.StreamWhenPossible.Builder builderForValue)
       Don't inject ``content-length`` header.
       Output immediately, buffer only if output is slower than input.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.StreamWhenPossible stream_when_possible = 1;
    • mergeStreamWhenPossible

      public BufferBehavior.Builder mergeStreamWhenPossible(BufferBehavior.StreamWhenPossible value)
       Don't inject ``content-length`` header.
       Output immediately, buffer only if output is slower than input.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.StreamWhenPossible stream_when_possible = 1;
    • clearStreamWhenPossible

      public BufferBehavior.Builder clearStreamWhenPossible()
       Don't inject ``content-length`` header.
       Output immediately, buffer only if output is slower than input.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.StreamWhenPossible stream_when_possible = 1;
    • getStreamWhenPossibleBuilder

      public BufferBehavior.StreamWhenPossible.Builder getStreamWhenPossibleBuilder()
       Don't inject ``content-length`` header.
       Output immediately, buffer only if output is slower than input.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.StreamWhenPossible stream_when_possible = 1;
    • getStreamWhenPossibleOrBuilder

      public BufferBehavior.StreamWhenPossibleOrBuilder getStreamWhenPossibleOrBuilder()
       Don't inject ``content-length`` header.
       Output immediately, buffer only if output is slower than input.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.StreamWhenPossible stream_when_possible = 1;
      Specified by:
      getStreamWhenPossibleOrBuilder in interface BufferBehaviorOrBuilder
    • hasBypass

      public boolean hasBypass()
       Never buffer, do nothing.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.Bypass bypass = 2;
      Specified by:
      hasBypass in interface BufferBehaviorOrBuilder
      Returns:
      Whether the bypass field is set.
    • getBypass

      public BufferBehavior.Bypass getBypass()
       Never buffer, do nothing.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.Bypass bypass = 2;
      Specified by:
      getBypass in interface BufferBehaviorOrBuilder
      Returns:
      The bypass.
    • setBypass

       Never buffer, do nothing.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.Bypass bypass = 2;
    • setBypass

      public BufferBehavior.Builder setBypass(BufferBehavior.Bypass.Builder builderForValue)
       Never buffer, do nothing.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.Bypass bypass = 2;
    • mergeBypass

      public BufferBehavior.Builder mergeBypass(BufferBehavior.Bypass value)
       Never buffer, do nothing.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.Bypass bypass = 2;
    • clearBypass

      public BufferBehavior.Builder clearBypass()
       Never buffer, do nothing.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.Bypass bypass = 2;
    • getBypassBuilder

      public BufferBehavior.Bypass.Builder getBypassBuilder()
       Never buffer, do nothing.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.Bypass bypass = 2;
    • getBypassOrBuilder

      public BufferBehavior.BypassOrBuilder getBypassOrBuilder()
       Never buffer, do nothing.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.Bypass bypass = 2;
      Specified by:
      getBypassOrBuilder in interface BufferBehaviorOrBuilder
    • hasInjectContentLengthIfNecessary

      public boolean hasInjectContentLengthIfNecessary()
       If ``content-length`` is not present, buffer the entire input,
       inject ``content-length`` header, then output.
       If ``content-length`` is already present, act like ``stream_when_possible``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.InjectContentLengthIfNecessary inject_content_length_if_necessary = 3;
      Specified by:
      hasInjectContentLengthIfNecessary in interface BufferBehaviorOrBuilder
      Returns:
      Whether the injectContentLengthIfNecessary field is set.
    • getInjectContentLengthIfNecessary

      public BufferBehavior.InjectContentLengthIfNecessary getInjectContentLengthIfNecessary()
       If ``content-length`` is not present, buffer the entire input,
       inject ``content-length`` header, then output.
       If ``content-length`` is already present, act like ``stream_when_possible``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.InjectContentLengthIfNecessary inject_content_length_if_necessary = 3;
      Specified by:
      getInjectContentLengthIfNecessary in interface BufferBehaviorOrBuilder
      Returns:
      The injectContentLengthIfNecessary.
    • setInjectContentLengthIfNecessary

      public BufferBehavior.Builder setInjectContentLengthIfNecessary(BufferBehavior.InjectContentLengthIfNecessary value)
       If ``content-length`` is not present, buffer the entire input,
       inject ``content-length`` header, then output.
       If ``content-length`` is already present, act like ``stream_when_possible``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.InjectContentLengthIfNecessary inject_content_length_if_necessary = 3;
    • setInjectContentLengthIfNecessary

      public BufferBehavior.Builder setInjectContentLengthIfNecessary(BufferBehavior.InjectContentLengthIfNecessary.Builder builderForValue)
       If ``content-length`` is not present, buffer the entire input,
       inject ``content-length`` header, then output.
       If ``content-length`` is already present, act like ``stream_when_possible``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.InjectContentLengthIfNecessary inject_content_length_if_necessary = 3;
    • mergeInjectContentLengthIfNecessary

      public BufferBehavior.Builder mergeInjectContentLengthIfNecessary(BufferBehavior.InjectContentLengthIfNecessary value)
       If ``content-length`` is not present, buffer the entire input,
       inject ``content-length`` header, then output.
       If ``content-length`` is already present, act like ``stream_when_possible``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.InjectContentLengthIfNecessary inject_content_length_if_necessary = 3;
    • clearInjectContentLengthIfNecessary

      public BufferBehavior.Builder clearInjectContentLengthIfNecessary()
       If ``content-length`` is not present, buffer the entire input,
       inject ``content-length`` header, then output.
       If ``content-length`` is already present, act like ``stream_when_possible``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.InjectContentLengthIfNecessary inject_content_length_if_necessary = 3;
    • getInjectContentLengthIfNecessaryBuilder

      public BufferBehavior.InjectContentLengthIfNecessary.Builder getInjectContentLengthIfNecessaryBuilder()
       If ``content-length`` is not present, buffer the entire input,
       inject ``content-length`` header, then output.
       If ``content-length`` is already present, act like ``stream_when_possible``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.InjectContentLengthIfNecessary inject_content_length_if_necessary = 3;
    • getInjectContentLengthIfNecessaryOrBuilder

      public BufferBehavior.InjectContentLengthIfNecessaryOrBuilder getInjectContentLengthIfNecessaryOrBuilder()
       If ``content-length`` is not present, buffer the entire input,
       inject ``content-length`` header, then output.
       If ``content-length`` is already present, act like ``stream_when_possible``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.InjectContentLengthIfNecessary inject_content_length_if_necessary = 3;
      Specified by:
      getInjectContentLengthIfNecessaryOrBuilder in interface BufferBehaviorOrBuilder
    • hasFullyBufferAndAlwaysInjectContentLength

      public boolean hasFullyBufferAndAlwaysInjectContentLength()
       Always buffer the entire input, and inject ``content-length``,
       overwriting any provided content-length header.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBufferAndAlwaysInjectContentLength fully_buffer_and_always_inject_content_length = 4;
      Specified by:
      hasFullyBufferAndAlwaysInjectContentLength in interface BufferBehaviorOrBuilder
      Returns:
      Whether the fullyBufferAndAlwaysInjectContentLength field is set.
    • getFullyBufferAndAlwaysInjectContentLength

      public BufferBehavior.FullyBufferAndAlwaysInjectContentLength getFullyBufferAndAlwaysInjectContentLength()
       Always buffer the entire input, and inject ``content-length``,
       overwriting any provided content-length header.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBufferAndAlwaysInjectContentLength fully_buffer_and_always_inject_content_length = 4;
      Specified by:
      getFullyBufferAndAlwaysInjectContentLength in interface BufferBehaviorOrBuilder
      Returns:
      The fullyBufferAndAlwaysInjectContentLength.
    • setFullyBufferAndAlwaysInjectContentLength

      public BufferBehavior.Builder setFullyBufferAndAlwaysInjectContentLength(BufferBehavior.FullyBufferAndAlwaysInjectContentLength value)
       Always buffer the entire input, and inject ``content-length``,
       overwriting any provided content-length header.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBufferAndAlwaysInjectContentLength fully_buffer_and_always_inject_content_length = 4;
    • setFullyBufferAndAlwaysInjectContentLength

      public BufferBehavior.Builder setFullyBufferAndAlwaysInjectContentLength(BufferBehavior.FullyBufferAndAlwaysInjectContentLength.Builder builderForValue)
       Always buffer the entire input, and inject ``content-length``,
       overwriting any provided content-length header.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBufferAndAlwaysInjectContentLength fully_buffer_and_always_inject_content_length = 4;
    • mergeFullyBufferAndAlwaysInjectContentLength

      public BufferBehavior.Builder mergeFullyBufferAndAlwaysInjectContentLength(BufferBehavior.FullyBufferAndAlwaysInjectContentLength value)
       Always buffer the entire input, and inject ``content-length``,
       overwriting any provided content-length header.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBufferAndAlwaysInjectContentLength fully_buffer_and_always_inject_content_length = 4;
    • clearFullyBufferAndAlwaysInjectContentLength

      public BufferBehavior.Builder clearFullyBufferAndAlwaysInjectContentLength()
       Always buffer the entire input, and inject ``content-length``,
       overwriting any provided content-length header.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBufferAndAlwaysInjectContentLength fully_buffer_and_always_inject_content_length = 4;
    • getFullyBufferAndAlwaysInjectContentLengthBuilder

      public BufferBehavior.FullyBufferAndAlwaysInjectContentLength.Builder getFullyBufferAndAlwaysInjectContentLengthBuilder()
       Always buffer the entire input, and inject ``content-length``,
       overwriting any provided content-length header.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBufferAndAlwaysInjectContentLength fully_buffer_and_always_inject_content_length = 4;
    • getFullyBufferAndAlwaysInjectContentLengthOrBuilder

      public BufferBehavior.FullyBufferAndAlwaysInjectContentLengthOrBuilder getFullyBufferAndAlwaysInjectContentLengthOrBuilder()
       Always buffer the entire input, and inject ``content-length``,
       overwriting any provided content-length header.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBufferAndAlwaysInjectContentLength fully_buffer_and_always_inject_content_length = 4;
      Specified by:
      getFullyBufferAndAlwaysInjectContentLengthOrBuilder in interface BufferBehaviorOrBuilder
    • hasFullyBuffer

      public boolean hasFullyBuffer()
       Always buffer the entire input, do not modify ``content-length``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBuffer fully_buffer = 5;
      Specified by:
      hasFullyBuffer in interface BufferBehaviorOrBuilder
      Returns:
      Whether the fullyBuffer field is set.
    • getFullyBuffer

      public BufferBehavior.FullyBuffer getFullyBuffer()
       Always buffer the entire input, do not modify ``content-length``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBuffer fully_buffer = 5;
      Specified by:
      getFullyBuffer in interface BufferBehaviorOrBuilder
      Returns:
      The fullyBuffer.
    • setFullyBuffer

      public BufferBehavior.Builder setFullyBuffer(BufferBehavior.FullyBuffer value)
       Always buffer the entire input, do not modify ``content-length``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBuffer fully_buffer = 5;
    • setFullyBuffer

      public BufferBehavior.Builder setFullyBuffer(BufferBehavior.FullyBuffer.Builder builderForValue)
       Always buffer the entire input, do not modify ``content-length``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBuffer fully_buffer = 5;
    • mergeFullyBuffer

      public BufferBehavior.Builder mergeFullyBuffer(BufferBehavior.FullyBuffer value)
       Always buffer the entire input, do not modify ``content-length``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBuffer fully_buffer = 5;
    • clearFullyBuffer

      public BufferBehavior.Builder clearFullyBuffer()
       Always buffer the entire input, do not modify ``content-length``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBuffer fully_buffer = 5;
    • getFullyBufferBuilder

      public BufferBehavior.FullyBuffer.Builder getFullyBufferBuilder()
       Always buffer the entire input, do not modify ``content-length``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBuffer fully_buffer = 5;
    • getFullyBufferOrBuilder

      public BufferBehavior.FullyBufferOrBuilder getFullyBufferOrBuilder()
       Always buffer the entire input, do not modify ``content-length``.
       
      .envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBuffer fully_buffer = 5;
      Specified by:
      getFullyBufferOrBuilder in interface BufferBehaviorOrBuilder
    • setUnknownFields

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

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