Class PerRouteConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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 type
envoy.config.filter.http.dynamic_forward_proxy.v2alpha.PerRouteConfig-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Indicates that before DNS lookup, the host header will be swapped with the value of this header.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Indicates that before DNS lookup, the host header will be swapped with this value.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()Indicates that before DNS lookup, the host header will be swapped with the value of this header.com.google.protobuf.ByteStringIndicates that before DNS lookup, the host header will be swapped with the value of this header.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIndicates that before DNS lookup, the host header will be swapped with this value.com.google.protobuf.ByteStringIndicates that before DNS lookup, the host header will be swapped with this value.booleanIndicates that before DNS lookup, the host header will be swapped with the value of this header.booleanIndicates that before DNS lookup, the host header will be swapped with this value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(PerRouteConfig other) final PerRouteConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAutoHostRewriteHeader(String value) Indicates that before DNS lookup, the host header will be swapped with the value of this header.setAutoHostRewriteHeaderBytes(com.google.protobuf.ByteString value) Indicates that before DNS lookup, the host header will be swapped with the value of this header.setHostRewrite(String value) Indicates that before DNS lookup, the host header will be swapped with this value.setHostRewriteBytes(com.google.protobuf.ByteString value) Indicates that before DNS lookup, the host header will be swapped with this value.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final 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, 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<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
- 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<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
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PerRouteConfig.Builder>
-
clearOneof
- 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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PerRouteConfig.Builder>
-
mergeFrom
-
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
- Specified by:
getHostRewriteSpecifierCasein interfacePerRouteConfigOrBuilder
-
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
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
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
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
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
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
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
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
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>
-