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

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

There is a newer version: 1.0.46
Show newest version
// 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;

/**
 * 
 * This message is sent to the external server when the HTTP request and responses
 * are first received.
 * 
* * Protobuf type {@code envoy.service.ext_proc.v3.HttpHeaders} */ public final class HttpHeaders extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.ext_proc.v3.HttpHeaders) HttpHeadersOrBuilder { private static final long serialVersionUID = 0L; // Use HttpHeaders.newBuilder() to construct. private HttpHeaders(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HttpHeaders() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HttpHeaders(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HttpHeaders( 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: { io.envoyproxy.envoy.config.core.v3.HeaderMap.Builder subBuilder = null; if (headers_ != null) { subBuilder = headers_.toBuilder(); } headers_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.HeaderMap.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(headers_); headers_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { attributes_ = com.google.protobuf.MapField.newMapField( AttributesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry attributes__ = input.readMessage( AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); attributes_.getMutableMap().put( attributes__.getKey(), attributes__.getValue()); break; } case 24: { endOfStream_ = input.readBool(); 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 { 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_HttpHeaders_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @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_HttpHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders.class, io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders.Builder.class); } public static final int HEADERS_FIELD_NUMBER = 1; private io.envoyproxy.envoy.config.core.v3.HeaderMap headers_; /** *
   * The HTTP request headers. All header keys will be
   * lower-cased, because HTTP header keys are case-insensitive.
   * The ``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.
   * 
* * .envoy.config.core.v3.HeaderMap headers = 1; * @return Whether the headers field is set. */ @java.lang.Override public boolean hasHeaders() { return headers_ != null; } /** *
   * The HTTP request headers. All header keys will be
   * lower-cased, because HTTP header keys are case-insensitive.
   * The ``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.
   * 
* * .envoy.config.core.v3.HeaderMap headers = 1; * @return The headers. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.HeaderMap getHeaders() { return headers_ == null ? io.envoyproxy.envoy.config.core.v3.HeaderMap.getDefaultInstance() : headers_; } /** *
   * The HTTP request headers. All header keys will be
   * lower-cased, because HTTP header keys are case-insensitive.
   * The ``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.
   * 
* * .envoy.config.core.v3.HeaderMap headers = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.HeaderMapOrBuilder getHeadersOrBuilder() { return getHeaders(); } public static final int ATTRIBUTES_FIELD_NUMBER = 2; private static final class AttributesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.google.protobuf.Struct> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.envoyproxy.envoy.service.ext_proc.v3.ExternalProcessorProto.internal_static_envoy_service_ext_proc_v3_HttpHeaders_AttributesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.protobuf.Struct.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Struct> attributes_; private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** *
   * [#not-implemented-hide:]
   * The values of properties selected by the ``request_attributes``
   * or ``response_attributes`` list in the configuration. Each entry
   * in the list is populated
   * from the standard :ref:`attributes <arch_overview_attributes>`
   * supported across Envoy.
   * 
* * map<string, .google.protobuf.Struct> attributes = 2; */ @java.lang.Override public boolean containsAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** *
   * [#not-implemented-hide:]
   * The values of properties selected by the ``request_attributes``
   * or ``response_attributes`` list in the configuration. Each entry
   * in the list is populated
   * from the standard :ref:`attributes <arch_overview_attributes>`
   * supported across Envoy.
   * 
* * map<string, .google.protobuf.Struct> attributes = 2; */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** *
   * [#not-implemented-hide:]
   * The values of properties selected by the ``request_attributes``
   * or ``response_attributes`` list in the configuration. Each entry
   * in the list is populated
   * from the standard :ref:`attributes <arch_overview_attributes>`
   * supported across Envoy.
   * 
* * map<string, .google.protobuf.Struct> attributes = 2; */ @java.lang.Override public com.google.protobuf.Struct getAttributesOrDefault( java.lang.String key, com.google.protobuf.Struct defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * [#not-implemented-hide:]
   * The values of properties selected by the ``request_attributes``
   * or ``response_attributes`` list in the configuration. Each entry
   * in the list is populated
   * from the standard :ref:`attributes <arch_overview_attributes>`
   * supported across Envoy.
   * 
* * map<string, .google.protobuf.Struct> attributes = 2; */ @java.lang.Override public com.google.protobuf.Struct getAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int END_OF_STREAM_FIELD_NUMBER = 3; private boolean endOfStream_; /** *
   * If true, then there is no message body associated with this
   * request or response.
   * 
* * bool end_of_stream = 3; * @return The endOfStream. */ @java.lang.Override public boolean getEndOfStream() { return endOfStream_; } 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 { if (headers_ != null) { output.writeMessage(1, getHeaders()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2); if (endOfStream_ != false) { output.writeBool(3, endOfStream_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (headers_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeaders()); } for (java.util.Map.Entry entry : internalGetAttributes().getMap().entrySet()) { com.google.protobuf.MapEntry attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, attributes__); } if (endOfStream_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, endOfStream_); } 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.HttpHeaders)) { return super.equals(obj); } io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders other = (io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders) obj; if (hasHeaders() != other.hasHeaders()) return false; if (hasHeaders()) { if (!getHeaders() .equals(other.getHeaders())) return false; } if (!internalGetAttributes().equals( other.internalGetAttributes())) return false; if (getEndOfStream() != other.getEndOfStream()) 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 (hasHeaders()) { hash = (37 * hash) + HEADERS_FIELD_NUMBER; hash = (53 * hash) + getHeaders().hashCode(); } if (!internalGetAttributes().getMap().isEmpty()) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + internalGetAttributes().hashCode(); } hash = (37 * hash) + END_OF_STREAM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEndOfStream()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders 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.HttpHeaders parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders 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.HttpHeaders parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders 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.HttpHeaders 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.HttpHeaders 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.HttpHeaders 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.HttpHeaders 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.HttpHeaders 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.HttpHeaders 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.HttpHeaders 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; } /** *
   * This message is sent to the external server when the HTTP request and responses
   * are first received.
   * 
* * Protobuf type {@code envoy.service.ext_proc.v3.HttpHeaders} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.ext_proc.v3.HttpHeaders) io.envoyproxy.envoy.service.ext_proc.v3.HttpHeadersOrBuilder { 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_HttpHeaders_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @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_HttpHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders.class, io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders.Builder.class); } // Construct using io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (headersBuilder_ == null) { headers_ = null; } else { headers_ = null; headersBuilder_ = null; } internalGetMutableAttributes().clear(); endOfStream_ = false; 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_HttpHeaders_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders getDefaultInstanceForType() { return io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders build() { io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders buildPartial() { io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders result = new io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders(this); int from_bitField0_ = bitField0_; if (headersBuilder_ == null) { result.headers_ = headers_; } else { result.headers_ = headersBuilder_.build(); } result.attributes_ = internalGetAttributes(); result.attributes_.makeImmutable(); result.endOfStream_ = endOfStream_; 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.HttpHeaders) { return mergeFrom((io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders other) { if (other == io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders.getDefaultInstance()) return this; if (other.hasHeaders()) { mergeHeaders(other.getHeaders()); } internalGetMutableAttributes().mergeFrom( other.internalGetAttributes()); if (other.getEndOfStream() != false) { setEndOfStream(other.getEndOfStream()); } 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.HttpHeaders parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.envoyproxy.envoy.config.core.v3.HeaderMap headers_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.HeaderMap, io.envoyproxy.envoy.config.core.v3.HeaderMap.Builder, io.envoyproxy.envoy.config.core.v3.HeaderMapOrBuilder> headersBuilder_; /** *
     * The HTTP request headers. All header keys will be
     * lower-cased, because HTTP header keys are case-insensitive.
     * The ``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.
     * 
* * .envoy.config.core.v3.HeaderMap headers = 1; * @return Whether the headers field is set. */ public boolean hasHeaders() { return headersBuilder_ != null || headers_ != null; } /** *
     * The HTTP request headers. All header keys will be
     * lower-cased, because HTTP header keys are case-insensitive.
     * The ``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.
     * 
* * .envoy.config.core.v3.HeaderMap headers = 1; * @return The headers. */ public io.envoyproxy.envoy.config.core.v3.HeaderMap getHeaders() { if (headersBuilder_ == null) { return headers_ == null ? io.envoyproxy.envoy.config.core.v3.HeaderMap.getDefaultInstance() : headers_; } else { return headersBuilder_.getMessage(); } } /** *
     * The HTTP request headers. All header keys will be
     * lower-cased, because HTTP header keys are case-insensitive.
     * The ``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.
     * 
* * .envoy.config.core.v3.HeaderMap headers = 1; */ public Builder setHeaders(io.envoyproxy.envoy.config.core.v3.HeaderMap value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } headers_ = value; onChanged(); } else { headersBuilder_.setMessage(value); } return this; } /** *
     * The HTTP request headers. All header keys will be
     * lower-cased, because HTTP header keys are case-insensitive.
     * The ``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.
     * 
* * .envoy.config.core.v3.HeaderMap headers = 1; */ public Builder setHeaders( io.envoyproxy.envoy.config.core.v3.HeaderMap.Builder builderForValue) { if (headersBuilder_ == null) { headers_ = builderForValue.build(); onChanged(); } else { headersBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The HTTP request headers. All header keys will be
     * lower-cased, because HTTP header keys are case-insensitive.
     * The ``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.
     * 
* * .envoy.config.core.v3.HeaderMap headers = 1; */ public Builder mergeHeaders(io.envoyproxy.envoy.config.core.v3.HeaderMap value) { if (headersBuilder_ == null) { if (headers_ != null) { headers_ = io.envoyproxy.envoy.config.core.v3.HeaderMap.newBuilder(headers_).mergeFrom(value).buildPartial(); } else { headers_ = value; } onChanged(); } else { headersBuilder_.mergeFrom(value); } return this; } /** *
     * The HTTP request headers. All header keys will be
     * lower-cased, because HTTP header keys are case-insensitive.
     * The ``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.
     * 
* * .envoy.config.core.v3.HeaderMap headers = 1; */ public Builder clearHeaders() { if (headersBuilder_ == null) { headers_ = null; onChanged(); } else { headers_ = null; headersBuilder_ = null; } return this; } /** *
     * The HTTP request headers. All header keys will be
     * lower-cased, because HTTP header keys are case-insensitive.
     * The ``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.
     * 
* * .envoy.config.core.v3.HeaderMap headers = 1; */ public io.envoyproxy.envoy.config.core.v3.HeaderMap.Builder getHeadersBuilder() { onChanged(); return getHeadersFieldBuilder().getBuilder(); } /** *
     * The HTTP request headers. All header keys will be
     * lower-cased, because HTTP header keys are case-insensitive.
     * The ``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.
     * 
* * .envoy.config.core.v3.HeaderMap headers = 1; */ public io.envoyproxy.envoy.config.core.v3.HeaderMapOrBuilder getHeadersOrBuilder() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilder(); } else { return headers_ == null ? io.envoyproxy.envoy.config.core.v3.HeaderMap.getDefaultInstance() : headers_; } } /** *
     * The HTTP request headers. All header keys will be
     * lower-cased, because HTTP header keys are case-insensitive.
     * The ``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.
     * 
* * .envoy.config.core.v3.HeaderMap headers = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.HeaderMap, io.envoyproxy.envoy.config.core.v3.HeaderMap.Builder, io.envoyproxy.envoy.config.core.v3.HeaderMapOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { headersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.HeaderMap, io.envoyproxy.envoy.config.core.v3.HeaderMap.Builder, io.envoyproxy.envoy.config.core.v3.HeaderMapOrBuilder>( getHeaders(), getParentForChildren(), isClean()); headers_ = null; } return headersBuilder_; } private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Struct> attributes_; private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } private com.google.protobuf.MapField internalGetMutableAttributes() { onChanged();; if (attributes_ == null) { attributes_ = com.google.protobuf.MapField.newMapField( AttributesDefaultEntryHolder.defaultEntry); } if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); } return attributes_; } public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** *
     * [#not-implemented-hide:]
     * The values of properties selected by the ``request_attributes``
     * or ``response_attributes`` list in the configuration. Each entry
     * in the list is populated
     * from the standard :ref:`attributes <arch_overview_attributes>`
     * supported across Envoy.
     * 
* * map<string, .google.protobuf.Struct> attributes = 2; */ @java.lang.Override public boolean containsAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** *
     * [#not-implemented-hide:]
     * The values of properties selected by the ``request_attributes``
     * or ``response_attributes`` list in the configuration. Each entry
     * in the list is populated
     * from the standard :ref:`attributes <arch_overview_attributes>`
     * supported across Envoy.
     * 
* * map<string, .google.protobuf.Struct> attributes = 2; */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** *
     * [#not-implemented-hide:]
     * The values of properties selected by the ``request_attributes``
     * or ``response_attributes`` list in the configuration. Each entry
     * in the list is populated
     * from the standard :ref:`attributes <arch_overview_attributes>`
     * supported across Envoy.
     * 
* * map<string, .google.protobuf.Struct> attributes = 2; */ @java.lang.Override public com.google.protobuf.Struct getAttributesOrDefault( java.lang.String key, com.google.protobuf.Struct defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * [#not-implemented-hide:]
     * The values of properties selected by the ``request_attributes``
     * or ``response_attributes`` list in the configuration. Each entry
     * in the list is populated
     * from the standard :ref:`attributes <arch_overview_attributes>`
     * supported across Envoy.
     * 
* * map<string, .google.protobuf.Struct> attributes = 2; */ @java.lang.Override public com.google.protobuf.Struct getAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAttributes() { internalGetMutableAttributes().getMutableMap() .clear(); return this; } /** *
     * [#not-implemented-hide:]
     * The values of properties selected by the ``request_attributes``
     * or ``response_attributes`` list in the configuration. Each entry
     * in the list is populated
     * from the standard :ref:`attributes <arch_overview_attributes>`
     * supported across Envoy.
     * 
* * map<string, .google.protobuf.Struct> attributes = 2; */ public Builder removeAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAttributes().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { return internalGetMutableAttributes().getMutableMap(); } /** *
     * [#not-implemented-hide:]
     * The values of properties selected by the ``request_attributes``
     * or ``response_attributes`` list in the configuration. Each entry
     * in the list is populated
     * from the standard :ref:`attributes <arch_overview_attributes>`
     * supported across Envoy.
     * 
* * map<string, .google.protobuf.Struct> attributes = 2; */ public Builder putAttributes( java.lang.String key, com.google.protobuf.Struct value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAttributes().getMutableMap() .put(key, value); return this; } /** *
     * [#not-implemented-hide:]
     * The values of properties selected by the ``request_attributes``
     * or ``response_attributes`` list in the configuration. Each entry
     * in the list is populated
     * from the standard :ref:`attributes <arch_overview_attributes>`
     * supported across Envoy.
     * 
* * map<string, .google.protobuf.Struct> attributes = 2; */ public Builder putAllAttributes( java.util.Map values) { internalGetMutableAttributes().getMutableMap() .putAll(values); return this; } private boolean endOfStream_ ; /** *
     * If true, then there is no message body associated with this
     * request or response.
     * 
* * bool end_of_stream = 3; * @return The endOfStream. */ @java.lang.Override public boolean getEndOfStream() { return endOfStream_; } /** *
     * If true, then there is no message body associated with this
     * request or response.
     * 
* * bool end_of_stream = 3; * @param value The endOfStream to set. * @return This builder for chaining. */ public Builder setEndOfStream(boolean value) { endOfStream_ = value; onChanged(); return this; } /** *
     * If true, then there is no message body associated with this
     * request or response.
     * 
* * bool end_of_stream = 3; * @return This builder for chaining. */ public Builder clearEndOfStream() { endOfStream_ = false; 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.HttpHeaders) } // @@protoc_insertion_point(class_scope:envoy.service.ext_proc.v3.HttpHeaders) private static final io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders(); } public static io.envoyproxy.envoy.service.ext_proc.v3.HttpHeaders getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HttpHeaders parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HttpHeaders(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.HttpHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy