Class ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.config.filter.network.http_connection_manager.v2.ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractorOrBuilder,Serializable
- Enclosing class:
- ScopedRoutes.ScopeKeyBuilder.FragmentBuilder
public static final class ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor extends com.google.protobuf.GeneratedMessageV3 implements ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractorOrBuilder
Specifies how the value of a header should be extracted. The following example maps the structure of a header to the fields in this message. .. code:: <0> <1> <-- index X-Header: a=b;c=d | || | | || \----> <element_separator> | || | |\----> <element.separator> | | | \----> <element.key> | \----> <name> Each 'a=b' key-value pair constitutes an 'element' of the header field.Protobuf typeenvoy.config.filter.network.http_connection_manager.v2.ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.BuilderSpecifies how the value of a header should be extracted.static classScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.ExtractTypeCasestatic classScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.KvElementSpecifies a header field's key value pair to match on.static interfaceScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.KvElementOrBuilder-
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 intELEMENT_FIELD_NUMBERstatic intELEMENT_SEPARATOR_FIELD_NUMBERstatic intINDEX_FIELD_NUMBERstatic intNAME_FIELD_NUMBER
-
Method Summary
-
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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ELEMENT_SEPARATOR_FIELD_NUMBER
public static final int ELEMENT_SEPARATOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INDEX_FIELD_NUMBER
public static final int INDEX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ELEMENT_FIELD_NUMBER
public static final int ELEMENT_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
-
getExtractTypeCase
public ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.ExtractTypeCase getExtractTypeCase()
- Specified by:
getExtractTypeCasein interfaceScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractorOrBuilder
-
getName
public String getName()
The name of the header field to extract the value from. .. note:: If the header appears multiple times only the first value is used.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNamein interfaceScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractorOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the header field to extract the value from. .. note:: If the header appears multiple times only the first value is used.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNameBytesin interfaceScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractorOrBuilder- Returns:
- The bytes for name.
-
getElementSeparator
public String getElementSeparator()
The element separator (e.g., ';' separates 'a;b;c;d'). Default: empty string. This causes the entirety of the header field to be extracted. If this field is set to an empty string and 'index' is used in the oneof below, 'index' must be set to 0.
string element_separator = 2;- Specified by:
getElementSeparatorin interfaceScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractorOrBuilder- Returns:
- The elementSeparator.
-
getElementSeparatorBytes
public com.google.protobuf.ByteString getElementSeparatorBytes()
The element separator (e.g., ';' separates 'a;b;c;d'). Default: empty string. This causes the entirety of the header field to be extracted. If this field is set to an empty string and 'index' is used in the oneof below, 'index' must be set to 0.
string element_separator = 2;- Specified by:
getElementSeparatorBytesin interfaceScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractorOrBuilder- Returns:
- The bytes for elementSeparator.
-
hasIndex
public boolean hasIndex()
Specifies the zero based index of the element to extract. Note Envoy concatenates multiple values of the same header key into a comma separated string, the splitting always happens after the concatenation.
uint32 index = 3;- Specified by:
hasIndexin interfaceScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractorOrBuilder- Returns:
- Whether the index field is set.
-
getIndex
public int getIndex()
Specifies the zero based index of the element to extract. Note Envoy concatenates multiple values of the same header key into a comma separated string, the splitting always happens after the concatenation.
uint32 index = 3;- Specified by:
getIndexin interfaceScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractorOrBuilder- Returns:
- The index.
-
hasElement
public boolean hasElement()
Specifies the key value pair to extract the value from.
.envoy.config.filter.network.http_connection_manager.v2.ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.KvElement element = 4;- Specified by:
hasElementin interfaceScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractorOrBuilder- Returns:
- Whether the element field is set.
-
getElement
public ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.KvElement getElement()
Specifies the key value pair to extract the value from.
.envoy.config.filter.network.http_connection_manager.v2.ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.KvElement element = 4;- Specified by:
getElementin interfaceScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractorOrBuilder- Returns:
- The element.
-
getElementOrBuilder
public ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.KvElementOrBuilder getElementOrBuilder()
Specifies the key value pair to extract the value from.
.envoy.config.filter.network.http_connection_manager.v2.ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.KvElement element = 4;- Specified by:
getElementOrBuilderin interfaceScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractorOrBuilder
-
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 ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.Builder newBuilder()
-
newBuilder
public static ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.Builder newBuilder(ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor prototype)
-
toBuilder
public ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor> parser()
-
getParserForType
public com.google.protobuf.Parser<ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-