Class HttpConnectionManager.ProxyStatusConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.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 typeenvoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.ProxyStatusConfig
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private java.lang.ObjectproxyName_private intproxyNameCase_private booleanremoveConnectionTerminationDetails_private booleanremoveDetails_private booleanremoveResponseFlags_private booleansetRecommendedResponseCode_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpConnectionManager.ProxyStatusConfigbuild()HttpConnectionManager.ProxyStatusConfigbuildPartial()private voidbuildPartial0(HttpConnectionManager.ProxyStatusConfig result)private voidbuildPartialOneofs(HttpConnectionManager.ProxyStatusConfig result)HttpConnectionManager.ProxyStatusConfig.Builderclear()HttpConnectionManager.ProxyStatusConfig.BuilderclearLiteralProxyName()If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.HttpConnectionManager.ProxyStatusConfig.BuilderclearProxyName()HttpConnectionManager.ProxyStatusConfig.BuilderclearRemoveConnectionTerminationDetails()If true, the details field of the Proxy-Status header will not contain connection termination details.HttpConnectionManager.ProxyStatusConfig.BuilderclearRemoveDetails()If true, the details field of the Proxy-Status header is not populated with stream_info.response_code_details.HttpConnectionManager.ProxyStatusConfig.BuilderclearRemoveResponseFlags()If true, the details field of the Proxy-Status header will not contain an enumeration of the Envoy ResponseFlags.HttpConnectionManager.ProxyStatusConfig.BuilderclearSetRecommendedResponseCode()If true, overwrites the existing Status header with the response code recommended by the Proxy-Status spec.HttpConnectionManager.ProxyStatusConfig.BuilderclearUseNodeId()If ``use_node_id`` is set, Proxy-Status headers will use the Envoy's node ID as the name of the proxy.HttpConnectionManager.ProxyStatusConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetLiteralProxyName()If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.com.google.protobuf.ByteStringgetLiteralProxyNameBytes()If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.HttpConnectionManager.ProxyStatusConfig.ProxyNameCasegetProxyNameCase()booleangetRemoveConnectionTerminationDetails()If true, the details field of the Proxy-Status header will not contain connection termination details.booleangetRemoveDetails()If true, the details field of the Proxy-Status header is not populated with stream_info.response_code_details.booleangetRemoveResponseFlags()If true, the details field of the Proxy-Status header will not contain an enumeration of the Envoy ResponseFlags.booleangetSetRecommendedResponseCode()If true, overwrites the existing Status header with the response code recommended by the Proxy-Status spec.booleangetUseNodeId()If ``use_node_id`` is set, Proxy-Status headers will use the Envoy's node ID as the name of the proxy.booleanhasLiteralProxyName()If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.booleanhasUseNodeId()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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()HttpConnectionManager.ProxyStatusConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)HttpConnectionManager.ProxyStatusConfig.BuildermergeFrom(com.google.protobuf.Message other)HttpConnectionManager.ProxyStatusConfig.BuildermergeFrom(HttpConnectionManager.ProxyStatusConfig other)HttpConnectionManager.ProxyStatusConfig.BuildersetLiteralProxyName(java.lang.String value)If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.HttpConnectionManager.ProxyStatusConfig.BuildersetLiteralProxyNameBytes(com.google.protobuf.ByteString value)If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.HttpConnectionManager.ProxyStatusConfig.BuildersetRemoveConnectionTerminationDetails(boolean value)If true, the details field of the Proxy-Status header will not contain connection termination details.HttpConnectionManager.ProxyStatusConfig.BuildersetRemoveDetails(boolean value)If true, the details field of the Proxy-Status header is not populated with stream_info.response_code_details.HttpConnectionManager.ProxyStatusConfig.BuildersetRemoveResponseFlags(boolean value)If true, the details field of the Proxy-Status header will not contain an enumeration of the Envoy ResponseFlags.HttpConnectionManager.ProxyStatusConfig.BuildersetSetRecommendedResponseCode(boolean value)If true, overwrites the existing Status header with the response code recommended by the Proxy-Status spec.HttpConnectionManager.ProxyStatusConfig.BuildersetUseNodeId(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
-
-
-
-
Field Detail
-
proxyNameCase_
private int proxyNameCase_
-
proxyName_
private java.lang.Object proxyName_
-
bitField0_
private int bitField0_
-
removeDetails_
private boolean removeDetails_
-
removeConnectionTerminationDetails_
private boolean removeConnectionTerminationDetails_
-
removeResponseFlags_
private boolean removeResponseFlags_
-
setRecommendedResponseCode_
private boolean setRecommendedResponseCode_
-
-
Method Detail
-
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
public 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
public HttpConnectionManager.ProxyStatusConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public HttpConnectionManager.ProxyStatusConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HttpConnectionManager.ProxyStatusConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(HttpConnectionManager.ProxyStatusConfig result)
-
buildPartialOneofs
private void buildPartialOneofs(HttpConnectionManager.ProxyStatusConfig result)
-
mergeFrom
public HttpConnectionManager.ProxyStatusConfig.Builder mergeFrom(com.google.protobuf.Message other)
- 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 java.io.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:
java.io.IOException
-
getProxyNameCase
public HttpConnectionManager.ProxyStatusConfig.ProxyNameCase getProxyNameCase()
- Specified by:
getProxyNameCasein interfaceHttpConnectionManager.ProxyStatusConfigOrBuilder
-
clearProxyName
public HttpConnectionManager.ProxyStatusConfig.Builder 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
public HttpConnectionManager.ProxyStatusConfig.Builder setRemoveDetails(boolean value)
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
public HttpConnectionManager.ProxyStatusConfig.Builder 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
public HttpConnectionManager.ProxyStatusConfig.Builder 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
public HttpConnectionManager.ProxyStatusConfig.Builder setRemoveResponseFlags(boolean value)
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
public HttpConnectionManager.ProxyStatusConfig.Builder 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
public HttpConnectionManager.ProxyStatusConfig.Builder setSetRecommendedResponseCode(boolean value)
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
public HttpConnectionManager.ProxyStatusConfig.Builder 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
public HttpConnectionManager.ProxyStatusConfig.Builder 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.
bool use_node_id = 5;- Parameters:
value- The useNodeId to set.- Returns:
- This builder for chaining.
-
clearUseNodeId
public HttpConnectionManager.ProxyStatusConfig.Builder 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
public java.lang.String 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
public HttpConnectionManager.ProxyStatusConfig.Builder setLiteralProxyName(java.lang.String 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 literalProxyName to set.- Returns:
- This builder for chaining.
-
clearLiteralProxyName
public HttpConnectionManager.ProxyStatusConfig.Builder 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.
-
-