Class LocalResponsePolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LocalResponsePolicy.Builder>
-
- io.envoyproxy.envoy.extensions.http.custom_response.local_response_policy.v3.LocalResponsePolicy.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LocalResponsePolicyOrBuilder,Cloneable
- Enclosing class:
- LocalResponsePolicy
public static final class LocalResponsePolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LocalResponsePolicy.Builder> implements LocalResponsePolicyOrBuilder
Custom response policy to serve a locally stored response to the downstream.
Protobuf typeenvoy.extensions.http.custom_response.local_response_policy.v3.LocalResponsePolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalResponsePolicy.BuilderaddAllResponseHeadersToAdd(Iterable<? extends HeaderValueOption> values)HTTP headers to add to the response.LocalResponsePolicy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LocalResponsePolicy.BuilderaddResponseHeadersToAdd(int index, HeaderValueOption value)HTTP headers to add to the response.LocalResponsePolicy.BuilderaddResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue)HTTP headers to add to the response.LocalResponsePolicy.BuilderaddResponseHeadersToAdd(HeaderValueOption value)HTTP headers to add to the response.LocalResponsePolicy.BuilderaddResponseHeadersToAdd(HeaderValueOption.Builder builderForValue)HTTP headers to add to the response.HeaderValueOption.BuilderaddResponseHeadersToAddBuilder()HTTP headers to add to the response.HeaderValueOption.BuilderaddResponseHeadersToAddBuilder(int index)HTTP headers to add to the response.LocalResponsePolicybuild()LocalResponsePolicybuildPartial()LocalResponsePolicy.Builderclear()LocalResponsePolicy.BuilderclearBody()Optional new local reply body text.LocalResponsePolicy.BuilderclearBodyFormat()Optional body format to be used for this response.LocalResponsePolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LocalResponsePolicy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LocalResponsePolicy.BuilderclearResponseHeadersToAdd()HTTP headers to add to the response.LocalResponsePolicy.BuilderclearStatusCode()The new response status code if specified.LocalResponsePolicy.Builderclone()DataSourcegetBody()Optional new local reply body text.DataSource.BuildergetBodyBuilder()Optional new local reply body text.SubstitutionFormatStringgetBodyFormat()Optional body format to be used for this response.SubstitutionFormatString.BuildergetBodyFormatBuilder()Optional body format to be used for this response.SubstitutionFormatStringOrBuildergetBodyFormatOrBuilder()Optional body format to be used for this response.DataSourceOrBuildergetBodyOrBuilder()Optional new local reply body text.LocalResponsePolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()HeaderValueOptiongetResponseHeadersToAdd(int index)HTTP headers to add to the response.HeaderValueOption.BuildergetResponseHeadersToAddBuilder(int index)HTTP headers to add to the response.List<HeaderValueOption.Builder>getResponseHeadersToAddBuilderList()HTTP headers to add to the response.intgetResponseHeadersToAddCount()HTTP headers to add to the response.List<HeaderValueOption>getResponseHeadersToAddList()HTTP headers to add to the response.HeaderValueOptionOrBuildergetResponseHeadersToAddOrBuilder(int index)HTTP headers to add to the response.List<? extends HeaderValueOptionOrBuilder>getResponseHeadersToAddOrBuilderList()HTTP headers to add to the response.com.google.protobuf.UInt32ValuegetStatusCode()The new response status code if specified.com.google.protobuf.UInt32Value.BuildergetStatusCodeBuilder()The new response status code if specified.com.google.protobuf.UInt32ValueOrBuildergetStatusCodeOrBuilder()The new response status code if specified.booleanhasBody()Optional new local reply body text.booleanhasBodyFormat()Optional body format to be used for this response.booleanhasStatusCode()The new response status code if specified.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LocalResponsePolicy.BuildermergeBody(DataSource value)Optional new local reply body text.LocalResponsePolicy.BuildermergeBodyFormat(SubstitutionFormatString value)Optional body format to be used for this response.LocalResponsePolicy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LocalResponsePolicy.BuildermergeFrom(com.google.protobuf.Message other)LocalResponsePolicy.BuildermergeFrom(LocalResponsePolicy other)LocalResponsePolicy.BuildermergeStatusCode(com.google.protobuf.UInt32Value value)The new response status code if specified.LocalResponsePolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LocalResponsePolicy.BuilderremoveResponseHeadersToAdd(int index)HTTP headers to add to the response.LocalResponsePolicy.BuildersetBody(DataSource value)Optional new local reply body text.LocalResponsePolicy.BuildersetBody(DataSource.Builder builderForValue)Optional new local reply body text.LocalResponsePolicy.BuildersetBodyFormat(SubstitutionFormatString value)Optional body format to be used for this response.LocalResponsePolicy.BuildersetBodyFormat(SubstitutionFormatString.Builder builderForValue)Optional body format to be used for this response.LocalResponsePolicy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LocalResponsePolicy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)LocalResponsePolicy.BuildersetResponseHeadersToAdd(int index, HeaderValueOption value)HTTP headers to add to the response.LocalResponsePolicy.BuildersetResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue)HTTP headers to add to the response.LocalResponsePolicy.BuildersetStatusCode(com.google.protobuf.UInt32Value value)The new response status code if specified.LocalResponsePolicy.BuildersetStatusCode(com.google.protobuf.UInt32Value.Builder builderForValue)The new response status code if specified.LocalResponsePolicy.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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<LocalResponsePolicy.Builder>
-
clear
public LocalResponsePolicy.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<LocalResponsePolicy.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<LocalResponsePolicy.Builder>
-
getDefaultInstanceForType
public LocalResponsePolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LocalResponsePolicy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LocalResponsePolicy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LocalResponsePolicy.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<LocalResponsePolicy.Builder>
-
setField
public LocalResponsePolicy.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<LocalResponsePolicy.Builder>
-
clearField
public LocalResponsePolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalResponsePolicy.Builder>
-
clearOneof
public LocalResponsePolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalResponsePolicy.Builder>
-
setRepeatedField
public LocalResponsePolicy.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<LocalResponsePolicy.Builder>
-
addRepeatedField
public LocalResponsePolicy.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<LocalResponsePolicy.Builder>
-
mergeFrom
public LocalResponsePolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocalResponsePolicy.Builder>
-
mergeFrom
public LocalResponsePolicy.Builder mergeFrom(LocalResponsePolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalResponsePolicy.Builder>
-
mergeFrom
public LocalResponsePolicy.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<LocalResponsePolicy.Builder>- Throws:
IOException
-
hasBody
public boolean hasBody()
Optional new local reply body text. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 1;- Specified by:
hasBodyin interfaceLocalResponsePolicyOrBuilder- Returns:
- Whether the body field is set.
-
getBody
public DataSource getBody()
Optional new local reply body text. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 1;- Specified by:
getBodyin interfaceLocalResponsePolicyOrBuilder- Returns:
- The body.
-
setBody
public LocalResponsePolicy.Builder setBody(DataSource value)
Optional new local reply body text. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 1;
-
setBody
public LocalResponsePolicy.Builder setBody(DataSource.Builder builderForValue)
Optional new local reply body text. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 1;
-
mergeBody
public LocalResponsePolicy.Builder mergeBody(DataSource value)
Optional new local reply body text. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 1;
-
clearBody
public LocalResponsePolicy.Builder clearBody()
Optional new local reply body text. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 1;
-
getBodyBuilder
public DataSource.Builder getBodyBuilder()
Optional new local reply body text. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 1;
-
getBodyOrBuilder
public DataSourceOrBuilder getBodyOrBuilder()
Optional new local reply body text. It will be used in the ``%LOCAL_REPLY_BODY%`` command operator in the ``body_format``.
.envoy.config.core.v3.DataSource body = 1;- Specified by:
getBodyOrBuilderin interfaceLocalResponsePolicyOrBuilder
-
hasBodyFormat
public boolean hasBodyFormat()
Optional body format to be used for this response. If ``body_format`` is not provided, and ``body`` is, the contents of ``body`` will be used to populate the body of the local reply without formatting.
.envoy.config.core.v3.SubstitutionFormatString body_format = 2;- Specified by:
hasBodyFormatin interfaceLocalResponsePolicyOrBuilder- Returns:
- Whether the bodyFormat field is set.
-
getBodyFormat
public SubstitutionFormatString getBodyFormat()
Optional body format to be used for this response. If ``body_format`` is not provided, and ``body`` is, the contents of ``body`` will be used to populate the body of the local reply without formatting.
.envoy.config.core.v3.SubstitutionFormatString body_format = 2;- Specified by:
getBodyFormatin interfaceLocalResponsePolicyOrBuilder- Returns:
- The bodyFormat.
-
setBodyFormat
public LocalResponsePolicy.Builder setBodyFormat(SubstitutionFormatString value)
Optional body format to be used for this response. If ``body_format`` is not provided, and ``body`` is, the contents of ``body`` will be used to populate the body of the local reply without formatting.
.envoy.config.core.v3.SubstitutionFormatString body_format = 2;
-
setBodyFormat
public LocalResponsePolicy.Builder setBodyFormat(SubstitutionFormatString.Builder builderForValue)
Optional body format to be used for this response. If ``body_format`` is not provided, and ``body`` is, the contents of ``body`` will be used to populate the body of the local reply without formatting.
.envoy.config.core.v3.SubstitutionFormatString body_format = 2;
-
mergeBodyFormat
public LocalResponsePolicy.Builder mergeBodyFormat(SubstitutionFormatString value)
Optional body format to be used for this response. If ``body_format`` is not provided, and ``body`` is, the contents of ``body`` will be used to populate the body of the local reply without formatting.
.envoy.config.core.v3.SubstitutionFormatString body_format = 2;
-
clearBodyFormat
public LocalResponsePolicy.Builder clearBodyFormat()
Optional body format to be used for this response. If ``body_format`` is not provided, and ``body`` is, the contents of ``body`` will be used to populate the body of the local reply without formatting.
.envoy.config.core.v3.SubstitutionFormatString body_format = 2;
-
getBodyFormatBuilder
public SubstitutionFormatString.Builder getBodyFormatBuilder()
Optional body format to be used for this response. If ``body_format`` is not provided, and ``body`` is, the contents of ``body`` will be used to populate the body of the local reply without formatting.
.envoy.config.core.v3.SubstitutionFormatString body_format = 2;
-
getBodyFormatOrBuilder
public SubstitutionFormatStringOrBuilder getBodyFormatOrBuilder()
Optional body format to be used for this response. If ``body_format`` is not provided, and ``body`` is, the contents of ``body`` will be used to populate the body of the local reply without formatting.
.envoy.config.core.v3.SubstitutionFormatString body_format = 2;- Specified by:
getBodyFormatOrBuilderin interfaceLocalResponsePolicyOrBuilder
-
hasStatusCode
public boolean hasStatusCode()
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }- Specified by:
hasStatusCodein interfaceLocalResponsePolicyOrBuilder- Returns:
- Whether the statusCode field is set.
-
getStatusCode
public com.google.protobuf.UInt32Value getStatusCode()
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }- Specified by:
getStatusCodein interfaceLocalResponsePolicyOrBuilder- Returns:
- The statusCode.
-
setStatusCode
public LocalResponsePolicy.Builder setStatusCode(com.google.protobuf.UInt32Value value)
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }
-
setStatusCode
public LocalResponsePolicy.Builder setStatusCode(com.google.protobuf.UInt32Value.Builder builderForValue)
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }
-
mergeStatusCode
public LocalResponsePolicy.Builder mergeStatusCode(com.google.protobuf.UInt32Value value)
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }
-
clearStatusCode
public LocalResponsePolicy.Builder clearStatusCode()
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }
-
getStatusCodeBuilder
public com.google.protobuf.UInt32Value.Builder getStatusCodeBuilder()
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }
-
getStatusCodeOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getStatusCodeOrBuilder()
The new response status code if specified.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }- Specified by:
getStatusCodeOrBuilderin interfaceLocalResponsePolicyOrBuilder
-
getResponseHeadersToAddList
public List<HeaderValueOption> getResponseHeadersToAddList()
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddListin interfaceLocalResponsePolicyOrBuilder
-
getResponseHeadersToAddCount
public int getResponseHeadersToAddCount()
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddCountin interfaceLocalResponsePolicyOrBuilder
-
getResponseHeadersToAdd
public HeaderValueOption getResponseHeadersToAdd(int index)
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddin interfaceLocalResponsePolicyOrBuilder
-
setResponseHeadersToAdd
public LocalResponsePolicy.Builder setResponseHeadersToAdd(int index, HeaderValueOption value)
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
-
setResponseHeadersToAdd
public LocalResponsePolicy.Builder setResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue)
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
-
addResponseHeadersToAdd
public LocalResponsePolicy.Builder addResponseHeadersToAdd(HeaderValueOption value)
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
-
addResponseHeadersToAdd
public LocalResponsePolicy.Builder addResponseHeadersToAdd(int index, HeaderValueOption value)
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
-
addResponseHeadersToAdd
public LocalResponsePolicy.Builder addResponseHeadersToAdd(HeaderValueOption.Builder builderForValue)
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
-
addResponseHeadersToAdd
public LocalResponsePolicy.Builder addResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue)
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
-
addAllResponseHeadersToAdd
public LocalResponsePolicy.Builder addAllResponseHeadersToAdd(Iterable<? extends HeaderValueOption> values)
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
-
clearResponseHeadersToAdd
public LocalResponsePolicy.Builder clearResponseHeadersToAdd()
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
-
removeResponseHeadersToAdd
public LocalResponsePolicy.Builder removeResponseHeadersToAdd(int index)
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
-
getResponseHeadersToAddBuilder
public HeaderValueOption.Builder getResponseHeadersToAddBuilder(int index)
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
-
getResponseHeadersToAddOrBuilder
public HeaderValueOptionOrBuilder getResponseHeadersToAddOrBuilder(int index)
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddOrBuilderin interfaceLocalResponsePolicyOrBuilder
-
getResponseHeadersToAddOrBuilderList
public List<? extends HeaderValueOptionOrBuilder> getResponseHeadersToAddOrBuilderList()
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddOrBuilderListin interfaceLocalResponsePolicyOrBuilder
-
addResponseHeadersToAddBuilder
public HeaderValueOption.Builder addResponseHeadersToAddBuilder()
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
-
addResponseHeadersToAddBuilder
public HeaderValueOption.Builder addResponseHeadersToAddBuilder(int index)
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
-
getResponseHeadersToAddBuilderList
public List<HeaderValueOption.Builder> getResponseHeadersToAddBuilderList()
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
-
setUnknownFields
public final LocalResponsePolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalResponsePolicy.Builder>
-
mergeUnknownFields
public final LocalResponsePolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalResponsePolicy.Builder>
-
-