Class Config.Rule
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.extensions.filters.http.header_to_metadata.v3.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. [#next-free-field: 6]
Protobuf typeenvoy.extensions.filters.http.header_to_metadata.v3.Config.Rule- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfig.Rule.BuilderA 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<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 intCOOKIE_FIELD_NUMBERstatic intHEADER_FIELD_NUMBERstatic intON_HEADER_MISSING_FIELD_NUMBERstatic intON_HEADER_PRESENT_FIELD_NUMBERstatic intREMOVE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetCookie()The cookie to be extracted.com.google.protobuf.ByteStringgetCookieBytes()The cookie to be extracted.static Config.RulegetDefaultInstance()Config.RulegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetHeader()Specifies that a match will be performed on the value of a header or a cookie.com.google.protobuf.ByteStringgetHeaderBytes()Specifies that a match will be performed on the value of a header or a cookie.Config.KeyValuePairgetOnHeaderMissing()If the header or cookie is not present, apply this metadata KeyValuePair.Config.KeyValuePairOrBuildergetOnHeaderMissingOrBuilder()If the header or cookie is not present, apply this metadata KeyValuePair.Config.KeyValuePairgetOnHeaderPresent()If the header or cookie is present, apply this metadata KeyValuePair.Config.KeyValuePairOrBuildergetOnHeaderPresentOrBuilder()If the header or cookie is present, apply this metadata KeyValuePair.com.google.protobuf.Parser<Config.Rule>getParserForType()booleangetRemove()Whether or not to remove the header after a rule is applied.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasOnHeaderMissing()If the header or cookie is not present, apply this metadata KeyValuePair.booleanhasOnHeaderPresent()If the header or cookie is present, apply this metadata KeyValuePair.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Config.Rule.BuildernewBuilder()static Config.Rule.BuildernewBuilder(Config.Rule prototype)Config.Rule.BuildernewBuilderForType()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()Config.Rule.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
-
HEADER_FIELD_NUMBER
public static final int HEADER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COOKIE_FIELD_NUMBER
public static final int COOKIE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ON_HEADER_PRESENT_FIELD_NUMBER
public static final int ON_HEADER_PRESENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ON_HEADER_MISSING_FIELD_NUMBER
public static final int ON_HEADER_MISSING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REMOVE_FIELD_NUMBER
public static final int REMOVE_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
-
getHeader
public String getHeader()
Specifies that a match will be performed on the value of a header or a cookie. The header to be extracted.
string header = 1 [(.validate.rules) = { ... }- Specified by:
getHeaderin interfaceConfig.RuleOrBuilder- Returns:
- The header.
-
getHeaderBytes
public com.google.protobuf.ByteString getHeaderBytes()
Specifies that a match will be performed on the value of a header or a cookie. The header to be extracted.
string header = 1 [(.validate.rules) = { ... }- Specified by:
getHeaderBytesin interfaceConfig.RuleOrBuilder- Returns:
- The bytes for header.
-
getCookie
public String getCookie()
The cookie to be extracted.
string cookie = 5 [(.validate.rules) = { ... }- Specified by:
getCookiein interfaceConfig.RuleOrBuilder- Returns:
- The cookie.
-
getCookieBytes
public com.google.protobuf.ByteString getCookieBytes()
The cookie to be extracted.
string cookie = 5 [(.validate.rules) = { ... }- Specified by:
getCookieBytesin interfaceConfig.RuleOrBuilder- Returns:
- The bytes for cookie.
-
hasOnHeaderPresent
public boolean hasOnHeaderPresent()
If the header or cookie is present, apply this metadata KeyValuePair. If the value in the KeyValuePair is non-empty, it'll be used instead of the header or cookie value.
.envoy.extensions.filters.http.header_to_metadata.v3.Config.KeyValuePair on_header_present = 2 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
hasOnHeaderPresentin interfaceConfig.RuleOrBuilder- Returns:
- Whether the onHeaderPresent field is set.
-
getOnHeaderPresent
public Config.KeyValuePair getOnHeaderPresent()
If the header or cookie is present, apply this metadata KeyValuePair. If the value in the KeyValuePair is non-empty, it'll be used instead of the header or cookie value.
.envoy.extensions.filters.http.header_to_metadata.v3.Config.KeyValuePair on_header_present = 2 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getOnHeaderPresentin interfaceConfig.RuleOrBuilder- Returns:
- The onHeaderPresent.
-
getOnHeaderPresentOrBuilder
public Config.KeyValuePairOrBuilder getOnHeaderPresentOrBuilder()
If the header or cookie is present, apply this metadata KeyValuePair. If the value in the KeyValuePair is non-empty, it'll be used instead of the header or cookie value.
.envoy.extensions.filters.http.header_to_metadata.v3.Config.KeyValuePair on_header_present = 2 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getOnHeaderPresentOrBuilderin interfaceConfig.RuleOrBuilder
-
hasOnHeaderMissing
public boolean hasOnHeaderMissing()
If the header or cookie 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 or cookie value.
.envoy.extensions.filters.http.header_to_metadata.v3.Config.KeyValuePair on_header_missing = 3 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
hasOnHeaderMissingin interfaceConfig.RuleOrBuilder- Returns:
- Whether the onHeaderMissing field is set.
-
getOnHeaderMissing
public Config.KeyValuePair getOnHeaderMissing()
If the header or cookie 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 or cookie value.
.envoy.extensions.filters.http.header_to_metadata.v3.Config.KeyValuePair on_header_missing = 3 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getOnHeaderMissingin interfaceConfig.RuleOrBuilder- Returns:
- The onHeaderMissing.
-
getOnHeaderMissingOrBuilder
public Config.KeyValuePairOrBuilder getOnHeaderMissingOrBuilder()
If the header or cookie 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 or cookie value.
.envoy.extensions.filters.http.header_to_metadata.v3.Config.KeyValuePair on_header_missing = 3 [(.udpa.annotations.field_migrate) = { ... }- 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. This field is not supported in case of a cookie.
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
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 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
public static Config.Rule parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Config.Rule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Config.Rule parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Config.Rule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Config.Rule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Config.Rule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Config.Rule.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Config.Rule.Builder newBuilder()
-
newBuilder
public static Config.Rule.Builder newBuilder(Config.Rule prototype)
-
toBuilder
public Config.Rule.Builder 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
public static Config.Rule getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Config.Rule> parser()
-
getParserForType
public com.google.protobuf.Parser<Config.Rule> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Config.Rule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-