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 int
private Object
private int
private boolean
private boolean
private boolean
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
private void
clear()
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.Descriptor
com.google.protobuf.Descriptors.Descriptor
If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.com.google.protobuf.ByteString
If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.boolean
If true, the details field of the Proxy-Status header will not contain connection termination details.boolean
If true, the details field of the Proxy-Status header is not populated with stream_info.response_code_details.boolean
If true, the details field of the Proxy-Status header will not contain an enumeration of the Envoy ResponseFlags.boolean
If true, overwrites the existing Status header with the response code recommended by the Proxy-Status spec.boolean
If ``use_node_id`` is set, Proxy-Status headers will use the Envoy's node ID as the name of the proxy.boolean
If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.boolean
If ``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.FieldAccessorTable
final boolean
mergeFrom
(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, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
-
mergeFrom
public HttpConnectionManager.ProxyStatusConfig.Builder mergeFrom(HttpConnectionManager.ProxyStatusConfig other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
- Throws:
IOException
-
getProxyNameCase
- Specified by:
getProxyNameCase
in 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:
getRemoveDetails
in 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:
getRemoveConnectionTerminationDetails
in 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:
getRemoveResponseFlags
in 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:
getSetRecommendedResponseCode
in 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:
hasUseNodeId
in 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:
getUseNodeId
in 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:
hasLiteralProxyName
in 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:
getLiteralProxyName
in 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:
getLiteralProxyNameBytes
in 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.
-