Class Config.Rule
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.config.filter.http.header_to_metadata.v2.Config.Rule
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Config.RuleOrBuilder,Serializable
- Enclosing class:
- Config
public static final class Config.Rule
extends com.google.protobuf.GeneratedMessageV3
implements Config.RuleOrBuilder
A Rule defines what metadata to apply when a header is present or missing.Protobuf type
envoy.config.filter.http.header_to_metadata.v2.Config.Rule- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA Rule defines what metadata to apply when a header is present or missing.Nested 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 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 TypeMethodDescriptionbooleanstatic Config.Rulestatic final com.google.protobuf.Descriptors.DescriptorThe header that triggers this rule — required.com.google.protobuf.ByteStringThe header that triggers this rule — required.If the header is not present, apply this metadata KeyValuePair.If the header is not present, apply this metadata KeyValuePair.If the header is present, apply this metadata KeyValuePair.If the header is present, apply this metadata KeyValuePair.com.google.protobuf.Parser<Config.Rule>booleanWhether or not to remove the header after a rule is applied.intinthashCode()booleanIf the header is not present, apply this metadata KeyValuePair.booleanIf the header is present, apply this metadata KeyValuePair.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Config.Rule.Builderstatic Config.Rule.BuildernewBuilder(Config.Rule prototype) protected Config.Rule.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Config.RuleparseDelimitedFrom(InputStream input) static Config.RuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Config.RuleparseFrom(byte[] data) static Config.RuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Config.RuleparseFrom(com.google.protobuf.ByteString data) static Config.RuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Config.RuleparseFrom(com.google.protobuf.CodedInputStream input) static Config.RuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Config.RuleparseFrom(InputStream input) static Config.RuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Config.RuleparseFrom(ByteBuffer data) static Config.RuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Config.Rule>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
-
HEADER_FIELD_NUMBER
public static final int HEADER_FIELD_NUMBER- See Also:
-
ON_HEADER_PRESENT_FIELD_NUMBER
public static final int ON_HEADER_PRESENT_FIELD_NUMBER- See Also:
-
ON_HEADER_MISSING_FIELD_NUMBER
public static final int ON_HEADER_MISSING_FIELD_NUMBER- See Also:
-
REMOVE_FIELD_NUMBER
public static final int REMOVE_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
-
getHeader
The header that triggers this rule — required.
string header = 1 [(.validate.rules) = { ... }- Specified by:
getHeaderin interfaceConfig.RuleOrBuilder- Returns:
- The header.
-
getHeaderBytes
public com.google.protobuf.ByteString getHeaderBytes()The header that triggers this rule — required.
string header = 1 [(.validate.rules) = { ... }- Specified by:
getHeaderBytesin interfaceConfig.RuleOrBuilder- Returns:
- The bytes for header.
-
hasOnHeaderPresent
public boolean hasOnHeaderPresent()If the header is present, apply this metadata KeyValuePair. If the value in the KeyValuePair is non-empty, it'll be used instead of the header value.
.envoy.config.filter.http.header_to_metadata.v2.Config.KeyValuePair on_header_present = 2;- Specified by:
hasOnHeaderPresentin interfaceConfig.RuleOrBuilder- Returns:
- Whether the onHeaderPresent field is set.
-
getOnHeaderPresent
If the header is present, apply this metadata KeyValuePair. If the value in the KeyValuePair is non-empty, it'll be used instead of the header value.
.envoy.config.filter.http.header_to_metadata.v2.Config.KeyValuePair on_header_present = 2;- Specified by:
getOnHeaderPresentin interfaceConfig.RuleOrBuilder- Returns:
- The onHeaderPresent.
-
getOnHeaderPresentOrBuilder
If the header is present, apply this metadata KeyValuePair. If the value in the KeyValuePair is non-empty, it'll be used instead of the header value.
.envoy.config.filter.http.header_to_metadata.v2.Config.KeyValuePair on_header_present = 2;- Specified by:
getOnHeaderPresentOrBuilderin interfaceConfig.RuleOrBuilder
-
hasOnHeaderMissing
public boolean hasOnHeaderMissing()If the header is not present, apply this metadata KeyValuePair. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing header value.
.envoy.config.filter.http.header_to_metadata.v2.Config.KeyValuePair on_header_missing = 3;- Specified by:
hasOnHeaderMissingin interfaceConfig.RuleOrBuilder- Returns:
- Whether the onHeaderMissing field is set.
-
getOnHeaderMissing
If the header is not present, apply this metadata KeyValuePair. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing header value.
.envoy.config.filter.http.header_to_metadata.v2.Config.KeyValuePair on_header_missing = 3;- Specified by:
getOnHeaderMissingin interfaceConfig.RuleOrBuilder- Returns:
- The onHeaderMissing.
-
getOnHeaderMissingOrBuilder
If the header is not present, apply this metadata KeyValuePair. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing header value.
.envoy.config.filter.http.header_to_metadata.v2.Config.KeyValuePair on_header_missing = 3;- Specified by:
getOnHeaderMissingOrBuilderin interfaceConfig.RuleOrBuilder
-
getRemove
public boolean getRemove()Whether or not to remove the header after a rule is applied. This prevents headers from leaking.
bool remove = 4;- Specified by:
getRemovein interfaceConfig.RuleOrBuilder- Returns:
- The remove.
-
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 Config.Rule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Config.Rule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Config.Rule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Config.Rule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Config.Rule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Config.Rule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Config.Rule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Config.Rule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Config.Rule 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 Config.Rule.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
-