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 int
bitField0_
private java.lang.Object
proxyName_
private int
proxyNameCase_
private boolean
removeConnectionTerminationDetails_
private boolean
removeDetails_
private boolean
removeResponseFlags_
private boolean
setRecommendedResponseCode_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpConnectionManager.ProxyStatusConfig
build()
HttpConnectionManager.ProxyStatusConfig
buildPartial()
private void
buildPartial0(HttpConnectionManager.ProxyStatusConfig result)
private void
buildPartialOneofs(HttpConnectionManager.ProxyStatusConfig result)
HttpConnectionManager.ProxyStatusConfig.Builder
clear()
HttpConnectionManager.ProxyStatusConfig.Builder
clearLiteralProxyName()
If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.HttpConnectionManager.ProxyStatusConfig.Builder
clearProxyName()
HttpConnectionManager.ProxyStatusConfig.Builder
clearRemoveConnectionTerminationDetails()
If true, the details field of the Proxy-Status header will not contain connection termination details.HttpConnectionManager.ProxyStatusConfig.Builder
clearRemoveDetails()
If true, the details field of the Proxy-Status header is not populated with stream_info.response_code_details.HttpConnectionManager.ProxyStatusConfig.Builder
clearRemoveResponseFlags()
If true, the details field of the Proxy-Status header will not contain an enumeration of the Envoy ResponseFlags.HttpConnectionManager.ProxyStatusConfig.Builder
clearSetRecommendedResponseCode()
If true, overwrites the existing Status header with the response code recommended by the Proxy-Status spec.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.HttpConnectionManager.ProxyStatusConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getLiteralProxyName()
If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.com.google.protobuf.ByteString
getLiteralProxyNameBytes()
If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.HttpConnectionManager.ProxyStatusConfig.ProxyNameCase
getProxyNameCase()
boolean
getRemoveConnectionTerminationDetails()
If true, the details field of the Proxy-Status header will not contain connection termination details.boolean
getRemoveDetails()
If true, the details field of the Proxy-Status header is not populated with stream_info.response_code_details.boolean
getRemoveResponseFlags()
If true, the details field of the Proxy-Status header will not contain an enumeration of the Envoy ResponseFlags.boolean
getSetRecommendedResponseCode()
If true, overwrites the existing Status header with the response code recommended by the Proxy-Status spec.boolean
getUseNodeId()
If ``use_node_id`` is set, Proxy-Status headers will use the Envoy's node ID as the name of the proxy.boolean
hasLiteralProxyName()
If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.boolean
hasUseNodeId()
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
internalGetFieldAccessorTable()
boolean
isInitialized()
HttpConnectionManager.ProxyStatusConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
HttpConnectionManager.ProxyStatusConfig.Builder
mergeFrom(com.google.protobuf.Message other)
HttpConnectionManager.ProxyStatusConfig.Builder
mergeFrom(HttpConnectionManager.ProxyStatusConfig other)
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.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.HttpConnectionManager.ProxyStatusConfig.Builder
setRemoveConnectionTerminationDetails(boolean value)
If true, the details field of the Proxy-Status header will not contain connection termination details.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.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.HttpConnectionManager.ProxyStatusConfig.Builder
setSetRecommendedResponseCode(boolean value)
If true, overwrites the existing Status header with the response code recommended by the Proxy-Status spec.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.-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
-
clear
public 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
public HttpConnectionManager.ProxyStatusConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public HttpConnectionManager.ProxyStatusConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HttpConnectionManager.ProxyStatusConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in 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:
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 java.io.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:
java.io.IOException
-
getProxyNameCase
public HttpConnectionManager.ProxyStatusConfig.ProxyNameCase getProxyNameCase()
- Specified by:
getProxyNameCase
in 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:
getRemoveDetails
in 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:
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
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:
getRemoveResponseFlags
in 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:
getSetRecommendedResponseCode
in 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:
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
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:
hasLiteralProxyName
in 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:
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
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.
-
-