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 type
envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final classThe behavior of the filter for a stream.static final classProtobuf typeenvoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.Bypassstatic interfacestatic final classProtobuf typeenvoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBufferstatic final classProtobuf typeenvoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.FullyBufferAndAlwaysInjectContentLengthstatic interfacestatic interfacestatic final classProtobuf typeenvoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.InjectContentLengthIfNecessarystatic interfacestatic final classProtobuf typeenvoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.StreamWhenPossiblestatic interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanNever buffer, do nothing.Never buffer, do nothing.static BufferBehaviorstatic final com.google.protobuf.Descriptors.DescriptorAlways buffer the entire input, do not modify ``content-length``.Always buffer the entire input, and inject ``content-length``, overwriting any provided content-length header.Always buffer the entire input, and inject ``content-length``, overwriting any provided content-length header.Always buffer the entire input, do not modify ``content-length``.If ``content-length`` is not present, buffer the entire input, inject ``content-length`` header, then output.If ``content-length`` is not present, buffer the entire input, inject ``content-length`` header, then output.com.google.protobuf.Parser<BufferBehavior>intDon't inject ``content-length`` header.Don't inject ``content-length`` header.booleanNever buffer, do nothing.booleanAlways buffer the entire input, do not modify ``content-length``.booleanAlways buffer the entire input, and inject ``content-length``, overwriting any provided content-length header.inthashCode()booleanIf ``content-length`` is not present, buffer the entire input, inject ``content-length`` header, then output.booleanDon't inject ``content-length`` header.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic BufferBehavior.Builderstatic BufferBehavior.BuildernewBuilder(BufferBehavior prototype) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
STREAM_WHEN_POSSIBLE_FIELD_NUMBER
public static final int STREAM_WHEN_POSSIBLE_FIELD_NUMBER- See Also:
-
BYPASS_FIELD_NUMBER
public static final int BYPASS_FIELD_NUMBER- See Also:
-
INJECT_CONTENT_LENGTH_IF_NECESSARY_FIELD_NUMBER
public static final int INJECT_CONTENT_LENGTH_IF_NECESSARY_FIELD_NUMBER- See Also:
-
FULLY_BUFFER_AND_ALWAYS_INJECT_CONTENT_LENGTH_FIELD_NUMBER
public static final int FULLY_BUFFER_AND_ALWAYS_INJECT_CONTENT_LENGTH_FIELD_NUMBER- See Also:
-
FULLY_BUFFER_FIELD_NUMBER
public static final int FULLY_BUFFER_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein 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
- 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
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
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
Never buffer, do nothing.
.envoy.extensions.filters.http.file_system_buffer.v3.BufferBehavior.Bypass bypass = 2;- Specified by:
getBypassin interfaceBufferBehaviorOrBuilder- Returns:
- The bypass.
-
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
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
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
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
- 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
- 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
- Throws:
IOException
-
parseFrom
public static BufferBehavior parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
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
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-