Class BodyTransformation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BodyTransformation.Builder>
io.envoyproxy.envoy.extensions.filters.http.transform.v3.BodyTransformation.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,BodyTransformationOrBuilder,Cloneable
- Enclosing class:
- BodyTransformation
public static final class BodyTransformation.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<BodyTransformation.Builder>
implements BodyTransformationOrBuilder
Protobuf type
envoy.extensions.filters.http.transform.v3.BodyTransformation-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The action to perform for new body content and original body content.Body transformation configuration.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()The action to perform for new body content and original body content.intThe action to perform for new body content and original body content.Body transformation configuration.Body transformation configuration.Body transformation configuration.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanBody transformation configuration.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanBody transformation configuration.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(BodyTransformation other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The action to perform for new body content and original body content.setActionValue(int value) The action to perform for new body content and original body content.Body transformation configuration.setBodyFormat(SubstitutionFormatString.Builder builderForValue) Body transformation configuration.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(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<BodyTransformation.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<BodyTransformation.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<BodyTransformation.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<BodyTransformation.Builder>
-
setField
public BodyTransformation.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<BodyTransformation.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BodyTransformation.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BodyTransformation.Builder>
-
setRepeatedField
public BodyTransformation.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<BodyTransformation.Builder>
-
addRepeatedField
public BodyTransformation.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<BodyTransformation.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BodyTransformation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BodyTransformation.Builder>
-
mergeFrom
public BodyTransformation.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<BodyTransformation.Builder>- Throws:
IOException
-
hasBodyFormat
public boolean hasBodyFormat()Body transformation configuration. The substitution format string is used as the template to generate the transformed new body content. The :ref:`substitution format specifier <config_access_log_format>` could be applied here. And except the commonly used format specifiers, the additional format specifiers ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
.envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... }- Specified by:
hasBodyFormatin interfaceBodyTransformationOrBuilder- Returns:
- Whether the bodyFormat field is set.
-
getBodyFormat
Body transformation configuration. The substitution format string is used as the template to generate the transformed new body content. The :ref:`substitution format specifier <config_access_log_format>` could be applied here. And except the commonly used format specifiers, the additional format specifiers ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
.envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... }- Specified by:
getBodyFormatin interfaceBodyTransformationOrBuilder- Returns:
- The bodyFormat.
-
setBodyFormat
Body transformation configuration. The substitution format string is used as the template to generate the transformed new body content. The :ref:`substitution format specifier <config_access_log_format>` could be applied here. And except the commonly used format specifiers, the additional format specifiers ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
.envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... } -
setBodyFormat
Body transformation configuration. The substitution format string is used as the template to generate the transformed new body content. The :ref:`substitution format specifier <config_access_log_format>` could be applied here. And except the commonly used format specifiers, the additional format specifiers ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
.envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... } -
mergeBodyFormat
Body transformation configuration. The substitution format string is used as the template to generate the transformed new body content. The :ref:`substitution format specifier <config_access_log_format>` could be applied here. And except the commonly used format specifiers, the additional format specifiers ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
.envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... } -
clearBodyFormat
Body transformation configuration. The substitution format string is used as the template to generate the transformed new body content. The :ref:`substitution format specifier <config_access_log_format>` could be applied here. And except the commonly used format specifiers, the additional format specifiers ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
.envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... } -
getBodyFormatBuilder
Body transformation configuration. The substitution format string is used as the template to generate the transformed new body content. The :ref:`substitution format specifier <config_access_log_format>` could be applied here. And except the commonly used format specifiers, the additional format specifiers ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
.envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... } -
getBodyFormatOrBuilder
Body transformation configuration. The substitution format string is used as the template to generate the transformed new body content. The :ref:`substitution format specifier <config_access_log_format>` could be applied here. And except the commonly used format specifiers, the additional format specifiers ``%REQUEST_BODY(KEY*)%`` and ``%RESPONSE_BODY(KEY*)%`` could also be used here.
.envoy.config.core.v3.SubstitutionFormatString body_format = 1 [(.validate.rules) = { ... }- Specified by:
getBodyFormatOrBuilderin interfaceBodyTransformationOrBuilder
-
getActionValue
public int getActionValue()The action to perform for new body content and original body content. For example, if ``MERGE`` is used, then the new body content generated from the ``body_format`` will be merged into the original body content. Default is ``MERGE``.
.envoy.extensions.filters.http.transform.v3.BodyTransformation.TransformAction action = 2;- Specified by:
getActionValuein interfaceBodyTransformationOrBuilder- Returns:
- The enum numeric value on the wire for action.
-
setActionValue
The action to perform for new body content and original body content. For example, if ``MERGE`` is used, then the new body content generated from the ``body_format`` will be merged into the original body content. Default is ``MERGE``.
.envoy.extensions.filters.http.transform.v3.BodyTransformation.TransformAction action = 2;- Parameters:
value- The enum numeric value on the wire for action to set.- Returns:
- This builder for chaining.
-
getAction
The action to perform for new body content and original body content. For example, if ``MERGE`` is used, then the new body content generated from the ``body_format`` will be merged into the original body content. Default is ``MERGE``.
.envoy.extensions.filters.http.transform.v3.BodyTransformation.TransformAction action = 2;- Specified by:
getActionin interfaceBodyTransformationOrBuilder- Returns:
- The action.
-
setAction
The action to perform for new body content and original body content. For example, if ``MERGE`` is used, then the new body content generated from the ``body_format`` will be merged into the original body content. Default is ``MERGE``.
.envoy.extensions.filters.http.transform.v3.BodyTransformation.TransformAction action = 2;- Parameters:
value- The action to set.- Returns:
- This builder for chaining.
-
clearAction
The action to perform for new body content and original body content. For example, if ``MERGE`` is used, then the new body content generated from the ``body_format`` will be merged into the original body content. Default is ``MERGE``.
.envoy.extensions.filters.http.transform.v3.BodyTransformation.TransformAction action = 2;- Returns:
- This builder for chaining.
-
setUnknownFields
public final BodyTransformation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BodyTransformation.Builder>
-
mergeUnknownFields
public final BodyTransformation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BodyTransformation.Builder>
-