Class HttpConnectionManager.ProxyStatusConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
com.google.protobuf.GeneratedMessage.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
io.envoyproxy.envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.ProxyStatusConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HttpConnectionManager.ProxyStatusConfigOrBuilder,Cloneable
- Enclosing class:
HttpConnectionManager.ProxyStatusConfig
public static final class HttpConnectionManager.ProxyStatusConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
implements HttpConnectionManager.ProxyStatusConfigOrBuilder
Configures the manner in which the Proxy-Status HTTP response header is populated. See the [Proxy-Status RFC](https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-proxy-status-08). [#comment:TODO: Update this with the non-draft URL when finalized.] The Proxy-Status header is a string of the form: "<server_name>; error=<error_type>; details=<details>" [#next-free-field: 7]Protobuf type
envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.ProxyStatusConfig-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Objectprivate intprivate booleanprivate booleanprivate booleanprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidprivate voidclear()If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.If true, the details field of the Proxy-Status header will not contain connection termination details.If true, the details field of the Proxy-Status header is not populated with stream_info.response_code_details.If true, the details field of the Proxy-Status header will not contain an enumeration of the Envoy ResponseFlags.If true, overwrites the existing Status header with the response code recommended by the Proxy-Status spec.If ``use_node_id`` is set, Proxy-Status headers will use the Envoy's node ID as the name of the proxy.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.com.google.protobuf.ByteStringIf ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.booleanIf true, the details field of the Proxy-Status header will not contain connection termination details.booleanIf true, the details field of the Proxy-Status header is not populated with stream_info.response_code_details.booleanIf true, the details field of the Proxy-Status header will not contain an enumeration of the Envoy ResponseFlags.booleanIf true, overwrites the existing Status header with the response code recommended by the Proxy-Status spec.booleanIf ``use_node_id`` is set, Proxy-Status headers will use the Envoy's node ID as the name of the proxy.booleanIf ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.booleanIf ``use_node_id`` is set, Proxy-Status headers will use the Envoy's node ID as the name of the proxy.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setLiteralProxyName(String value) If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.setLiteralProxyNameBytes(com.google.protobuf.ByteString value) If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.setRemoveConnectionTerminationDetails(boolean value) If true, the details field of the Proxy-Status header will not contain connection termination details.setRemoveDetails(boolean value) If true, the details field of the Proxy-Status header is not populated with stream_info.response_code_details.setRemoveResponseFlags(boolean value) If true, the details field of the Proxy-Status header will not contain an enumeration of the Envoy ResponseFlags.setSetRecommendedResponseCode(boolean value) If true, overwrites the existing Status header with the response code recommended by the Proxy-Status spec.setUseNodeId(boolean value) If ``use_node_id`` is set, Proxy-Status headers will use the Envoy's node ID as the name of the proxy.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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
-
Field Details
-
proxyNameCase_
private int proxyNameCase_ -
proxyName_
-
bitField0_
private int bitField0_ -
removeDetails_
private boolean removeDetails_ -
removeConnectionTerminationDetails_
private boolean removeConnectionTerminationDetails_ -
removeResponseFlags_
private boolean removeResponseFlags_ -
setRecommendedResponseCode_
private boolean setRecommendedResponseCode_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HttpConnectionManager.ProxyStatusConfig.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.GeneratedMessage.Builder<HttpConnectionManager.ProxyStatusConfig.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
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
-
mergeFrom
public HttpConnectionManager.ProxyStatusConfig.Builder mergeFrom(HttpConnectionManager.ProxyStatusConfig other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
-
mergeFrom
public HttpConnectionManager.ProxyStatusConfig.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<HttpConnectionManager.ProxyStatusConfig.Builder>- Throws:
IOException
-
getProxyNameCase
- Specified by:
getProxyNameCasein interfaceHttpConnectionManager.ProxyStatusConfigOrBuilder
-
clearProxyName
-
getRemoveDetails
public boolean getRemoveDetails()If true, the details field of the Proxy-Status header is not populated with stream_info.response_code_details. This value defaults to ``false``, i.e. the ``details`` field is populated by default.
bool remove_details = 1;- Specified by:
getRemoveDetailsin interfaceHttpConnectionManager.ProxyStatusConfigOrBuilder- Returns:
- The removeDetails.
-
setRemoveDetails
If true, the details field of the Proxy-Status header is not populated with stream_info.response_code_details. This value defaults to ``false``, i.e. the ``details`` field is populated by default.
bool remove_details = 1;- Parameters:
value- The removeDetails to set.- Returns:
- This builder for chaining.
-
clearRemoveDetails
If true, the details field of the Proxy-Status header is not populated with stream_info.response_code_details. This value defaults to ``false``, i.e. the ``details`` field is populated by default.
bool remove_details = 1;- Returns:
- This builder for chaining.
-
getRemoveConnectionTerminationDetails
public boolean getRemoveConnectionTerminationDetails()If true, the details field of the Proxy-Status header will not contain connection termination details. This value defaults to ``false``, i.e. the ``details`` field will contain connection termination details by default.
bool remove_connection_termination_details = 2;- Specified by:
getRemoveConnectionTerminationDetailsin interfaceHttpConnectionManager.ProxyStatusConfigOrBuilder- Returns:
- The removeConnectionTerminationDetails.
-
setRemoveConnectionTerminationDetails
public HttpConnectionManager.ProxyStatusConfig.Builder setRemoveConnectionTerminationDetails(boolean value) If true, the details field of the Proxy-Status header will not contain connection termination details. This value defaults to ``false``, i.e. the ``details`` field will contain connection termination details by default.
bool remove_connection_termination_details = 2;- Parameters:
value- The removeConnectionTerminationDetails to set.- Returns:
- This builder for chaining.
-
clearRemoveConnectionTerminationDetails
If true, the details field of the Proxy-Status header will not contain connection termination details. This value defaults to ``false``, i.e. the ``details`` field will contain connection termination details by default.
bool remove_connection_termination_details = 2;- Returns:
- This builder for chaining.
-
getRemoveResponseFlags
public boolean getRemoveResponseFlags()If true, the details field of the Proxy-Status header will not contain an enumeration of the Envoy ResponseFlags. This value defaults to ``false``, i.e. the ``details`` field will contain a list of ResponseFlags by default.
bool remove_response_flags = 3;- Specified by:
getRemoveResponseFlagsin interfaceHttpConnectionManager.ProxyStatusConfigOrBuilder- Returns:
- The removeResponseFlags.
-
setRemoveResponseFlags
If true, the details field of the Proxy-Status header will not contain an enumeration of the Envoy ResponseFlags. This value defaults to ``false``, i.e. the ``details`` field will contain a list of ResponseFlags by default.
bool remove_response_flags = 3;- Parameters:
value- The removeResponseFlags to set.- Returns:
- This builder for chaining.
-
clearRemoveResponseFlags
If true, the details field of the Proxy-Status header will not contain an enumeration of the Envoy ResponseFlags. This value defaults to ``false``, i.e. the ``details`` field will contain a list of ResponseFlags by default.
bool remove_response_flags = 3;- Returns:
- This builder for chaining.
-
getSetRecommendedResponseCode
public boolean getSetRecommendedResponseCode()If true, overwrites the existing Status header with the response code recommended by the Proxy-Status spec. This value defaults to ``false``, i.e. the HTTP response code is not overwritten.
bool set_recommended_response_code = 4;- Specified by:
getSetRecommendedResponseCodein interfaceHttpConnectionManager.ProxyStatusConfigOrBuilder- Returns:
- The setRecommendedResponseCode.
-
setSetRecommendedResponseCode
If true, overwrites the existing Status header with the response code recommended by the Proxy-Status spec. This value defaults to ``false``, i.e. the HTTP response code is not overwritten.
bool set_recommended_response_code = 4;- Parameters:
value- The setRecommendedResponseCode to set.- Returns:
- This builder for chaining.
-
clearSetRecommendedResponseCode
If true, overwrites the existing Status header with the response code recommended by the Proxy-Status spec. This value defaults to ``false``, i.e. the HTTP response code is not overwritten.
bool set_recommended_response_code = 4;- Returns:
- This builder for chaining.
-
hasUseNodeId
public boolean hasUseNodeId()If ``use_node_id`` is set, Proxy-Status headers will use the Envoy's node ID as the name of the proxy.
bool use_node_id = 5;- Specified by:
hasUseNodeIdin interfaceHttpConnectionManager.ProxyStatusConfigOrBuilder- Returns:
- Whether the useNodeId field is set.
-
getUseNodeId
public boolean getUseNodeId()If ``use_node_id`` is set, Proxy-Status headers will use the Envoy's node ID as the name of the proxy.
bool use_node_id = 5;- Specified by:
getUseNodeIdin interfaceHttpConnectionManager.ProxyStatusConfigOrBuilder- Returns:
- The useNodeId.
-
setUseNodeId
If ``use_node_id`` is set, Proxy-Status headers will use the Envoy's node ID as the name of the proxy.
bool use_node_id = 5;- Parameters:
value- The useNodeId to set.- Returns:
- This builder for chaining.
-
clearUseNodeId
If ``use_node_id`` is set, Proxy-Status headers will use the Envoy's node ID as the name of the proxy.
bool use_node_id = 5;- Returns:
- This builder for chaining.
-
hasLiteralProxyName
public boolean hasLiteralProxyName()If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.
string literal_proxy_name = 6;- Specified by:
hasLiteralProxyNamein interfaceHttpConnectionManager.ProxyStatusConfigOrBuilder- Returns:
- Whether the literalProxyName field is set.
-
getLiteralProxyName
If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.
string literal_proxy_name = 6;- Specified by:
getLiteralProxyNamein interfaceHttpConnectionManager.ProxyStatusConfigOrBuilder- Returns:
- The literalProxyName.
-
getLiteralProxyNameBytes
public com.google.protobuf.ByteString getLiteralProxyNameBytes()If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.
string literal_proxy_name = 6;- Specified by:
getLiteralProxyNameBytesin interfaceHttpConnectionManager.ProxyStatusConfigOrBuilder- Returns:
- The bytes for literalProxyName.
-
setLiteralProxyName
If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.
string literal_proxy_name = 6;- Parameters:
value- The literalProxyName to set.- Returns:
- This builder for chaining.
-
clearLiteralProxyName
If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.
string literal_proxy_name = 6;- Returns:
- This builder for chaining.
-
setLiteralProxyNameBytes
public HttpConnectionManager.ProxyStatusConfig.Builder setLiteralProxyNameBytes(com.google.protobuf.ByteString value) If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.
string literal_proxy_name = 6;- Parameters:
value- The bytes for literalProxyName to set.- Returns:
- This builder for chaining.
-