Class HttpRoute.HeaderModifier (0.10.0)

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.cloud.networkservices.v1.HttpRoute.HeaderModifier

Static Fields

ADD_FIELD_NUMBER

public static final int ADD_FIELD_NUMBER
Field Value
Type Description
int

REMOVE_FIELD_NUMBER

public static final int REMOVE_FIELD_NUMBER
Field Value
Type Description
int

SET_FIELD_NUMBER

public static final int SET_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static HttpRoute.HeaderModifier getDefaultInstance()
Returns
Type Description
HttpRoute.HeaderModifier

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static HttpRoute.HeaderModifier.Builder newBuilder()
Returns
Type Description
HttpRoute.HeaderModifier.Builder

newBuilder(HttpRoute.HeaderModifier prototype)

public static HttpRoute.HeaderModifier.Builder newBuilder(HttpRoute.HeaderModifier prototype)
Parameter
Name Description
prototype HttpRoute.HeaderModifier
Returns
Type Description
HttpRoute.HeaderModifier.Builder

parseDelimitedFrom(InputStream input)

public static HttpRoute.HeaderModifier parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HttpRoute.HeaderModifier
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.HeaderModifier parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.HeaderModifier
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static HttpRoute.HeaderModifier parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
HttpRoute.HeaderModifier
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.HeaderModifier parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.HeaderModifier
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HttpRoute.HeaderModifier parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
HttpRoute.HeaderModifier
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.HeaderModifier parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.HeaderModifier
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HttpRoute.HeaderModifier parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
HttpRoute.HeaderModifier
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.HeaderModifier parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.HeaderModifier
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static HttpRoute.HeaderModifier parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HttpRoute.HeaderModifier
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.HeaderModifier parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.HeaderModifier
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static HttpRoute.HeaderModifier parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
HttpRoute.HeaderModifier
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.HeaderModifier parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.HeaderModifier
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<HttpRoute.HeaderModifier> parser()
Returns
Type Description
Parser<HeaderModifier>

Methods

containsAdd(String key)

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
Returns
Type Description
boolean

containsSet(String key)

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
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAdd() (deprecated)

public Map<String,String> getAdd()

Use #getAddMap() instead.

Returns
Type Description
Map<String,String>

getAddCount()

public 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;

Returns
Type Description
int

getAddMap()

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;

Returns
Type Description
Map<String,String>

getAddOrDefault(String key, String defaultValue)

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;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAddOrThrow(String key)

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

getDefaultInstanceForType()

public HttpRoute.HeaderModifier getDefaultInstanceForType()
Returns
Type Description
HttpRoute.HeaderModifier

getParserForType()

public Parser<HttpRoute.HeaderModifier> getParserForType()
Returns
Type Description
Parser<HeaderModifier>
Overrides

getRemove(int index)

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.

getRemoveBytes(int 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.

getRemoveCount()

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.

getRemoveList()

public ProtocolStringList getRemoveList()

Remove headers (matching by header names) specified in the list.

repeated string remove = 3;

Returns
Type Description
ProtocolStringList

A list containing the remove.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSet() (deprecated)

public Map<String,String> getSet()

Use #getSetMap() instead.

Returns
Type Description
Map<String,String>

getSetCount()

public 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;

Returns
Type Description
int

getSetMap()

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;

Returns
Type Description
Map<String,String>

getSetOrDefault(String key, String defaultValue)

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;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getSetOrThrow(String key)

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

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public HttpRoute.HeaderModifier.Builder newBuilderForType()
Returns
Type Description
HttpRoute.HeaderModifier.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HttpRoute.HeaderModifier.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HttpRoute.HeaderModifier.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public HttpRoute.HeaderModifier.Builder toBuilder()
Returns
Type Description
HttpRoute.HeaderModifier.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException