Interface Config.KeyValuePairOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Config.KeyValuePair, Config.KeyValuePair.Builder
Enclosing class:
Config

public static interface Config.KeyValuePairOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    How is the value encoded, default is NONE (not encoded).
    int
    How is the value encoded, default is NONE (not encoded).
    The key to use within the namespace.
    com.google.protobuf.ByteString
    The key to use within the namespace.
    The namespace — if this is empty, the filter's namespace will be used.
    com.google.protobuf.ByteString
    The namespace — if this is empty, the filter's namespace will be used.
    The value's type — defaults to string.
    int
    The value's type — defaults to string.
    The value to pair with the given key.
    com.google.protobuf.ByteString
    The value to pair with the given key.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getMetadataNamespace

      String getMetadataNamespace()
       The namespace — if this is empty, the filter's namespace will be used.
       
      string metadata_namespace = 1;
      Returns:
      The metadataNamespace.
    • getMetadataNamespaceBytes

      com.google.protobuf.ByteString getMetadataNamespaceBytes()
       The namespace — if this is empty, the filter's namespace will be used.
       
      string metadata_namespace = 1;
      Returns:
      The bytes for metadataNamespace.
    • getKey

      String getKey()
       The key to use within the namespace.
       
      string key = 2 [(.validate.rules) = { ... }
      Returns:
      The key.
    • getKeyBytes

      com.google.protobuf.ByteString getKeyBytes()
       The key to use within the namespace.
       
      string key = 2 [(.validate.rules) = { ... }
      Returns:
      The bytes for key.
    • getValue

      String getValue()
       The value to pair with the given key.
      
       When used for a `on_header_present` case, if value is non-empty it'll be used
       instead of the header value. If both are empty, no metadata is added.
      
       When used for a `on_header_missing` case, a non-empty value must be provided
       otherwise no metadata is added.
       
      string value = 3;
      Returns:
      The value.
    • getValueBytes

      com.google.protobuf.ByteString getValueBytes()
       The value to pair with the given key.
      
       When used for a `on_header_present` case, if value is non-empty it'll be used
       instead of the header value. If both are empty, no metadata is added.
      
       When used for a `on_header_missing` case, a non-empty value must be provided
       otherwise no metadata is added.
       
      string value = 3;
      Returns:
      The bytes for value.
    • getTypeValue

      int getTypeValue()
       The value's type — defaults to string.
       
      .envoy.config.filter.http.header_to_metadata.v2.Config.ValueType type = 4;
      Returns:
      The enum numeric value on the wire for type.
    • getType

      Config.ValueType getType()
       The value's type — defaults to string.
       
      .envoy.config.filter.http.header_to_metadata.v2.Config.ValueType type = 4;
      Returns:
      The type.
    • getEncodeValue

      int getEncodeValue()
       How is the value encoded, default is NONE (not encoded).
       The value will be decoded accordingly before storing to metadata.
       
      .envoy.config.filter.http.header_to_metadata.v2.Config.ValueEncode encode = 5;
      Returns:
      The enum numeric value on the wire for encode.
    • getEncode

      Config.ValueEncode getEncode()
       How is the value encoded, default is NONE (not encoded).
       The value will be decoded accordingly before storing to metadata.
       
      .envoy.config.filter.http.header_to_metadata.v2.Config.ValueEncode encode = 5;
      Returns:
      The encode.