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 TypeMethodDescriptionbooleancontainsAdd(String key) Add the headers with given map where key is the name of the header, value is the value of the header.booleancontainsSet(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.getAdd()Deprecated.intAdd 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.getAddOrThrow(String key) 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.ByteStringgetRemoveBytes(int index) Remove headers (matching by header names) specified in the list.intRemove headers (matching by header names) specified in the list.Remove headers (matching by header names) specified in the list.getSet()Deprecated.intCompletely 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.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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods 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
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.UsegetSetMap()instead. -
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
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
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
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.UsegetAddMap()instead. -
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
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
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
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
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.
-