blob: 252d69d9f8e611b20942d3936c77503c9cd31bf1 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/api/expr/v1alpha1/conformance_service.proto
package expr
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status1 "google.golang.org/grpc/status"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Severities of issues.
type IssueDetails_Severity int32
const (
// An unspecified severity.
IssueDetails_SEVERITY_UNSPECIFIED IssueDetails_Severity = 0
// Deprecation issue for statements and method that may no longer be
// supported or maintained.
IssueDetails_DEPRECATION IssueDetails_Severity = 1
// Warnings such as: unused variables.
IssueDetails_WARNING IssueDetails_Severity = 2
// Errors such as: unmatched curly braces or variable redefinition.
IssueDetails_ERROR IssueDetails_Severity = 3
)
var IssueDetails_Severity_name = map[int32]string{
0: "SEVERITY_UNSPECIFIED",
1: "DEPRECATION",
2: "WARNING",
3: "ERROR",
}
var IssueDetails_Severity_value = map[string]int32{
"SEVERITY_UNSPECIFIED": 0,
"DEPRECATION": 1,
"WARNING": 2,
"ERROR": 3,
}
func (x IssueDetails_Severity) String() string {
return proto.EnumName(IssueDetails_Severity_name, int32(x))
}
func (IssueDetails_Severity) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b3ca1183e6ceae83, []int{6, 0}
}
// Request message for the Parse method.
type ParseRequest struct {
// Required. Source text in CEL syntax.
CelSource string `protobuf:"bytes,1,opt,name=cel_source,json=celSource,proto3" json:"cel_source,omitempty"`
// Tag for version of CEL syntax, for future use.
SyntaxVersion string `protobuf:"bytes,2,opt,name=syntax_version,json=syntaxVersion,proto3" json:"syntax_version,omitempty"`
// File or resource for source text, used in [SourceInfo][google.api.expr.v1alpha1.SourceInfo].
SourceLocation string `protobuf:"bytes,3,opt,name=source_location,json=sourceLocation,proto3" json:"source_location,omitempty"`
// Prevent macro expansion. See "Macros" in Language Defiinition.
DisableMacros bool `protobuf:"varint,4,opt,name=disable_macros,json=disableMacros,proto3" json:"disable_macros,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ParseRequest) Reset() { *m = ParseRequest{} }
func (m *ParseRequest) String() string { return proto.CompactTextString(m) }
func (*ParseRequest) ProtoMessage() {}
func (*ParseRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b3ca1183e6ceae83, []int{0}
}
func (m *ParseRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParseRequest.Unmarshal(m, b)
}
func (m *ParseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParseRequest.Marshal(b, m, deterministic)
}
func (m *ParseRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParseRequest.Merge(m, src)
}
func (m *ParseRequest) XXX_Size() int {
return xxx_messageInfo_ParseRequest.Size(m)
}
func (m *ParseRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ParseRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ParseRequest proto.InternalMessageInfo
func (m *ParseRequest) GetCelSource() string {
if m != nil {
return m.CelSource
}
return ""
}
func (m *ParseRequest) GetSyntaxVersion() string {
if m != nil {
return m.SyntaxVersion
}
return ""
}
func (m *ParseRequest) GetSourceLocation() string {
if m != nil {
return m.SourceLocation
}
return ""
}
func (m *ParseRequest) GetDisableMacros() bool {
if m != nil {
return m.DisableMacros
}
return false
}
// Response message for the Parse method.
type ParseResponse struct {
// The parsed representation, or unset if parsing failed.
ParsedExpr *ParsedExpr `protobuf:"bytes,1,opt,name=parsed_expr,json=parsedExpr,proto3" json:"parsed_expr,omitempty"`
// Any number of issues with [StatusDetails][] as the details.
Issues []*status.Status `protobuf:"bytes,2,rep,name=issues,proto3" json:"issues,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ParseResponse) Reset() { *m = ParseResponse{} }
func (m *ParseResponse) String() string { return proto.CompactTextString(m) }
func (*ParseResponse) ProtoMessage() {}
func (*ParseResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b3ca1183e6ceae83, []int{1}
}
func (m *ParseResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParseResponse.Unmarshal(m, b)
}
func (m *ParseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParseResponse.Marshal(b, m, deterministic)
}
func (m *ParseResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParseResponse.Merge(m, src)
}
func (m *ParseResponse) XXX_Size() int {
return xxx_messageInfo_ParseResponse.Size(m)
}
func (m *ParseResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ParseResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ParseResponse proto.InternalMessageInfo
func (m *ParseResponse) GetParsedExpr() *ParsedExpr {
if m != nil {
return m.ParsedExpr
}
return nil
}
func (m *ParseResponse) GetIssues() []*status.Status {
if m != nil {
return m.Issues
}
return nil
}
// Request message for the Check method.
type CheckRequest struct {
// Required. The parsed representation of the CEL program.
ParsedExpr *ParsedExpr `protobuf:"bytes,1,opt,name=parsed_expr,json=parsedExpr,proto3" json:"parsed_expr,omitempty"`
// Declarations of types for external variables and functions.
// Required if program uses external variables or functions
// not in the default environment.
TypeEnv []*Decl `protobuf:"bytes,2,rep,name=type_env,json=typeEnv,proto3" json:"type_env,omitempty"`
// The protocol buffer context. See "Name Resolution" in the
// Language Definition.
Container string `protobuf:"bytes,3,opt,name=container,proto3" json:"container,omitempty"`
// If true, use only the declarations in [type_env][google.api.expr.v1alpha1.CheckRequest.type_env]. If false (default),
// add declarations for the standard definitions to the type environment. See
// "Standard Definitions" in the Language Definition.
NoStdEnv bool `protobuf:"varint,4,opt,name=no_std_env,json=noStdEnv,proto3" json:"no_std_env,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CheckRequest) Reset() { *m = CheckRequest{} }
func (m *CheckRequest) String() string { return proto.CompactTextString(m) }
func (*CheckRequest) ProtoMessage() {}
func (*CheckRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b3ca1183e6ceae83, []int{2}
}
func (m *CheckRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CheckRequest.Unmarshal(m, b)
}
func (m *CheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CheckRequest.Marshal(b, m, deterministic)
}
func (m *CheckRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckRequest.Merge(m, src)
}
func (m *CheckRequest) XXX_Size() int {
return xxx_messageInfo_CheckRequest.Size(m)
}
func (m *CheckRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CheckRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CheckRequest proto.InternalMessageInfo
func (m *CheckRequest) GetParsedExpr() *ParsedExpr {
if m != nil {
return m.ParsedExpr
}
return nil
}
func (m *CheckRequest) GetTypeEnv() []*Decl {
if m != nil {
return m.TypeEnv
}
return nil
}
func (m *CheckRequest) GetContainer() string {
if m != nil {
return m.Container
}
return ""
}
func (m *CheckRequest) GetNoStdEnv() bool {
if m != nil {
return m.NoStdEnv
}
return false
}
// Response message for the Check method.
type CheckResponse struct {
// The annotated representation, or unset if checking failed.
CheckedExpr *CheckedExpr `protobuf:"bytes,1,opt,name=checked_expr,json=checkedExpr,proto3" json:"checked_expr,omitempty"`
// Any number of issues with [StatusDetails][] as the details.
Issues []*status.Status `protobuf:"bytes,2,rep,name=issues,proto3" json:"issues,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CheckResponse) Reset() { *m = CheckResponse{} }
func (m *CheckResponse) String() string { return proto.CompactTextString(m) }
func (*CheckResponse) ProtoMessage() {}
func (*CheckResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b3ca1183e6ceae83, []int{3}
}
func (m *CheckResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CheckResponse.Unmarshal(m, b)
}
func (m *CheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CheckResponse.Marshal(b, m, deterministic)
}
func (m *CheckResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckResponse.Merge(m, src)
}
func (m *CheckResponse) XXX_Size() int {
return xxx_messageInfo_CheckResponse.Size(m)
}
func (m *CheckResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CheckResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CheckResponse proto.InternalMessageInfo
func (m *CheckResponse) GetCheckedExpr() *CheckedExpr {
if m != nil {
return m.CheckedExpr
}
return nil
}
func (m *CheckResponse) GetIssues() []*status.Status {
if m != nil {
return m.Issues
}
return nil
}
// Request message for the Eval method.
type EvalRequest struct {
// Required. Either the parsed or annotated representation of the CEL program.
//
// Types that are valid to be assigned to ExprKind:
// *EvalRequest_ParsedExpr
// *EvalRequest_CheckedExpr
ExprKind isEvalRequest_ExprKind `protobuf_oneof:"expr_kind"`
// Bindings for the external variables. The types SHOULD be compatible
// with the type environment in [CheckRequest][google.api.expr.v1alpha1.CheckRequest], if checked.
Bindings map[string]*ExprValue `protobuf:"bytes,3,rep,name=bindings,proto3" json:"bindings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// SHOULD be the same container as used in [CheckRequest][google.api.expr.v1alpha1.CheckRequest], if checked.
Container string `protobuf:"bytes,4,opt,name=container,proto3" json:"container,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EvalRequest) Reset() { *m = EvalRequest{} }
func (m *EvalRequest) String() string { return proto.CompactTextString(m) }
func (*EvalRequest) ProtoMessage() {}
func (*EvalRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b3ca1183e6ceae83, []int{4}
}
func (m *EvalRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EvalRequest.Unmarshal(m, b)
}
func (m *EvalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EvalRequest.Marshal(b, m, deterministic)
}
func (m *EvalRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_EvalRequest.Merge(m, src)
}
func (m *EvalRequest) XXX_Size() int {
return xxx_messageInfo_EvalRequest.Size(m)
}
func (m *EvalRequest) XXX_DiscardUnknown() {
xxx_messageInfo_EvalRequest.DiscardUnknown(m)
}
var xxx_messageInfo_EvalRequest proto.InternalMessageInfo
type isEvalRequest_ExprKind interface {
isEvalRequest_ExprKind()
}
type EvalRequest_ParsedExpr struct {
ParsedExpr *ParsedExpr `protobuf:"bytes,1,opt,name=parsed_expr,json=parsedExpr,proto3,oneof"`
}
type EvalRequest_CheckedExpr struct {
CheckedExpr *CheckedExpr `protobuf:"bytes,2,opt,name=checked_expr,json=checkedExpr,proto3,oneof"`
}
func (*EvalRequest_ParsedExpr) isEvalRequest_ExprKind() {}
func (*EvalRequest_CheckedExpr) isEvalRequest_ExprKind() {}
func (m *EvalRequest) GetExprKind() isEvalRequest_ExprKind {
if m != nil {
return m.ExprKind
}
return nil
}
func (m *EvalRequest) GetParsedExpr() *ParsedExpr {
if x, ok := m.GetExprKind().(*EvalRequest_ParsedExpr); ok {
return x.ParsedExpr
}
return nil
}
func (m *EvalRequest) GetCheckedExpr() *CheckedExpr {
if x, ok := m.GetExprKind().(*EvalRequest_CheckedExpr); ok {
return x.CheckedExpr
}
return nil
}
func (m *EvalRequest) GetBindings() map[string]*ExprValue {
if m != nil {
return m.Bindings
}
return nil
}
func (m *EvalRequest) GetContainer() string {
if m != nil {
return m.Container
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*EvalRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*EvalRequest_ParsedExpr)(nil),
(*EvalRequest_CheckedExpr)(nil),
}
}
// Response message for the Eval method.
type EvalResponse struct {
// The execution result, or unset if execution couldn't start.
Result *ExprValue `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
// Any number of issues with [StatusDetails][] as the details.
// Note that CEL execution errors are reified into [ExprValue][google.api.expr.v1alpha1.ExprValue].
// Nevertheless, we'll allow out-of-band issues to be raised,
// which also makes the replies more regular.
Issues []*status.Status `protobuf:"bytes,2,rep,name=issues,proto3" json:"issues,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EvalResponse) Reset() { *m = EvalResponse{} }
func (m *EvalResponse) String() string { return proto.CompactTextString(m) }
func (*EvalResponse) ProtoMessage() {}
func (*EvalResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b3ca1183e6ceae83, []int{5}
}
func (m *EvalResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EvalResponse.Unmarshal(m, b)
}
func (m *EvalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EvalResponse.Marshal(b, m, deterministic)
}
func (m *EvalResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_EvalResponse.Merge(m, src)
}
func (m *EvalResponse) XXX_Size() int {
return xxx_messageInfo_EvalResponse.Size(m)
}
func (m *EvalResponse) XXX_DiscardUnknown() {
xxx_messageInfo_EvalResponse.DiscardUnknown(m)
}
var xxx_messageInfo_EvalResponse proto.InternalMessageInfo
func (m *EvalResponse) GetResult() *ExprValue {
if m != nil {
return m.Result
}
return nil
}
func (m *EvalResponse) GetIssues() []*status.Status {
if m != nil {
return m.Issues
}
return nil
}
// Warnings or errors in service execution are represented by
// [google.rpc.Status][google.rpc.Status] messages, with the following message
// in the details field.
type IssueDetails struct {
// The severity of the issue.
Severity IssueDetails_Severity `protobuf:"varint,1,opt,name=severity,proto3,enum=google.api.expr.v1alpha1.IssueDetails_Severity" json:"severity,omitempty"`
// Position in the source, if known.
Position *SourcePosition `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
// Expression ID from [Expr][google.api.expr.v1alpha1.Expr], 0 if unknown.
Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IssueDetails) Reset() { *m = IssueDetails{} }
func (m *IssueDetails) String() string { return proto.CompactTextString(m) }
func (*IssueDetails) ProtoMessage() {}
func (*IssueDetails) Descriptor() ([]byte, []int) {
return fileDescriptor_b3ca1183e6ceae83, []int{6}
}
func (m *IssueDetails) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssueDetails.Unmarshal(m, b)
}
func (m *IssueDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssueDetails.Marshal(b, m, deterministic)
}
func (m *IssueDetails) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssueDetails.Merge(m, src)
}
func (m *IssueDetails) XXX_Size() int {
return xxx_messageInfo_IssueDetails.Size(m)
}
func (m *IssueDetails) XXX_DiscardUnknown() {
xxx_messageInfo_IssueDetails.DiscardUnknown(m)
}
var xxx_messageInfo_IssueDetails proto.InternalMessageInfo
func (m *IssueDetails) GetSeverity() IssueDetails_Severity {
if m != nil {
return m.Severity
}
return IssueDetails_SEVERITY_UNSPECIFIED
}
func (m *IssueDetails) GetPosition() *SourcePosition {
if m != nil {
return m.Position
}
return nil
}
func (m *IssueDetails) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
func init() {
proto.RegisterEnum("google.api.expr.v1alpha1.IssueDetails_Severity", IssueDetails_Severity_name, IssueDetails_Severity_value)
proto.RegisterType((*ParseRequest)(nil), "google.api.expr.v1alpha1.ParseRequest")
proto.RegisterType((*ParseResponse)(nil), "google.api.expr.v1alpha1.ParseResponse")
proto.RegisterType((*CheckRequest)(nil), "google.api.expr.v1alpha1.CheckRequest")
proto.RegisterType((*CheckResponse)(nil), "google.api.expr.v1alpha1.CheckResponse")
proto.RegisterType((*EvalRequest)(nil), "google.api.expr.v1alpha1.EvalRequest")
proto.RegisterMapType((map[string]*ExprValue)(nil), "google.api.expr.v1alpha1.EvalRequest.BindingsEntry")
proto.RegisterType((*EvalResponse)(nil), "google.api.expr.v1alpha1.EvalResponse")
proto.RegisterType((*IssueDetails)(nil), "google.api.expr.v1alpha1.IssueDetails")
}
func init() {
proto.RegisterFile("google/api/expr/v1alpha1/conformance_service.proto", fileDescriptor_b3ca1183e6ceae83)
}
var fileDescriptor_b3ca1183e6ceae83 = []byte{
// 870 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x4d, 0x6f, 0x1b, 0x37,
0x10, 0xf5, 0xae, 0x6c, 0x47, 0x1a, 0x7d, 0x44, 0x20, 0x5a, 0x44, 0x10, 0x8c, 0xd6, 0x50, 0x6a,
0xc7, 0xe8, 0x61, 0x85, 0x28, 0x97, 0xa6, 0xe9, 0x45, 0x1f, 0xdb, 0x58, 0x69, 0x63, 0x0b, 0x54,
0xea, 0xa0, 0xbd, 0x6c, 0x69, 0x2e, 0x23, 0x13, 0x5e, 0x93, 0x5b, 0x72, 0xb5, 0xb5, 0x7b, 0x2a,
0x0a, 0xf4, 0xc7, 0xf4, 0xaf, 0xf4, 0xd6, 0x53, 0x81, 0x9c, 0xfa, 0x33, 0x7a, 0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xa1, 0xca, 0xe0, 0xc1,
0x87, 0xb6, 0x4f, 0xb2, 0xe7, 0x71, 0xe2, 0xfc, 0xf4, 0x8d, 0x25, 0xcd, 0x64, 0x44, 0xc4, 0xcc,
0x93, 0x6a, 0xd6, 0x9d, 0x31, 0x91, 0x3f, 0x9e, 0xdd, 0xab, 0x2c, 0x1f, 0x3e, 0xd0, 0xcf, 0xb2,
0x5f, 0xff, 0x3b, 0xce, 0xf1, 0x66, 0x8e, 0x7d, 0xf2, 0x2e, 0x00, 0x00, 0xff, 0xff, 0x5e, 0xf4,
0x47, 0x00, 0x7f, 0x08, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// ConformanceServiceClient is the client API for ConformanceService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ConformanceServiceClient interface {
// Transforms CEL source text into a parsed representation.
Parse(ctx context.Context, in *ParseRequest, opts ...grpc.CallOption) (*ParseResponse, error)
// Runs static checks on a parsed CEL representation and return
// an annotated representation, or a set of issues.
Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error)
// Evaluates a parsed or annotation CEL representation given
// values of external bindings.
Eval(ctx context.Context, in *EvalRequest, opts ...grpc.CallOption) (*EvalResponse, error)
}
type conformanceServiceClient struct {
cc grpc.ClientConnInterface
}
func NewConformanceServiceClient(cc grpc.ClientConnInterface) ConformanceServiceClient {
return &conformanceServiceClient{cc}
}
func (c *conformanceServiceClient) Parse(ctx context.Context, in *ParseRequest, opts ...grpc.CallOption) (*ParseResponse, error) {
out := new(ParseResponse)
err := c.cc.Invoke(ctx, "/google.api.expr.v1alpha1.ConformanceService/Parse", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *conformanceServiceClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) {
out := new(CheckResponse)
err := c.cc.Invoke(ctx, "/google.api.expr.v1alpha1.ConformanceService/Check", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *conformanceServiceClient) Eval(ctx context.Context, in *EvalRequest, opts ...grpc.CallOption) (*EvalResponse, error) {
out := new(EvalResponse)
err := c.cc.Invoke(ctx, "/google.api.expr.v1alpha1.ConformanceService/Eval", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ConformanceServiceServer is the server API for ConformanceService service.
type ConformanceServiceServer interface {
// Transforms CEL source text into a parsed representation.
Parse(context.Context, *ParseRequest) (*ParseResponse, error)
// Runs static checks on a parsed CEL representation and return
// an annotated representation, or a set of issues.
Check(context.Context, *CheckRequest) (*CheckResponse, error)
// Evaluates a parsed or annotation CEL representation given
// values of external bindings.
Eval(context.Context, *EvalRequest) (*EvalResponse, error)
}
// UnimplementedConformanceServiceServer can be embedded to have forward compatible implementations.
type UnimplementedConformanceServiceServer struct {
}
func (*UnimplementedConformanceServiceServer) Parse(ctx context.Context, req *ParseRequest) (*ParseResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method Parse not implemented")
}
func (*UnimplementedConformanceServiceServer) Check(ctx context.Context, req *CheckRequest) (*CheckResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method Check not implemented")
}
func (*UnimplementedConformanceServiceServer) Eval(ctx context.Context, req *EvalRequest) (*EvalResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method Eval not implemented")
}
func RegisterConformanceServiceServer(s *grpc.Server, srv ConformanceServiceServer) {
s.RegisterService(&_ConformanceService_serviceDesc, srv)
}
func _ConformanceService_Parse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ParseRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ConformanceServiceServer).Parse(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.api.expr.v1alpha1.ConformanceService/Parse",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ConformanceServiceServer).Parse(ctx, req.(*ParseRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ConformanceService_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CheckRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ConformanceServiceServer).Check(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.api.expr.v1alpha1.ConformanceService/Check",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ConformanceServiceServer).Check(ctx, req.(*CheckRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ConformanceService_Eval_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EvalRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ConformanceServiceServer).Eval(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.api.expr.v1alpha1.ConformanceService/Eval",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ConformanceServiceServer).Eval(ctx, req.(*EvalRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ConformanceService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.api.expr.v1alpha1.ConformanceService",
HandlerType: (*ConformanceServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Parse",
Handler: _ConformanceService_Parse_Handler,
},
{
MethodName: "Check",
Handler: _ConformanceService_Check_Handler,
},
{
MethodName: "Eval",
Handler: _ConformanceService_Eval_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/api/expr/v1alpha1/conformance_service.proto",
}