Class PerRouteConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PerRouteConfig.Builder>
-
- io.envoyproxy.envoy.extensions.filters.http.dynamic_forward_proxy.v3.PerRouteConfig.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,PerRouteConfigOrBuilder,Cloneable
- Enclosing class:
- PerRouteConfig
public static final class PerRouteConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PerRouteConfig.Builder> implements PerRouteConfigOrBuilder
Per route Configuration for the dynamic forward proxy HTTP filter.
Protobuf typeenvoy.extensions.filters.http.dynamic_forward_proxy.v3.PerRouteConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PerRouteConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PerRouteConfigbuild()PerRouteConfigbuildPartial()PerRouteConfig.Builderclear()PerRouteConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PerRouteConfig.BuilderclearHostRewriteHeader()Indicates that before DNS lookup, the host header will be swapped with the value of this header.PerRouteConfig.BuilderclearHostRewriteLiteral()Indicates that before DNS lookup, the host header will be swapped with this value.PerRouteConfig.BuilderclearHostRewriteSpecifier()PerRouteConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PerRouteConfig.Builderclone()PerRouteConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetHostRewriteHeader()Indicates that before DNS lookup, the host header will be swapped with the value of this header.com.google.protobuf.ByteStringgetHostRewriteHeaderBytes()Indicates that before DNS lookup, the host header will be swapped with the value of this header.StringgetHostRewriteLiteral()Indicates that before DNS lookup, the host header will be swapped with this value.com.google.protobuf.ByteStringgetHostRewriteLiteralBytes()Indicates that before DNS lookup, the host header will be swapped with this value.PerRouteConfig.HostRewriteSpecifierCasegetHostRewriteSpecifierCase()booleanhasHostRewriteHeader()Indicates that before DNS lookup, the host header will be swapped with the value of this header.booleanhasHostRewriteLiteral()Indicates that before DNS lookup, the host header will be swapped with this value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PerRouteConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PerRouteConfig.BuildermergeFrom(com.google.protobuf.Message other)PerRouteConfig.BuildermergeFrom(PerRouteConfig other)PerRouteConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PerRouteConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PerRouteConfig.BuildersetHostRewriteHeader(String value)Indicates that before DNS lookup, the host header will be swapped with the value of this header.PerRouteConfig.BuildersetHostRewriteHeaderBytes(com.google.protobuf.ByteString value)Indicates that before DNS lookup, the host header will be swapped with the value of this header.PerRouteConfig.BuildersetHostRewriteLiteral(String value)Indicates that before DNS lookup, the host header will be swapped with this value.PerRouteConfig.BuildersetHostRewriteLiteralBytes(com.google.protobuf.ByteString value)Indicates that before DNS lookup, the host header will be swapped with this value.PerRouteConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PerRouteConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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<PerRouteConfig.Builder>
-
clear
public PerRouteConfig.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<PerRouteConfig.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<PerRouteConfig.Builder>
-
getDefaultInstanceForType
public PerRouteConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PerRouteConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PerRouteConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PerRouteConfig.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<PerRouteConfig.Builder>
-
setField
public PerRouteConfig.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<PerRouteConfig.Builder>
-
clearField
public PerRouteConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PerRouteConfig.Builder>
-
clearOneof
public PerRouteConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PerRouteConfig.Builder>
-
setRepeatedField
public PerRouteConfig.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<PerRouteConfig.Builder>
-
addRepeatedField
public PerRouteConfig.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<PerRouteConfig.Builder>
-
mergeFrom
public PerRouteConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PerRouteConfig.Builder>
-
mergeFrom
public PerRouteConfig.Builder mergeFrom(PerRouteConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PerRouteConfig.Builder>
-
mergeFrom
public PerRouteConfig.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<PerRouteConfig.Builder>- Throws:
IOException
-
getHostRewriteSpecifierCase
public PerRouteConfig.HostRewriteSpecifierCase getHostRewriteSpecifierCase()
- Specified by:
getHostRewriteSpecifierCasein interfacePerRouteConfigOrBuilder
-
clearHostRewriteSpecifier
public PerRouteConfig.Builder clearHostRewriteSpecifier()
-
hasHostRewriteLiteral
public boolean hasHostRewriteLiteral()
Indicates that before DNS lookup, the host header will be swapped with this value. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite <envoy_v3_api_field_config.route.v3.RouteAction.host_rewrite_literal>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome.
string host_rewrite_literal = 1;- Specified by:
hasHostRewriteLiteralin interfacePerRouteConfigOrBuilder- Returns:
- Whether the hostRewriteLiteral field is set.
-
getHostRewriteLiteral
public String getHostRewriteLiteral()
Indicates that before DNS lookup, the host header will be swapped with this value. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite <envoy_v3_api_field_config.route.v3.RouteAction.host_rewrite_literal>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome.
string host_rewrite_literal = 1;- Specified by:
getHostRewriteLiteralin interfacePerRouteConfigOrBuilder- Returns:
- The hostRewriteLiteral.
-
getHostRewriteLiteralBytes
public com.google.protobuf.ByteString getHostRewriteLiteralBytes()
Indicates that before DNS lookup, the host header will be swapped with this value. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite <envoy_v3_api_field_config.route.v3.RouteAction.host_rewrite_literal>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome.
string host_rewrite_literal = 1;- Specified by:
getHostRewriteLiteralBytesin interfacePerRouteConfigOrBuilder- Returns:
- The bytes for hostRewriteLiteral.
-
setHostRewriteLiteral
public PerRouteConfig.Builder setHostRewriteLiteral(String value)
Indicates that before DNS lookup, the host header will be swapped with this value. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite <envoy_v3_api_field_config.route.v3.RouteAction.host_rewrite_literal>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome.
string host_rewrite_literal = 1;- Parameters:
value- The hostRewriteLiteral to set.- Returns:
- This builder for chaining.
-
clearHostRewriteLiteral
public PerRouteConfig.Builder clearHostRewriteLiteral()
Indicates that before DNS lookup, the host header will be swapped with this value. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite <envoy_v3_api_field_config.route.v3.RouteAction.host_rewrite_literal>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome.
string host_rewrite_literal = 1;- Returns:
- This builder for chaining.
-
setHostRewriteLiteralBytes
public PerRouteConfig.Builder setHostRewriteLiteralBytes(com.google.protobuf.ByteString value)
Indicates that before DNS lookup, the host header will be swapped with this value. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite <envoy_v3_api_field_config.route.v3.RouteAction.host_rewrite_literal>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome.
string host_rewrite_literal = 1;- Parameters:
value- The bytes for hostRewriteLiteral to set.- Returns:
- This builder for chaining.
-
hasHostRewriteHeader
public boolean hasHostRewriteHeader()
Indicates that before DNS lookup, the host header will be swapped with the value of this header. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome. .. note:: If the header appears multiple times only the first value is used.
string host_rewrite_header = 2;- Specified by:
hasHostRewriteHeaderin interfacePerRouteConfigOrBuilder- Returns:
- Whether the hostRewriteHeader field is set.
-
getHostRewriteHeader
public String getHostRewriteHeader()
Indicates that before DNS lookup, the host header will be swapped with the value of this header. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome. .. note:: If the header appears multiple times only the first value is used.
string host_rewrite_header = 2;- Specified by:
getHostRewriteHeaderin interfacePerRouteConfigOrBuilder- Returns:
- The hostRewriteHeader.
-
getHostRewriteHeaderBytes
public com.google.protobuf.ByteString getHostRewriteHeaderBytes()
Indicates that before DNS lookup, the host header will be swapped with the value of this header. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome. .. note:: If the header appears multiple times only the first value is used.
string host_rewrite_header = 2;- Specified by:
getHostRewriteHeaderBytesin interfacePerRouteConfigOrBuilder- Returns:
- The bytes for hostRewriteHeader.
-
setHostRewriteHeader
public PerRouteConfig.Builder setHostRewriteHeader(String value)
Indicates that before DNS lookup, the host header will be swapped with the value of this header. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome. .. note:: If the header appears multiple times only the first value is used.
string host_rewrite_header = 2;- Parameters:
value- The hostRewriteHeader to set.- Returns:
- This builder for chaining.
-
clearHostRewriteHeader
public PerRouteConfig.Builder clearHostRewriteHeader()
Indicates that before DNS lookup, the host header will be swapped with the value of this header. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome. .. note:: If the header appears multiple times only the first value is used.
string host_rewrite_header = 2;- Returns:
- This builder for chaining.
-
setHostRewriteHeaderBytes
public PerRouteConfig.Builder setHostRewriteHeaderBytes(com.google.protobuf.ByteString value)
Indicates that before DNS lookup, the host header will be swapped with the value of this header. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome. .. note:: If the header appears multiple times only the first value is used.
string host_rewrite_header = 2;- Parameters:
value- The bytes for hostRewriteHeader to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final PerRouteConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PerRouteConfig.Builder>
-
mergeUnknownFields
public final PerRouteConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PerRouteConfig.Builder>
-
-