Class HttpConnectionManager.ProxyStatusConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpConnectionManager.ProxyStatusConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HttpConnectionManager.ProxyStatusConfigbuild()HttpConnectionManager.ProxyStatusConfigbuildPartial()HttpConnectionManager.ProxyStatusConfig.Builderclear()HttpConnectionManager.ProxyStatusConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)HttpConnectionManager.ProxyStatusConfig.BuilderclearLiteralProxyName()If ``literal_proxy_name`` is set, Proxy-Status headers will use this value as the name of the proxy.HttpConnectionManager.ProxyStatusConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)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.ProxyStatusConfig.Builderclone()HttpConnectionManager.ProxyStatusConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.GeneratedMessageV3.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.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)HttpConnectionManager.ProxyStatusConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HttpConnectionManager.ProxyStatusConfig.BuildersetLiteralProxyName(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.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)HttpConnectionManager.ProxyStatusConfig.BuildersetSetRecommendedResponseCode(boolean value)If true, overwrites the existing Status header with the response code recommended by the Proxy-Status spec.HttpConnectionManager.ProxyStatusConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)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.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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
-
-
-
-
Method Detail
-
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<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.GeneratedMessageV3.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.GeneratedMessageV3.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
-
clone
public HttpConnectionManager.ProxyStatusConfig.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<HttpConnectionManager.ProxyStatusConfig.Builder>
-
setField
public HttpConnectionManager.ProxyStatusConfig.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<HttpConnectionManager.ProxyStatusConfig.Builder>
-
clearField
public HttpConnectionManager.ProxyStatusConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
-
clearOneof
public HttpConnectionManager.ProxyStatusConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
-
setRepeatedField
public HttpConnectionManager.ProxyStatusConfig.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<HttpConnectionManager.ProxyStatusConfig.Builder>
-
addRepeatedField
public HttpConnectionManager.ProxyStatusConfig.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<HttpConnectionManager.ProxyStatusConfig.Builder>
-
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.GeneratedMessageV3.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
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 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(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.
-
setUnknownFields
public final HttpConnectionManager.ProxyStatusConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
-
mergeUnknownFields
public final HttpConnectionManager.ProxyStatusConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpConnectionManager.ProxyStatusConfig.Builder>
-
-