Class CheckResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.service.auth.v3.CheckResponse
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CheckResponseOrBuilder,Serializable
public final class CheckResponse
extends com.google.protobuf.GeneratedMessageV3
implements CheckResponseOrBuilder
Intended for gRPC and Network Authorization servers ``only``. [#next-free-field: 6]Protobuf type
envoy.service.auth.v3.CheckResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classIntended for gRPC and Network Authorization servers ``only``.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CheckResponseSupplies http attributes for a denied response.Supplies http attributes for a denied response.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.StructOptional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.com.google.protobuf.StructOrBuilderOptional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.Supplies http attributes for an error response.Supplies http attributes for an error response.Supplies http attributes for an ok response.Supplies http attributes for an ok response.com.google.protobuf.Parser<CheckResponse>intStatus ``OK`` allows the request.Status ``OK`` allows the request.booleanSupplies http attributes for a denied response.booleanOptional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.booleanSupplies http attributes for an error response.inthashCode()booleanSupplies http attributes for an ok response.booleanStatus ``OK`` allows the request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic CheckResponse.Builderstatic CheckResponse.BuildernewBuilder(CheckResponse prototype) protected CheckResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static CheckResponseparseDelimitedFrom(InputStream input) static CheckResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckResponseparseFrom(byte[] data) static CheckResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckResponseparseFrom(com.google.protobuf.ByteString data) static CheckResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckResponseparseFrom(com.google.protobuf.CodedInputStream input) static CheckResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckResponseparseFrom(InputStream input) static CheckResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckResponseparseFrom(ByteBuffer data) static CheckResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CheckResponse>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER- See Also:
-
DENIED_RESPONSE_FIELD_NUMBER
public static final int DENIED_RESPONSE_FIELD_NUMBER- See Also:
-
OK_RESPONSE_FIELD_NUMBER
public static final int OK_RESPONSE_FIELD_NUMBER- See Also:
-
ERROR_RESPONSE_FIELD_NUMBER
public static final int ERROR_RESPONSE_FIELD_NUMBER- See Also:
-
DYNAMIC_METADATA_FIELD_NUMBER
public static final int DYNAMIC_METADATA_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getHttpResponseCase
- Specified by:
getHttpResponseCasein interfaceCheckResponseOrBuilder
-
hasStatus
public boolean hasStatus()Status ``OK`` allows the request. Any other status indicates the request should be denied, and for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>` Envoy sends ``403 Forbidden`` HTTP status code by default.
.google.rpc.Status status = 1;- Specified by:
hasStatusin interfaceCheckResponseOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
Status ``OK`` allows the request. Any other status indicates the request should be denied, and for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>` Envoy sends ``403 Forbidden`` HTTP status code by default.
.google.rpc.Status status = 1;- Specified by:
getStatusin interfaceCheckResponseOrBuilder- Returns:
- The status.
-
getStatusOrBuilder
Status ``OK`` allows the request. Any other status indicates the request should be denied, and for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>` Envoy sends ``403 Forbidden`` HTTP status code by default.
.google.rpc.Status status = 1;- Specified by:
getStatusOrBuilderin interfaceCheckResponseOrBuilder
-
hasDeniedResponse
public boolean hasDeniedResponse()Supplies http attributes for a denied response.
.envoy.service.auth.v3.DeniedHttpResponse denied_response = 2;- Specified by:
hasDeniedResponsein interfaceCheckResponseOrBuilder- Returns:
- Whether the deniedResponse field is set.
-
getDeniedResponse
Supplies http attributes for a denied response.
.envoy.service.auth.v3.DeniedHttpResponse denied_response = 2;- Specified by:
getDeniedResponsein interfaceCheckResponseOrBuilder- Returns:
- The deniedResponse.
-
getDeniedResponseOrBuilder
Supplies http attributes for a denied response.
.envoy.service.auth.v3.DeniedHttpResponse denied_response = 2;- Specified by:
getDeniedResponseOrBuilderin interfaceCheckResponseOrBuilder
-
hasOkResponse
public boolean hasOkResponse()Supplies http attributes for an ok response.
.envoy.service.auth.v3.OkHttpResponse ok_response = 3;- Specified by:
hasOkResponsein interfaceCheckResponseOrBuilder- Returns:
- Whether the okResponse field is set.
-
getOkResponse
Supplies http attributes for an ok response.
.envoy.service.auth.v3.OkHttpResponse ok_response = 3;- Specified by:
getOkResponsein interfaceCheckResponseOrBuilder- Returns:
- The okResponse.
-
getOkResponseOrBuilder
Supplies http attributes for an ok response.
.envoy.service.auth.v3.OkHttpResponse ok_response = 3;- Specified by:
getOkResponseOrBuilderin interfaceCheckResponseOrBuilder
-
hasErrorResponse
public boolean hasErrorResponse()Supplies http attributes for an error response. This is used when the authorization service encounters an internal error and wants to return custom headers and body to the downstream client. When ``error_response`` is set, the ext_authz filter increments the ``ext_authz_error`` stat and respects the :ref:`failure_mode_allow <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.failure_mode_allow>` configuration. The HTTP status code, headers, and body are taken from the :ref:`DeniedHttpResponse <envoy_v3_api_msg_service.auth.v3.DeniedHttpResponse>` message. If the status field is not set, Envoy sends the status code configured via :ref:`status_on_error <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.status_on_error>`, which defaults to ``403 Forbidden``.
.envoy.service.auth.v3.DeniedHttpResponse error_response = 5;- Specified by:
hasErrorResponsein interfaceCheckResponseOrBuilder- Returns:
- Whether the errorResponse field is set.
-
getErrorResponse
Supplies http attributes for an error response. This is used when the authorization service encounters an internal error and wants to return custom headers and body to the downstream client. When ``error_response`` is set, the ext_authz filter increments the ``ext_authz_error`` stat and respects the :ref:`failure_mode_allow <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.failure_mode_allow>` configuration. The HTTP status code, headers, and body are taken from the :ref:`DeniedHttpResponse <envoy_v3_api_msg_service.auth.v3.DeniedHttpResponse>` message. If the status field is not set, Envoy sends the status code configured via :ref:`status_on_error <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.status_on_error>`, which defaults to ``403 Forbidden``.
.envoy.service.auth.v3.DeniedHttpResponse error_response = 5;- Specified by:
getErrorResponsein interfaceCheckResponseOrBuilder- Returns:
- The errorResponse.
-
getErrorResponseOrBuilder
Supplies http attributes for an error response. This is used when the authorization service encounters an internal error and wants to return custom headers and body to the downstream client. When ``error_response`` is set, the ext_authz filter increments the ``ext_authz_error`` stat and respects the :ref:`failure_mode_allow <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.failure_mode_allow>` configuration. The HTTP status code, headers, and body are taken from the :ref:`DeniedHttpResponse <envoy_v3_api_msg_service.auth.v3.DeniedHttpResponse>` message. If the status field is not set, Envoy sends the status code configured via :ref:`status_on_error <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.status_on_error>`, which defaults to ``403 Forbidden``.
.envoy.service.auth.v3.DeniedHttpResponse error_response = 5;- Specified by:
getErrorResponseOrBuilderin interfaceCheckResponseOrBuilder
-
hasDynamicMetadata
public boolean hasDynamicMetadata()Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter. This metadata lives in a namespace specified by the canonical name of extension filter that requires it: - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter. - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
.google.protobuf.Struct dynamic_metadata = 4;- Specified by:
hasDynamicMetadatain interfaceCheckResponseOrBuilder- Returns:
- Whether the dynamicMetadata field is set.
-
getDynamicMetadata
public com.google.protobuf.Struct getDynamicMetadata()Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter. This metadata lives in a namespace specified by the canonical name of extension filter that requires it: - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter. - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
.google.protobuf.Struct dynamic_metadata = 4;- Specified by:
getDynamicMetadatain interfaceCheckResponseOrBuilder- Returns:
- The dynamicMetadata.
-
getDynamicMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getDynamicMetadataOrBuilder()Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter. This metadata lives in a namespace specified by the canonical name of extension filter that requires it: - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter. - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
.google.protobuf.Struct dynamic_metadata = 4;- Specified by:
getDynamicMetadataOrBuilderin interfaceCheckResponseOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CheckResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CheckResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CheckResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CheckResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CheckResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CheckResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-