Interface HttpRoute.HeaderModifierOrBuilder

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

public static interface HttpRoute.HeaderModifierOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Add the headers with given map where key is the name of the header, value is the value of the header.
    boolean
    Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.
    Deprecated.
    int
    Add the headers with given map where key is the name of the header, value is the value of the header.
    Add the headers with given map where key is the name of the header, value is the value of the header.
    getAddOrDefault(String key, String defaultValue)
    Add the headers with given map where key is the name of the header, value is the value of the header.
    Add the headers with given map where key is the name of the header, value is the value of the header.
    getRemove(int index)
    Remove headers (matching by header names) specified in the list.
    com.google.protobuf.ByteString
    getRemoveBytes(int index)
    Remove headers (matching by header names) specified in the list.
    int
    Remove headers (matching by header names) specified in the list.
    Remove headers (matching by header names) specified in the list.
    Deprecated.
    int
    Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.
    Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.
    getSetOrDefault(String key, String defaultValue)
    Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.
    Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.

    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

    • getSetCount

      int getSetCount()
       Completely overwrite/replace the headers with given map where key is the
       name of the header, value is the value of the header.
       
      map<string, string> set = 1;
    • containsSet

      boolean containsSet(String key)
       Completely overwrite/replace the headers with given map where key is the
       name of the header, value is the value of the header.
       
      map<string, string> set = 1;
    • getSet

      Deprecated.
      Use getSetMap() instead.
    • getSetMap

      Map<String,String> getSetMap()
       Completely overwrite/replace the headers with given map where key is the
       name of the header, value is the value of the header.
       
      map<string, string> set = 1;
    • getSetOrDefault

      String getSetOrDefault(String key, String defaultValue)
       Completely overwrite/replace the headers with given map where key is the
       name of the header, value is the value of the header.
       
      map<string, string> set = 1;
    • getSetOrThrow

      String getSetOrThrow(String key)
       Completely overwrite/replace the headers with given map where key is the
       name of the header, value is the value of the header.
       
      map<string, string> set = 1;
    • getAddCount

      int getAddCount()
       Add the headers with given map where key is the name of the header, value
       is the value of the header.
       
      map<string, string> add = 2;
    • containsAdd

      boolean containsAdd(String key)
       Add the headers with given map where key is the name of the header, value
       is the value of the header.
       
      map<string, string> add = 2;
    • getAdd

      Deprecated.
      Use getAddMap() instead.
    • getAddMap

      Map<String,String> getAddMap()
       Add the headers with given map where key is the name of the header, value
       is the value of the header.
       
      map<string, string> add = 2;
    • getAddOrDefault

      String getAddOrDefault(String key, String defaultValue)
       Add the headers with given map where key is the name of the header, value
       is the value of the header.
       
      map<string, string> add = 2;
    • getAddOrThrow

      String getAddOrThrow(String key)
       Add the headers with given map where key is the name of the header, value
       is the value of the header.
       
      map<string, string> add = 2;
    • getRemoveList

      List<String> getRemoveList()
       Remove headers (matching by header names) specified in the list.
       
      repeated string remove = 3;
      Returns:
      A list containing the remove.
    • getRemoveCount

      int getRemoveCount()
       Remove headers (matching by header names) specified in the list.
       
      repeated string remove = 3;
      Returns:
      The count of remove.
    • getRemove

      String getRemove(int index)
       Remove headers (matching by header names) specified in the list.
       
      repeated string remove = 3;
      Parameters:
      index - The index of the element to return.
      Returns:
      The remove at the given index.
    • getRemoveBytes

      com.google.protobuf.ByteString getRemoveBytes(int index)
       Remove headers (matching by header names) specified in the list.
       
      repeated string remove = 3;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the remove at the given index.