conformance

package
v1.33.0-20240329200547... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: unknown License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IssueDetails_Severity_name = map[int32]string{
		0: "SEVERITY_UNSPECIFIED",
		1: "DEPRECATION",
		2: "WARNING",
		3: "ERROR",
	}
	IssueDetails_Severity_value = map[string]int32{
		"SEVERITY_UNSPECIFIED": 0,
		"DEPRECATION":          1,
		"WARNING":              2,
		"ERROR":                3,
	}
)

Enum value maps for IssueDetails_Severity.

View Source
var File_cel_expr_conformance_conformance_service_proto protoreflect.FileDescriptor
View Source
var File_cel_expr_conformance_envcheck_proto protoreflect.FileDescriptor
View Source
var File_cel_expr_conformance_simple_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CheckRequest

type CheckRequest struct {

	// Required. The parsed representation of the CEL program.
	ParsedExpr *expr.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 []*expr.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.conformance.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"`
	// contains filtered or unexported fields
}

Request message for the Check method.

func (*CheckRequest) Descriptor deprecated

func (*CheckRequest) Descriptor() ([]byte, []int)

Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.

func (*CheckRequest) GetContainer

func (x *CheckRequest) GetContainer() string

func (*CheckRequest) GetNoStdEnv

func (x *CheckRequest) GetNoStdEnv() bool

func (*CheckRequest) GetParsedExpr

func (x *CheckRequest) GetParsedExpr() *expr.ParsedExpr

func (*CheckRequest) GetTypeEnv

func (x *CheckRequest) GetTypeEnv() []*expr.Decl

func (*CheckRequest) ProtoMessage

func (*CheckRequest) ProtoMessage()

func (*CheckRequest) ProtoReflect

func (x *CheckRequest) ProtoReflect() protoreflect.Message

func (*CheckRequest) Reset

func (x *CheckRequest) Reset()

func (*CheckRequest) String

func (x *CheckRequest) String() string

type CheckResponse

type CheckResponse struct {

	// The annotated representation, or unset if checking failed.
	CheckedExpr *expr.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"`
	// contains filtered or unexported fields
}

Response message for the Check method.

func (*CheckResponse) Descriptor deprecated

func (*CheckResponse) Descriptor() ([]byte, []int)

Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.

func (*CheckResponse) GetCheckedExpr

func (x *CheckResponse) GetCheckedExpr() *expr.CheckedExpr

func (*CheckResponse) GetIssues

func (x *CheckResponse) GetIssues() []*status.Status

func (*CheckResponse) ProtoMessage

func (*CheckResponse) ProtoMessage()

func (*CheckResponse) ProtoReflect

func (x *CheckResponse) ProtoReflect() protoreflect.Message

func (*CheckResponse) Reset

func (x *CheckResponse) Reset()

func (*CheckResponse) String

func (x *CheckResponse) String() string

type Env

type Env struct {

	// Required.  The name of the environment.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The declarations in this environment.
	Decl []*expr.Decl `protobuf:"bytes,2,rep,name=decl,proto3" json:"decl,omitempty"`
	// contains filtered or unexported fields
}

The format of a standard environment, i.e. a collection of declarations for the checker.

func (*Env) Descriptor deprecated

func (*Env) Descriptor() ([]byte, []int)

Deprecated: Use Env.ProtoReflect.Descriptor instead.

func (*Env) GetDecl

func (x *Env) GetDecl() []*expr.Decl

func (*Env) GetName

func (x *Env) GetName() string

func (*Env) ProtoMessage

func (*Env) ProtoMessage()

func (*Env) ProtoReflect

func (x *Env) ProtoReflect() protoreflect.Message

func (*Env) Reset

func (x *Env) Reset()

func (*Env) String

func (x *Env) String() string

type ErrorSetMatcher

type ErrorSetMatcher struct {

	// Success if we match any of these sets.
	Errors []*expr.ErrorSet `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

Matches error results from Eval.

func (*ErrorSetMatcher) Descriptor deprecated

func (*ErrorSetMatcher) Descriptor() ([]byte, []int)

Deprecated: Use ErrorSetMatcher.ProtoReflect.Descriptor instead.

func (*ErrorSetMatcher) GetErrors

func (x *ErrorSetMatcher) GetErrors() []*expr.ErrorSet

func (*ErrorSetMatcher) ProtoMessage

func (*ErrorSetMatcher) ProtoMessage()

func (*ErrorSetMatcher) ProtoReflect

func (x *ErrorSetMatcher) ProtoReflect() protoreflect.Message

func (*ErrorSetMatcher) Reset

func (x *ErrorSetMatcher) Reset()

func (*ErrorSetMatcher) String

func (x *ErrorSetMatcher) String() string

type EvalRequest

type EvalRequest struct {

	// Required. Either the parsed or annotated representation of the CEL program.
	//
	// Types that are assignable 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.conformance.v1alpha1.CheckRequest], if checked.
	Bindings map[string]*expr.ExprValue `` /* 157-byte string literal not displayed */
	// SHOULD be the same container as used in [CheckRequest][google.api.expr.conformance.v1alpha1.CheckRequest], if checked.
	Container string `protobuf:"bytes,4,opt,name=container,proto3" json:"container,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Eval method.

func (*EvalRequest) Descriptor deprecated

func (*EvalRequest) Descriptor() ([]byte, []int)

Deprecated: Use EvalRequest.ProtoReflect.Descriptor instead.

func (*EvalRequest) GetBindings

func (x *EvalRequest) GetBindings() map[string]*expr.ExprValue

func (*EvalRequest) GetCheckedExpr

func (x *EvalRequest) GetCheckedExpr() *expr.CheckedExpr

func (*EvalRequest) GetContainer

func (x *EvalRequest) GetContainer() string

func (*EvalRequest) GetExprKind

func (m *EvalRequest) GetExprKind() isEvalRequest_ExprKind

func (*EvalRequest) GetParsedExpr

func (x *EvalRequest) GetParsedExpr() *expr.ParsedExpr

func (*EvalRequest) ProtoMessage

func (*EvalRequest) ProtoMessage()

func (*EvalRequest) ProtoReflect

func (x *EvalRequest) ProtoReflect() protoreflect.Message

func (*EvalRequest) Reset

func (x *EvalRequest) Reset()

func (*EvalRequest) String

func (x *EvalRequest) String() string

type EvalRequest_CheckedExpr

type EvalRequest_CheckedExpr struct {
	// Evaluate based on the checked representation.
	CheckedExpr *expr.CheckedExpr `protobuf:"bytes,2,opt,name=checked_expr,json=checkedExpr,proto3,oneof"`
}

type EvalRequest_ParsedExpr

type EvalRequest_ParsedExpr struct {
	// Evaluate based on the parsed representation.
	ParsedExpr *expr.ParsedExpr `protobuf:"bytes,1,opt,name=parsed_expr,json=parsedExpr,proto3,oneof"`
}

type EvalResponse

type EvalResponse struct {

	// The execution result, or unset if execution couldn't start.
	Result *expr.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][].
	// 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"`
	// contains filtered or unexported fields
}

Response message for the Eval method.

func (*EvalResponse) Descriptor deprecated

func (*EvalResponse) Descriptor() ([]byte, []int)

Deprecated: Use EvalResponse.ProtoReflect.Descriptor instead.

func (*EvalResponse) GetIssues

func (x *EvalResponse) GetIssues() []*status.Status

func (*EvalResponse) GetResult

func (x *EvalResponse) GetResult() *expr.ExprValue

func (*EvalResponse) ProtoMessage

func (*EvalResponse) ProtoMessage()

func (*EvalResponse) ProtoReflect

func (x *EvalResponse) ProtoReflect() protoreflect.Message

func (*EvalResponse) Reset

func (x *EvalResponse) Reset()

func (*EvalResponse) String

func (x *EvalResponse) String() string

type IssueDetails

type IssueDetails struct {

	// The severity of the issue.
	Severity IssueDetails_Severity `protobuf:"varint,1,opt,name=severity,proto3,enum=cel.expr.conformance.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][], 0 if unknown.
	Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Warnings or errors in service execution are represented by [google.rpc.Status][google.rpc.Status] messages, with the following message in the details field.

func (*IssueDetails) Descriptor deprecated

func (*IssueDetails) Descriptor() ([]byte, []int)

Deprecated: Use IssueDetails.ProtoReflect.Descriptor instead.

func (*IssueDetails) GetId

func (x *IssueDetails) GetId() int64

func (*IssueDetails) GetPosition

func (x *IssueDetails) GetPosition() *SourcePosition

func (*IssueDetails) GetSeverity

func (x *IssueDetails) GetSeverity() IssueDetails_Severity

func (*IssueDetails) ProtoMessage

func (*IssueDetails) ProtoMessage()

func (*IssueDetails) ProtoReflect

func (x *IssueDetails) ProtoReflect() protoreflect.Message

func (*IssueDetails) Reset

func (x *IssueDetails) Reset()

func (*IssueDetails) String

func (x *IssueDetails) String() string

type IssueDetails_Severity

type IssueDetails_Severity int32

Severities of issues.

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
)

func (IssueDetails_Severity) Descriptor

func (IssueDetails_Severity) Enum

func (IssueDetails_Severity) EnumDescriptor deprecated

func (IssueDetails_Severity) EnumDescriptor() ([]byte, []int)

Deprecated: Use IssueDetails_Severity.Descriptor instead.

func (IssueDetails_Severity) Number

func (IssueDetails_Severity) String

func (x IssueDetails_Severity) String() string

func (IssueDetails_Severity) Type

type ParseRequest

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.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"`
	// contains filtered or unexported fields
}

Request message for the Parse method.

func (*ParseRequest) Descriptor deprecated

func (*ParseRequest) Descriptor() ([]byte, []int)

Deprecated: Use ParseRequest.ProtoReflect.Descriptor instead.

func (*ParseRequest) GetCelSource

func (x *ParseRequest) GetCelSource() string

func (*ParseRequest) GetDisableMacros

func (x *ParseRequest) GetDisableMacros() bool

func (*ParseRequest) GetSourceLocation

func (x *ParseRequest) GetSourceLocation() string

func (*ParseRequest) GetSyntaxVersion

func (x *ParseRequest) GetSyntaxVersion() string

func (*ParseRequest) ProtoMessage

func (*ParseRequest) ProtoMessage()

func (*ParseRequest) ProtoReflect

func (x *ParseRequest) ProtoReflect() protoreflect.Message

func (*ParseRequest) Reset

func (x *ParseRequest) Reset()

func (*ParseRequest) String

func (x *ParseRequest) String() string

type ParseResponse

type ParseResponse struct {

	// The parsed representation, or unset if parsing failed.
	ParsedExpr *expr.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"`
	// contains filtered or unexported fields
}

Response message for the Parse method.

func (*ParseResponse) Descriptor deprecated

func (*ParseResponse) Descriptor() ([]byte, []int)

Deprecated: Use ParseResponse.ProtoReflect.Descriptor instead.

func (*ParseResponse) GetIssues

func (x *ParseResponse) GetIssues() []*status.Status

func (*ParseResponse) GetParsedExpr

func (x *ParseResponse) GetParsedExpr() *expr.ParsedExpr

func (*ParseResponse) ProtoMessage

func (*ParseResponse) ProtoMessage()

func (*ParseResponse) ProtoReflect

func (x *ParseResponse) ProtoReflect() protoreflect.Message

func (*ParseResponse) Reset

func (x *ParseResponse) Reset()

func (*ParseResponse) String

func (x *ParseResponse) String() string

type SimpleTest

type SimpleTest struct {

	// Required.  The name of the test, which should be unique in the test file.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A description of the test.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Required.  The text of the CEL expression.
	Expr string `protobuf:"bytes,3,opt,name=expr,proto3" json:"expr,omitempty"`
	// Disables all macro expansion in parsing.
	DisableMacros bool `protobuf:"varint,4,opt,name=disable_macros,json=disableMacros,proto3" json:"disable_macros,omitempty"`
	// Disables the check phase.
	DisableCheck bool `protobuf:"varint,5,opt,name=disable_check,json=disableCheck,proto3" json:"disable_check,omitempty"`
	// The type environment to use for the check phase.
	TypeEnv []*expr.Decl `protobuf:"bytes,6,rep,name=type_env,json=typeEnv,proto3" json:"type_env,omitempty"`
	// The container for name resolution.
	Container string `protobuf:"bytes,13,opt,name=container,proto3" json:"container,omitempty"`
	// The locale to use for the evaluation phase.
	Locale string `protobuf:"bytes,14,opt,name=locale,proto3" json:"locale,omitempty"`
	// Variable bindings to use for the eval phase.
	Bindings map[string]*expr.ExprValue `` /* 157-byte string literal not displayed */
	// An unspecified result defaults to a matcher for the true boolean value.
	//
	// Types that are assignable to ResultMatcher:
	//
	//	*SimpleTest_Value
	//	*SimpleTest_EvalError
	//	*SimpleTest_AnyEvalErrors
	//	*SimpleTest_Unknown
	//	*SimpleTest_AnyUnknowns
	ResultMatcher isSimpleTest_ResultMatcher `protobuf_oneof:"result_matcher"`
	// contains filtered or unexported fields
}

A test which should run the given CEL program through parsing, optionally through checking, then evaluation, with the results of the pipeline validated by the given result matcher.

func (*SimpleTest) Descriptor deprecated

func (*SimpleTest) Descriptor() ([]byte, []int)

Deprecated: Use SimpleTest.ProtoReflect.Descriptor instead.

func (*SimpleTest) GetAnyEvalErrors

func (x *SimpleTest) GetAnyEvalErrors() *ErrorSetMatcher

func (*SimpleTest) GetAnyUnknowns

func (x *SimpleTest) GetAnyUnknowns() *UnknownSetMatcher

func (*SimpleTest) GetBindings

func (x *SimpleTest) GetBindings() map[string]*expr.ExprValue

func (*SimpleTest) GetContainer

func (x *SimpleTest) GetContainer() string

func (*SimpleTest) GetDescription

func (x *SimpleTest) GetDescription() string

func (*SimpleTest) GetDisableCheck

func (x *SimpleTest) GetDisableCheck() bool

func (*SimpleTest) GetDisableMacros

func (x *SimpleTest) GetDisableMacros() bool

func (*SimpleTest) GetEvalError

func (x *SimpleTest) GetEvalError() *expr.ErrorSet

func (*SimpleTest) GetExpr

func (x *SimpleTest) GetExpr() string

func (*SimpleTest) GetLocale

func (x *SimpleTest) GetLocale() string

func (*SimpleTest) GetName

func (x *SimpleTest) GetName() string

func (*SimpleTest) GetResultMatcher

func (m *SimpleTest) GetResultMatcher() isSimpleTest_ResultMatcher

func (*SimpleTest) GetTypeEnv

func (x *SimpleTest) GetTypeEnv() []*expr.Decl

func (*SimpleTest) GetUnknown

func (x *SimpleTest) GetUnknown() *expr.UnknownSet

func (*SimpleTest) GetValue

func (x *SimpleTest) GetValue() *expr.Value

func (*SimpleTest) ProtoMessage

func (*SimpleTest) ProtoMessage()

func (*SimpleTest) ProtoReflect

func (x *SimpleTest) ProtoReflect() protoreflect.Message

func (*SimpleTest) Reset

func (x *SimpleTest) Reset()

func (*SimpleTest) String

func (x *SimpleTest) String() string

type SimpleTestFile

type SimpleTestFile struct {

	// Required.  The name of the file.  Should match the filename.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A description of the file.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// The contained sections.
	Section []*SimpleTestSection `protobuf:"bytes,3,rep,name=section,proto3" json:"section,omitempty"`
	// contains filtered or unexported fields
}

The format of a simple test file, expected to be stored in text format. A file is the unit of granularity for selecting conformance tests, so tests of optional features should be segregated into separate files.

func (*SimpleTestFile) Descriptor deprecated

func (*SimpleTestFile) Descriptor() ([]byte, []int)

Deprecated: Use SimpleTestFile.ProtoReflect.Descriptor instead.

func (*SimpleTestFile) GetDescription

func (x *SimpleTestFile) GetDescription() string

func (*SimpleTestFile) GetName

func (x *SimpleTestFile) GetName() string

func (*SimpleTestFile) GetSection

func (x *SimpleTestFile) GetSection() []*SimpleTestSection

func (*SimpleTestFile) ProtoMessage

func (*SimpleTestFile) ProtoMessage()

func (*SimpleTestFile) ProtoReflect

func (x *SimpleTestFile) ProtoReflect() protoreflect.Message

func (*SimpleTestFile) Reset

func (x *SimpleTestFile) Reset()

func (*SimpleTestFile) String

func (x *SimpleTestFile) String() string

type SimpleTestSection

type SimpleTestSection struct {

	// Required.  The name of the section.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A description of the section.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// The contained tests.
	Test []*SimpleTest `protobuf:"bytes,3,rep,name=test,proto3" json:"test,omitempty"`
	// contains filtered or unexported fields
}

A collection of related SimpleTests.

The section is the unit of organization within a test file, and should guide where new tests are added.

func (*SimpleTestSection) Descriptor deprecated

func (*SimpleTestSection) Descriptor() ([]byte, []int)

Deprecated: Use SimpleTestSection.ProtoReflect.Descriptor instead.

func (*SimpleTestSection) GetDescription

func (x *SimpleTestSection) GetDescription() string

func (*SimpleTestSection) GetName

func (x *SimpleTestSection) GetName() string

func (*SimpleTestSection) GetTest

func (x *SimpleTestSection) GetTest() []*SimpleTest

func (*SimpleTestSection) ProtoMessage

func (*SimpleTestSection) ProtoMessage()

func (*SimpleTestSection) ProtoReflect

func (x *SimpleTestSection) ProtoReflect() protoreflect.Message

func (*SimpleTestSection) Reset

func (x *SimpleTestSection) Reset()

func (*SimpleTestSection) String

func (x *SimpleTestSection) String() string

type SimpleTest_AnyEvalErrors

type SimpleTest_AnyEvalErrors struct {
	// Matches one of several error results.
	// (Using explicit message since oneof can't handle repeated.)
	AnyEvalErrors *ErrorSetMatcher `protobuf:"bytes,10,opt,name=any_eval_errors,json=anyEvalErrors,proto3,oneof"`
}

type SimpleTest_AnyUnknowns

type SimpleTest_AnyUnknowns struct {
	// Matches one of several unknown results.
	// (Using explicit message since oneof can't handle repeated.)
	AnyUnknowns *UnknownSetMatcher `protobuf:"bytes,12,opt,name=any_unknowns,json=anyUnknowns,proto3,oneof"`
}

type SimpleTest_EvalError

type SimpleTest_EvalError struct {
	// Matches error evaluation results.
	EvalError *expr.ErrorSet `protobuf:"bytes,9,opt,name=eval_error,json=evalError,proto3,oneof"`
}

type SimpleTest_Unknown

type SimpleTest_Unknown struct {
	// Matches unknown evaluation results.
	Unknown *expr.UnknownSet `protobuf:"bytes,11,opt,name=unknown,proto3,oneof"`
}

type SimpleTest_Value

type SimpleTest_Value struct {
	// A normal value, which must match the evaluation result exactly
	// via value equality semantics.  This coincides with proto equality,
	// except for:
	// *   maps are order-agnostic.
	// *   a floating point NaN should match any NaN.
	Value *expr.Value `protobuf:"bytes,8,opt,name=value,proto3,oneof"`
}

type SourcePosition

type SourcePosition struct {

	// The source location name (e.g. file name).
	Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// The UTF-8 code unit offset.
	Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// The 1-based index of the starting line in the source text
	// where the issue occurs, or 0 if unknown.
	Line int32 `protobuf:"varint,3,opt,name=line,proto3" json:"line,omitempty"`
	// The 0-based index of the starting position within the line of source text
	// where the issue occurs.  Only meaningful if line is nonzero.
	Column int32 `protobuf:"varint,4,opt,name=column,proto3" json:"column,omitempty"`
	// contains filtered or unexported fields
}

A specific position in source.

func (*SourcePosition) Descriptor deprecated

func (*SourcePosition) Descriptor() ([]byte, []int)

Deprecated: Use SourcePosition.ProtoReflect.Descriptor instead.

func (*SourcePosition) GetColumn

func (x *SourcePosition) GetColumn() int32

func (*SourcePosition) GetLine

func (x *SourcePosition) GetLine() int32

func (*SourcePosition) GetLocation

func (x *SourcePosition) GetLocation() string

func (*SourcePosition) GetOffset

func (x *SourcePosition) GetOffset() int32

func (*SourcePosition) ProtoMessage

func (*SourcePosition) ProtoMessage()

func (*SourcePosition) ProtoReflect

func (x *SourcePosition) ProtoReflect() protoreflect.Message

func (*SourcePosition) Reset

func (x *SourcePosition) Reset()

func (*SourcePosition) String

func (x *SourcePosition) String() string

type UnknownSetMatcher

type UnknownSetMatcher struct {

	// Success if we match any of these sets.
	Unknowns []*expr.UnknownSet `protobuf:"bytes,1,rep,name=unknowns,proto3" json:"unknowns,omitempty"`
	// contains filtered or unexported fields
}

Matches unknown results from Eval.

func (*UnknownSetMatcher) Descriptor deprecated

func (*UnknownSetMatcher) Descriptor() ([]byte, []int)

Deprecated: Use UnknownSetMatcher.ProtoReflect.Descriptor instead.

func (*UnknownSetMatcher) GetUnknowns

func (x *UnknownSetMatcher) GetUnknowns() []*expr.UnknownSet

func (*UnknownSetMatcher) ProtoMessage

func (*UnknownSetMatcher) ProtoMessage()

func (*UnknownSetMatcher) ProtoReflect

func (x *UnknownSetMatcher) ProtoReflect() protoreflect.Message

func (*UnknownSetMatcher) Reset

func (x *UnknownSetMatcher) Reset()

func (*UnknownSetMatcher) String

func (x *UnknownSetMatcher) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL