Class BufferBehavior
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,BufferBehaviorOrBuilder,Serializable
public final class BufferBehavior extends com.google.protobuf.GeneratedMessageV3 implements BufferBehaviorOrBuilder
The behavior of the filter for a stream. [#next-free-field: 6]
Protobuf typeenvoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBufferBehavior.BehaviorCasestatic classBufferBehavior.BuilderThe behavior of the filter for a stream.static classBufferBehavior.BypassProtobuf typeenvoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.Bypassstatic interfaceBufferBehavior.BypassOrBuilderstatic classBufferBehavior.FullyBufferProtobuf typeenvoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBufferstatic classBufferBehavior.FullyBufferAndAlwaysInjectContentLengthProtobuf typeenvoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBufferAndAlwaysInjectContentLengthstatic interfaceBufferBehavior.FullyBufferAndAlwaysInjectContentLengthOrBuilderstatic interfaceBufferBehavior.FullyBufferOrBuilderstatic classBufferBehavior.InjectContentLengthIfNecessaryProtobuf typeenvoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.InjectContentLengthIfNecessarystatic interfaceBufferBehavior.InjectContentLengthIfNecessaryOrBuilderstatic classBufferBehavior.StreamWhenPossibleProtobuf typeenvoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.StreamWhenPossiblestatic interfaceBufferBehavior.StreamWhenPossibleOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBYPASS_FIELD_NUMBERstatic intFULLY_BUFFER_AND_ALWAYS_INJECT_CONTENT_LENGTH_FIELD_NUMBERstatic intFULLY_BUFFER_FIELD_NUMBERstatic intINJECT_CONTENT_LENGTH_IF_NECESSARY_FIELD_NUMBERstatic intSTREAM_WHEN_POSSIBLE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)BufferBehavior.BehaviorCasegetBehaviorCase()BufferBehavior.BypassgetBypass()Never buffer, do nothing.BufferBehavior.BypassOrBuildergetBypassOrBuilder()Never buffer, do nothing.static BufferBehaviorgetDefaultInstance()BufferBehaviorgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()BufferBehavior.FullyBuffergetFullyBuffer()Always buffer the entire input, do not modify ``content-length``.BufferBehavior.FullyBufferAndAlwaysInjectContentLengthgetFullyBufferAndAlwaysInjectContentLength()Always buffer the entire input, and inject ``content-length``, overwriting any provided content-length header.BufferBehavior.FullyBufferAndAlwaysInjectContentLengthOrBuildergetFullyBufferAndAlwaysInjectContentLengthOrBuilder()Always buffer the entire input, and inject ``content-length``, overwriting any provided content-length header.BufferBehavior.FullyBufferOrBuildergetFullyBufferOrBuilder()Always buffer the entire input, do not modify ``content-length``.BufferBehavior.InjectContentLengthIfNecessarygetInjectContentLengthIfNecessary()If ``content-length`` is not present, buffer the entire input, inject ``content-length`` header, then output.BufferBehavior.InjectContentLengthIfNecessaryOrBuildergetInjectContentLengthIfNecessaryOrBuilder()If ``content-length`` is not present, buffer the entire input, inject ``content-length`` header, then output.com.google.protobuf.Parser<BufferBehavior>getParserForType()intgetSerializedSize()BufferBehavior.StreamWhenPossiblegetStreamWhenPossible()Don't inject ``content-length`` header.BufferBehavior.StreamWhenPossibleOrBuildergetStreamWhenPossibleOrBuilder()Don't inject ``content-length`` header.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasBypass()Never buffer, do nothing.booleanhasFullyBuffer()Always buffer the entire input, do not modify ``content-length``.booleanhasFullyBufferAndAlwaysInjectContentLength()Always buffer the entire input, and inject ``content-length``, overwriting any provided content-length header.inthashCode()booleanhasInjectContentLengthIfNecessary()If ``content-length`` is not present, buffer the entire input, inject ``content-length`` header, then output.booleanhasStreamWhenPossible()Don't inject ``content-length`` header.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static BufferBehavior.BuildernewBuilder()static BufferBehavior.BuildernewBuilder(BufferBehavior prototype)BufferBehavior.BuildernewBuilderForType()protected BufferBehavior.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static BufferBehaviorparseDelimitedFrom(InputStream input)static BufferBehaviorparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BufferBehaviorparseFrom(byte[] data)static BufferBehaviorparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BufferBehaviorparseFrom(com.google.protobuf.ByteString data)static BufferBehaviorparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BufferBehaviorparseFrom(com.google.protobuf.CodedInputStream input)static BufferBehaviorparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BufferBehaviorparseFrom(InputStream input)static BufferBehaviorparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BufferBehaviorparseFrom(ByteBuffer data)static BufferBehaviorparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<BufferBehavior>parser()BufferBehavior.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
STREAM_WHEN_POSSIBLE_FIELD_NUMBER
public static final int STREAM_WHEN_POSSIBLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BYPASS_FIELD_NUMBER
public static final int BYPASS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INJECT_CONTENT_LENGTH_IF_NECESSARY_FIELD_NUMBER
public static final int INJECT_CONTENT_LENGTH_IF_NECESSARY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FULLY_BUFFER_AND_ALWAYS_INJECT_CONTENT_LENGTH_FIELD_NUMBER
public static final int FULLY_BUFFER_AND_ALWAYS_INJECT_CONTENT_LENGTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FULLY_BUFFER_FIELD_NUMBER
public static final int FULLY_BUFFER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getBehaviorCase
public BufferBehavior.BehaviorCase getBehaviorCase()
- Specified by:
getBehaviorCasein interfaceBufferBehaviorOrBuilder
-
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:
hasStreamWhenPossiblein interfaceBufferBehaviorOrBuilder- 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:
getStreamWhenPossiblein interfaceBufferBehaviorOrBuilder- Returns:
- The streamWhenPossible.
-
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:
getStreamWhenPossibleOrBuilderin interfaceBufferBehaviorOrBuilder
-
hasBypass
public boolean hasBypass()
Never buffer, do nothing.
.envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.Bypass bypass = 2;- Specified by:
hasBypassin interfaceBufferBehaviorOrBuilder- 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:
getBypassin interfaceBufferBehaviorOrBuilder- Returns:
- The bypass.
-
getBypassOrBuilder
public BufferBehavior.BypassOrBuilder getBypassOrBuilder()
Never buffer, do nothing.
.envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.Bypass bypass = 2;- Specified by:
getBypassOrBuilderin interfaceBufferBehaviorOrBuilder
-
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:
hasInjectContentLengthIfNecessaryin interfaceBufferBehaviorOrBuilder- 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:
getInjectContentLengthIfNecessaryin interfaceBufferBehaviorOrBuilder- Returns:
- The injectContentLengthIfNecessary.
-
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:
getInjectContentLengthIfNecessaryOrBuilderin interfaceBufferBehaviorOrBuilder
-
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:
hasFullyBufferAndAlwaysInjectContentLengthin interfaceBufferBehaviorOrBuilder- 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:
getFullyBufferAndAlwaysInjectContentLengthin interfaceBufferBehaviorOrBuilder- Returns:
- The fullyBufferAndAlwaysInjectContentLength.
-
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:
getFullyBufferAndAlwaysInjectContentLengthOrBuilderin interfaceBufferBehaviorOrBuilder
-
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:
hasFullyBufferin interfaceBufferBehaviorOrBuilder- 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:
getFullyBufferin interfaceBufferBehaviorOrBuilder- Returns:
- The fullyBuffer.
-
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:
getFullyBufferOrBuilderin interfaceBufferBehaviorOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BufferBehavior parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BufferBehavior parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BufferBehavior parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BufferBehavior parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BufferBehavior parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BufferBehavior parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BufferBehavior parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BufferBehavior parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BufferBehavior parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BufferBehavior parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static BufferBehavior parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BufferBehavior parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public BufferBehavior.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static BufferBehavior.Builder newBuilder()
-
newBuilder
public static BufferBehavior.Builder newBuilder(BufferBehavior prototype)
-
toBuilder
public BufferBehavior.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BufferBehavior.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static BufferBehavior getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<BufferBehavior> parser()
-
getParserForType
public com.google.protobuf.Parser<BufferBehavior> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public BufferBehavior getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-