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.config.filter.http.dynamic_forward_proxy.v2alpha.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.config.filter.http.dynamic_forward_proxy.v2alpha.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.BuilderclearAutoHostRewriteHeader()Indicates that before DNS lookup, the host header will be swapped with the value of this header.PerRouteConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PerRouteConfig.BuilderclearHostRewrite()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()StringgetAutoHostRewriteHeader()Indicates that before DNS lookup, the host header will be swapped with the value of this header.com.google.protobuf.ByteStringgetAutoHostRewriteHeaderBytes()Indicates that before DNS lookup, the host header will be swapped with the value of this header.PerRouteConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetHostRewrite()Indicates that before DNS lookup, the host header will be swapped with this value.com.google.protobuf.ByteStringgetHostRewriteBytes()Indicates that before DNS lookup, the host header will be swapped with this value.PerRouteConfig.HostRewriteSpecifierCasegetHostRewriteSpecifierCase()booleanhasAutoHostRewriteHeader()Indicates that before DNS lookup, the host header will be swapped with the value of this header.booleanhasHostRewrite()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.BuildersetAutoHostRewriteHeader(String value)Indicates that before DNS lookup, the host header will be swapped with the value of this header.PerRouteConfig.BuildersetAutoHostRewriteHeaderBytes(com.google.protobuf.ByteString value)Indicates that before DNS lookup, the host header will be swapped with the value of this header.PerRouteConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PerRouteConfig.BuildersetHostRewrite(String value)Indicates that before DNS lookup, the host header will be swapped with this value.PerRouteConfig.BuildersetHostRewriteBytes(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()
-
hasHostRewrite
public boolean hasHostRewrite()
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_api_field_route.RouteAction.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.
string host_rewrite = 1 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
hasHostRewritein interfacePerRouteConfigOrBuilder- Returns:
- Whether the hostRewrite field is set.
-
getHostRewrite
public String getHostRewrite()
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_api_field_route.RouteAction.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.
string host_rewrite = 1 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getHostRewritein interfacePerRouteConfigOrBuilder- Returns:
- The hostRewrite.
-
getHostRewriteBytes
public com.google.protobuf.ByteString getHostRewriteBytes()
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_api_field_route.RouteAction.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.
string host_rewrite = 1 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getHostRewriteBytesin interfacePerRouteConfigOrBuilder- Returns:
- The bytes for hostRewrite.
-
setHostRewrite
public PerRouteConfig.Builder setHostRewrite(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_api_field_route.RouteAction.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.
string host_rewrite = 1 [(.udpa.annotations.field_migrate) = { ... }- Parameters:
value- The hostRewrite to set.- Returns:
- This builder for chaining.
-
clearHostRewrite
public PerRouteConfig.Builder clearHostRewrite()
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_api_field_route.RouteAction.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.
string host_rewrite = 1 [(.udpa.annotations.field_migrate) = { ... }- Returns:
- This builder for chaining.
-
setHostRewriteBytes
public PerRouteConfig.Builder setHostRewriteBytes(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_api_field_route.RouteAction.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.
string host_rewrite = 1 [(.udpa.annotations.field_migrate) = { ... }- Parameters:
value- The bytes for hostRewrite to set.- Returns:
- This builder for chaining.
-
hasAutoHostRewriteHeader
public boolean hasAutoHostRewriteHeader()
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_api_field_route.RouteAction.auto_host_rewrite_header>` 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 auto_host_rewrite_header = 2 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
hasAutoHostRewriteHeaderin interfacePerRouteConfigOrBuilder- Returns:
- Whether the autoHostRewriteHeader field is set.
-
getAutoHostRewriteHeader
public String getAutoHostRewriteHeader()
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_api_field_route.RouteAction.auto_host_rewrite_header>` 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 auto_host_rewrite_header = 2 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getAutoHostRewriteHeaderin interfacePerRouteConfigOrBuilder- Returns:
- The autoHostRewriteHeader.
-
getAutoHostRewriteHeaderBytes
public com.google.protobuf.ByteString getAutoHostRewriteHeaderBytes()
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_api_field_route.RouteAction.auto_host_rewrite_header>` 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 auto_host_rewrite_header = 2 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getAutoHostRewriteHeaderBytesin interfacePerRouteConfigOrBuilder- Returns:
- The bytes for autoHostRewriteHeader.
-
setAutoHostRewriteHeader
public PerRouteConfig.Builder setAutoHostRewriteHeader(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_api_field_route.RouteAction.auto_host_rewrite_header>` 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 auto_host_rewrite_header = 2 [(.udpa.annotations.field_migrate) = { ... }- Parameters:
value- The autoHostRewriteHeader to set.- Returns:
- This builder for chaining.
-
clearAutoHostRewriteHeader
public PerRouteConfig.Builder clearAutoHostRewriteHeader()
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_api_field_route.RouteAction.auto_host_rewrite_header>` 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 auto_host_rewrite_header = 2 [(.udpa.annotations.field_migrate) = { ... }- Returns:
- This builder for chaining.
-
setAutoHostRewriteHeaderBytes
public PerRouteConfig.Builder setAutoHostRewriteHeaderBytes(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_api_field_route.RouteAction.auto_host_rewrite_header>` 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 auto_host_rewrite_header = 2 [(.udpa.annotations.field_migrate) = { ... }- Parameters:
value- The bytes for autoHostRewriteHeader 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>
-
-