Class TransformConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TransformConfig.Builder>
io.envoyproxy.envoy.extensions.filters.http.transform.v3.TransformConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TransformConfigOrBuilder,Cloneable
- Enclosing class:
- TransformConfig
public static final class TransformConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<TransformConfig.Builder>
implements TransformConfigOrBuilder
Configuration for the transform filter. The filter may buffer the request/response until the entire body is received, and then mutate the headers and body according to the contents of the request/response. The request and response transformations are independent and could be configured separately. Only JSON body transformation is supported for now.Protobuf type
envoy.extensions.filters.http.transform.v3.TransformConfig-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()If true and the request headers are transformed, Envoy will re-evaluate the target cluster in the same route.If true and the request headers are transformed, Envoy will clear the route cache for the current request and force re-evaluation of the route.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Configuration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.Configuration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.clone()booleanIf true and the request headers are transformed, Envoy will re-evaluate the target cluster in the same route.booleanIf true and the request headers are transformed, Envoy will clear the route cache for the current request and force re-evaluation of the route.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorConfiguration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.Configuration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.Configuration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.Configuration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.Configuration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.Configuration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.booleanConfiguration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.booleanConfiguration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(TransformConfig other) Configuration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.Configuration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.final TransformConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setClearClusterCache(boolean value) If true and the request headers are transformed, Envoy will re-evaluate the target cluster in the same route.setClearRouteCache(boolean value) If true and the request headers are transformed, Envoy will clear the route cache for the current request and force re-evaluation of the route.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Configuration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.setRequestTransformation(Transformation.Builder builderForValue) Configuration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.Configuration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.setResponseTransformation(Transformation.Builder builderForValue) Configuration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.final TransformConfig.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<TransformConfig.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<TransformConfig.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<TransformConfig.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<TransformConfig.Builder>
-
setField
public TransformConfig.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<TransformConfig.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformConfig.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformConfig.Builder>
-
setRepeatedField
public TransformConfig.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<TransformConfig.Builder>
-
addRepeatedField
public TransformConfig.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<TransformConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransformConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformConfig.Builder>
-
mergeFrom
public TransformConfig.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<TransformConfig.Builder>- Throws:
IOException
-
hasRequestTransformation
public boolean hasRequestTransformation()Configuration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation request_transformation = 1;- Specified by:
hasRequestTransformationin interfaceTransformConfigOrBuilder- Returns:
- Whether the requestTransformation field is set.
-
getRequestTransformation
Configuration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation request_transformation = 1;- Specified by:
getRequestTransformationin interfaceTransformConfigOrBuilder- Returns:
- The requestTransformation.
-
setRequestTransformation
Configuration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation request_transformation = 1; -
setRequestTransformation
Configuration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation request_transformation = 1; -
mergeRequestTransformation
Configuration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation request_transformation = 1; -
clearRequestTransformation
Configuration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation request_transformation = 1; -
getRequestTransformationBuilder
Configuration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation request_transformation = 1; -
getRequestTransformationOrBuilder
Configuration for transforming request. .. note:: If set then the entire request headers and body will always be buffered on a JSON request even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation request_transformation = 1;- Specified by:
getRequestTransformationOrBuilderin interfaceTransformConfigOrBuilder
-
hasResponseTransformation
public boolean hasResponseTransformation()Configuration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation response_transformation = 2;- Specified by:
hasResponseTransformationin interfaceTransformConfigOrBuilder- Returns:
- Whether the responseTransformation field is set.
-
getResponseTransformation
Configuration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation response_transformation = 2;- Specified by:
getResponseTransformationin interfaceTransformConfigOrBuilder- Returns:
- The responseTransformation.
-
setResponseTransformation
Configuration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation response_transformation = 2; -
setResponseTransformation
Configuration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation response_transformation = 2; -
mergeResponseTransformation
Configuration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation response_transformation = 2; -
clearResponseTransformation
Configuration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation response_transformation = 2; -
getResponseTransformationBuilder
Configuration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation response_transformation = 2; -
getResponseTransformationOrBuilder
Configuration for transforming response. .. note:: If set then the entire response headers and body will always be buffered on a JSON response even if only headers are transformed.
.envoy.extensions.filters.http.transform.v3.Transformation response_transformation = 2;- Specified by:
getResponseTransformationOrBuilderin interfaceTransformConfigOrBuilder
-
getClearClusterCache
public boolean getClearClusterCache()If true and the request headers are transformed, Envoy will re-evaluate the target cluster in the same route. Please ensure the cluster specifier in the route supports dynamic evaluation or this flag will have no effect, e.g. :ref:`matcher cluster specifier <envoy_v3_api_msg_extensions.router.cluster_specifiers.matcher.v3.MatcherClusterSpecifier>`. Only one of ``clear_cluster_cache`` and ``clear_route_cache`` can be true.
bool clear_cluster_cache = 3;- Specified by:
getClearClusterCachein interfaceTransformConfigOrBuilder- Returns:
- The clearClusterCache.
-
setClearClusterCache
If true and the request headers are transformed, Envoy will re-evaluate the target cluster in the same route. Please ensure the cluster specifier in the route supports dynamic evaluation or this flag will have no effect, e.g. :ref:`matcher cluster specifier <envoy_v3_api_msg_extensions.router.cluster_specifiers.matcher.v3.MatcherClusterSpecifier>`. Only one of ``clear_cluster_cache`` and ``clear_route_cache`` can be true.
bool clear_cluster_cache = 3;- Parameters:
value- The clearClusterCache to set.- Returns:
- This builder for chaining.
-
clearClearClusterCache
If true and the request headers are transformed, Envoy will re-evaluate the target cluster in the same route. Please ensure the cluster specifier in the route supports dynamic evaluation or this flag will have no effect, e.g. :ref:`matcher cluster specifier <envoy_v3_api_msg_extensions.router.cluster_specifiers.matcher.v3.MatcherClusterSpecifier>`. Only one of ``clear_cluster_cache`` and ``clear_route_cache`` can be true.
bool clear_cluster_cache = 3;- Returns:
- This builder for chaining.
-
getClearRouteCache
public boolean getClearRouteCache()If true and the request headers are transformed, Envoy will clear the route cache for the current request and force re-evaluation of the route. This has performance penalty and should only be used when the route match criteria depends on the transformed headers. Only one of ``clear_cluster_cache`` and ``clear_route_cache`` can be true.
bool clear_route_cache = 4;- Specified by:
getClearRouteCachein interfaceTransformConfigOrBuilder- Returns:
- The clearRouteCache.
-
setClearRouteCache
If true and the request headers are transformed, Envoy will clear the route cache for the current request and force re-evaluation of the route. This has performance penalty and should only be used when the route match criteria depends on the transformed headers. Only one of ``clear_cluster_cache`` and ``clear_route_cache`` can be true.
bool clear_route_cache = 4;- Parameters:
value- The clearRouteCache to set.- Returns:
- This builder for chaining.
-
clearClearRouteCache
If true and the request headers are transformed, Envoy will clear the route cache for the current request and force re-evaluation of the route. This has performance penalty and should only be used when the route match criteria depends on the transformed headers. Only one of ``clear_cluster_cache`` and ``clear_route_cache`` can be true.
bool clear_route_cache = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final TransformConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformConfig.Builder>
-
mergeUnknownFields
public final TransformConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformConfig.Builder>
-