All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation Maven / Gradle / Ivy

// 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.
   * 
* * repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1; */ @java.lang.Override public java.util.List getSetHeadersList() { return 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.
   * 
* * repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1; */ @java.lang.Override public java.util.List getSetHeadersOrBuilderList() { return 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.
   * 
* * 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.
   * 
* * repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.HeaderValueOption getSetHeaders(int index) { return setHeaders_.get(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; */ @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.
   * 
* * Protobuf type {@code envoy.service.ext_proc.v3.HeaderMutation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.ext_proc.v3.HeaderMutation) io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutationOrBuilder { 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); } // Construct using io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSetHeadersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (setHeadersBuilder_ == null) { setHeaders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { setHeadersBuilder_.clear(); } removeHeaders_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.ext_proc.v3.ExternalProcessorProto.internal_static_envoy_service_ext_proc_v3_HeaderMutation_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation getDefaultInstanceForType() { return io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation build() { io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation buildPartial() { io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation result = new io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation(this); int from_bitField0_ = bitField0_; if (setHeadersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { setHeaders_ = java.util.Collections.unmodifiableList(setHeaders_); bitField0_ = (bitField0_ & ~0x00000001); } result.setHeaders_ = setHeaders_; } else { result.setHeaders_ = setHeadersBuilder_.build(); } if (((bitField0_ & 0x00000002) != 0)) { removeHeaders_ = removeHeaders_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.removeHeaders_ = removeHeaders_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation) { return mergeFrom((io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation other) { if (other == io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.getDefaultInstance()) return this; if (setHeadersBuilder_ == null) { if (!other.setHeaders_.isEmpty()) { if (setHeaders_.isEmpty()) { setHeaders_ = other.setHeaders_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSetHeadersIsMutable(); setHeaders_.addAll(other.setHeaders_); } onChanged(); } } else { if (!other.setHeaders_.isEmpty()) { if (setHeadersBuilder_.isEmpty()) { setHeadersBuilder_.dispose(); setHeadersBuilder_ = null; setHeaders_ = other.setHeaders_; bitField0_ = (bitField0_ & ~0x00000001); setHeadersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSetHeadersFieldBuilder() : null; } else { setHeadersBuilder_.addAllMessages(other.setHeaders_); } } } if (!other.removeHeaders_.isEmpty()) { if (removeHeaders_.isEmpty()) { removeHeaders_ = other.removeHeaders_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRemoveHeadersIsMutable(); removeHeaders_.addAll(other.removeHeaders_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List setHeaders_ = java.util.Collections.emptyList(); private void ensureSetHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { setHeaders_ = new java.util.ArrayList(setHeaders_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.HeaderValueOption, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder> setHeadersBuilder_; /** *
     * 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 java.util.List getSetHeadersList() { if (setHeadersBuilder_ == null) { return java.util.Collections.unmodifiableList(setHeaders_); } else { return setHeadersBuilder_.getMessageList(); } } /** *
     * 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.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1; */ public io.envoyproxy.envoy.config.core.v3.HeaderValueOption getSetHeaders(int index) { if (setHeadersBuilder_ == null) { return setHeaders_.get(index); } else { return setHeadersBuilder_.getMessage(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 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.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1; */ public Builder setSetHeaders( int index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder builderForValue) { if (setHeadersBuilder_ == null) { ensureSetHeadersIsMutable(); setHeaders_.set(index, builderForValue.build()); onChanged(); } else { setHeadersBuilder_.setMessage(index, builderForValue.build()); } 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(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.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1; */ public Builder addSetHeaders( io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder builderForValue) { if (setHeadersBuilder_ == null) { ensureSetHeadersIsMutable(); setHeaders_.add(builderForValue.build()); onChanged(); } else { setHeadersBuilder_.addMessage(builderForValue.build()); } 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.Builder builderForValue) { if (setHeadersBuilder_ == null) { ensureSetHeadersIsMutable(); setHeaders_.add(index, builderForValue.build()); onChanged(); } else { setHeadersBuilder_.addMessage(index, builderForValue.build()); } 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 addAllSetHeaders( java.lang.Iterable values) { if (setHeadersBuilder_ == null) { ensureSetHeadersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, setHeaders_); onChanged(); } else { setHeadersBuilder_.addAllMessages(values); } 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 clearSetHeaders() { if (setHeadersBuilder_ == null) { setHeaders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { setHeadersBuilder_.clear(); } 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 removeSetHeaders(int index) { if (setHeadersBuilder_ == null) { ensureSetHeadersIsMutable(); setHeaders_.remove(index); onChanged(); } else { setHeadersBuilder_.remove(index); } 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 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.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1; */ public java.util.List getSetHeadersOrBuilderList() { if (setHeadersBuilder_ != null) { return setHeadersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(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.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption set_headers = 1; */ public io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder addSetHeadersBuilder() { return getSetHeadersFieldBuilder().addBuilder( io.envoyproxy.envoy.config.core.v3.HeaderValueOption.getDefaultInstance()); } /** *
     * 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 addSetHeadersBuilder( int index) { return getSetHeadersFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.getDefaultInstance()); } /** *
     * 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 java.util.List getSetHeadersBuilderList() { return getSetHeadersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.HeaderValueOption, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder> getSetHeadersFieldBuilder() { if (setHeadersBuilder_ == null) { setHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.HeaderValueOption, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder>( setHeaders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); setHeaders_ = null; } return setHeadersBuilder_; } private com.google.protobuf.LazyStringList removeHeaders_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRemoveHeadersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { removeHeaders_ = new com.google.protobuf.LazyStringArrayList(removeHeaders_); bitField0_ |= 0x00000002; } } /** *
     * 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.
     * 
* * repeated string remove_headers = 2; * @return This builder for chaining. */ public Builder clearRemoveHeaders() { removeHeaders_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); 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 bytes of the removeHeaders to add. * @return This builder for chaining. */ public Builder addRemoveHeadersBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRemoveHeadersIsMutable(); removeHeaders_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.service.ext_proc.v3.HeaderMutation) } // @@protoc_insertion_point(class_scope:envoy.service.ext_proc.v3.HeaderMutation) private static final io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation(); } public static io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HeaderMutation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HeaderMutation(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy