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/auth/v3/external_auth.proto
package io.envoyproxy.envoy.service.auth.v3;
/**
*
* HTTP attributes for an OK response.
* [#next-free-field: 9]
*
*
* Protobuf type {@code envoy.service.auth.v3.OkHttpResponse}
*/
public final class OkHttpResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.auth.v3.OkHttpResponse)
OkHttpResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use OkHttpResponse.newBuilder() to construct.
private OkHttpResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OkHttpResponse() {
headers_ = java.util.Collections.emptyList();
headersToRemove_ = com.google.protobuf.LazyStringArrayList.EMPTY;
responseHeadersToAdd_ = java.util.Collections.emptyList();
queryParametersToSet_ = java.util.Collections.emptyList();
queryParametersToRemove_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OkHttpResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OkHttpResponse(
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 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
headers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
headers_.add(
input.readMessage(io.envoyproxy.envoy.config.core.v3.HeaderValueOption.parser(), extensionRegistry));
break;
}
case 26: {
com.google.protobuf.Struct.Builder subBuilder = null;
if (dynamicMetadata_ != null) {
subBuilder = dynamicMetadata_.toBuilder();
}
dynamicMetadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dynamicMetadata_);
dynamicMetadata_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
headersToRemove_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
headersToRemove_.add(s);
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
responseHeadersToAdd_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
responseHeadersToAdd_.add(
input.readMessage(io.envoyproxy.envoy.config.core.v3.HeaderValueOption.parser(), extensionRegistry));
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
queryParametersToSet_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
queryParametersToSet_.add(
input.readMessage(io.envoyproxy.envoy.config.core.v3.QueryParameter.parser(), extensionRegistry));
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
queryParametersToRemove_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
queryParametersToRemove_.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)) {
headers_ = java.util.Collections.unmodifiableList(headers_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
headersToRemove_ = headersToRemove_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
responseHeadersToAdd_ = java.util.Collections.unmodifiableList(responseHeadersToAdd_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
queryParametersToSet_ = java.util.Collections.unmodifiableList(queryParametersToSet_);
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
queryParametersToRemove_ = queryParametersToRemove_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.auth.v3.ExternalAuthProto.internal_static_envoy_service_auth_v3_OkHttpResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.auth.v3.ExternalAuthProto.internal_static_envoy_service_auth_v3_OkHttpResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.class, io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.Builder.class);
}
public static final int HEADERS_FIELD_NUMBER = 2;
private java.util.List headers_;
/**
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
@java.lang.Override
public int getHeadersCount() {
return headers_.size();
}
/**
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder getHeadersOrBuilder(
int index) {
return headers_.get(index);
}
public static final int HEADERS_TO_REMOVE_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList headersToRemove_;
/**
*
* HTTP entity headers to remove from the original request before dispatching
* it to the upstream. This allows the authorization service to act on auth
* related headers (like ``Authorization``), process them, and consume them.
* Under this model, the upstream will either receive the request (if it's
* authorized) or not receive it (if it's not), but will not see headers
* containing authorization credentials.
* Pseudo headers (such as ``:authority``, ``:method``, ``:path`` etc), as well as
* the header ``Host``, may not be removed as that would make the request
* malformed. If mentioned in ``headers_to_remove`` these special headers will
* be ignored.
* When using the HTTP service this must instead be set by the HTTP
* authorization service as a comma separated list like so:
* ``x-envoy-auth-headers-to-remove: one-auth-header, another-auth-header``.
*
*
* repeated string headers_to_remove = 5;
* @return A list containing the headersToRemove.
*/
public com.google.protobuf.ProtocolStringList
getHeadersToRemoveList() {
return headersToRemove_;
}
/**
*
* HTTP entity headers to remove from the original request before dispatching
* it to the upstream. This allows the authorization service to act on auth
* related headers (like ``Authorization``), process them, and consume them.
* Under this model, the upstream will either receive the request (if it's
* authorized) or not receive it (if it's not), but will not see headers
* containing authorization credentials.
* Pseudo headers (such as ``:authority``, ``:method``, ``:path`` etc), as well as
* the header ``Host``, may not be removed as that would make the request
* malformed. If mentioned in ``headers_to_remove`` these special headers will
* be ignored.
* When using the HTTP service this must instead be set by the HTTP
* authorization service as a comma separated list like so:
* ``x-envoy-auth-headers-to-remove: one-auth-header, another-auth-header``.
*
*
* repeated string headers_to_remove = 5;
* @return The count of headersToRemove.
*/
public int getHeadersToRemoveCount() {
return headersToRemove_.size();
}
/**
*
* HTTP entity headers to remove from the original request before dispatching
* it to the upstream. This allows the authorization service to act on auth
* related headers (like ``Authorization``), process them, and consume them.
* Under this model, the upstream will either receive the request (if it's
* authorized) or not receive it (if it's not), but will not see headers
* containing authorization credentials.
* Pseudo headers (such as ``:authority``, ``:method``, ``:path`` etc), as well as
* the header ``Host``, may not be removed as that would make the request
* malformed. If mentioned in ``headers_to_remove`` these special headers will
* be ignored.
* When using the HTTP service this must instead be set by the HTTP
* authorization service as a comma separated list like so:
* ``x-envoy-auth-headers-to-remove: one-auth-header, another-auth-header``.
*
*
* repeated string headers_to_remove = 5;
* @param index The index of the element to return.
* @return The headersToRemove at the given index.
*/
public java.lang.String getHeadersToRemove(int index) {
return headersToRemove_.get(index);
}
/**
*
* HTTP entity headers to remove from the original request before dispatching
* it to the upstream. This allows the authorization service to act on auth
* related headers (like ``Authorization``), process them, and consume them.
* Under this model, the upstream will either receive the request (if it's
* authorized) or not receive it (if it's not), but will not see headers
* containing authorization credentials.
* Pseudo headers (such as ``:authority``, ``:method``, ``:path`` etc), as well as
* the header ``Host``, may not be removed as that would make the request
* malformed. If mentioned in ``headers_to_remove`` these special headers will
* be ignored.
* When using the HTTP service this must instead be set by the HTTP
* authorization service as a comma separated list like so:
* ``x-envoy-auth-headers-to-remove: one-auth-header, another-auth-header``.
*
*
* repeated string headers_to_remove = 5;
* @param index The index of the value to return.
* @return The bytes of the headersToRemove at the given index.
*/
public com.google.protobuf.ByteString
getHeadersToRemoveBytes(int index) {
return headersToRemove_.getByteString(index);
}
public static final int DYNAMIC_METADATA_FIELD_NUMBER = 3;
private com.google.protobuf.Struct dynamicMetadata_;
/**
*
* This field has been deprecated in favor of :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`. Until it is removed,
* setting this field overrides :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`.
*
*
* .google.protobuf.Struct dynamic_metadata = 3 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.service.auth.v3.OkHttpResponse.dynamic_metadata is deprecated.
* See envoy/service/auth/v3/external_auth.proto;l=97
* @return Whether the dynamicMetadata field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasDynamicMetadata() {
return dynamicMetadata_ != null;
}
/**
*
* This field has been deprecated in favor of :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`. Until it is removed,
* setting this field overrides :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`.
*
* This field has been deprecated in favor of :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`. Until it is removed,
* setting this field overrides :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`.
*
*
* .google.protobuf.Struct dynamic_metadata = 3 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.StructOrBuilder getDynamicMetadataOrBuilder() {
return getDynamicMetadata();
}
public static final int RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER = 6;
private java.util.List responseHeadersToAdd_;
/**
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
@java.lang.Override
public int getResponseHeadersToAddCount() {
return responseHeadersToAdd_.size();
}
/**
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder getResponseHeadersToAddOrBuilder(
int index) {
return responseHeadersToAdd_.get(index);
}
public static final int QUERY_PARAMETERS_TO_SET_FIELD_NUMBER = 7;
private java.util.List queryParametersToSet_;
/**
*
* This field allows the authorization service to set (and overwrite) query
* string parameters on the original request before it is sent upstream.
*
* This field allows the authorization service to set (and overwrite) query
* string parameters on the original request before it is sent upstream.
*
*
* repeated .envoy.config.core.v3.QueryParameter query_parameters_to_set = 7;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.QueryParameterOrBuilder getQueryParametersToSetOrBuilder(
int index) {
return queryParametersToSet_.get(index);
}
public static final int QUERY_PARAMETERS_TO_REMOVE_FIELD_NUMBER = 8;
private com.google.protobuf.LazyStringList queryParametersToRemove_;
/**
*
* This field allows the authorization service to specify which query parameters
* should be removed from the original request before it is sent upstream. Each
* element in this list is a case-sensitive query parameter name to be removed.
*
*
* repeated string query_parameters_to_remove = 8;
* @return A list containing the queryParametersToRemove.
*/
public com.google.protobuf.ProtocolStringList
getQueryParametersToRemoveList() {
return queryParametersToRemove_;
}
/**
*
* This field allows the authorization service to specify which query parameters
* should be removed from the original request before it is sent upstream. Each
* element in this list is a case-sensitive query parameter name to be removed.
*
*
* repeated string query_parameters_to_remove = 8;
* @return The count of queryParametersToRemove.
*/
public int getQueryParametersToRemoveCount() {
return queryParametersToRemove_.size();
}
/**
*
* This field allows the authorization service to specify which query parameters
* should be removed from the original request before it is sent upstream. Each
* element in this list is a case-sensitive query parameter name to be removed.
*
*
* repeated string query_parameters_to_remove = 8;
* @param index The index of the element to return.
* @return The queryParametersToRemove at the given index.
*/
public java.lang.String getQueryParametersToRemove(int index) {
return queryParametersToRemove_.get(index);
}
/**
*
* This field allows the authorization service to specify which query parameters
* should be removed from the original request before it is sent upstream. Each
* element in this list is a case-sensitive query parameter name to be removed.
*
*
* repeated string query_parameters_to_remove = 8;
* @param index The index of the value to return.
* @return The bytes of the queryParametersToRemove at the given index.
*/
public com.google.protobuf.ByteString
getQueryParametersToRemoveBytes(int index) {
return queryParametersToRemove_.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 < headers_.size(); i++) {
output.writeMessage(2, headers_.get(i));
}
if (dynamicMetadata_ != null) {
output.writeMessage(3, getDynamicMetadata());
}
for (int i = 0; i < headersToRemove_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, headersToRemove_.getRaw(i));
}
for (int i = 0; i < responseHeadersToAdd_.size(); i++) {
output.writeMessage(6, responseHeadersToAdd_.get(i));
}
for (int i = 0; i < queryParametersToSet_.size(); i++) {
output.writeMessage(7, queryParametersToSet_.get(i));
}
for (int i = 0; i < queryParametersToRemove_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, queryParametersToRemove_.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 < headers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, headers_.get(i));
}
if (dynamicMetadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getDynamicMetadata());
}
{
int dataSize = 0;
for (int i = 0; i < headersToRemove_.size(); i++) {
dataSize += computeStringSizeNoTag(headersToRemove_.getRaw(i));
}
size += dataSize;
size += 1 * getHeadersToRemoveList().size();
}
for (int i = 0; i < responseHeadersToAdd_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, responseHeadersToAdd_.get(i));
}
for (int i = 0; i < queryParametersToSet_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, queryParametersToSet_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < queryParametersToRemove_.size(); i++) {
dataSize += computeStringSizeNoTag(queryParametersToRemove_.getRaw(i));
}
size += dataSize;
size += 1 * getQueryParametersToRemoveList().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.auth.v3.OkHttpResponse)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.auth.v3.OkHttpResponse other = (io.envoyproxy.envoy.service.auth.v3.OkHttpResponse) obj;
if (!getHeadersList()
.equals(other.getHeadersList())) return false;
if (!getHeadersToRemoveList()
.equals(other.getHeadersToRemoveList())) return false;
if (hasDynamicMetadata() != other.hasDynamicMetadata()) return false;
if (hasDynamicMetadata()) {
if (!getDynamicMetadata()
.equals(other.getDynamicMetadata())) return false;
}
if (!getResponseHeadersToAddList()
.equals(other.getResponseHeadersToAddList())) return false;
if (!getQueryParametersToSetList()
.equals(other.getQueryParametersToSetList())) return false;
if (!getQueryParametersToRemoveList()
.equals(other.getQueryParametersToRemoveList())) 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 (getHeadersCount() > 0) {
hash = (37 * hash) + HEADERS_FIELD_NUMBER;
hash = (53 * hash) + getHeadersList().hashCode();
}
if (getHeadersToRemoveCount() > 0) {
hash = (37 * hash) + HEADERS_TO_REMOVE_FIELD_NUMBER;
hash = (53 * hash) + getHeadersToRemoveList().hashCode();
}
if (hasDynamicMetadata()) {
hash = (37 * hash) + DYNAMIC_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getDynamicMetadata().hashCode();
}
if (getResponseHeadersToAddCount() > 0) {
hash = (37 * hash) + RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER;
hash = (53 * hash) + getResponseHeadersToAddList().hashCode();
}
if (getQueryParametersToSetCount() > 0) {
hash = (37 * hash) + QUERY_PARAMETERS_TO_SET_FIELD_NUMBER;
hash = (53 * hash) + getQueryParametersToSetList().hashCode();
}
if (getQueryParametersToRemoveCount() > 0) {
hash = (37 * hash) + QUERY_PARAMETERS_TO_REMOVE_FIELD_NUMBER;
hash = (53 * hash) + getQueryParametersToRemoveList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.auth.v3.OkHttpResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.auth.v3.OkHttpResponse 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.auth.v3.OkHttpResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.auth.v3.OkHttpResponse 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.auth.v3.OkHttpResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.auth.v3.OkHttpResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.auth.v3.OkHttpResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.auth.v3.OkHttpResponse 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.auth.v3.OkHttpResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.auth.v3.OkHttpResponse 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.auth.v3.OkHttpResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.auth.v3.OkHttpResponse 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.auth.v3.OkHttpResponse 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;
}
/**
*
* HTTP attributes for an OK response.
* [#next-free-field: 9]
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
public int getHeadersCount() {
if (headersBuilder_ == null) {
return headers_.size();
} else {
return headersBuilder_.getCount();
}
}
/**
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
public Builder setHeaders(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption value) {
if (headersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeadersIsMutable();
headers_.set(index, value);
onChanged();
} else {
headersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
public Builder addHeaders(io.envoyproxy.envoy.config.core.v3.HeaderValueOption value) {
if (headersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeadersIsMutable();
headers_.add(value);
onChanged();
} else {
headersBuilder_.addMessage(value);
}
return this;
}
/**
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
public Builder addHeaders(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption value) {
if (headersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeadersIsMutable();
headers_.add(index, value);
onChanged();
} else {
headersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder getHeadersBuilder(
int index) {
return getHeadersFieldBuilder().getBuilder(index);
}
/**
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder getHeadersOrBuilder(
int index) {
if (headersBuilder_ == null) {
return headers_.get(index); } else {
return headersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
* HTTP entity headers in addition to the original request headers. This allows the authorization
* service to append, to add or to override headers from the original request before
* dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
* false when used in this message. By setting the ``append`` field to ``true``,
* the filter will append the correspondent header value to the matched request header.
* By leaving ``append`` as false, the filter will either add a new header, or override an existing
* one if there is a match.
*
* HTTP entity headers to remove from the original request before dispatching
* it to the upstream. This allows the authorization service to act on auth
* related headers (like ``Authorization``), process them, and consume them.
* Under this model, the upstream will either receive the request (if it's
* authorized) or not receive it (if it's not), but will not see headers
* containing authorization credentials.
* Pseudo headers (such as ``:authority``, ``:method``, ``:path`` etc), as well as
* the header ``Host``, may not be removed as that would make the request
* malformed. If mentioned in ``headers_to_remove`` these special headers will
* be ignored.
* When using the HTTP service this must instead be set by the HTTP
* authorization service as a comma separated list like so:
* ``x-envoy-auth-headers-to-remove: one-auth-header, another-auth-header``.
*
*
* repeated string headers_to_remove = 5;
* @return A list containing the headersToRemove.
*/
public com.google.protobuf.ProtocolStringList
getHeadersToRemoveList() {
return headersToRemove_.getUnmodifiableView();
}
/**
*
* HTTP entity headers to remove from the original request before dispatching
* it to the upstream. This allows the authorization service to act on auth
* related headers (like ``Authorization``), process them, and consume them.
* Under this model, the upstream will either receive the request (if it's
* authorized) or not receive it (if it's not), but will not see headers
* containing authorization credentials.
* Pseudo headers (such as ``:authority``, ``:method``, ``:path`` etc), as well as
* the header ``Host``, may not be removed as that would make the request
* malformed. If mentioned in ``headers_to_remove`` these special headers will
* be ignored.
* When using the HTTP service this must instead be set by the HTTP
* authorization service as a comma separated list like so:
* ``x-envoy-auth-headers-to-remove: one-auth-header, another-auth-header``.
*
*
* repeated string headers_to_remove = 5;
* @return The count of headersToRemove.
*/
public int getHeadersToRemoveCount() {
return headersToRemove_.size();
}
/**
*
* HTTP entity headers to remove from the original request before dispatching
* it to the upstream. This allows the authorization service to act on auth
* related headers (like ``Authorization``), process them, and consume them.
* Under this model, the upstream will either receive the request (if it's
* authorized) or not receive it (if it's not), but will not see headers
* containing authorization credentials.
* Pseudo headers (such as ``:authority``, ``:method``, ``:path`` etc), as well as
* the header ``Host``, may not be removed as that would make the request
* malformed. If mentioned in ``headers_to_remove`` these special headers will
* be ignored.
* When using the HTTP service this must instead be set by the HTTP
* authorization service as a comma separated list like so:
* ``x-envoy-auth-headers-to-remove: one-auth-header, another-auth-header``.
*
*
* repeated string headers_to_remove = 5;
* @param index The index of the element to return.
* @return The headersToRemove at the given index.
*/
public java.lang.String getHeadersToRemove(int index) {
return headersToRemove_.get(index);
}
/**
*
* HTTP entity headers to remove from the original request before dispatching
* it to the upstream. This allows the authorization service to act on auth
* related headers (like ``Authorization``), process them, and consume them.
* Under this model, the upstream will either receive the request (if it's
* authorized) or not receive it (if it's not), but will not see headers
* containing authorization credentials.
* Pseudo headers (such as ``:authority``, ``:method``, ``:path`` etc), as well as
* the header ``Host``, may not be removed as that would make the request
* malformed. If mentioned in ``headers_to_remove`` these special headers will
* be ignored.
* When using the HTTP service this must instead be set by the HTTP
* authorization service as a comma separated list like so:
* ``x-envoy-auth-headers-to-remove: one-auth-header, another-auth-header``.
*
*
* repeated string headers_to_remove = 5;
* @param index The index of the value to return.
* @return The bytes of the headersToRemove at the given index.
*/
public com.google.protobuf.ByteString
getHeadersToRemoveBytes(int index) {
return headersToRemove_.getByteString(index);
}
/**
*
* HTTP entity headers to remove from the original request before dispatching
* it to the upstream. This allows the authorization service to act on auth
* related headers (like ``Authorization``), process them, and consume them.
* Under this model, the upstream will either receive the request (if it's
* authorized) or not receive it (if it's not), but will not see headers
* containing authorization credentials.
* Pseudo headers (such as ``:authority``, ``:method``, ``:path`` etc), as well as
* the header ``Host``, may not be removed as that would make the request
* malformed. If mentioned in ``headers_to_remove`` these special headers will
* be ignored.
* When using the HTTP service this must instead be set by the HTTP
* authorization service as a comma separated list like so:
* ``x-envoy-auth-headers-to-remove: one-auth-header, another-auth-header``.
*
*
* repeated string headers_to_remove = 5;
* @param index The index to set the value at.
* @param value The headersToRemove to set.
* @return This builder for chaining.
*/
public Builder setHeadersToRemove(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureHeadersToRemoveIsMutable();
headersToRemove_.set(index, value);
onChanged();
return this;
}
/**
*
* HTTP entity headers to remove from the original request before dispatching
* it to the upstream. This allows the authorization service to act on auth
* related headers (like ``Authorization``), process them, and consume them.
* Under this model, the upstream will either receive the request (if it's
* authorized) or not receive it (if it's not), but will not see headers
* containing authorization credentials.
* Pseudo headers (such as ``:authority``, ``:method``, ``:path`` etc), as well as
* the header ``Host``, may not be removed as that would make the request
* malformed. If mentioned in ``headers_to_remove`` these special headers will
* be ignored.
* When using the HTTP service this must instead be set by the HTTP
* authorization service as a comma separated list like so:
* ``x-envoy-auth-headers-to-remove: one-auth-header, another-auth-header``.
*
*
* repeated string headers_to_remove = 5;
* @param value The headersToRemove to add.
* @return This builder for chaining.
*/
public Builder addHeadersToRemove(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureHeadersToRemoveIsMutable();
headersToRemove_.add(value);
onChanged();
return this;
}
/**
*
* HTTP entity headers to remove from the original request before dispatching
* it to the upstream. This allows the authorization service to act on auth
* related headers (like ``Authorization``), process them, and consume them.
* Under this model, the upstream will either receive the request (if it's
* authorized) or not receive it (if it's not), but will not see headers
* containing authorization credentials.
* Pseudo headers (such as ``:authority``, ``:method``, ``:path`` etc), as well as
* the header ``Host``, may not be removed as that would make the request
* malformed. If mentioned in ``headers_to_remove`` these special headers will
* be ignored.
* When using the HTTP service this must instead be set by the HTTP
* authorization service as a comma separated list like so:
* ``x-envoy-auth-headers-to-remove: one-auth-header, another-auth-header``.
*
*
* repeated string headers_to_remove = 5;
* @param values The headersToRemove to add.
* @return This builder for chaining.
*/
public Builder addAllHeadersToRemove(
java.lang.Iterable values) {
ensureHeadersToRemoveIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, headersToRemove_);
onChanged();
return this;
}
/**
*
* HTTP entity headers to remove from the original request before dispatching
* it to the upstream. This allows the authorization service to act on auth
* related headers (like ``Authorization``), process them, and consume them.
* Under this model, the upstream will either receive the request (if it's
* authorized) or not receive it (if it's not), but will not see headers
* containing authorization credentials.
* Pseudo headers (such as ``:authority``, ``:method``, ``:path`` etc), as well as
* the header ``Host``, may not be removed as that would make the request
* malformed. If mentioned in ``headers_to_remove`` these special headers will
* be ignored.
* When using the HTTP service this must instead be set by the HTTP
* authorization service as a comma separated list like so:
* ``x-envoy-auth-headers-to-remove: one-auth-header, another-auth-header``.
*
* HTTP entity headers to remove from the original request before dispatching
* it to the upstream. This allows the authorization service to act on auth
* related headers (like ``Authorization``), process them, and consume them.
* Under this model, the upstream will either receive the request (if it's
* authorized) or not receive it (if it's not), but will not see headers
* containing authorization credentials.
* Pseudo headers (such as ``:authority``, ``:method``, ``:path`` etc), as well as
* the header ``Host``, may not be removed as that would make the request
* malformed. If mentioned in ``headers_to_remove`` these special headers will
* be ignored.
* When using the HTTP service this must instead be set by the HTTP
* authorization service as a comma separated list like so:
* ``x-envoy-auth-headers-to-remove: one-auth-header, another-auth-header``.
*
*
* repeated string headers_to_remove = 5;
* @param value The bytes of the headersToRemove to add.
* @return This builder for chaining.
*/
public Builder addHeadersToRemoveBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureHeadersToRemoveIsMutable();
headersToRemove_.add(value);
onChanged();
return this;
}
private com.google.protobuf.Struct dynamicMetadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> dynamicMetadataBuilder_;
/**
*
* This field has been deprecated in favor of :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`. Until it is removed,
* setting this field overrides :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`.
*
*
* .google.protobuf.Struct dynamic_metadata = 3 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.service.auth.v3.OkHttpResponse.dynamic_metadata is deprecated.
* See envoy/service/auth/v3/external_auth.proto;l=97
* @return Whether the dynamicMetadata field is set.
*/
@java.lang.Deprecated public boolean hasDynamicMetadata() {
return dynamicMetadataBuilder_ != null || dynamicMetadata_ != null;
}
/**
*
* This field has been deprecated in favor of :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`. Until it is removed,
* setting this field overrides :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`.
*
* This field has been deprecated in favor of :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`. Until it is removed,
* setting this field overrides :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`.
*
* This field has been deprecated in favor of :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`. Until it is removed,
* setting this field overrides :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`.
*
* This field has been deprecated in favor of :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`. Until it is removed,
* setting this field overrides :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`.
*
* This field has been deprecated in favor of :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`. Until it is removed,
* setting this field overrides :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`.
*
* This field has been deprecated in favor of :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`. Until it is removed,
* setting this field overrides :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`.
*
* This field has been deprecated in favor of :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`. Until it is removed,
* setting this field overrides :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`.
*
* This field has been deprecated in favor of :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`. Until it is removed,
* setting this field overrides :ref:`CheckResponse.dynamic_metadata
* <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`.
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
public int getResponseHeadersToAddCount() {
if (responseHeadersToAddBuilder_ == null) {
return responseHeadersToAdd_.size();
} else {
return responseHeadersToAddBuilder_.getCount();
}
}
/**
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
public Builder setResponseHeadersToAdd(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption value) {
if (responseHeadersToAddBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponseHeadersToAddIsMutable();
responseHeadersToAdd_.set(index, value);
onChanged();
} else {
responseHeadersToAddBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
public Builder addResponseHeadersToAdd(io.envoyproxy.envoy.config.core.v3.HeaderValueOption value) {
if (responseHeadersToAddBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponseHeadersToAddIsMutable();
responseHeadersToAdd_.add(value);
onChanged();
} else {
responseHeadersToAddBuilder_.addMessage(value);
}
return this;
}
/**
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
public Builder addResponseHeadersToAdd(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption value) {
if (responseHeadersToAddBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponseHeadersToAddIsMutable();
responseHeadersToAdd_.add(index, value);
onChanged();
} else {
responseHeadersToAddBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder getResponseHeadersToAddBuilder(
int index) {
return getResponseHeadersToAddFieldBuilder().getBuilder(index);
}
/**
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder getResponseHeadersToAddOrBuilder(
int index) {
if (responseHeadersToAddBuilder_ == null) {
return responseHeadersToAdd_.get(index); } else {
return responseHeadersToAddBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
* This field allows the authorization service to send HTTP response headers
* to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
* defaults to false when used in this message.
*
* This field allows the authorization service to specify which query parameters
* should be removed from the original request before it is sent upstream. Each
* element in this list is a case-sensitive query parameter name to be removed.
*
*
* repeated string query_parameters_to_remove = 8;
* @return A list containing the queryParametersToRemove.
*/
public com.google.protobuf.ProtocolStringList
getQueryParametersToRemoveList() {
return queryParametersToRemove_.getUnmodifiableView();
}
/**
*
* This field allows the authorization service to specify which query parameters
* should be removed from the original request before it is sent upstream. Each
* element in this list is a case-sensitive query parameter name to be removed.
*
*
* repeated string query_parameters_to_remove = 8;
* @return The count of queryParametersToRemove.
*/
public int getQueryParametersToRemoveCount() {
return queryParametersToRemove_.size();
}
/**
*
* This field allows the authorization service to specify which query parameters
* should be removed from the original request before it is sent upstream. Each
* element in this list is a case-sensitive query parameter name to be removed.
*
*
* repeated string query_parameters_to_remove = 8;
* @param index The index of the element to return.
* @return The queryParametersToRemove at the given index.
*/
public java.lang.String getQueryParametersToRemove(int index) {
return queryParametersToRemove_.get(index);
}
/**
*
* This field allows the authorization service to specify which query parameters
* should be removed from the original request before it is sent upstream. Each
* element in this list is a case-sensitive query parameter name to be removed.
*
*
* repeated string query_parameters_to_remove = 8;
* @param index The index of the value to return.
* @return The bytes of the queryParametersToRemove at the given index.
*/
public com.google.protobuf.ByteString
getQueryParametersToRemoveBytes(int index) {
return queryParametersToRemove_.getByteString(index);
}
/**
*
* This field allows the authorization service to specify which query parameters
* should be removed from the original request before it is sent upstream. Each
* element in this list is a case-sensitive query parameter name to be removed.
*
*
* repeated string query_parameters_to_remove = 8;
* @param index The index to set the value at.
* @param value The queryParametersToRemove to set.
* @return This builder for chaining.
*/
public Builder setQueryParametersToRemove(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureQueryParametersToRemoveIsMutable();
queryParametersToRemove_.set(index, value);
onChanged();
return this;
}
/**
*
* This field allows the authorization service to specify which query parameters
* should be removed from the original request before it is sent upstream. Each
* element in this list is a case-sensitive query parameter name to be removed.
*
*
* repeated string query_parameters_to_remove = 8;
* @param value The queryParametersToRemove to add.
* @return This builder for chaining.
*/
public Builder addQueryParametersToRemove(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureQueryParametersToRemoveIsMutable();
queryParametersToRemove_.add(value);
onChanged();
return this;
}
/**
*
* This field allows the authorization service to specify which query parameters
* should be removed from the original request before it is sent upstream. Each
* element in this list is a case-sensitive query parameter name to be removed.
*
*
* repeated string query_parameters_to_remove = 8;
* @param values The queryParametersToRemove to add.
* @return This builder for chaining.
*/
public Builder addAllQueryParametersToRemove(
java.lang.Iterable values) {
ensureQueryParametersToRemoveIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, queryParametersToRemove_);
onChanged();
return this;
}
/**
*
* This field allows the authorization service to specify which query parameters
* should be removed from the original request before it is sent upstream. Each
* element in this list is a case-sensitive query parameter name to be removed.
*
* This field allows the authorization service to specify which query parameters
* should be removed from the original request before it is sent upstream. Each
* element in this list is a case-sensitive query parameter name to be removed.
*
*
* repeated string query_parameters_to_remove = 8;
* @param value The bytes of the queryParametersToRemove to add.
* @return This builder for chaining.
*/
public Builder addQueryParametersToRemoveBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureQueryParametersToRemoveIsMutable();
queryParametersToRemove_.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.auth.v3.OkHttpResponse)
}
// @@protoc_insertion_point(class_scope:envoy.service.auth.v3.OkHttpResponse)
private static final io.envoyproxy.envoy.service.auth.v3.OkHttpResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.auth.v3.OkHttpResponse();
}
public static io.envoyproxy.envoy.service.auth.v3.OkHttpResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OkHttpResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OkHttpResponse(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.auth.v3.OkHttpResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}