Class HttpRoute.HeaderModifier.Builder (0.15.0)

public static final class HttpRoute.HeaderModifier.Builder extends GeneratedMessageV3.Builder<HttpRoute.HeaderModifier.Builder> implements HttpRoute.HeaderModifierOrBuilder

The specification for modifying HTTP header in HTTP request and HTTP response.

Protobuf type google.events.cloud.networkservices.v1.HttpRoute.HeaderModifier

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllRemove(Iterable<String> values)

public HttpRoute.HeaderModifier.Builder addAllRemove(Iterable<String> values)

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

repeated string remove = 3;

Parameter
NameDescription
valuesIterable<String>

The remove to add.

Returns
TypeDescription
HttpRoute.HeaderModifier.Builder

This builder for chaining.

addRemove(String value)

public HttpRoute.HeaderModifier.Builder addRemove(String value)

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

repeated string remove = 3;

Parameter
NameDescription
valueString

The remove to add.

Returns
TypeDescription
HttpRoute.HeaderModifier.Builder

This builder for chaining.

addRemoveBytes(ByteString value)

public HttpRoute.HeaderModifier.Builder addRemoveBytes(ByteString value)

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

repeated string remove = 3;

Parameter
NameDescription
valueByteString

The bytes of the remove to add.

Returns
TypeDescription
HttpRoute.HeaderModifier.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HttpRoute.HeaderModifier.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder
Overrides

build()

public HttpRoute.HeaderModifier build()
Returns
TypeDescription
HttpRoute.HeaderModifier

buildPartial()

public HttpRoute.HeaderModifier buildPartial()
Returns
TypeDescription
HttpRoute.HeaderModifier

clear()

public HttpRoute.HeaderModifier.Builder clear()
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder
Overrides

clearAdd()

public HttpRoute.HeaderModifier.Builder clearAdd()
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder

clearField(Descriptors.FieldDescriptor field)

public HttpRoute.HeaderModifier.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public HttpRoute.HeaderModifier.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder
Overrides

clearRemove()

public HttpRoute.HeaderModifier.Builder clearRemove()

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

repeated string remove = 3;

Returns
TypeDescription
HttpRoute.HeaderModifier.Builder

This builder for chaining.

clearSet()

public HttpRoute.HeaderModifier.Builder clearSet()
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder

clone()

public HttpRoute.HeaderModifier.Builder clone()
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder
Overrides

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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getAdd()

public Map<String,String> getAdd()

Use #getAddMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getDefaultInstanceForType()

public HttpRoute.HeaderModifier getDefaultInstanceForType()
Returns
TypeDescription
HttpRoute.HeaderModifier

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableAdd()

public Map<String,String> getMutableAdd()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableSet()

public Map<String,String> getMutableSet()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getRemove(int index)

public String getRemove(int index)

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

repeated string remove = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of remove.

getRemoveList()

public ProtocolStringList getRemoveList()

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

repeated string remove = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the remove.

getSet()

public Map<String,String> getSet()

Use #getSetMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HttpRoute.HeaderModifier other)

public HttpRoute.HeaderModifier.Builder mergeFrom(HttpRoute.HeaderModifier other)
Parameter
NameDescription
otherHttpRoute.HeaderModifier
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HttpRoute.HeaderModifier.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public HttpRoute.HeaderModifier.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HttpRoute.HeaderModifier.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder
Overrides

putAdd(String key, String value)

public HttpRoute.HeaderModifier.Builder putAdd(String key, String value)

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
NameDescription
keyString
valueString
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder

putAllAdd(Map<String,String> values)

public HttpRoute.HeaderModifier.Builder putAllAdd(Map<String,String> values)

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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder

putAllSet(Map<String,String> values)

public HttpRoute.HeaderModifier.Builder putAllSet(Map<String,String> values)

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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder

putSet(String key, String value)

public HttpRoute.HeaderModifier.Builder putSet(String key, String value)

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
NameDescription
keyString
valueString
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder

removeAdd(String key)

public HttpRoute.HeaderModifier.Builder removeAdd(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
NameDescription
keyString
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder

removeSet(String key)

public HttpRoute.HeaderModifier.Builder removeSet(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
NameDescription
keyString
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public HttpRoute.HeaderModifier.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder
Overrides

setRemove(int index, String value)

public HttpRoute.HeaderModifier.Builder setRemove(int index, String value)

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

repeated string remove = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The remove to set.

Returns
TypeDescription
HttpRoute.HeaderModifier.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public HttpRoute.HeaderModifier.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HttpRoute.HeaderModifier.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HttpRoute.HeaderModifier.Builder
Overrides