gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/go-control-plane/envoy/service/auth/v3/external_auth.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.16.0
     5  // source: envoy/service/auth/v3/external_auth.proto
     6  
     7  package envoy_service_auth_v3
     8  
     9  import (
    10  	context "context"
    11  	_ "github.com/cncf/xds/go/udpa/annotations"
    12  	_ "gitee.com/ks-custle/core-gm/go-control-plane/envoy/annotations"
    13  	v31 "gitee.com/ks-custle/core-gm/go-control-plane/envoy/config/core/v3"
    14  	v3 "gitee.com/ks-custle/core-gm/go-control-plane/envoy/type/v3"
    15  	_ "github.com/envoyproxy/protoc-gen-validate/validate"
    16  	proto "github.com/golang/protobuf/proto"
    17  	_struct "github.com/golang/protobuf/ptypes/struct"
    18  	status "google.golang.org/genproto/googleapis/rpc/status"
    19  	grpc "gitee.com/ks-custle/core-gm/grpc"
    20  	codes "gitee.com/ks-custle/core-gm/grpc/codes"
    21  	status1 "gitee.com/ks-custle/core-gm/grpc/status"
    22  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    23  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    24  	reflect "reflect"
    25  	sync "sync"
    26  )
    27  
    28  const (
    29  	// Verify that this generated code is sufficiently up-to-date.
    30  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    31  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    32  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    33  )
    34  
    35  // This is a compile-time assertion that a sufficiently up-to-date version
    36  // of the legacy proto package is being used.
    37  const _ = proto.ProtoPackageIsVersion4
    38  
    39  type CheckRequest struct {
    40  	state         protoimpl.MessageState
    41  	sizeCache     protoimpl.SizeCache
    42  	unknownFields protoimpl.UnknownFields
    43  
    44  	// The request attributes.
    45  	Attributes *AttributeContext `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"`
    46  }
    47  
    48  func (x *CheckRequest) Reset() {
    49  	*x = CheckRequest{}
    50  	if protoimpl.UnsafeEnabled {
    51  		mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[0]
    52  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    53  		ms.StoreMessageInfo(mi)
    54  	}
    55  }
    56  
    57  func (x *CheckRequest) String() string {
    58  	return protoimpl.X.MessageStringOf(x)
    59  }
    60  
    61  func (*CheckRequest) ProtoMessage() {}
    62  
    63  func (x *CheckRequest) ProtoReflect() protoreflect.Message {
    64  	mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[0]
    65  	if protoimpl.UnsafeEnabled && x != nil {
    66  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    67  		if ms.LoadMessageInfo() == nil {
    68  			ms.StoreMessageInfo(mi)
    69  		}
    70  		return ms
    71  	}
    72  	return mi.MessageOf(x)
    73  }
    74  
    75  // Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.
    76  func (*CheckRequest) Descriptor() ([]byte, []int) {
    77  	return file_envoy_service_auth_v3_external_auth_proto_rawDescGZIP(), []int{0}
    78  }
    79  
    80  func (x *CheckRequest) GetAttributes() *AttributeContext {
    81  	if x != nil {
    82  		return x.Attributes
    83  	}
    84  	return nil
    85  }
    86  
    87  // HTTP attributes for a denied response.
    88  type DeniedHttpResponse struct {
    89  	state         protoimpl.MessageState
    90  	sizeCache     protoimpl.SizeCache
    91  	unknownFields protoimpl.UnknownFields
    92  
    93  	// This field allows the authorization service to send a HTTP response status
    94  	// code to the downstream client other than 403 (Forbidden).
    95  	Status *v3.HttpStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
    96  	// This field allows the authorization service to send HTTP response headers
    97  	// to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
    98  	// false when used in this message.
    99  	Headers []*v31.HeaderValueOption `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
   100  	// This field allows the authorization service to send a response body data
   101  	// to the downstream client.
   102  	Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
   103  }
   104  
   105  func (x *DeniedHttpResponse) Reset() {
   106  	*x = DeniedHttpResponse{}
   107  	if protoimpl.UnsafeEnabled {
   108  		mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[1]
   109  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   110  		ms.StoreMessageInfo(mi)
   111  	}
   112  }
   113  
   114  func (x *DeniedHttpResponse) String() string {
   115  	return protoimpl.X.MessageStringOf(x)
   116  }
   117  
   118  func (*DeniedHttpResponse) ProtoMessage() {}
   119  
   120  func (x *DeniedHttpResponse) ProtoReflect() protoreflect.Message {
   121  	mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[1]
   122  	if protoimpl.UnsafeEnabled && x != nil {
   123  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   124  		if ms.LoadMessageInfo() == nil {
   125  			ms.StoreMessageInfo(mi)
   126  		}
   127  		return ms
   128  	}
   129  	return mi.MessageOf(x)
   130  }
   131  
   132  // Deprecated: Use DeniedHttpResponse.ProtoReflect.Descriptor instead.
   133  func (*DeniedHttpResponse) Descriptor() ([]byte, []int) {
   134  	return file_envoy_service_auth_v3_external_auth_proto_rawDescGZIP(), []int{1}
   135  }
   136  
   137  func (x *DeniedHttpResponse) GetStatus() *v3.HttpStatus {
   138  	if x != nil {
   139  		return x.Status
   140  	}
   141  	return nil
   142  }
   143  
   144  func (x *DeniedHttpResponse) GetHeaders() []*v31.HeaderValueOption {
   145  	if x != nil {
   146  		return x.Headers
   147  	}
   148  	return nil
   149  }
   150  
   151  func (x *DeniedHttpResponse) GetBody() string {
   152  	if x != nil {
   153  		return x.Body
   154  	}
   155  	return ""
   156  }
   157  
   158  // HTTP attributes for an OK response.
   159  // [#next-free-field: 7]
   160  type OkHttpResponse struct {
   161  	state         protoimpl.MessageState
   162  	sizeCache     protoimpl.SizeCache
   163  	unknownFields protoimpl.UnknownFields
   164  
   165  	// HTTP entity headers in addition to the original request headers. This allows the authorization
   166  	// service to append, to add or to override headers from the original request before
   167  	// dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
   168  	// false when used in this message. By setting the `append` field to `true`,
   169  	// the filter will append the correspondent header value to the matched request header.
   170  	// By leaving `append` as false, the filter will either add a new header, or override an existing
   171  	// one if there is a match.
   172  	Headers []*v31.HeaderValueOption `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
   173  	// HTTP entity headers to remove from the original request before dispatching
   174  	// it to the upstream. This allows the authorization service to act on auth
   175  	// related headers (like `Authorization`), process them, and consume them.
   176  	// Under this model, the upstream will either receive the request (if it's
   177  	// authorized) or not receive it (if it's not), but will not see headers
   178  	// containing authorization credentials.
   179  	//
   180  	// Pseudo headers (such as `:authority`, `:method`, `:path` etc), as well as
   181  	// the header `Host`, may not be removed as that would make the request
   182  	// malformed. If mentioned in `headers_to_remove` these special headers will
   183  	// be ignored.
   184  	//
   185  	// When using the HTTP service this must instead be set by the HTTP
   186  	// authorization service as a comma separated list like so:
   187  	// ``x-envoy-auth-headers-to-remove: one-auth-header, another-auth-header``.
   188  	HeadersToRemove []string `protobuf:"bytes,5,rep,name=headers_to_remove,json=headersToRemove,proto3" json:"headers_to_remove,omitempty"`
   189  	// This field has been deprecated in favor of :ref:`CheckResponse.dynamic_metadata
   190  	// <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`. Until it is removed,
   191  	// setting this field overrides :ref:`CheckResponse.dynamic_metadata
   192  	// <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`.
   193  	//
   194  	// Deprecated: Do not use.
   195  	DynamicMetadata *_struct.Struct `protobuf:"bytes,3,opt,name=dynamic_metadata,json=dynamicMetadata,proto3" json:"dynamic_metadata,omitempty"`
   196  	// This field allows the authorization service to send HTTP response headers
   197  	// to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
   198  	// defaults to false when used in this message.
   199  	ResponseHeadersToAdd []*v31.HeaderValueOption `protobuf:"bytes,6,rep,name=response_headers_to_add,json=responseHeadersToAdd,proto3" json:"response_headers_to_add,omitempty"`
   200  }
   201  
   202  func (x *OkHttpResponse) Reset() {
   203  	*x = OkHttpResponse{}
   204  	if protoimpl.UnsafeEnabled {
   205  		mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[2]
   206  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   207  		ms.StoreMessageInfo(mi)
   208  	}
   209  }
   210  
   211  func (x *OkHttpResponse) String() string {
   212  	return protoimpl.X.MessageStringOf(x)
   213  }
   214  
   215  func (*OkHttpResponse) ProtoMessage() {}
   216  
   217  func (x *OkHttpResponse) ProtoReflect() protoreflect.Message {
   218  	mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[2]
   219  	if protoimpl.UnsafeEnabled && x != nil {
   220  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   221  		if ms.LoadMessageInfo() == nil {
   222  			ms.StoreMessageInfo(mi)
   223  		}
   224  		return ms
   225  	}
   226  	return mi.MessageOf(x)
   227  }
   228  
   229  // Deprecated: Use OkHttpResponse.ProtoReflect.Descriptor instead.
   230  func (*OkHttpResponse) Descriptor() ([]byte, []int) {
   231  	return file_envoy_service_auth_v3_external_auth_proto_rawDescGZIP(), []int{2}
   232  }
   233  
   234  func (x *OkHttpResponse) GetHeaders() []*v31.HeaderValueOption {
   235  	if x != nil {
   236  		return x.Headers
   237  	}
   238  	return nil
   239  }
   240  
   241  func (x *OkHttpResponse) GetHeadersToRemove() []string {
   242  	if x != nil {
   243  		return x.HeadersToRemove
   244  	}
   245  	return nil
   246  }
   247  
   248  // Deprecated: Do not use.
   249  func (x *OkHttpResponse) GetDynamicMetadata() *_struct.Struct {
   250  	if x != nil {
   251  		return x.DynamicMetadata
   252  	}
   253  	return nil
   254  }
   255  
   256  func (x *OkHttpResponse) GetResponseHeadersToAdd() []*v31.HeaderValueOption {
   257  	if x != nil {
   258  		return x.ResponseHeadersToAdd
   259  	}
   260  	return nil
   261  }
   262  
   263  // Intended for gRPC and Network Authorization servers `only`.
   264  type CheckResponse struct {
   265  	state         protoimpl.MessageState
   266  	sizeCache     protoimpl.SizeCache
   267  	unknownFields protoimpl.UnknownFields
   268  
   269  	// Status `OK` allows the request. Any other status indicates the request should be denied.
   270  	Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
   271  	// An message that contains HTTP response attributes. This message is
   272  	// used when the authorization service needs to send custom responses to the
   273  	// downstream client or, to modify/add request headers being dispatched to the upstream.
   274  	//
   275  	// Types that are assignable to HttpResponse:
   276  	//	*CheckResponse_DeniedResponse
   277  	//	*CheckResponse_OkResponse
   278  	HttpResponse isCheckResponse_HttpResponse `protobuf_oneof:"http_response"`
   279  	// Optional response metadata that will be emitted as dynamic metadata to be consumed by the next
   280  	// filter. This metadata lives in a namespace specified by the canonical name of extension filter
   281  	// that requires it:
   282  	//
   283  	// - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter.
   284  	// - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
   285  	DynamicMetadata *_struct.Struct `protobuf:"bytes,4,opt,name=dynamic_metadata,json=dynamicMetadata,proto3" json:"dynamic_metadata,omitempty"`
   286  }
   287  
   288  func (x *CheckResponse) Reset() {
   289  	*x = CheckResponse{}
   290  	if protoimpl.UnsafeEnabled {
   291  		mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[3]
   292  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   293  		ms.StoreMessageInfo(mi)
   294  	}
   295  }
   296  
   297  func (x *CheckResponse) String() string {
   298  	return protoimpl.X.MessageStringOf(x)
   299  }
   300  
   301  func (*CheckResponse) ProtoMessage() {}
   302  
   303  func (x *CheckResponse) ProtoReflect() protoreflect.Message {
   304  	mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[3]
   305  	if protoimpl.UnsafeEnabled && x != nil {
   306  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   307  		if ms.LoadMessageInfo() == nil {
   308  			ms.StoreMessageInfo(mi)
   309  		}
   310  		return ms
   311  	}
   312  	return mi.MessageOf(x)
   313  }
   314  
   315  // Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.
   316  func (*CheckResponse) Descriptor() ([]byte, []int) {
   317  	return file_envoy_service_auth_v3_external_auth_proto_rawDescGZIP(), []int{3}
   318  }
   319  
   320  func (x *CheckResponse) GetStatus() *status.Status {
   321  	if x != nil {
   322  		return x.Status
   323  	}
   324  	return nil
   325  }
   326  
   327  func (m *CheckResponse) GetHttpResponse() isCheckResponse_HttpResponse {
   328  	if m != nil {
   329  		return m.HttpResponse
   330  	}
   331  	return nil
   332  }
   333  
   334  func (x *CheckResponse) GetDeniedResponse() *DeniedHttpResponse {
   335  	if x, ok := x.GetHttpResponse().(*CheckResponse_DeniedResponse); ok {
   336  		return x.DeniedResponse
   337  	}
   338  	return nil
   339  }
   340  
   341  func (x *CheckResponse) GetOkResponse() *OkHttpResponse {
   342  	if x, ok := x.GetHttpResponse().(*CheckResponse_OkResponse); ok {
   343  		return x.OkResponse
   344  	}
   345  	return nil
   346  }
   347  
   348  func (x *CheckResponse) GetDynamicMetadata() *_struct.Struct {
   349  	if x != nil {
   350  		return x.DynamicMetadata
   351  	}
   352  	return nil
   353  }
   354  
   355  type isCheckResponse_HttpResponse interface {
   356  	isCheckResponse_HttpResponse()
   357  }
   358  
   359  type CheckResponse_DeniedResponse struct {
   360  	// Supplies http attributes for a denied response.
   361  	DeniedResponse *DeniedHttpResponse `protobuf:"bytes,2,opt,name=denied_response,json=deniedResponse,proto3,oneof"`
   362  }
   363  
   364  type CheckResponse_OkResponse struct {
   365  	// Supplies http attributes for an ok response.
   366  	OkResponse *OkHttpResponse `protobuf:"bytes,3,opt,name=ok_response,json=okResponse,proto3,oneof"`
   367  }
   368  
   369  func (*CheckResponse_DeniedResponse) isCheckResponse_HttpResponse() {}
   370  
   371  func (*CheckResponse_OkResponse) isCheckResponse_HttpResponse() {}
   372  
   373  var File_envoy_service_auth_v3_external_auth_proto protoreflect.FileDescriptor
   374  
   375  var file_envoy_service_auth_v3_external_auth_proto_rawDesc = []byte{
   376  	0x0a, 0x29, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f,
   377  	0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,
   378  	0x5f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x65, 0x6e, 0x76,
   379  	0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e,
   380  	0x76, 0x33, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   381  	0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72,
   382  	0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
   383  	0x63, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x61, 0x74, 0x74, 0x72, 0x69,
   384  	0x62, 0x75, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f,
   385  	0x74, 0x6f, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x76,
   386  	0x33, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72,
   387  	0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   388  	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   389  	0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74,
   390  	0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x65, 0x6e, 0x76, 0x6f,
   391  	0x79, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x64, 0x65,
   392  	0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   393  	0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   394  	0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21,
   395  	0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   396  	0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   397  	0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69,
   398  	0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x82, 0x01, 0x0a, 0x0c, 0x43,
   399  	0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x0a, 0x61,
   400  	0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
   401  	0x27, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
   402  	0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
   403  	0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62,
   404  	0x75, 0x74, 0x65, 0x73, 0x3a, 0x29, 0x9a, 0xc5, 0x88, 0x1e, 0x24, 0x0a, 0x22, 0x65, 0x6e, 0x76,
   405  	0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e,
   406  	0x76, 0x32, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,
   407  	0xd9, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65,
   408  	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
   409  	0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74,
   410  	0x79, 0x70, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75,
   411  	0x73, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x06, 0x73, 0x74, 0x61,
   412  	0x74, 0x75, 0x73, 0x12, 0x41, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02,
   413  	0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e,
   414  	0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x48, 0x65, 0x61, 0x64,
   415  	0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x68,
   416  	0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03,
   417  	0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x3a, 0x2f, 0x9a, 0xc5, 0x88, 0x1e,
   418  	0x2a, 0x0a, 0x28, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
   419  	0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x48,
   420  	0x74, 0x74, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xdd, 0x02, 0x0a, 0x0e,
   421  	0x4f, 0x6b, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41,
   422  	0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
   423  	0x27, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63,
   424  	0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x56, 0x61, 0x6c,
   425  	0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
   426  	0x73, 0x12, 0x2a, 0x0a, 0x11, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x74, 0x6f, 0x5f,
   427  	0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x68, 0x65,
   428  	0x61, 0x64, 0x65, 0x72, 0x73, 0x54, 0x6f, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x4f, 0x0a,
   429  	0x10, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
   430  	0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   431  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74,
   432  	0x42, 0x0b, 0x18, 0x01, 0x92, 0xc7, 0x86, 0xd8, 0x04, 0x03, 0x33, 0x2e, 0x30, 0x52, 0x0f, 0x64,
   433  	0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5e,
   434  	0x0a, 0x17, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65,
   435  	0x72, 0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x61, 0x64, 0x64, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32,
   436  	0x27, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63,
   437  	0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x56, 0x61, 0x6c,
   438  	0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e,
   439  	0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x54, 0x6f, 0x41, 0x64, 0x64, 0x3a, 0x2b,
   440  	0x9a, 0xc5, 0x88, 0x1e, 0x26, 0x0a, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72,
   441  	0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x4f, 0x6b, 0x48,
   442  	0x74, 0x74, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xdc, 0x02, 0x0a, 0x0d,
   443  	0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a,
   444  	0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e,
   445  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75,
   446  	0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x54, 0x0a, 0x0f, 0x64, 0x65, 0x6e,
   447  	0x69, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01,
   448  	0x28, 0x0b, 0x32, 0x29, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
   449  	0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x44, 0x65, 0x6e, 0x69, 0x65,
   450  	0x64, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52,
   451  	0x0e, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
   452  	0x48, 0x0a, 0x0b, 0x6f, 0x6b, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03,
   453  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72,
   454  	0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x4f, 0x6b, 0x48,
   455  	0x74, 0x74, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x6f,
   456  	0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x10, 0x64, 0x79, 0x6e,
   457  	0x61, 0x6d, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20,
   458  	0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
   459  	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0f, 0x64, 0x79,
   460  	0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x2a, 0x9a,
   461  	0xc5, 0x88, 0x1e, 0x25, 0x0a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76,
   462  	0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x68, 0x65, 0x63,
   463  	0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x68, 0x74, 0x74,
   464  	0x70, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x65, 0x0a, 0x0d, 0x41, 0x75,
   465  	0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x54, 0x0a, 0x05, 0x43,
   466  	0x68, 0x65, 0x63, 0x6b, 0x12, 0x23, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72,
   467  	0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x68, 0x65,
   468  	0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
   469  	0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76,
   470  	0x33, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
   471  	0x00, 0x42, 0x45, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f,
   472  	0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
   473  	0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x33, 0x42, 0x11, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e,
   474  	0x61, 0x6c, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x88, 0x01, 0x01,
   475  	0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   476  }
   477  
   478  var (
   479  	file_envoy_service_auth_v3_external_auth_proto_rawDescOnce sync.Once
   480  	file_envoy_service_auth_v3_external_auth_proto_rawDescData = file_envoy_service_auth_v3_external_auth_proto_rawDesc
   481  )
   482  
   483  func file_envoy_service_auth_v3_external_auth_proto_rawDescGZIP() []byte {
   484  	file_envoy_service_auth_v3_external_auth_proto_rawDescOnce.Do(func() {
   485  		file_envoy_service_auth_v3_external_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_service_auth_v3_external_auth_proto_rawDescData)
   486  	})
   487  	return file_envoy_service_auth_v3_external_auth_proto_rawDescData
   488  }
   489  
   490  var file_envoy_service_auth_v3_external_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   491  var file_envoy_service_auth_v3_external_auth_proto_goTypes = []interface{}{
   492  	(*CheckRequest)(nil),          // 0: envoy.service.auth.v3.CheckRequest
   493  	(*DeniedHttpResponse)(nil),    // 1: envoy.service.auth.v3.DeniedHttpResponse
   494  	(*OkHttpResponse)(nil),        // 2: envoy.service.auth.v3.OkHttpResponse
   495  	(*CheckResponse)(nil),         // 3: envoy.service.auth.v3.CheckResponse
   496  	(*AttributeContext)(nil),      // 4: envoy.service.auth.v3.AttributeContext
   497  	(*v3.HttpStatus)(nil),         // 5: envoy.type.v3.HttpStatus
   498  	(*v31.HeaderValueOption)(nil), // 6: envoy.config.core.v3.HeaderValueOption
   499  	(*_struct.Struct)(nil),        // 7: google.protobuf.Struct
   500  	(*status.Status)(nil),         // 8: google.rpc.Status
   501  }
   502  var file_envoy_service_auth_v3_external_auth_proto_depIdxs = []int32{
   503  	4,  // 0: envoy.service.auth.v3.CheckRequest.attributes:type_name -> envoy.service.auth.v3.AttributeContext
   504  	5,  // 1: envoy.service.auth.v3.DeniedHttpResponse.status:type_name -> envoy.type.v3.HttpStatus
   505  	6,  // 2: envoy.service.auth.v3.DeniedHttpResponse.headers:type_name -> envoy.config.core.v3.HeaderValueOption
   506  	6,  // 3: envoy.service.auth.v3.OkHttpResponse.headers:type_name -> envoy.config.core.v3.HeaderValueOption
   507  	7,  // 4: envoy.service.auth.v3.OkHttpResponse.dynamic_metadata:type_name -> google.protobuf.Struct
   508  	6,  // 5: envoy.service.auth.v3.OkHttpResponse.response_headers_to_add:type_name -> envoy.config.core.v3.HeaderValueOption
   509  	8,  // 6: envoy.service.auth.v3.CheckResponse.status:type_name -> google.rpc.Status
   510  	1,  // 7: envoy.service.auth.v3.CheckResponse.denied_response:type_name -> envoy.service.auth.v3.DeniedHttpResponse
   511  	2,  // 8: envoy.service.auth.v3.CheckResponse.ok_response:type_name -> envoy.service.auth.v3.OkHttpResponse
   512  	7,  // 9: envoy.service.auth.v3.CheckResponse.dynamic_metadata:type_name -> google.protobuf.Struct
   513  	0,  // 10: envoy.service.auth.v3.Authorization.Check:input_type -> envoy.service.auth.v3.CheckRequest
   514  	3,  // 11: envoy.service.auth.v3.Authorization.Check:output_type -> envoy.service.auth.v3.CheckResponse
   515  	11, // [11:12] is the sub-list for method output_type
   516  	10, // [10:11] is the sub-list for method input_type
   517  	10, // [10:10] is the sub-list for extension type_name
   518  	10, // [10:10] is the sub-list for extension extendee
   519  	0,  // [0:10] is the sub-list for field type_name
   520  }
   521  
   522  func init() { file_envoy_service_auth_v3_external_auth_proto_init() }
   523  func file_envoy_service_auth_v3_external_auth_proto_init() {
   524  	if File_envoy_service_auth_v3_external_auth_proto != nil {
   525  		return
   526  	}
   527  	file_envoy_service_auth_v3_attribute_context_proto_init()
   528  	if !protoimpl.UnsafeEnabled {
   529  		file_envoy_service_auth_v3_external_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   530  			switch v := v.(*CheckRequest); i {
   531  			case 0:
   532  				return &v.state
   533  			case 1:
   534  				return &v.sizeCache
   535  			case 2:
   536  				return &v.unknownFields
   537  			default:
   538  				return nil
   539  			}
   540  		}
   541  		file_envoy_service_auth_v3_external_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   542  			switch v := v.(*DeniedHttpResponse); i {
   543  			case 0:
   544  				return &v.state
   545  			case 1:
   546  				return &v.sizeCache
   547  			case 2:
   548  				return &v.unknownFields
   549  			default:
   550  				return nil
   551  			}
   552  		}
   553  		file_envoy_service_auth_v3_external_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   554  			switch v := v.(*OkHttpResponse); i {
   555  			case 0:
   556  				return &v.state
   557  			case 1:
   558  				return &v.sizeCache
   559  			case 2:
   560  				return &v.unknownFields
   561  			default:
   562  				return nil
   563  			}
   564  		}
   565  		file_envoy_service_auth_v3_external_auth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   566  			switch v := v.(*CheckResponse); i {
   567  			case 0:
   568  				return &v.state
   569  			case 1:
   570  				return &v.sizeCache
   571  			case 2:
   572  				return &v.unknownFields
   573  			default:
   574  				return nil
   575  			}
   576  		}
   577  	}
   578  	file_envoy_service_auth_v3_external_auth_proto_msgTypes[3].OneofWrappers = []interface{}{
   579  		(*CheckResponse_DeniedResponse)(nil),
   580  		(*CheckResponse_OkResponse)(nil),
   581  	}
   582  	type x struct{}
   583  	out := protoimpl.TypeBuilder{
   584  		File: protoimpl.DescBuilder{
   585  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   586  			RawDescriptor: file_envoy_service_auth_v3_external_auth_proto_rawDesc,
   587  			NumEnums:      0,
   588  			NumMessages:   4,
   589  			NumExtensions: 0,
   590  			NumServices:   1,
   591  		},
   592  		GoTypes:           file_envoy_service_auth_v3_external_auth_proto_goTypes,
   593  		DependencyIndexes: file_envoy_service_auth_v3_external_auth_proto_depIdxs,
   594  		MessageInfos:      file_envoy_service_auth_v3_external_auth_proto_msgTypes,
   595  	}.Build()
   596  	File_envoy_service_auth_v3_external_auth_proto = out.File
   597  	file_envoy_service_auth_v3_external_auth_proto_rawDesc = nil
   598  	file_envoy_service_auth_v3_external_auth_proto_goTypes = nil
   599  	file_envoy_service_auth_v3_external_auth_proto_depIdxs = nil
   600  }
   601  
   602  // Reference imports to suppress errors if they are not otherwise used.
   603  var _ context.Context
   604  var _ grpc.ClientConnInterface
   605  
   606  // This is a compile-time assertion to ensure that this generated file
   607  // is compatible with the grpc package it is being compiled against.
   608  const _ = grpc.SupportPackageIsVersion6
   609  
   610  // AuthorizationClient is the client API for Authorization service.
   611  //
   612  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   613  type AuthorizationClient interface {
   614  	// Performs authorization check based on the attributes associated with the
   615  	// incoming request, and returns status `OK` or not `OK`.
   616  	Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error)
   617  }
   618  
   619  type authorizationClient struct {
   620  	cc grpc.ClientConnInterface
   621  }
   622  
   623  func NewAuthorizationClient(cc grpc.ClientConnInterface) AuthorizationClient {
   624  	return &authorizationClient{cc}
   625  }
   626  
   627  func (c *authorizationClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) {
   628  	out := new(CheckResponse)
   629  	err := c.cc.Invoke(ctx, "/envoy.service.auth.v3.Authorization/Check", in, out, opts...)
   630  	if err != nil {
   631  		return nil, err
   632  	}
   633  	return out, nil
   634  }
   635  
   636  // AuthorizationServer is the server API for Authorization service.
   637  type AuthorizationServer interface {
   638  	// Performs authorization check based on the attributes associated with the
   639  	// incoming request, and returns status `OK` or not `OK`.
   640  	Check(context.Context, *CheckRequest) (*CheckResponse, error)
   641  }
   642  
   643  // UnimplementedAuthorizationServer can be embedded to have forward compatible implementations.
   644  type UnimplementedAuthorizationServer struct {
   645  }
   646  
   647  func (*UnimplementedAuthorizationServer) Check(context.Context, *CheckRequest) (*CheckResponse, error) {
   648  	return nil, status1.Errorf(codes.Unimplemented, "method Check not implemented")
   649  }
   650  
   651  func RegisterAuthorizationServer(s *grpc.Server, srv AuthorizationServer) {
   652  	s.RegisterService(&_Authorization_serviceDesc, srv)
   653  }
   654  
   655  func _Authorization_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   656  	in := new(CheckRequest)
   657  	if err := dec(in); err != nil {
   658  		return nil, err
   659  	}
   660  	if interceptor == nil {
   661  		return srv.(AuthorizationServer).Check(ctx, in)
   662  	}
   663  	info := &grpc.UnaryServerInfo{
   664  		Server:     srv,
   665  		FullMethod: "/envoy.service.auth.v3.Authorization/Check",
   666  	}
   667  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   668  		return srv.(AuthorizationServer).Check(ctx, req.(*CheckRequest))
   669  	}
   670  	return interceptor(ctx, in, info, handler)
   671  }
   672  
   673  var _Authorization_serviceDesc = grpc.ServiceDesc{
   674  	ServiceName: "envoy.service.auth.v3.Authorization",
   675  	HandlerType: (*AuthorizationServer)(nil),
   676  	Methods: []grpc.MethodDesc{
   677  		{
   678  			MethodName: "Check",
   679  			Handler:    _Authorization_Check_Handler,
   680  		},
   681  	},
   682  	Streams:  []grpc.StreamDesc{},
   683  	Metadata: "envoy/service/auth/v3/external_auth.proto",
   684  }