
io.envoyproxy.envoy.service.auth.v3.OkHttpResponse Maven / Gradle / Ivy
The newest version!
// 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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
@java.lang.Override
public java.util.List getHeadersList() {
return 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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder>
getHeadersOrBuilderList() {
return 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.
*
*
* 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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.HeaderValueOption getHeaders(int index) {
return headers_.get(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;
*/
@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>`.
*
*
* .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 The dynamicMetadata.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.Struct getDynamicMetadata() {
return dynamicMetadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : 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"];
*/
@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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
@java.lang.Override
public java.util.List getResponseHeadersToAddList() {
return 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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder>
getResponseHeadersToAddOrBuilderList() {
return 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.
*
*
* 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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.HeaderValueOption getResponseHeadersToAdd(int index) {
return responseHeadersToAdd_.get(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;
*/
@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.
*
*
* repeated .envoy.config.core.v3.QueryParameter query_parameters_to_set = 7;
*/
@java.lang.Override
public java.util.List getQueryParametersToSetList() {
return queryParametersToSet_;
}
/**
*
* 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 java.util.List extends io.envoyproxy.envoy.config.core.v3.QueryParameterOrBuilder>
getQueryParametersToSetOrBuilderList() {
return queryParametersToSet_;
}
/**
*
* 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 int getQueryParametersToSetCount() {
return queryParametersToSet_.size();
}
/**
*
* 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.QueryParameter getQueryParametersToSet(int index) {
return queryParametersToSet_.get(index);
}
/**
*
* 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]
*
*
* Protobuf type {@code envoy.service.auth.v3.OkHttpResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.auth.v3.OkHttpResponse)
io.envoyproxy.envoy.service.auth.v3.OkHttpResponseOrBuilder {
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);
}
// Construct using io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHeadersFieldBuilder();
getResponseHeadersToAddFieldBuilder();
getQueryParametersToSetFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (headersBuilder_ == null) {
headers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
headersBuilder_.clear();
}
headersToRemove_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
if (dynamicMetadataBuilder_ == null) {
dynamicMetadata_ = null;
} else {
dynamicMetadata_ = null;
dynamicMetadataBuilder_ = null;
}
if (responseHeadersToAddBuilder_ == null) {
responseHeadersToAdd_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
responseHeadersToAddBuilder_.clear();
}
if (queryParametersToSetBuilder_ == null) {
queryParametersToSet_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
queryParametersToSetBuilder_.clear();
}
queryParametersToRemove_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.auth.v3.ExternalAuthProto.internal_static_envoy_service_auth_v3_OkHttpResponse_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.auth.v3.OkHttpResponse getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.auth.v3.OkHttpResponse build() {
io.envoyproxy.envoy.service.auth.v3.OkHttpResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.auth.v3.OkHttpResponse buildPartial() {
io.envoyproxy.envoy.service.auth.v3.OkHttpResponse result = new io.envoyproxy.envoy.service.auth.v3.OkHttpResponse(this);
int from_bitField0_ = bitField0_;
if (headersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
headers_ = java.util.Collections.unmodifiableList(headers_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.headers_ = headers_;
} else {
result.headers_ = headersBuilder_.build();
}
if (((bitField0_ & 0x00000002) != 0)) {
headersToRemove_ = headersToRemove_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.headersToRemove_ = headersToRemove_;
if (dynamicMetadataBuilder_ == null) {
result.dynamicMetadata_ = dynamicMetadata_;
} else {
result.dynamicMetadata_ = dynamicMetadataBuilder_.build();
}
if (responseHeadersToAddBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
responseHeadersToAdd_ = java.util.Collections.unmodifiableList(responseHeadersToAdd_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.responseHeadersToAdd_ = responseHeadersToAdd_;
} else {
result.responseHeadersToAdd_ = responseHeadersToAddBuilder_.build();
}
if (queryParametersToSetBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
queryParametersToSet_ = java.util.Collections.unmodifiableList(queryParametersToSet_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.queryParametersToSet_ = queryParametersToSet_;
} else {
result.queryParametersToSet_ = queryParametersToSetBuilder_.build();
}
if (((bitField0_ & 0x00000010) != 0)) {
queryParametersToRemove_ = queryParametersToRemove_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.queryParametersToRemove_ = queryParametersToRemove_;
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.auth.v3.OkHttpResponse) {
return mergeFrom((io.envoyproxy.envoy.service.auth.v3.OkHttpResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.auth.v3.OkHttpResponse other) {
if (other == io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.getDefaultInstance()) return this;
if (headersBuilder_ == null) {
if (!other.headers_.isEmpty()) {
if (headers_.isEmpty()) {
headers_ = other.headers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHeadersIsMutable();
headers_.addAll(other.headers_);
}
onChanged();
}
} else {
if (!other.headers_.isEmpty()) {
if (headersBuilder_.isEmpty()) {
headersBuilder_.dispose();
headersBuilder_ = null;
headers_ = other.headers_;
bitField0_ = (bitField0_ & ~0x00000001);
headersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getHeadersFieldBuilder() : null;
} else {
headersBuilder_.addAllMessages(other.headers_);
}
}
}
if (!other.headersToRemove_.isEmpty()) {
if (headersToRemove_.isEmpty()) {
headersToRemove_ = other.headersToRemove_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureHeadersToRemoveIsMutable();
headersToRemove_.addAll(other.headersToRemove_);
}
onChanged();
}
if (other.hasDynamicMetadata()) {
mergeDynamicMetadata(other.getDynamicMetadata());
}
if (responseHeadersToAddBuilder_ == null) {
if (!other.responseHeadersToAdd_.isEmpty()) {
if (responseHeadersToAdd_.isEmpty()) {
responseHeadersToAdd_ = other.responseHeadersToAdd_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureResponseHeadersToAddIsMutable();
responseHeadersToAdd_.addAll(other.responseHeadersToAdd_);
}
onChanged();
}
} else {
if (!other.responseHeadersToAdd_.isEmpty()) {
if (responseHeadersToAddBuilder_.isEmpty()) {
responseHeadersToAddBuilder_.dispose();
responseHeadersToAddBuilder_ = null;
responseHeadersToAdd_ = other.responseHeadersToAdd_;
bitField0_ = (bitField0_ & ~0x00000004);
responseHeadersToAddBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResponseHeadersToAddFieldBuilder() : null;
} else {
responseHeadersToAddBuilder_.addAllMessages(other.responseHeadersToAdd_);
}
}
}
if (queryParametersToSetBuilder_ == null) {
if (!other.queryParametersToSet_.isEmpty()) {
if (queryParametersToSet_.isEmpty()) {
queryParametersToSet_ = other.queryParametersToSet_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureQueryParametersToSetIsMutable();
queryParametersToSet_.addAll(other.queryParametersToSet_);
}
onChanged();
}
} else {
if (!other.queryParametersToSet_.isEmpty()) {
if (queryParametersToSetBuilder_.isEmpty()) {
queryParametersToSetBuilder_.dispose();
queryParametersToSetBuilder_ = null;
queryParametersToSet_ = other.queryParametersToSet_;
bitField0_ = (bitField0_ & ~0x00000008);
queryParametersToSetBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getQueryParametersToSetFieldBuilder() : null;
} else {
queryParametersToSetBuilder_.addAllMessages(other.queryParametersToSet_);
}
}
}
if (!other.queryParametersToRemove_.isEmpty()) {
if (queryParametersToRemove_.isEmpty()) {
queryParametersToRemove_ = other.queryParametersToRemove_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureQueryParametersToRemoveIsMutable();
queryParametersToRemove_.addAll(other.queryParametersToRemove_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.service.auth.v3.OkHttpResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.auth.v3.OkHttpResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List headers_ =
java.util.Collections.emptyList();
private void ensureHeadersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
headers_ = new java.util.ArrayList(headers_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HeaderValueOption, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder> headersBuilder_;
/**
*
* 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 java.util.List getHeadersList() {
if (headersBuilder_ == null) {
return java.util.Collections.unmodifiableList(headers_);
} else {
return headersBuilder_.getMessageList();
}
}
/**
*
* 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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValueOption getHeaders(int index) {
if (headersBuilder_ == null) {
return headers_.get(index);
} else {
return headersBuilder_.getMessage(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 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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
public Builder setHeaders(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder builderForValue) {
if (headersBuilder_ == null) {
ensureHeadersIsMutable();
headers_.set(index, builderForValue.build());
onChanged();
} else {
headersBuilder_.setMessage(index, builderForValue.build());
}
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(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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
public Builder addHeaders(
io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder builderForValue) {
if (headersBuilder_ == null) {
ensureHeadersIsMutable();
headers_.add(builderForValue.build());
onChanged();
} else {
headersBuilder_.addMessage(builderForValue.build());
}
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.Builder builderForValue) {
if (headersBuilder_ == null) {
ensureHeadersIsMutable();
headers_.add(index, builderForValue.build());
onChanged();
} else {
headersBuilder_.addMessage(index, builderForValue.build());
}
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 addAllHeaders(
java.lang.Iterable extends io.envoyproxy.envoy.config.core.v3.HeaderValueOption> values) {
if (headersBuilder_ == null) {
ensureHeadersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, headers_);
onChanged();
} else {
headersBuilder_.addAllMessages(values);
}
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 clearHeaders() {
if (headersBuilder_ == null) {
headers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
headersBuilder_.clear();
}
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 removeHeaders(int index) {
if (headersBuilder_ == null) {
ensureHeadersIsMutable();
headers_.remove(index);
onChanged();
} else {
headersBuilder_.remove(index);
}
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 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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
public java.util.List extends io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder>
getHeadersOrBuilderList() {
if (headersBuilder_ != null) {
return headersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder addHeadersBuilder() {
return getHeadersFieldBuilder().addBuilder(
io.envoyproxy.envoy.config.core.v3.HeaderValueOption.getDefaultInstance());
}
/**
*
* 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 addHeadersBuilder(
int index) {
return getHeadersFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.getDefaultInstance());
}
/**
*
* 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 java.util.List
getHeadersBuilderList() {
return getHeadersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HeaderValueOption, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder>
getHeadersFieldBuilder() {
if (headersBuilder_ == null) {
headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HeaderValueOption, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder>(
headers_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
headers_ = null;
}
return headersBuilder_;
}
private com.google.protobuf.LazyStringList headersToRemove_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureHeadersToRemoveIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
headersToRemove_ = new com.google.protobuf.LazyStringArrayList(headersToRemove_);
bitField0_ |= 0x00000002;
}
}
/**
*
* 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``.
*
*
* repeated string headers_to_remove = 5;
* @return This builder for chaining.
*/
public Builder clearHeadersToRemove() {
headersToRemove_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
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 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>`.
*
*
* .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 The dynamicMetadata.
*/
@java.lang.Deprecated public com.google.protobuf.Struct getDynamicMetadata() {
if (dynamicMetadataBuilder_ == null) {
return dynamicMetadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : dynamicMetadata_;
} else {
return dynamicMetadataBuilder_.getMessage();
}
}
/**
*
* 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.Deprecated public Builder setDynamicMetadata(com.google.protobuf.Struct value) {
if (dynamicMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dynamicMetadata_ = value;
onChanged();
} else {
dynamicMetadataBuilder_.setMessage(value);
}
return this;
}
/**
*
* 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.Deprecated public Builder setDynamicMetadata(
com.google.protobuf.Struct.Builder builderForValue) {
if (dynamicMetadataBuilder_ == null) {
dynamicMetadata_ = builderForValue.build();
onChanged();
} else {
dynamicMetadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* 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.Deprecated public Builder mergeDynamicMetadata(com.google.protobuf.Struct value) {
if (dynamicMetadataBuilder_ == null) {
if (dynamicMetadata_ != null) {
dynamicMetadata_ =
com.google.protobuf.Struct.newBuilder(dynamicMetadata_).mergeFrom(value).buildPartial();
} else {
dynamicMetadata_ = value;
}
onChanged();
} else {
dynamicMetadataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* 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.Deprecated public Builder clearDynamicMetadata() {
if (dynamicMetadataBuilder_ == null) {
dynamicMetadata_ = null;
onChanged();
} else {
dynamicMetadata_ = null;
dynamicMetadataBuilder_ = null;
}
return this;
}
/**
*
* 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.Deprecated public com.google.protobuf.Struct.Builder getDynamicMetadataBuilder() {
onChanged();
return getDynamicMetadataFieldBuilder().getBuilder();
}
/**
*
* 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.Deprecated public com.google.protobuf.StructOrBuilder getDynamicMetadataOrBuilder() {
if (dynamicMetadataBuilder_ != null) {
return dynamicMetadataBuilder_.getMessageOrBuilder();
} else {
return dynamicMetadata_ == null ?
com.google.protobuf.Struct.getDefaultInstance() : 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"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getDynamicMetadataFieldBuilder() {
if (dynamicMetadataBuilder_ == null) {
dynamicMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getDynamicMetadata(),
getParentForChildren(),
isClean());
dynamicMetadata_ = null;
}
return dynamicMetadataBuilder_;
}
private java.util.List responseHeadersToAdd_ =
java.util.Collections.emptyList();
private void ensureResponseHeadersToAddIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
responseHeadersToAdd_ = new java.util.ArrayList(responseHeadersToAdd_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HeaderValueOption, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder> responseHeadersToAddBuilder_;
/**
*
* 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 java.util.List getResponseHeadersToAddList() {
if (responseHeadersToAddBuilder_ == null) {
return java.util.Collections.unmodifiableList(responseHeadersToAdd_);
} else {
return responseHeadersToAddBuilder_.getMessageList();
}
}
/**
*
* 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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValueOption getResponseHeadersToAdd(int index) {
if (responseHeadersToAddBuilder_ == null) {
return responseHeadersToAdd_.get(index);
} else {
return responseHeadersToAddBuilder_.getMessage(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 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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
public Builder setResponseHeadersToAdd(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder builderForValue) {
if (responseHeadersToAddBuilder_ == null) {
ensureResponseHeadersToAddIsMutable();
responseHeadersToAdd_.set(index, builderForValue.build());
onChanged();
} else {
responseHeadersToAddBuilder_.setMessage(index, builderForValue.build());
}
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(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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
public Builder addResponseHeadersToAdd(
io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder builderForValue) {
if (responseHeadersToAddBuilder_ == null) {
ensureResponseHeadersToAddIsMutable();
responseHeadersToAdd_.add(builderForValue.build());
onChanged();
} else {
responseHeadersToAddBuilder_.addMessage(builderForValue.build());
}
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.Builder builderForValue) {
if (responseHeadersToAddBuilder_ == null) {
ensureResponseHeadersToAddIsMutable();
responseHeadersToAdd_.add(index, builderForValue.build());
onChanged();
} else {
responseHeadersToAddBuilder_.addMessage(index, builderForValue.build());
}
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 addAllResponseHeadersToAdd(
java.lang.Iterable extends io.envoyproxy.envoy.config.core.v3.HeaderValueOption> values) {
if (responseHeadersToAddBuilder_ == null) {
ensureResponseHeadersToAddIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, responseHeadersToAdd_);
onChanged();
} else {
responseHeadersToAddBuilder_.addAllMessages(values);
}
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 clearResponseHeadersToAdd() {
if (responseHeadersToAddBuilder_ == null) {
responseHeadersToAdd_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
responseHeadersToAddBuilder_.clear();
}
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 removeResponseHeadersToAdd(int index) {
if (responseHeadersToAddBuilder_ == null) {
ensureResponseHeadersToAddIsMutable();
responseHeadersToAdd_.remove(index);
onChanged();
} else {
responseHeadersToAddBuilder_.remove(index);
}
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 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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
public java.util.List extends io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder>
getResponseHeadersToAddOrBuilderList() {
if (responseHeadersToAddBuilder_ != null) {
return responseHeadersToAddBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(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.
*
*
* repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 6;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder addResponseHeadersToAddBuilder() {
return getResponseHeadersToAddFieldBuilder().addBuilder(
io.envoyproxy.envoy.config.core.v3.HeaderValueOption.getDefaultInstance());
}
/**
*
* 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 addResponseHeadersToAddBuilder(
int index) {
return getResponseHeadersToAddFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.getDefaultInstance());
}
/**
*
* 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 java.util.List
getResponseHeadersToAddBuilderList() {
return getResponseHeadersToAddFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HeaderValueOption, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder>
getResponseHeadersToAddFieldBuilder() {
if (responseHeadersToAddBuilder_ == null) {
responseHeadersToAddBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HeaderValueOption, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder>(
responseHeadersToAdd_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
responseHeadersToAdd_ = null;
}
return responseHeadersToAddBuilder_;
}
private java.util.List queryParametersToSet_ =
java.util.Collections.emptyList();
private void ensureQueryParametersToSetIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
queryParametersToSet_ = new java.util.ArrayList(queryParametersToSet_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.QueryParameter, io.envoyproxy.envoy.config.core.v3.QueryParameter.Builder, io.envoyproxy.envoy.config.core.v3.QueryParameterOrBuilder> queryParametersToSetBuilder_;
/**
*
* 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;
*/
public java.util.List getQueryParametersToSetList() {
if (queryParametersToSetBuilder_ == null) {
return java.util.Collections.unmodifiableList(queryParametersToSet_);
} else {
return queryParametersToSetBuilder_.getMessageList();
}
}
/**
*
* 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;
*/
public int getQueryParametersToSetCount() {
if (queryParametersToSetBuilder_ == null) {
return queryParametersToSet_.size();
} else {
return queryParametersToSetBuilder_.getCount();
}
}
/**
*
* 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;
*/
public io.envoyproxy.envoy.config.core.v3.QueryParameter getQueryParametersToSet(int index) {
if (queryParametersToSetBuilder_ == null) {
return queryParametersToSet_.get(index);
} else {
return queryParametersToSetBuilder_.getMessage(index);
}
}
/**
*
* 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;
*/
public Builder setQueryParametersToSet(
int index, io.envoyproxy.envoy.config.core.v3.QueryParameter value) {
if (queryParametersToSetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueryParametersToSetIsMutable();
queryParametersToSet_.set(index, value);
onChanged();
} else {
queryParametersToSetBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* 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;
*/
public Builder setQueryParametersToSet(
int index, io.envoyproxy.envoy.config.core.v3.QueryParameter.Builder builderForValue) {
if (queryParametersToSetBuilder_ == null) {
ensureQueryParametersToSetIsMutable();
queryParametersToSet_.set(index, builderForValue.build());
onChanged();
} else {
queryParametersToSetBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* 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;
*/
public Builder addQueryParametersToSet(io.envoyproxy.envoy.config.core.v3.QueryParameter value) {
if (queryParametersToSetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueryParametersToSetIsMutable();
queryParametersToSet_.add(value);
onChanged();
} else {
queryParametersToSetBuilder_.addMessage(value);
}
return this;
}
/**
*
* 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;
*/
public Builder addQueryParametersToSet(
int index, io.envoyproxy.envoy.config.core.v3.QueryParameter value) {
if (queryParametersToSetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueryParametersToSetIsMutable();
queryParametersToSet_.add(index, value);
onChanged();
} else {
queryParametersToSetBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* 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;
*/
public Builder addQueryParametersToSet(
io.envoyproxy.envoy.config.core.v3.QueryParameter.Builder builderForValue) {
if (queryParametersToSetBuilder_ == null) {
ensureQueryParametersToSetIsMutable();
queryParametersToSet_.add(builderForValue.build());
onChanged();
} else {
queryParametersToSetBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* 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;
*/
public Builder addQueryParametersToSet(
int index, io.envoyproxy.envoy.config.core.v3.QueryParameter.Builder builderForValue) {
if (queryParametersToSetBuilder_ == null) {
ensureQueryParametersToSetIsMutable();
queryParametersToSet_.add(index, builderForValue.build());
onChanged();
} else {
queryParametersToSetBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* 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;
*/
public Builder addAllQueryParametersToSet(
java.lang.Iterable extends io.envoyproxy.envoy.config.core.v3.QueryParameter> values) {
if (queryParametersToSetBuilder_ == null) {
ensureQueryParametersToSetIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, queryParametersToSet_);
onChanged();
} else {
queryParametersToSetBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* 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;
*/
public Builder clearQueryParametersToSet() {
if (queryParametersToSetBuilder_ == null) {
queryParametersToSet_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
queryParametersToSetBuilder_.clear();
}
return this;
}
/**
*
* 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;
*/
public Builder removeQueryParametersToSet(int index) {
if (queryParametersToSetBuilder_ == null) {
ensureQueryParametersToSetIsMutable();
queryParametersToSet_.remove(index);
onChanged();
} else {
queryParametersToSetBuilder_.remove(index);
}
return this;
}
/**
*
* 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;
*/
public io.envoyproxy.envoy.config.core.v3.QueryParameter.Builder getQueryParametersToSetBuilder(
int index) {
return getQueryParametersToSetFieldBuilder().getBuilder(index);
}
/**
*
* 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;
*/
public io.envoyproxy.envoy.config.core.v3.QueryParameterOrBuilder getQueryParametersToSetOrBuilder(
int index) {
if (queryParametersToSetBuilder_ == null) {
return queryParametersToSet_.get(index); } else {
return queryParametersToSetBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* 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;
*/
public java.util.List extends io.envoyproxy.envoy.config.core.v3.QueryParameterOrBuilder>
getQueryParametersToSetOrBuilderList() {
if (queryParametersToSetBuilder_ != null) {
return queryParametersToSetBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(queryParametersToSet_);
}
}
/**
*
* 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;
*/
public io.envoyproxy.envoy.config.core.v3.QueryParameter.Builder addQueryParametersToSetBuilder() {
return getQueryParametersToSetFieldBuilder().addBuilder(
io.envoyproxy.envoy.config.core.v3.QueryParameter.getDefaultInstance());
}
/**
*
* 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;
*/
public io.envoyproxy.envoy.config.core.v3.QueryParameter.Builder addQueryParametersToSetBuilder(
int index) {
return getQueryParametersToSetFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.config.core.v3.QueryParameter.getDefaultInstance());
}
/**
*
* 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;
*/
public java.util.List
getQueryParametersToSetBuilderList() {
return getQueryParametersToSetFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.QueryParameter, io.envoyproxy.envoy.config.core.v3.QueryParameter.Builder, io.envoyproxy.envoy.config.core.v3.QueryParameterOrBuilder>
getQueryParametersToSetFieldBuilder() {
if (queryParametersToSetBuilder_ == null) {
queryParametersToSetBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.QueryParameter, io.envoyproxy.envoy.config.core.v3.QueryParameter.Builder, io.envoyproxy.envoy.config.core.v3.QueryParameterOrBuilder>(
queryParametersToSet_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
queryParametersToSet_ = null;
}
return queryParametersToSetBuilder_;
}
private com.google.protobuf.LazyStringList queryParametersToRemove_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureQueryParametersToRemoveIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
queryParametersToRemove_ = new com.google.protobuf.LazyStringArrayList(queryParametersToRemove_);
bitField0_ |= 0x00000010;
}
}
/**
*
* 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.
*
*
* repeated string query_parameters_to_remove = 8;
* @return This builder for chaining.
*/
public Builder clearQueryParametersToRemove() {
queryParametersToRemove_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
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 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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy