public static final class HttpRoute.HeaderModifier extends GeneratedMessageV3 implements HttpRoute.HeaderModifierOrBuilder
The specification for modifying HTTP header in HTTP request and HTTP
response.
Protobuf type google.events.cloud.networkservices.v1.HttpRoute.HeaderModifier
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ADD_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int REMOVE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SET_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static HttpRoute.HeaderModifier getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static HttpRoute.HeaderModifier.Builder newBuilder()
public static HttpRoute.HeaderModifier.Builder newBuilder(HttpRoute.HeaderModifier prototype)
public static HttpRoute.HeaderModifier parseDelimitedFrom(InputStream input)
public static HttpRoute.HeaderModifier parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.HeaderModifier parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static HttpRoute.HeaderModifier parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.HeaderModifier parseFrom(ByteString data)
public static HttpRoute.HeaderModifier parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.HeaderModifier parseFrom(CodedInputStream input)
public static HttpRoute.HeaderModifier parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.HeaderModifier parseFrom(InputStream input)
public static HttpRoute.HeaderModifier parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.HeaderModifier parseFrom(ByteBuffer data)
public static HttpRoute.HeaderModifier parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<HttpRoute.HeaderModifier> parser()
Methods
public 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;
Parameter |
Name |
Description |
key |
String
|
public 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;
Parameter |
Name |
Description |
key |
String
|
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public Map<String,String> getAdd()
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;
Returns |
Type |
Description |
int |
|
public 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;
public 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;
Returns |
Type |
Description |
String |
|
public 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;
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
public HttpRoute.HeaderModifier getDefaultInstanceForType()
public Parser<HttpRoute.HeaderModifier> getParserForType()
Overrides
public String getRemove(int index)
Remove headers (matching by header names) specified in the list.
repeated string remove = 3;
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The remove at the given index.
|
public ByteString getRemoveBytes(int index)
Remove headers (matching by header names) specified in the list.
repeated string remove = 3;
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the remove at the given index.
|
public int getRemoveCount()
Remove headers (matching by header names) specified in the list.
repeated string remove = 3;
Returns |
Type |
Description |
int |
The count of remove.
|
public ProtocolStringList getRemoveList()
Remove headers (matching by header names) specified in the list.
repeated string remove = 3;
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public Map<String,String> getSet()
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;
Returns |
Type |
Description |
int |
|
public 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;
public 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;
Returns |
Type |
Description |
String |
|
public 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;
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
public final UnknownFieldSet getUnknownFields()
Overrides
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapField internalGetMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
public final boolean isInitialized()
Overrides
public HttpRoute.HeaderModifier.Builder newBuilderForType()
protected HttpRoute.HeaderModifier.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public HttpRoute.HeaderModifier.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides