Class HttpRoute.HeaderModifier.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HttpRoute.HeaderModifier.Builder>
com.google.cloud.networkservices.v1.HttpRoute.HeaderModifier.Builder
- All Implemented Interfaces:
HttpRoute.HeaderModifierOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- HttpRoute.HeaderModifier
public static final class HttpRoute.HeaderModifier.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HttpRoute.HeaderModifier.Builder>
implements HttpRoute.HeaderModifierOrBuilder
The specification for modifying HTTP header in HTTP request and HTTP response.Protobuf type
google.cloud.networkservices.v1.HttpRoute.HeaderModifier-
Method Summary
Modifier and TypeMethodDescriptionaddAllRemove(Iterable<String> values) Remove headers (matching by header names) specified in the list.Remove headers (matching by header names) specified in the list.addRemoveBytes(com.google.protobuf.ByteString value) Remove headers (matching by header names) specified in the list.build()clear()clearAdd()Remove headers (matching by header names) specified in the list.clearSet()booleancontainsAdd(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.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.Deprecated.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.com.google.protobuf.ProtocolStringListRemove 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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Add 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.Completely 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.Add 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.Remove headers (matching by header names) specified in the list.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<HttpRoute.HeaderModifier.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<HttpRoute.HeaderModifier.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HttpRoute.HeaderModifier.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HttpRoute.HeaderModifier.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<HttpRoute.HeaderModifier.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpRoute.HeaderModifier.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HttpRoute.HeaderModifier.Builder>
-
mergeFrom
public HttpRoute.HeaderModifier.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpRoute.HeaderModifier.Builder>- Throws:
IOException
-
getSetCount
public int getSetCount()Description copied from interface:HttpRoute.HeaderModifierOrBuilderCompletely 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;- Specified by:
getSetCountin interfaceHttpRoute.HeaderModifierOrBuilder
-
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;- Specified by:
containsSetin interfaceHttpRoute.HeaderModifierOrBuilder
-
getSet
Deprecated.UsegetSetMap()instead.- Specified by:
getSetin interfaceHttpRoute.HeaderModifierOrBuilder
-
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;- Specified by:
getSetMapin interfaceHttpRoute.HeaderModifierOrBuilder
-
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;- Specified by:
getSetOrDefaultin interfaceHttpRoute.HeaderModifierOrBuilder
-
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;- Specified by:
getSetOrThrowin interfaceHttpRoute.HeaderModifierOrBuilder
-
clearSet
-
removeSet
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; -
getMutableSet
Deprecated.Use alternate mutation accessors instead. -
putSet
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; -
putAllSet
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
public int getAddCount()Description copied from interface:HttpRoute.HeaderModifierOrBuilderAdd 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;- Specified by:
getAddCountin interfaceHttpRoute.HeaderModifierOrBuilder
-
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;- Specified by:
containsAddin interfaceHttpRoute.HeaderModifierOrBuilder
-
getAdd
Deprecated.UsegetAddMap()instead.- Specified by:
getAddin interfaceHttpRoute.HeaderModifierOrBuilder
-
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;- Specified by:
getAddMapin interfaceHttpRoute.HeaderModifierOrBuilder
-
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;- Specified by:
getAddOrDefaultin interfaceHttpRoute.HeaderModifierOrBuilder
-
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;- Specified by:
getAddOrThrowin interfaceHttpRoute.HeaderModifierOrBuilder
-
clearAdd
-
removeAdd
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; -
getMutableAdd
Deprecated.Use alternate mutation accessors instead. -
putAdd
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; -
putAllAdd
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
public com.google.protobuf.ProtocolStringList getRemoveList()Remove headers (matching by header names) specified in the list.
repeated string remove = 3;- Specified by:
getRemoveListin interfaceHttpRoute.HeaderModifierOrBuilder- Returns:
- A list containing the remove.
-
getRemoveCount
public int getRemoveCount()Remove headers (matching by header names) specified in the list.
repeated string remove = 3;- Specified by:
getRemoveCountin interfaceHttpRoute.HeaderModifierOrBuilder- Returns:
- The count of remove.
-
getRemove
Remove headers (matching by header names) specified in the list.
repeated string remove = 3;- Specified by:
getRemovein interfaceHttpRoute.HeaderModifierOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The remove at the given index.
-
getRemoveBytes
public com.google.protobuf.ByteString getRemoveBytes(int index) Remove headers (matching by header names) specified in the list.
repeated string remove = 3;- Specified by:
getRemoveBytesin interfaceHttpRoute.HeaderModifierOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the remove at the given index.
-
setRemove
Remove headers (matching by header names) specified in the list.
repeated string remove = 3;- Parameters:
index- The index to set the value at.value- The remove to set.- Returns:
- This builder for chaining.
-
addRemove
Remove headers (matching by header names) specified in the list.
repeated string remove = 3;- Parameters:
value- The remove to add.- Returns:
- This builder for chaining.
-
addAllRemove
Remove headers (matching by header names) specified in the list.
repeated string remove = 3;- Parameters:
values- The remove to add.- Returns:
- This builder for chaining.
-
clearRemove
Remove headers (matching by header names) specified in the list.
repeated string remove = 3;- Returns:
- This builder for chaining.
-
addRemoveBytes
Remove headers (matching by header names) specified in the list.
repeated string remove = 3;- Parameters:
value- The bytes of the remove to add.- Returns:
- This builder for chaining.
-