Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/ext_proc/v3/external_processor.proto
package io.envoyproxy.envoy.service.ext_proc.v3;
/**
*
* Change HTTP headers or trailers by appending, replacing, or removing
* headers.
*
*
* Protobuf type {@code envoy.service.ext_proc.v3.HeaderMutation}
*/
public final class HeaderMutation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.ext_proc.v3.HeaderMutation)
HeaderMutationOrBuilder {
private static final long serialVersionUID = 0L;
// Use HeaderMutation.newBuilder() to construct.
private HeaderMutation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HeaderMutation() {
setHeaders_ = java.util.Collections.emptyList();
removeHeaders_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HeaderMutation();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HeaderMutation(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
setHeaders_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
setHeaders_.add(
input.readMessage(io.envoyproxy.envoy.config.core.v3.HeaderValueOption.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
removeHeaders_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
removeHeaders_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
setHeaders_ = java.util.Collections.unmodifiableList(setHeaders_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
removeHeaders_ = removeHeaders_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.ext_proc.v3.ExternalProcessorProto.internal_static_envoy_service_ext_proc_v3_HeaderMutation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.ext_proc.v3.ExternalProcessorProto.internal_static_envoy_service_ext_proc_v3_HeaderMutation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.class, io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.Builder.class);
}
public static final int SET_HEADERS_FIELD_NUMBER = 1;
private java.util.List setHeaders_;
/**
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
*/
@java.lang.Override
public int getSetHeadersCount() {
return setHeaders_.size();
}
/**
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder getSetHeadersOrBuilder(
int index) {
return setHeaders_.get(index);
}
public static final int REMOVE_HEADERS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList removeHeaders_;
/**
*
* Remove these HTTP headers. Attempts to remove system headers --
* any header starting with ``:``, plus ``host`` -- will be ignored.
*
*
* repeated string remove_headers = 2;
* @return A list containing the removeHeaders.
*/
public com.google.protobuf.ProtocolStringList
getRemoveHeadersList() {
return removeHeaders_;
}
/**
*
* Remove these HTTP headers. Attempts to remove system headers --
* any header starting with ``:``, plus ``host`` -- will be ignored.
*
*
* repeated string remove_headers = 2;
* @return The count of removeHeaders.
*/
public int getRemoveHeadersCount() {
return removeHeaders_.size();
}
/**
*
* Remove these HTTP headers. Attempts to remove system headers --
* any header starting with ``:``, plus ``host`` -- will be ignored.
*
*
* repeated string remove_headers = 2;
* @param index The index of the element to return.
* @return The removeHeaders at the given index.
*/
public java.lang.String getRemoveHeaders(int index) {
return removeHeaders_.get(index);
}
/**
*
* Remove these HTTP headers. Attempts to remove system headers --
* any header starting with ``:``, plus ``host`` -- will be ignored.
*
*
* repeated string remove_headers = 2;
* @param index The index of the value to return.
* @return The bytes of the removeHeaders at the given index.
*/
public com.google.protobuf.ByteString
getRemoveHeadersBytes(int index) {
return removeHeaders_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < setHeaders_.size(); i++) {
output.writeMessage(1, setHeaders_.get(i));
}
for (int i = 0; i < removeHeaders_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, removeHeaders_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < setHeaders_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, setHeaders_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < removeHeaders_.size(); i++) {
dataSize += computeStringSizeNoTag(removeHeaders_.getRaw(i));
}
size += dataSize;
size += 1 * getRemoveHeadersList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation other = (io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation) obj;
if (!getSetHeadersList()
.equals(other.getSetHeadersList())) return false;
if (!getRemoveHeadersList()
.equals(other.getRemoveHeadersList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getSetHeadersCount() > 0) {
hash = (37 * hash) + SET_HEADERS_FIELD_NUMBER;
hash = (53 * hash) + getSetHeadersList().hashCode();
}
if (getRemoveHeadersCount() > 0) {
hash = (37 * hash) + REMOVE_HEADERS_FIELD_NUMBER;
hash = (53 * hash) + getRemoveHeadersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Change HTTP headers or trailers by appending, replacing, or removing
* headers.
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
*/
public int getSetHeadersCount() {
if (setHeadersBuilder_ == null) {
return setHeaders_.size();
} else {
return setHeadersBuilder_.getCount();
}
}
/**
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
*/
public Builder setSetHeaders(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption value) {
if (setHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSetHeadersIsMutable();
setHeaders_.set(index, value);
onChanged();
} else {
setHeadersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
*/
public Builder addSetHeaders(io.envoyproxy.envoy.config.core.v3.HeaderValueOption value) {
if (setHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSetHeadersIsMutable();
setHeaders_.add(value);
onChanged();
} else {
setHeadersBuilder_.addMessage(value);
}
return this;
}
/**
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
*/
public Builder addSetHeaders(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption value) {
if (setHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSetHeadersIsMutable();
setHeaders_.add(index, value);
onChanged();
} else {
setHeadersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder getSetHeadersBuilder(
int index) {
return getSetHeadersFieldBuilder().getBuilder(index);
}
/**
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder getSetHeadersOrBuilder(
int index) {
if (setHeadersBuilder_ == null) {
return setHeaders_.get(index); } else {
return setHeadersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
* Add or replace HTTP headers. Attempts to set the value of
* any ``x-envoy`` header, and attempts to set the ``:method``,
* ``:authority``, ``:scheme``, or ``host`` headers will be ignored.
* The ``set_headers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
* Remove these HTTP headers. Attempts to remove system headers --
* any header starting with ``:``, plus ``host`` -- will be ignored.
*
*
* repeated string remove_headers = 2;
* @return A list containing the removeHeaders.
*/
public com.google.protobuf.ProtocolStringList
getRemoveHeadersList() {
return removeHeaders_.getUnmodifiableView();
}
/**
*
* Remove these HTTP headers. Attempts to remove system headers --
* any header starting with ``:``, plus ``host`` -- will be ignored.
*
*
* repeated string remove_headers = 2;
* @return The count of removeHeaders.
*/
public int getRemoveHeadersCount() {
return removeHeaders_.size();
}
/**
*
* Remove these HTTP headers. Attempts to remove system headers --
* any header starting with ``:``, plus ``host`` -- will be ignored.
*
*
* repeated string remove_headers = 2;
* @param index The index of the element to return.
* @return The removeHeaders at the given index.
*/
public java.lang.String getRemoveHeaders(int index) {
return removeHeaders_.get(index);
}
/**
*
* Remove these HTTP headers. Attempts to remove system headers --
* any header starting with ``:``, plus ``host`` -- will be ignored.
*
*
* repeated string remove_headers = 2;
* @param index The index of the value to return.
* @return The bytes of the removeHeaders at the given index.
*/
public com.google.protobuf.ByteString
getRemoveHeadersBytes(int index) {
return removeHeaders_.getByteString(index);
}
/**
*
* Remove these HTTP headers. Attempts to remove system headers --
* any header starting with ``:``, plus ``host`` -- will be ignored.
*
*
* repeated string remove_headers = 2;
* @param index The index to set the value at.
* @param value The removeHeaders to set.
* @return This builder for chaining.
*/
public Builder setRemoveHeaders(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRemoveHeadersIsMutable();
removeHeaders_.set(index, value);
onChanged();
return this;
}
/**
*
* Remove these HTTP headers. Attempts to remove system headers --
* any header starting with ``:``, plus ``host`` -- will be ignored.
*
*
* repeated string remove_headers = 2;
* @param value The removeHeaders to add.
* @return This builder for chaining.
*/
public Builder addRemoveHeaders(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRemoveHeadersIsMutable();
removeHeaders_.add(value);
onChanged();
return this;
}
/**
*
* Remove these HTTP headers. Attempts to remove system headers --
* any header starting with ``:``, plus ``host`` -- will be ignored.
*
*
* repeated string remove_headers = 2;
* @param values The removeHeaders to add.
* @return This builder for chaining.
*/
public Builder addAllRemoveHeaders(
java.lang.Iterable values) {
ensureRemoveHeadersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, removeHeaders_);
onChanged();
return this;
}
/**
*
* Remove these HTTP headers. Attempts to remove system headers --
* any header starting with ``:``, plus ``host`` -- will be ignored.
*