public final class OkHttpResponse extends com.google.protobuf.GeneratedMessageV3 implements OkHttpResponseOrBuilder
HTTP attributes for an OK response. [#next-free-field: 6]Protobuf type
envoy.service.auth.v3.OkHttpResponse
Modifier and Type | Class and Description |
---|---|
static class |
OkHttpResponse.Builder
HTTP attributes for an OK response.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
DYNAMIC_METADATA_FIELD_NUMBER |
static int |
HEADERS_FIELD_NUMBER |
static int |
HEADERS_TO_REMOVE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static OkHttpResponse |
getDefaultInstance() |
OkHttpResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Struct |
getDynamicMetadata()
Deprecated.
|
com.google.protobuf.StructOrBuilder |
getDynamicMetadataOrBuilder()
Deprecated.
|
HeaderValueOption |
getHeaders(int index)
HTTP entity headers in addition to the original request headers.
|
int |
getHeadersCount()
HTTP entity headers in addition to the original request headers.
|
List<HeaderValueOption> |
getHeadersList()
HTTP entity headers in addition to the original request headers.
|
HeaderValueOptionOrBuilder |
getHeadersOrBuilder(int index)
HTTP entity headers in addition to the original request headers.
|
List<? extends HeaderValueOptionOrBuilder> |
getHeadersOrBuilderList()
HTTP entity headers in addition to the original request headers.
|
String |
getHeadersToRemove(int index)
HTTP entity headers to remove from the original request before dispatching
it to the upstream.
|
com.google.protobuf.ByteString |
getHeadersToRemoveBytes(int index)
HTTP entity headers to remove from the original request before dispatching
it to the upstream.
|
int |
getHeadersToRemoveCount()
HTTP entity headers to remove from the original request before dispatching
it to the upstream.
|
com.google.protobuf.ProtocolStringList |
getHeadersToRemoveList()
HTTP entity headers to remove from the original request before dispatching
it to the upstream.
|
com.google.protobuf.Parser<OkHttpResponse> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasDynamicMetadata()
Deprecated.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OkHttpResponse.Builder |
newBuilder() |
static OkHttpResponse.Builder |
newBuilder(OkHttpResponse prototype) |
OkHttpResponse.Builder |
newBuilderForType() |
protected OkHttpResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static OkHttpResponse |
parseDelimitedFrom(InputStream input) |
static OkHttpResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OkHttpResponse |
parseFrom(byte[] data) |
static OkHttpResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OkHttpResponse |
parseFrom(ByteBuffer data) |
static OkHttpResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OkHttpResponse |
parseFrom(com.google.protobuf.ByteString data) |
static OkHttpResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OkHttpResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static OkHttpResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OkHttpResponse |
parseFrom(InputStream input) |
static OkHttpResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<OkHttpResponse> |
parser() |
OkHttpResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int HEADERS_FIELD_NUMBER
public static final int HEADERS_TO_REMOVE_FIELD_NUMBER
public static final int DYNAMIC_METADATA_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public List<HeaderValueOption> getHeadersList()
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 `append` field in `HeaderValueOption` 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;
getHeadersList
in interface OkHttpResponseOrBuilder
public List<? extends HeaderValueOptionOrBuilder> getHeadersOrBuilderList()
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 `append` field in `HeaderValueOption` 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;
getHeadersOrBuilderList
in interface OkHttpResponseOrBuilder
public int getHeadersCount()
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 `append` field in `HeaderValueOption` 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;
getHeadersCount
in interface OkHttpResponseOrBuilder
public HeaderValueOption getHeaders(int 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 `append` field in `HeaderValueOption` 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;
getHeaders
in interface OkHttpResponseOrBuilder
public HeaderValueOptionOrBuilder getHeadersOrBuilder(int 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 `append` field in `HeaderValueOption` 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;
getHeadersOrBuilder
in interface OkHttpResponseOrBuilder
public com.google.protobuf.ProtocolStringList getHeadersToRemoveList()
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;
getHeadersToRemoveList
in interface OkHttpResponseOrBuilder
public int getHeadersToRemoveCount()
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;
getHeadersToRemoveCount
in interface OkHttpResponseOrBuilder
public String getHeadersToRemove(int 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;
getHeadersToRemove
in interface OkHttpResponseOrBuilder
public com.google.protobuf.ByteString getHeadersToRemoveBytes(int 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;
getHeadersToRemoveBytes
in interface OkHttpResponseOrBuilder
@Deprecated public boolean hasDynamicMetadata()
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];
hasDynamicMetadata
in interface OkHttpResponseOrBuilder
@Deprecated public com.google.protobuf.Struct getDynamicMetadata()
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];
getDynamicMetadata
in interface OkHttpResponseOrBuilder
@Deprecated public com.google.protobuf.StructOrBuilder getDynamicMetadataOrBuilder()
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];
getDynamicMetadataOrBuilder
in interface OkHttpResponseOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static OkHttpResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static OkHttpResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static OkHttpResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static OkHttpResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static OkHttpResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static OkHttpResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static OkHttpResponse parseFrom(InputStream input) throws IOException
IOException
public static OkHttpResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static OkHttpResponse parseDelimitedFrom(InputStream input) throws IOException
IOException
public static OkHttpResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static OkHttpResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static OkHttpResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public OkHttpResponse.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static OkHttpResponse.Builder newBuilder()
public static OkHttpResponse.Builder newBuilder(OkHttpResponse prototype)
public OkHttpResponse.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected OkHttpResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static OkHttpResponse getDefaultInstance()
public static com.google.protobuf.Parser<OkHttpResponse> parser()
public com.google.protobuf.Parser<OkHttpResponse> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public OkHttpResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2018–2021 The Envoy Project. All rights reserved.