Interface Config.RuleOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Config.Rule,Config.Rule.Builder
- Enclosing class:
- Config
public static interface Config.RuleOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCookie()The cookie to be extracted.com.google.protobuf.ByteStringgetCookieBytes()The cookie to be extracted.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.booleangetRemove()Whether or not to remove the header after a rule is applied.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getHeader
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) = { ... }
-
getHeaderBytes
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) = { ... }
-
getCookie
String getCookie()
The cookie to be extracted.
string cookie = 5 [(.validate.rules) = { ... }
-
getCookieBytes
com.google.protobuf.ByteString getCookieBytes()
The cookie to be extracted.
string cookie = 5 [(.validate.rules) = { ... }
-
hasOnHeaderPresent
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) = { ... }
-
getOnHeaderPresent
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) = { ... }
-
getOnHeaderPresentOrBuilder
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) = { ... }
-
hasOnHeaderMissing
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) = { ... }
-
getOnHeaderMissing
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) = { ... }
-
getOnHeaderMissingOrBuilder
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) = { ... }
-
getRemove
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;
-
-