Class HeaderMutation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.Builder>
io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutation.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HeaderMutationOrBuilder,Cloneable
- Enclosing class:
- HeaderMutation
public static final class HeaderMutation.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.Builder>
implements HeaderMutationOrBuilder
The HeaderMutation structure specifies an action that may be taken on HTTP headers.Protobuf type
envoy.config.common.mutation_rules.v3.HeaderMutation-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Append new header by the specified HeaderValueOption.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Remove the specified header if it exists.Remove the header if the key matches the specified string matcher.clone()Append new header by the specified HeaderValueOption.Append new header by the specified HeaderValueOption.Append new header by the specified HeaderValueOption.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRemove the specified header if it exists.com.google.protobuf.ByteStringRemove the specified header if it exists.Remove the header if the key matches the specified string matcher.Remove the header if the key matches the specified string matcher.Remove the header if the key matches the specified string matcher.booleanAppend new header by the specified HeaderValueOption.booleanRemove the specified header if it exists.booleanRemove the header if the key matches the specified string matcher.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeAppend(HeaderValueOption value) Append new header by the specified HeaderValueOption.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(HeaderMutation other) Remove the header if the key matches the specified string matcher.final HeaderMutation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAppend(HeaderValueOption value) Append new header by the specified HeaderValueOption.setAppend(HeaderValueOption.Builder builderForValue) Append new header by the specified HeaderValueOption.Remove the specified header if it exists.setRemoveBytes(com.google.protobuf.ByteString value) Remove the specified header if it exists.Remove the header if the key matches the specified string matcher.setRemoveOnMatch(HeaderMutation.RemoveOnMatch.Builder builderForValue) Remove the header if the key matches the specified string matcher.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final HeaderMutation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.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.GeneratedMessageV3.Builder<HeaderMutation.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.Builder>
-
setField
public HeaderMutation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.Builder>
-
setRepeatedField
public HeaderMutation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.Builder>
-
addRepeatedField
public HeaderMutation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HeaderMutation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.Builder>
-
mergeFrom
public HeaderMutation.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<HeaderMutation.Builder>- Throws:
IOException
-
getActionCase
- Specified by:
getActionCasein interfaceHeaderMutationOrBuilder
-
clearAction
-
hasRemove
public boolean hasRemove()Remove the specified header if it exists.
string remove = 1 [(.validate.rules) = { ... }- Specified by:
hasRemovein interfaceHeaderMutationOrBuilder- Returns:
- Whether the remove field is set.
-
getRemove
Remove the specified header if it exists.
string remove = 1 [(.validate.rules) = { ... }- Specified by:
getRemovein interfaceHeaderMutationOrBuilder- Returns:
- The remove.
-
getRemoveBytes
public com.google.protobuf.ByteString getRemoveBytes()Remove the specified header if it exists.
string remove = 1 [(.validate.rules) = { ... }- Specified by:
getRemoveBytesin interfaceHeaderMutationOrBuilder- Returns:
- The bytes for remove.
-
setRemove
Remove the specified header if it exists.
string remove = 1 [(.validate.rules) = { ... }- Parameters:
value- The remove to set.- Returns:
- This builder for chaining.
-
clearRemove
Remove the specified header if it exists.
string remove = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setRemoveBytes
Remove the specified header if it exists.
string remove = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for remove to set.- Returns:
- This builder for chaining.
-
hasAppend
public boolean hasAppend()Append new header by the specified HeaderValueOption.
.envoy.config.core.v3.HeaderValueOption append = 2;- Specified by:
hasAppendin interfaceHeaderMutationOrBuilder- Returns:
- Whether the append field is set.
-
getAppend
Append new header by the specified HeaderValueOption.
.envoy.config.core.v3.HeaderValueOption append = 2;- Specified by:
getAppendin interfaceHeaderMutationOrBuilder- Returns:
- The append.
-
setAppend
Append new header by the specified HeaderValueOption.
.envoy.config.core.v3.HeaderValueOption append = 2; -
setAppend
Append new header by the specified HeaderValueOption.
.envoy.config.core.v3.HeaderValueOption append = 2; -
mergeAppend
Append new header by the specified HeaderValueOption.
.envoy.config.core.v3.HeaderValueOption append = 2; -
clearAppend
Append new header by the specified HeaderValueOption.
.envoy.config.core.v3.HeaderValueOption append = 2; -
getAppendBuilder
Append new header by the specified HeaderValueOption.
.envoy.config.core.v3.HeaderValueOption append = 2; -
getAppendOrBuilder
Append new header by the specified HeaderValueOption.
.envoy.config.core.v3.HeaderValueOption append = 2;- Specified by:
getAppendOrBuilderin interfaceHeaderMutationOrBuilder
-
hasRemoveOnMatch
public boolean hasRemoveOnMatch()Remove the header if the key matches the specified string matcher.
.envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3;- Specified by:
hasRemoveOnMatchin interfaceHeaderMutationOrBuilder- Returns:
- Whether the removeOnMatch field is set.
-
getRemoveOnMatch
Remove the header if the key matches the specified string matcher.
.envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3;- Specified by:
getRemoveOnMatchin interfaceHeaderMutationOrBuilder- Returns:
- The removeOnMatch.
-
setRemoveOnMatch
Remove the header if the key matches the specified string matcher.
.envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3; -
setRemoveOnMatch
public HeaderMutation.Builder setRemoveOnMatch(HeaderMutation.RemoveOnMatch.Builder builderForValue) Remove the header if the key matches the specified string matcher.
.envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3; -
mergeRemoveOnMatch
Remove the header if the key matches the specified string matcher.
.envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3; -
clearRemoveOnMatch
Remove the header if the key matches the specified string matcher.
.envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3; -
getRemoveOnMatchBuilder
Remove the header if the key matches the specified string matcher.
.envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3; -
getRemoveOnMatchOrBuilder
Remove the header if the key matches the specified string matcher.
.envoy.config.common.mutation_rules.v3.HeaderMutation.RemoveOnMatch remove_on_match = 3;- Specified by:
getRemoveOnMatchOrBuilderin interfaceHeaderMutationOrBuilder
-
setUnknownFields
public final HeaderMutation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.Builder>
-
mergeUnknownFields
public final HeaderMutation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutation.Builder>
-