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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public HttpRoute.HeaderModifier.Builder addAllRemove(Iterable<String> values)
Remove headers (matching by header names) specified in the list.
repeated string remove = 3;
public HttpRoute.HeaderModifier.Builder addRemove(String value)
Remove headers (matching by header names) specified in the list.
repeated string remove = 3;
Parameter |
Name |
Description |
value |
String
The remove to add.
|
public HttpRoute.HeaderModifier.Builder addRemoveBytes(ByteString value)
Remove headers (matching by header names) specified in the list.
repeated string remove = 3;
Parameter |
Name |
Description |
value |
ByteString
The bytes of the remove to add.
|
public HttpRoute.HeaderModifier.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public HttpRoute.HeaderModifier build()
public HttpRoute.HeaderModifier buildPartial()
public HttpRoute.HeaderModifier.Builder clear()
Overrides
public HttpRoute.HeaderModifier.Builder clearAdd()
public HttpRoute.HeaderModifier.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public HttpRoute.HeaderModifier.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public HttpRoute.HeaderModifier.Builder clearRemove()
Remove headers (matching by header names) specified in the list.
repeated string remove = 3;
public HttpRoute.HeaderModifier.Builder clearSet()
public HttpRoute.HeaderModifier.Builder clone()
Overrides
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 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 Descriptors.Descriptor getDescriptorForType()
Overrides
public Map<String,String> getMutableAdd()
Use alternate mutation accessors instead.
public Map<String,String> getMutableSet()
Use alternate mutation accessors instead.
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 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 |
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapField internalGetMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
protected MapField internalGetMutableMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
public final boolean isInitialized()
Overrides
public HttpRoute.HeaderModifier.Builder mergeFrom(HttpRoute.HeaderModifier other)
public HttpRoute.HeaderModifier.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public HttpRoute.HeaderModifier.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final HttpRoute.HeaderModifier.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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;
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;
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;
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;
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 |
Name |
Description |
key |
String
|
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 |
Name |
Description |
key |
String
|
public HttpRoute.HeaderModifier.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public HttpRoute.HeaderModifier.Builder setRemove(int index, String value)
Remove headers (matching by header names) specified in the list.
repeated string remove = 3;
Parameters |
Name |
Description |
index |
int
The index to set the value at.
|
value |
String
The remove to set.
|
public HttpRoute.HeaderModifier.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final HttpRoute.HeaderModifier.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides