gpyrpc

package
v0.10.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 16 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_gpyrpc_proto protoreflect.FileDescriptor

Functions

func PROTORPC_AcceptBuiltinServiceClient

func PROTORPC_AcceptBuiltinServiceClient(lis net.Listener, x PROTORPC_BuiltinService)

PROTORPC_AcceptBuiltinServiceClient accepts connections on the listener and serves requests for each incoming connection. Accept blocks; the caller typically invokes it in a go statement.

func PROTORPC_AcceptKclvmServiceClient

func PROTORPC_AcceptKclvmServiceClient(lis net.Listener, x PROTORPC_KclvmService)

PROTORPC_AcceptKclvmServiceClient accepts connections on the listener and serves requests for each incoming connection. Accept blocks; the caller typically invokes it in a go statement.

func PROTORPC_ListenAndServeBuiltinService

func PROTORPC_ListenAndServeBuiltinService(network, addr string, x PROTORPC_BuiltinService) error

PROTORPC_ListenAndServeBuiltinService listen announces on the local network address laddr and serves the given BuiltinService implementation.

func PROTORPC_ListenAndServeKclvmService

func PROTORPC_ListenAndServeKclvmService(network, addr string, x PROTORPC_KclvmService) error

PROTORPC_ListenAndServeKclvmService listen announces on the local network address laddr and serves the given KclvmService implementation.

func PROTORPC_NewBuiltinServiceServer

func PROTORPC_NewBuiltinServiceServer(x PROTORPC_BuiltinService) *rpc.Server

PROTORPC_NewBuiltinServiceServer returns a new PROTORPC_BuiltinService Server.

func PROTORPC_NewKclvmServiceServer

func PROTORPC_NewKclvmServiceServer(x PROTORPC_KclvmService) *rpc.Server

PROTORPC_NewKclvmServiceServer returns a new PROTORPC_KclvmService Server.

func PROTORPC_RegisterBuiltinService

func PROTORPC_RegisterBuiltinService(srv *rpc.Server, x PROTORPC_BuiltinService) error

PROTORPC_RegisterBuiltinService publish the given PROTORPC_BuiltinService implementation on the server.

func PROTORPC_RegisterKclvmService

func PROTORPC_RegisterKclvmService(srv *rpc.Server, x PROTORPC_KclvmService) error

PROTORPC_RegisterKclvmService publish the given PROTORPC_KclvmService implementation on the server.

func PROTORPC_ServeBuiltinService

func PROTORPC_ServeBuiltinService(conn io.ReadWriteCloser, x PROTORPC_BuiltinService)

PROTORPC_ServeBuiltinService serves the given PROTORPC_BuiltinService implementation.

func PROTORPC_ServeKclvmService

func PROTORPC_ServeKclvmService(conn io.ReadWriteCloser, x PROTORPC_KclvmService)

PROTORPC_ServeKclvmService serves the given PROTORPC_KclvmService implementation.

func RegisterBuiltinServiceServer

func RegisterBuiltinServiceServer(s *grpc.Server, srv BuiltinServiceServer)

func RegisterKclvmServiceServer

func RegisterKclvmServiceServer(s *grpc.Server, srv KclvmServiceServer)

Types

type Argument added in v0.9.0

type Argument struct {

	// Name of the argument.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Value of the argument.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Message representing a key-value argument for KCL. kcl main.k -D name=value

func (*Argument) Descriptor deprecated added in v0.9.0

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

Deprecated: Use Argument.ProtoReflect.Descriptor instead.

func (*Argument) GetName added in v0.9.0

func (x *Argument) GetName() string

func (*Argument) GetValue added in v0.9.0

func (x *Argument) GetValue() string

func (*Argument) ProtoMessage added in v0.9.0

func (*Argument) ProtoMessage()

func (*Argument) ProtoReflect added in v0.9.0

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

func (*Argument) Reset added in v0.9.0

func (x *Argument) Reset()

func (*Argument) String added in v0.9.0

func (x *Argument) String() string

type BuildProgram_Args added in v0.8.0

type BuildProgram_Args struct {

	// Arguments for executing the program.
	ExecArgs *ExecProgram_Args `protobuf:"bytes,1,opt,name=exec_args,json=execArgs,proto3" json:"exec_args,omitempty"`
	// Output path.
	Output string `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

Message for build program request arguments.

func (*BuildProgram_Args) Descriptor deprecated added in v0.8.0

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

Deprecated: Use BuildProgram_Args.ProtoReflect.Descriptor instead.

func (*BuildProgram_Args) GetExecArgs added in v0.8.0

func (x *BuildProgram_Args) GetExecArgs() *ExecProgram_Args

func (*BuildProgram_Args) GetOutput added in v0.8.0

func (x *BuildProgram_Args) GetOutput() string

func (*BuildProgram_Args) ProtoMessage added in v0.8.0

func (*BuildProgram_Args) ProtoMessage()

func (*BuildProgram_Args) ProtoReflect added in v0.8.0

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

func (*BuildProgram_Args) Reset added in v0.8.0

func (x *BuildProgram_Args) Reset()

func (*BuildProgram_Args) String added in v0.8.0

func (x *BuildProgram_Args) String() string

type BuildProgram_Result added in v0.8.0

type BuildProgram_Result struct {

	// Path of the built program.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Message for build program response.

func (*BuildProgram_Result) Descriptor deprecated added in v0.8.0

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

Deprecated: Use BuildProgram_Result.ProtoReflect.Descriptor instead.

func (*BuildProgram_Result) GetPath added in v0.8.0

func (x *BuildProgram_Result) GetPath() string

func (*BuildProgram_Result) ProtoMessage added in v0.8.0

func (*BuildProgram_Result) ProtoMessage()

func (*BuildProgram_Result) ProtoReflect added in v0.8.0

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

func (*BuildProgram_Result) Reset added in v0.8.0

func (x *BuildProgram_Result) Reset()

func (*BuildProgram_Result) String added in v0.8.0

func (x *BuildProgram_Result) String() string

type BuiltinServiceClient

type BuiltinServiceClient interface {
	// Sends a ping request.
	Ping(ctx context.Context, in *Ping_Args, opts ...grpc.CallOption) (*Ping_Result, error)
	// Lists available methods.
	ListMethod(ctx context.Context, in *ListMethod_Args, opts ...grpc.CallOption) (*ListMethod_Result, error)
}

BuiltinServiceClient is the client API for BuiltinService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type BuiltinServiceServer

type BuiltinServiceServer interface {
	// Sends a ping request.
	Ping(context.Context, *Ping_Args) (*Ping_Result, error)
	// Lists available methods.
	ListMethod(context.Context, *ListMethod_Args) (*ListMethod_Result, error)
}

BuiltinServiceServer is the server API for BuiltinService service.

type CliConfig

type CliConfig struct {

	// List of files.
	Files []string `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
	// Output path.
	Output string `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
	// List of overrides.
	Overrides []string `protobuf:"bytes,3,rep,name=overrides,proto3" json:"overrides,omitempty"`
	// Path selectors.
	PathSelector []string `protobuf:"bytes,4,rep,name=path_selector,json=pathSelector,proto3" json:"path_selector,omitempty"`
	// Flag for strict range check.
	StrictRangeCheck bool `protobuf:"varint,5,opt,name=strict_range_check,json=strictRangeCheck,proto3" json:"strict_range_check,omitempty"`
	// Flag to disable none values.
	DisableNone bool `protobuf:"varint,6,opt,name=disable_none,json=disableNone,proto3" json:"disable_none,omitempty"`
	// Verbose level.
	Verbose int64 `protobuf:"varint,7,opt,name=verbose,proto3" json:"verbose,omitempty"`
	// Debug flag.
	Debug bool `protobuf:"varint,8,opt,name=debug,proto3" json:"debug,omitempty"`
	// Flag to sort keys in YAML/JSON results.
	SortKeys bool `protobuf:"varint,9,opt,name=sort_keys,json=sortKeys,proto3" json:"sort_keys,omitempty"`
	// Flag to show hidden attributes.
	ShowHidden bool `protobuf:"varint,10,opt,name=show_hidden,json=showHidden,proto3" json:"show_hidden,omitempty"`
	// Flag to include schema type path in results.
	IncludeSchemaTypePath bool `` /* 130-byte string literal not displayed */
	// Flag for fast evaluation.
	FastEval bool `protobuf:"varint,12,opt,name=fast_eval,json=fastEval,proto3" json:"fast_eval,omitempty"`
	// contains filtered or unexported fields
}

Message representing KCL CLI configuration.

func (*CliConfig) Descriptor deprecated

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

Deprecated: Use CliConfig.ProtoReflect.Descriptor instead.

func (*CliConfig) GetDebug

func (x *CliConfig) GetDebug() bool

func (*CliConfig) GetDisableNone

func (x *CliConfig) GetDisableNone() bool

func (*CliConfig) GetFastEval added in v0.8.4

func (x *CliConfig) GetFastEval() bool

func (*CliConfig) GetFiles

func (x *CliConfig) GetFiles() []string

func (*CliConfig) GetIncludeSchemaTypePath added in v0.5.4

func (x *CliConfig) GetIncludeSchemaTypePath() bool

func (*CliConfig) GetOutput

func (x *CliConfig) GetOutput() string

func (*CliConfig) GetOverrides

func (x *CliConfig) GetOverrides() []string

func (*CliConfig) GetPathSelector

func (x *CliConfig) GetPathSelector() []string

func (*CliConfig) GetShowHidden added in v0.8.0

func (x *CliConfig) GetShowHidden() bool

func (*CliConfig) GetSortKeys

func (x *CliConfig) GetSortKeys() bool

func (*CliConfig) GetStrictRangeCheck

func (x *CliConfig) GetStrictRangeCheck() bool

func (*CliConfig) GetVerbose

func (x *CliConfig) GetVerbose() int64

func (*CliConfig) ProtoMessage

func (*CliConfig) ProtoMessage()

func (*CliConfig) ProtoReflect

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

func (*CliConfig) Reset

func (x *CliConfig) Reset()

func (*CliConfig) String

func (x *CliConfig) String() string

type Decorator

type Decorator struct {

	// Name of the decorator.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Arguments for the decorator.
	Arguments []string `protobuf:"bytes,2,rep,name=arguments,proto3" json:"arguments,omitempty"`
	// Keyword arguments for the decorator as a map with keyword name as key.
	Keywords map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

Message representing a decorator in KCL.

func (*Decorator) Descriptor deprecated

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

Deprecated: Use Decorator.ProtoReflect.Descriptor instead.

func (*Decorator) GetArguments

func (x *Decorator) GetArguments() []string

func (*Decorator) GetKeywords

func (x *Decorator) GetKeywords() map[string]string

func (*Decorator) GetName

func (x *Decorator) GetName() string

func (*Decorator) ProtoMessage

func (*Decorator) ProtoMessage()

func (*Decorator) ProtoReflect

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

func (*Decorator) Reset

func (x *Decorator) Reset()

func (*Decorator) String

func (x *Decorator) String() string

type Error added in v0.7.3

type Error struct {

	// Level of the error (e.g., "Error", "Warning").
	Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"`
	// Error code. (e.g., "E1001")
	Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// List of error messages.
	Messages []*Message `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

Message representing an error.

func (*Error) Descriptor deprecated added in v0.7.3

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode added in v0.7.3

func (x *Error) GetCode() string

func (*Error) GetLevel added in v0.7.3

func (x *Error) GetLevel() string

func (*Error) GetMessages added in v0.7.3

func (x *Error) GetMessages() []*Message

func (*Error) ProtoMessage added in v0.7.3

func (*Error) ProtoMessage()

func (*Error) ProtoReflect added in v0.7.3

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

func (*Error) Reset added in v0.7.3

func (x *Error) Reset()

func (*Error) String added in v0.7.3

func (x *Error) String() string

type Example added in v0.5.2

type Example struct {

	// Short description for the example.
	Summary string `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"`
	// Long description for the example.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Embedded literal example.
	Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Message representing an example in KCL.

func (*Example) Descriptor deprecated added in v0.5.2

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

Deprecated: Use Example.ProtoReflect.Descriptor instead.

func (*Example) GetDescription added in v0.5.2

func (x *Example) GetDescription() string

func (*Example) GetSummary added in v0.5.2

func (x *Example) GetSummary() string

func (*Example) GetValue added in v0.5.2

func (x *Example) GetValue() string

func (*Example) ProtoMessage added in v0.5.2

func (*Example) ProtoMessage()

func (*Example) ProtoReflect added in v0.5.2

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

func (*Example) Reset added in v0.5.2

func (x *Example) Reset()

func (*Example) String added in v0.5.2

func (x *Example) String() string

type ExecArtifact_Args added in v0.8.0

type ExecArtifact_Args struct {

	// Path of the artifact.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// Arguments for executing the program.
	ExecArgs *ExecProgram_Args `protobuf:"bytes,2,opt,name=exec_args,json=execArgs,proto3" json:"exec_args,omitempty"`
	// contains filtered or unexported fields
}

Message for execute artifact request arguments.

func (*ExecArtifact_Args) Descriptor deprecated added in v0.8.0

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

Deprecated: Use ExecArtifact_Args.ProtoReflect.Descriptor instead.

func (*ExecArtifact_Args) GetExecArgs added in v0.8.0

func (x *ExecArtifact_Args) GetExecArgs() *ExecProgram_Args

func (*ExecArtifact_Args) GetPath added in v0.8.0

func (x *ExecArtifact_Args) GetPath() string

func (*ExecArtifact_Args) ProtoMessage added in v0.8.0

func (*ExecArtifact_Args) ProtoMessage()

func (*ExecArtifact_Args) ProtoReflect added in v0.8.0

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

func (*ExecArtifact_Args) Reset added in v0.8.0

func (x *ExecArtifact_Args) Reset()

func (*ExecArtifact_Args) String added in v0.8.0

func (x *ExecArtifact_Args) String() string

type ExecProgram_Args

type ExecProgram_Args struct {

	// Working directory.
	WorkDir string `protobuf:"bytes,1,opt,name=work_dir,json=workDir,proto3" json:"work_dir,omitempty"`
	// List of KCL filenames.
	KFilenameList []string `protobuf:"bytes,2,rep,name=k_filename_list,json=kFilenameList,proto3" json:"k_filename_list,omitempty"`
	// List of KCL codes.
	KCodeList []string `protobuf:"bytes,3,rep,name=k_code_list,json=kCodeList,proto3" json:"k_code_list,omitempty"`
	// Arguments for the program.
	Args []*Argument `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
	// Override configurations.
	Overrides []string `protobuf:"bytes,5,rep,name=overrides,proto3" json:"overrides,omitempty"`
	// Flag to disable YAML result.
	DisableYamlResult bool `protobuf:"varint,6,opt,name=disable_yaml_result,json=disableYamlResult,proto3" json:"disable_yaml_result,omitempty"`
	// Flag to print override AST.
	PrintOverrideAst bool `protobuf:"varint,7,opt,name=print_override_ast,json=printOverrideAst,proto3" json:"print_override_ast,omitempty"`
	// Flag for strict range check.
	StrictRangeCheck bool `protobuf:"varint,8,opt,name=strict_range_check,json=strictRangeCheck,proto3" json:"strict_range_check,omitempty"`
	// Flag to disable none values.
	DisableNone bool `protobuf:"varint,9,opt,name=disable_none,json=disableNone,proto3" json:"disable_none,omitempty"`
	// Verbose level.
	Verbose int32 `protobuf:"varint,10,opt,name=verbose,proto3" json:"verbose,omitempty"`
	// Debug level.
	Debug int32 `protobuf:"varint,11,opt,name=debug,proto3" json:"debug,omitempty"`
	// Flag to sort keys in YAML/JSON results.
	SortKeys bool `protobuf:"varint,12,opt,name=sort_keys,json=sortKeys,proto3" json:"sort_keys,omitempty"`
	// External packages path.
	ExternalPkgs []*ExternalPkg `protobuf:"bytes,13,rep,name=external_pkgs,json=externalPkgs,proto3" json:"external_pkgs,omitempty"`
	// Flag to include schema type path in results.
	IncludeSchemaTypePath bool `` /* 130-byte string literal not displayed */
	// Flag to compile only without execution.
	CompileOnly bool `protobuf:"varint,15,opt,name=compile_only,json=compileOnly,proto3" json:"compile_only,omitempty"`
	// Flag to show hidden attributes.
	ShowHidden bool `protobuf:"varint,16,opt,name=show_hidden,json=showHidden,proto3" json:"show_hidden,omitempty"`
	// Path selectors for results.
	PathSelector []string `protobuf:"bytes,17,rep,name=path_selector,json=pathSelector,proto3" json:"path_selector,omitempty"`
	// Flag for fast evaluation.
	FastEval bool `protobuf:"varint,18,opt,name=fast_eval,json=fastEval,proto3" json:"fast_eval,omitempty"`
	// contains filtered or unexported fields
}

Message for execute program request arguments.

func (*ExecProgram_Args) Descriptor deprecated

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

Deprecated: Use ExecProgram_Args.ProtoReflect.Descriptor instead.

func (*ExecProgram_Args) GetArgs

func (x *ExecProgram_Args) GetArgs() []*Argument

func (*ExecProgram_Args) GetCompileOnly added in v0.6.1

func (x *ExecProgram_Args) GetCompileOnly() bool

func (*ExecProgram_Args) GetDebug

func (x *ExecProgram_Args) GetDebug() int32

func (*ExecProgram_Args) GetDisableNone

func (x *ExecProgram_Args) GetDisableNone() bool

func (*ExecProgram_Args) GetDisableYamlResult

func (x *ExecProgram_Args) GetDisableYamlResult() bool

func (*ExecProgram_Args) GetExternalPkgs

func (x *ExecProgram_Args) GetExternalPkgs() []*ExternalPkg

func (*ExecProgram_Args) GetFastEval added in v0.8.4

func (x *ExecProgram_Args) GetFastEval() bool

func (*ExecProgram_Args) GetIncludeSchemaTypePath

func (x *ExecProgram_Args) GetIncludeSchemaTypePath() bool

func (*ExecProgram_Args) GetKCodeList

func (x *ExecProgram_Args) GetKCodeList() []string

func (*ExecProgram_Args) GetKFilenameList

func (x *ExecProgram_Args) GetKFilenameList() []string

func (*ExecProgram_Args) GetOverrides

func (x *ExecProgram_Args) GetOverrides() []string

func (*ExecProgram_Args) GetPathSelector added in v0.7.0

func (x *ExecProgram_Args) GetPathSelector() []string

func (*ExecProgram_Args) GetPrintOverrideAst

func (x *ExecProgram_Args) GetPrintOverrideAst() bool

func (*ExecProgram_Args) GetShowHidden added in v0.8.0

func (x *ExecProgram_Args) GetShowHidden() bool

func (*ExecProgram_Args) GetSortKeys

func (x *ExecProgram_Args) GetSortKeys() bool

func (*ExecProgram_Args) GetStrictRangeCheck

func (x *ExecProgram_Args) GetStrictRangeCheck() bool

func (*ExecProgram_Args) GetVerbose

func (x *ExecProgram_Args) GetVerbose() int32

func (*ExecProgram_Args) GetWorkDir

func (x *ExecProgram_Args) GetWorkDir() string

func (*ExecProgram_Args) ProtoMessage

func (*ExecProgram_Args) ProtoMessage()

func (*ExecProgram_Args) ProtoReflect

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

func (*ExecProgram_Args) Reset

func (x *ExecProgram_Args) Reset()

func (*ExecProgram_Args) String

func (x *ExecProgram_Args) String() string

type ExecProgram_Result

type ExecProgram_Result struct {

	// Result in JSON format.
	JsonResult string `protobuf:"bytes,1,opt,name=json_result,json=jsonResult,proto3" json:"json_result,omitempty"`
	// Result in YAML format.
	YamlResult string `protobuf:"bytes,2,opt,name=yaml_result,json=yamlResult,proto3" json:"yaml_result,omitempty"`
	// Log message from execution.
	LogMessage string `protobuf:"bytes,3,opt,name=log_message,json=logMessage,proto3" json:"log_message,omitempty"`
	// Error message from execution.
	ErrMessage string `protobuf:"bytes,4,opt,name=err_message,json=errMessage,proto3" json:"err_message,omitempty"`
	// contains filtered or unexported fields
}

Message for execute program response.

func (*ExecProgram_Result) Descriptor deprecated

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

Deprecated: Use ExecProgram_Result.ProtoReflect.Descriptor instead.

func (*ExecProgram_Result) GetErrMessage added in v0.7.0

func (x *ExecProgram_Result) GetErrMessage() string

func (*ExecProgram_Result) GetJsonResult

func (x *ExecProgram_Result) GetJsonResult() string

func (*ExecProgram_Result) GetLogMessage added in v0.7.0

func (x *ExecProgram_Result) GetLogMessage() string

func (*ExecProgram_Result) GetYamlResult

func (x *ExecProgram_Result) GetYamlResult() string

func (*ExecProgram_Result) ProtoMessage

func (*ExecProgram_Result) ProtoMessage()

func (*ExecProgram_Result) ProtoReflect

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

func (*ExecProgram_Result) Reset

func (x *ExecProgram_Result) Reset()

func (*ExecProgram_Result) String

func (x *ExecProgram_Result) String() string

type ExternalPkg added in v0.9.0

type ExternalPkg struct {

	// Name of the package.
	PkgName string `protobuf:"bytes,1,opt,name=pkg_name,json=pkgName,proto3" json:"pkg_name,omitempty"`
	// Path of the package.
	PkgPath string `protobuf:"bytes,2,opt,name=pkg_path,json=pkgPath,proto3" json:"pkg_path,omitempty"`
	// contains filtered or unexported fields
}

Message representing an external package for KCL. kcl main.k -E pkg_name=pkg_path

func (*ExternalPkg) Descriptor deprecated added in v0.9.0

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

Deprecated: Use ExternalPkg.ProtoReflect.Descriptor instead.

func (*ExternalPkg) GetPkgName added in v0.9.0

func (x *ExternalPkg) GetPkgName() string

func (*ExternalPkg) GetPkgPath added in v0.9.0

func (x *ExternalPkg) GetPkgPath() string

func (*ExternalPkg) ProtoMessage added in v0.9.0

func (*ExternalPkg) ProtoMessage()

func (*ExternalPkg) ProtoReflect added in v0.9.0

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

func (*ExternalPkg) Reset added in v0.9.0

func (x *ExternalPkg) Reset()

func (*ExternalPkg) String added in v0.9.0

func (x *ExternalPkg) String() string

type FormatCode_Args

type FormatCode_Args struct {

	// Source code to be formatted.
	Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

Message for format code request arguments.

func (*FormatCode_Args) Descriptor deprecated

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

Deprecated: Use FormatCode_Args.ProtoReflect.Descriptor instead.

func (*FormatCode_Args) GetSource

func (x *FormatCode_Args) GetSource() string

func (*FormatCode_Args) ProtoMessage

func (*FormatCode_Args) ProtoMessage()

func (*FormatCode_Args) ProtoReflect

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

func (*FormatCode_Args) Reset

func (x *FormatCode_Args) Reset()

func (*FormatCode_Args) String

func (x *FormatCode_Args) String() string

type FormatCode_Result

type FormatCode_Result struct {

	// Formatted code as bytes.
	Formatted []byte `protobuf:"bytes,1,opt,name=formatted,proto3" json:"formatted,omitempty"`
	// contains filtered or unexported fields
}

Message for format code response.

func (*FormatCode_Result) Descriptor deprecated

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

Deprecated: Use FormatCode_Result.ProtoReflect.Descriptor instead.

func (*FormatCode_Result) GetFormatted

func (x *FormatCode_Result) GetFormatted() []byte

func (*FormatCode_Result) ProtoMessage

func (*FormatCode_Result) ProtoMessage()

func (*FormatCode_Result) ProtoReflect

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

func (*FormatCode_Result) Reset

func (x *FormatCode_Result) Reset()

func (*FormatCode_Result) String

func (x *FormatCode_Result) String() string

type FormatPath_Args

type FormatPath_Args struct {

	// Path of the file to format.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Message for format file path request arguments.

func (*FormatPath_Args) Descriptor deprecated

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

Deprecated: Use FormatPath_Args.ProtoReflect.Descriptor instead.

func (*FormatPath_Args) GetPath

func (x *FormatPath_Args) GetPath() string

func (*FormatPath_Args) ProtoMessage

func (*FormatPath_Args) ProtoMessage()

func (*FormatPath_Args) ProtoReflect

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

func (*FormatPath_Args) Reset

func (x *FormatPath_Args) Reset()

func (*FormatPath_Args) String

func (x *FormatPath_Args) String() string

type FormatPath_Result

type FormatPath_Result struct {

	// List of changed file paths.
	ChangedPaths []string `protobuf:"bytes,1,rep,name=changed_paths,json=changedPaths,proto3" json:"changed_paths,omitempty"`
	// contains filtered or unexported fields
}

Message for format file path response.

func (*FormatPath_Result) Descriptor deprecated

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

Deprecated: Use FormatPath_Result.ProtoReflect.Descriptor instead.

func (*FormatPath_Result) GetChangedPaths

func (x *FormatPath_Result) GetChangedPaths() []string

func (*FormatPath_Result) ProtoMessage

func (*FormatPath_Result) ProtoMessage()

func (*FormatPath_Result) ProtoReflect

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

func (*FormatPath_Result) Reset

func (x *FormatPath_Result) Reset()

func (*FormatPath_Result) String

func (x *FormatPath_Result) String() string

type GetSchemaTypeMapping_Args

type GetSchemaTypeMapping_Args struct {

	// Arguments for executing the program.
	ExecArgs *ExecProgram_Args `protobuf:"bytes,1,opt,name=exec_args,json=execArgs,proto3" json:"exec_args,omitempty"`
	// Name of the schema.
	SchemaName string `protobuf:"bytes,2,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"`
	// contains filtered or unexported fields
}

Message for get schema type mapping request arguments.

func (*GetSchemaTypeMapping_Args) Descriptor deprecated

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

Deprecated: Use GetSchemaTypeMapping_Args.ProtoReflect.Descriptor instead.

func (*GetSchemaTypeMapping_Args) GetExecArgs added in v0.9.0

func (x *GetSchemaTypeMapping_Args) GetExecArgs() *ExecProgram_Args

func (*GetSchemaTypeMapping_Args) GetSchemaName

func (x *GetSchemaTypeMapping_Args) GetSchemaName() string

func (*GetSchemaTypeMapping_Args) ProtoMessage

func (*GetSchemaTypeMapping_Args) ProtoMessage()

func (*GetSchemaTypeMapping_Args) ProtoReflect

func (*GetSchemaTypeMapping_Args) Reset

func (x *GetSchemaTypeMapping_Args) Reset()

func (*GetSchemaTypeMapping_Args) String

func (x *GetSchemaTypeMapping_Args) String() string

type GetSchemaTypeMapping_Result

type GetSchemaTypeMapping_Result struct {

	// Map of schema type mappings.
	SchemaTypeMapping map[string]*KclType `` /* 202-byte string literal not displayed */
	// contains filtered or unexported fields
}

Message for get schema type mapping response.

func (*GetSchemaTypeMapping_Result) Descriptor deprecated

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

Deprecated: Use GetSchemaTypeMapping_Result.ProtoReflect.Descriptor instead.

func (*GetSchemaTypeMapping_Result) GetSchemaTypeMapping

func (x *GetSchemaTypeMapping_Result) GetSchemaTypeMapping() map[string]*KclType

func (*GetSchemaTypeMapping_Result) ProtoMessage

func (*GetSchemaTypeMapping_Result) ProtoMessage()

func (*GetSchemaTypeMapping_Result) ProtoReflect

func (*GetSchemaTypeMapping_Result) Reset

func (x *GetSchemaTypeMapping_Result) Reset()

func (*GetSchemaTypeMapping_Result) String

func (x *GetSchemaTypeMapping_Result) String() string

type GetVersion_Args added in v0.9.2

type GetVersion_Args struct {
	// contains filtered or unexported fields
}

Message for version request arguments. Empty message.

func (*GetVersion_Args) Descriptor deprecated added in v0.9.2

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

Deprecated: Use GetVersion_Args.ProtoReflect.Descriptor instead.

func (*GetVersion_Args) ProtoMessage added in v0.9.2

func (*GetVersion_Args) ProtoMessage()

func (*GetVersion_Args) ProtoReflect added in v0.9.2

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

func (*GetVersion_Args) Reset added in v0.9.2

func (x *GetVersion_Args) Reset()

func (*GetVersion_Args) String added in v0.9.2

func (x *GetVersion_Args) String() string

type GetVersion_Result added in v0.9.2

type GetVersion_Result struct {

	// KCL version.
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// Checksum of the KCL version.
	Checksum string `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"`
	// Git Git SHA of the KCL code repo.
	GitSha string `protobuf:"bytes,3,opt,name=git_sha,json=gitSha,proto3" json:"git_sha,omitempty"`
	// Detailed version information as a string.
	VersionInfo string `protobuf:"bytes,4,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"`
	// contains filtered or unexported fields
}

Message for version response.

func (*GetVersion_Result) Descriptor deprecated added in v0.9.2

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

Deprecated: Use GetVersion_Result.ProtoReflect.Descriptor instead.

func (*GetVersion_Result) GetChecksum added in v0.9.2

func (x *GetVersion_Result) GetChecksum() string

func (*GetVersion_Result) GetGitSha added in v0.9.2

func (x *GetVersion_Result) GetGitSha() string

func (*GetVersion_Result) GetVersion added in v0.9.2

func (x *GetVersion_Result) GetVersion() string

func (*GetVersion_Result) GetVersionInfo added in v0.9.2

func (x *GetVersion_Result) GetVersionInfo() string

func (*GetVersion_Result) ProtoMessage added in v0.9.2

func (*GetVersion_Result) ProtoMessage()

func (*GetVersion_Result) ProtoReflect added in v0.9.2

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

func (*GetVersion_Result) Reset added in v0.9.2

func (x *GetVersion_Result) Reset()

func (*GetVersion_Result) String added in v0.9.2

func (x *GetVersion_Result) String() string

type KclType

type KclType struct {

	// Type name (e.g., schema, dict, list, str, int, float, bool, any, union, number_multiplier).
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Union types if applicable.
	UnionTypes []*KclType `protobuf:"bytes,2,rep,name=union_types,json=unionTypes,proto3" json:"union_types,omitempty"`
	// Default value of the type.
	Default string `protobuf:"bytes,3,opt,name=default,proto3" json:"default,omitempty"`
	// Name of the schema if applicable.
	SchemaName string `protobuf:"bytes,4,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"`
	// Documentation for the schema.
	SchemaDoc string `protobuf:"bytes,5,opt,name=schema_doc,json=schemaDoc,proto3" json:"schema_doc,omitempty"`
	// Properties of the schema as a map with property name as key.
	Properties map[string]*KclType `` /* 161-byte string literal not displayed */
	// List of required schema properties.
	Required []string `protobuf:"bytes,7,rep,name=required,proto3" json:"required,omitempty"`
	// Key type if the KclType is a dictionary.
	Key *KclType `protobuf:"bytes,8,opt,name=key,proto3" json:"key,omitempty"`
	// Item type if the KclType is a list or dictionary.
	Item *KclType `protobuf:"bytes,9,opt,name=item,proto3" json:"item,omitempty"`
	// Line number where the type is defined.
	Line int32 `protobuf:"varint,10,opt,name=line,proto3" json:"line,omitempty"`
	// List of decorators for the schema.
	Decorators []*Decorator `protobuf:"bytes,11,rep,name=decorators,proto3" json:"decorators,omitempty"`
	// Absolute path of the file where the attribute is located.
	Filename string `protobuf:"bytes,12,opt,name=filename,proto3" json:"filename,omitempty"`
	// Path of the package where the attribute is located.
	PkgPath string `protobuf:"bytes,13,opt,name=pkg_path,json=pkgPath,proto3" json:"pkg_path,omitempty"`
	// Documentation for the attribute.
	Description string `protobuf:"bytes,14,opt,name=description,proto3" json:"description,omitempty"`
	// Map of examples with example name as key.
	Examples map[string]*Example `` /* 158-byte string literal not displayed */
	// Base schema if applicable.
	BaseSchema *KclType `protobuf:"bytes,16,opt,name=base_schema,json=baseSchema,proto3" json:"base_schema,omitempty"`
	// contains filtered or unexported fields
}

Message representing a KCL type.

func (*KclType) Descriptor deprecated

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

Deprecated: Use KclType.ProtoReflect.Descriptor instead.

func (*KclType) GetBaseSchema added in v0.8.7

func (x *KclType) GetBaseSchema() *KclType

func (*KclType) GetDecorators

func (x *KclType) GetDecorators() []*Decorator

func (*KclType) GetDefault

func (x *KclType) GetDefault() string

func (*KclType) GetDescription added in v0.5.2

func (x *KclType) GetDescription() string

func (*KclType) GetExamples added in v0.5.2

func (x *KclType) GetExamples() map[string]*Example

func (*KclType) GetFilename added in v0.5.2

func (x *KclType) GetFilename() string

func (*KclType) GetItem

func (x *KclType) GetItem() *KclType

func (*KclType) GetKey

func (x *KclType) GetKey() *KclType

func (*KclType) GetLine

func (x *KclType) GetLine() int32

func (*KclType) GetPkgPath added in v0.5.2

func (x *KclType) GetPkgPath() string

func (*KclType) GetProperties

func (x *KclType) GetProperties() map[string]*KclType

func (*KclType) GetRequired

func (x *KclType) GetRequired() []string

func (*KclType) GetSchemaDoc

func (x *KclType) GetSchemaDoc() string

func (*KclType) GetSchemaName

func (x *KclType) GetSchemaName() string

func (*KclType) GetType

func (x *KclType) GetType() string

func (*KclType) GetUnionTypes

func (x *KclType) GetUnionTypes() []*KclType

func (*KclType) ProtoMessage

func (*KclType) ProtoMessage()

func (*KclType) ProtoReflect

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

func (*KclType) Reset

func (x *KclType) Reset()

func (*KclType) String

func (x *KclType) String() string

type KclvmServiceClient

type KclvmServiceClient interface {
	// / Ping KclvmService, return the same value as the parameter
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "Ping",
	// /     "params": {
	// /         "value": "hello"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "value": "hello"
	// /     },
	// /     "id": 1
	// / }
	// / “`
	Ping(ctx context.Context, in *Ping_Args, opts ...grpc.CallOption) (*Ping_Result, error)
	// / GetVersion KclvmService, return the kclvm service version information
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "GetVersion",
	// /     "params": {},
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "version": "0.9.1",
	// /         "checksum": "c020ab3eb4b9179219d6837a57f5d323",
	// /         "git_sha": "1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399",
	// /         "version_info": "Version: 0.9.1-c020ab3eb4b9179219d6837a57f5d323\nPlatform: aarch64-apple-darwin\nGitCommit: 1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399"
	// /     },
	// /     "id": 1
	// / }
	// / “`
	GetVersion(ctx context.Context, in *GetVersion_Args, opts ...grpc.CallOption) (*GetVersion_Result, error)
	// / Parse KCL program with entry files.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ParseProgram",
	// /     "params": {
	// /         "paths": ["./src/testdata/test.k"]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "ast_json": "{...}",
	// /         "paths": ["./src/testdata/test.k"],
	// /         "errors": []
	// /     },
	// /     "id": 1
	// / }
	// / “`
	ParseProgram(ctx context.Context, in *ParseProgram_Args, opts ...grpc.CallOption) (*ParseProgram_Result, error)
	// / Parse KCL single file to Module AST JSON string with import dependencies
	// / and parse errors.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ParseFile",
	// /     "params": {
	// /         "path": "./src/testdata/parse/main.k"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "ast_json": "{...}",
	// /         "deps": ["./dep1", "./dep2"],
	// /         "errors": []
	// /     },
	// /     "id": 1
	// / }
	// / “`
	ParseFile(ctx context.Context, in *ParseFile_Args, opts ...grpc.CallOption) (*ParseFile_Result, error)
	// / load_package provides users with the ability to parse kcl program and semantic model
	// / information including symbols, types, definitions, etc.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "LoadPackage",
	// /     "params": {
	// /         "parse_args": {
	// /             "paths": ["./src/testdata/parse/main.k"]
	// /         },
	// /         "resolve_ast": true
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "program": "{...}",
	// /         "paths": ["./src/testdata/parse/main.k"],
	// /         "parse_errors": [],
	// /         "type_errors": [],
	// /         "symbols": { ... },
	// /         "scopes": { ... },
	// /         "node_symbol_map": { ... },
	// /         "symbol_node_map": { ... },
	// /         "fully_qualified_name_map": { ... },
	// /         "pkg_scope_map": { ... }
	// /     },
	// /     "id": 1
	// / }
	// / “`
	LoadPackage(ctx context.Context, in *LoadPackage_Args, opts ...grpc.CallOption) (*LoadPackage_Result, error)
	// / list_options provides users with the ability to parse kcl program and get all option information.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ListOptions",
	// /     "params": {
	// /         "paths": ["./src/testdata/option/main.k"]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "options": [
	// /             { "name": "option1", "type": "str", "required": true, "default_value": "", "help": "option 1 help" },
	// /             { "name": "option2", "type": "int", "required": false, "default_value": "0", "help": "option 2 help" },
	// /             { "name": "option3", "type": "bool", "required": false, "default_value": "false", "help": "option 3 help" }
	// /         ]
	// /     },
	// /     "id": 1
	// / }
	// / “`
	ListOptions(ctx context.Context, in *ParseProgram_Args, opts ...grpc.CallOption) (*ListOptions_Result, error)
	// / list_variables provides users with the ability to parse kcl program and get all variables by specs.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ListVariables",
	// /     "params": {
	// /         "files": ["./src/testdata/variables/main.k"],
	// /         "specs": ["a"]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "variables": {
	// /             "a": {
	// /                 "variables": [
	// /                     { "value": "1", "type_name": "int", "op_sym": "", "list_items": [], "dict_entries": [] }
	// /                 ]
	// /             }
	// /         },
	// /         "unsupported_codes": [],
	// /         "parse_errors": []
	// /     },
	// /     "id": 1
	// / }
	// / “`
	ListVariables(ctx context.Context, in *ListVariables_Args, opts ...grpc.CallOption) (*ListVariables_Result, error)
	// / Execute KCL file with args. **Note that it is not thread safe.**
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ExecProgram",
	// /     "params": {
	// /         "work_dir": "./src/testdata",
	// /         "k_filename_list": ["test.k"]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "json_result": "{\"alice\": {\"age\": 18}}",
	// /         "yaml_result": "alice:\n  age: 18",
	// /         "log_message": "",
	// /         "err_message": ""
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Request with code
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ExecProgram",
	// /     "params": {
	// /         "k_filename_list": ["file.k"],
	// /         "k_code_list": ["alice = {age = 18}"]
	// /     },
	// /     "id": 2
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "json_result": "{\"alice\": {\"age\": 18}}",
	// /         "yaml_result": "alice:\n  age: 18",
	// /         "log_message": "",
	// /         "err_message": ""
	// /     },
	// /     "id": 2
	// / }
	// /
	// / // Error case - cannot find file
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ExecProgram",
	// /     "params": {
	// /         "k_filename_list": ["invalid_file.k"]
	// /     },
	// /     "id": 3
	// / }
	// /
	// / // Error Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "error": {
	// /         "code": -32602,
	// /         "message": "Cannot find the kcl file"
	// /     },
	// /     "id": 3
	// / }
	// /
	// / // Error case - no input files
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ExecProgram",
	// /     "params": {
	// /         "k_filename_list": []
	// /     },
	// /     "id": 4
	// / }
	// /
	// / // Error Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "error": {
	// /         "code": -32602,
	// /         "message": "No input KCL files or paths"
	// /     },
	// /     "id": 4
	// / }
	// / “`
	ExecProgram(ctx context.Context, in *ExecProgram_Args, opts ...grpc.CallOption) (*ExecProgram_Result, error)
	// / Build the KCL program to an artifact.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "BuildProgram",
	// /     "params": {
	// /         "exec_args": {
	// /             "work_dir": "./src/testdata",
	// /             "k_filename_list": ["test.k"]
	// /         },
	// /         "output": "./build"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "path": "./build/test.k"
	// /     },
	// /     "id": 1
	// / }
	// / “`
	// Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.
	BuildProgram(ctx context.Context, in *BuildProgram_Args, opts ...grpc.CallOption) (*BuildProgram_Result, error)
	// / Execute the KCL artifact with args. **Note that it is not thread safe.**
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ExecArtifact",
	// /     "params": {
	// /         "path": "./artifact_path",
	// /         "exec_args": {
	// /             "work_dir": "./src/testdata",
	// /             "k_filename_list": ["test.k"]
	// /         }
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "json_result": "{\"alice\": {\"age\": 18}}",
	// /         "yaml_result": "alice:\n  age: 18",
	// /         "log_message": "",
	// /         "err_message": ""
	// /     },
	// /     "id": 1
	// / }
	// / “`
	// Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.
	ExecArtifact(ctx context.Context, in *ExecArtifact_Args, opts ...grpc.CallOption) (*ExecProgram_Result, error)
	// / Override KCL file with args.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "OverrideFile",
	// /     "params": {
	// /         "file": "./src/testdata/test.k",
	// /         "specs": ["alice.age=18"]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "result": true,
	// /         "parse_errors": []
	// /     },
	// /     "id": 1
	// / }
	// / “`
	OverrideFile(ctx context.Context, in *OverrideFile_Args, opts ...grpc.CallOption) (*OverrideFile_Result, error)
	// / Get schema type mapping.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "GetSchemaTypeMapping",
	// /     "params": {
	// /         "exec_args": {
	// /             "work_dir": "./src/testdata",
	// /             "k_filename_list": ["main.k"],
	// /             "external_pkgs": [
	// /                 {
	// /                     "pkg_name":"pkg",
	// /                     "pkg_path": "./src/testdata/pkg"
	// /                 }
	// /             ]
	// /         },
	// /         "schema_name": "Person"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "schema_type_mapping": {
	// /             "Person": {
	// /                 "type": "schema",
	// /                 "schema_name": "Person",
	// /                 "properties": {
	// /                     "name": { "type": "str" },
	// /                     "age": { "type": "int" }
	// /                 },
	// /                 "required": ["name", "age"],
	// /                 "decorators": []
	// /             }
	// /         }
	// /     },
	// /     "id": 1
	// / }
	// / “`
	GetSchemaTypeMapping(ctx context.Context, in *GetSchemaTypeMapping_Args, opts ...grpc.CallOption) (*GetSchemaTypeMapping_Result, error)
	// / Format code source.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "FormatCode",
	// /     "params": {
	// /         "source": "schema Person {\n    name: str\n    age: int\n}\nperson = Person {\n    name = \"Alice\"\n    age = 18\n}\n"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "formatted": "schema Person {\n    name: str\n    age: int\n}\nperson = Person {\n    name = \"Alice\"\n    age = 18\n}\n"
	// /     },
	// /     "id": 1
	// / }
	// / “`
	FormatCode(ctx context.Context, in *FormatCode_Args, opts ...grpc.CallOption) (*FormatCode_Result, error)
	// / Format KCL file or directory path contains KCL files and returns the changed file paths.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "FormatPath",
	// /     "params": {
	// /         "path": "./src/testdata/test.k"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "changed_paths": []
	// /     },
	// /     "id": 1
	// / }
	// / “`
	FormatPath(ctx context.Context, in *FormatPath_Args, opts ...grpc.CallOption) (*FormatPath_Result, error)
	// / Lint files and return error messages including errors and warnings.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "LintPath",
	// /     "params": {
	// /         "paths": ["./src/testdata/test-lint.k"]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "results": ["Module 'math' imported but unused"]
	// /     },
	// /     "id": 1
	// / }
	// / “`
	LintPath(ctx context.Context, in *LintPath_Args, opts ...grpc.CallOption) (*LintPath_Result, error)
	// / Validate code using schema and data strings.
	// /
	// / **Note that it is not thread safe.**
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ValidateCode",
	// /     "params": {
	// /         "code": "schema Person {\n    name: str\n    age: int\n    check: 0 < age < 120\n}",
	// /         "data": "{\"name\": \"Alice\", \"age\": 10}"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "success": true,
	// /         "err_message": ""
	// /     },
	// /     "id": 1
	// / }
	// / “`
	ValidateCode(ctx context.Context, in *ValidateCode_Args, opts ...grpc.CallOption) (*ValidateCode_Result, error)
	ListDepFiles(ctx context.Context, in *ListDepFiles_Args, opts ...grpc.CallOption) (*ListDepFiles_Result, error)
	// / Build setting file config from args.
	// /
	// / # Examples
	// /
	// /
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "LoadSettingsFiles",
	// /     "params": {
	// /         "work_dir": "./src/testdata/settings",
	// /         "files": ["./src/testdata/settings/kcl.yaml"]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "kcl_cli_configs": {
	// /             "files": ["./src/testdata/settings/kcl.yaml"],
	// /             "output": "",
	// /             "overrides": [],
	// /             "path_selector": [],
	// /             "strict_range_check": false,
	// /             "disable_none": false,
	// /             "verbose": 0,
	// /             "debug": false,
	// /             "sort_keys": false,
	// /             "show_hidden": false,
	// /             "include_schema_type_path": false,
	// /             "fast_eval": false
	// /         },
	// /         "kcl_options": []
	// /     },
	// /     "id": 1
	// / }
	// / “`
	LoadSettingsFiles(ctx context.Context, in *LoadSettingsFiles_Args, opts ...grpc.CallOption) (*LoadSettingsFiles_Result, error)
	// / Rename all the occurrences of the target symbol in the files. This API will rewrite files if they contain symbols to be renamed.
	// / Return the file paths that got changed.
	// /
	// / # Examples
	// /
	// /
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "Rename",
	// /     "params": {
	// /         "package_root": "./src/testdata/rename_doc",
	// /         "symbol_path": "a",
	// /         "file_paths": ["./src/testdata/rename_doc/main.k"],
	// /         "new_name": "a2"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "changed_files": ["./src/testdata/rename_doc/main.k"]
	// /     },
	// /     "id": 1
	// / }
	// / “`
	Rename(ctx context.Context, in *Rename_Args, opts ...grpc.CallOption) (*Rename_Result, error)
	// / Rename all the occurrences of the target symbol and return the modified code if any code has been changed. This API won't rewrite files but return the changed code.
	// /
	// / # Examples
	// /
	// /
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "RenameCode",
	// /     "params": {
	// /         "package_root": "/mock/path",
	// /         "symbol_path": "a",
	// /         "source_codes": {
	// /             "/mock/path/main.k": "a = 1\nb = a"
	// /         },
	// /         "new_name": "a2"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "changed_codes": {
	// /             "/mock/path/main.k": "a2 = 1\nb = a2"
	// /         }
	// /     },
	// /     "id": 1
	// / }
	// / “`
	RenameCode(ctx context.Context, in *RenameCode_Args, opts ...grpc.CallOption) (*RenameCode_Result, error)
	// / Test KCL packages with test arguments.
	// /
	// / # Examples
	// /
	// /
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "Test",
	// /     "params": {
	// /         "exec_args": {
	// /             "work_dir": "./src/testdata/testing/module",
	// /             "k_filename_list": ["main.k"]
	// /         },
	// /         "pkg_list": ["./src/testdata/testing/module/..."]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "info": [
	// /             {"name": "test_case_1", "error": "", "duration": 1000, "log_message": ""},
	// /             {"name": "test_case_2", "error": "some error", "duration": 2000, "log_message": ""}
	// /         ]
	// /     },
	// /     "id": 1
	// / }
	// / “`
	Test(ctx context.Context, in *Test_Args, opts ...grpc.CallOption) (*Test_Result, error)
	// / Download and update dependencies defined in the kcl.mod file.
	// /
	// / # Examples
	// /
	// /
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "UpdateDependencies",
	// /     "params": {
	// /         "manifest_path": "./src/testdata/update_dependencies"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "external_pkgs": [
	// /             {"pkg_name": "pkg1", "pkg_path": "./src/testdata/update_dependencies/pkg1"}
	// /         ]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Request with vendor flag
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "UpdateDependencies",
	// /     "params": {
	// /         "manifest_path": "./src/testdata/update_dependencies",
	// /         "vendor": true
	// /     },
	// /     "id": 2
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "external_pkgs": [
	// /             {"pkg_name": "pkg1", "pkg_path": "./src/testdata/update_dependencies/pkg1"}
	// /         ]
	// /     },
	// /     "id": 2
	// / }
	// / “`
	UpdateDependencies(ctx context.Context, in *UpdateDependencies_Args, opts ...grpc.CallOption) (*UpdateDependencies_Result, error)
}

KclvmServiceClient is the client API for KclvmService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type KclvmServiceServer

type KclvmServiceServer interface {
	// / Ping KclvmService, return the same value as the parameter
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "Ping",
	// /     "params": {
	// /         "value": "hello"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "value": "hello"
	// /     },
	// /     "id": 1
	// / }
	// / “`
	Ping(context.Context, *Ping_Args) (*Ping_Result, error)
	// / GetVersion KclvmService, return the kclvm service version information
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "GetVersion",
	// /     "params": {},
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "version": "0.9.1",
	// /         "checksum": "c020ab3eb4b9179219d6837a57f5d323",
	// /         "git_sha": "1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399",
	// /         "version_info": "Version: 0.9.1-c020ab3eb4b9179219d6837a57f5d323\nPlatform: aarch64-apple-darwin\nGitCommit: 1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399"
	// /     },
	// /     "id": 1
	// / }
	// / “`
	GetVersion(context.Context, *GetVersion_Args) (*GetVersion_Result, error)
	// / Parse KCL program with entry files.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ParseProgram",
	// /     "params": {
	// /         "paths": ["./src/testdata/test.k"]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "ast_json": "{...}",
	// /         "paths": ["./src/testdata/test.k"],
	// /         "errors": []
	// /     },
	// /     "id": 1
	// / }
	// / “`
	ParseProgram(context.Context, *ParseProgram_Args) (*ParseProgram_Result, error)
	// / Parse KCL single file to Module AST JSON string with import dependencies
	// / and parse errors.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ParseFile",
	// /     "params": {
	// /         "path": "./src/testdata/parse/main.k"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "ast_json": "{...}",
	// /         "deps": ["./dep1", "./dep2"],
	// /         "errors": []
	// /     },
	// /     "id": 1
	// / }
	// / “`
	ParseFile(context.Context, *ParseFile_Args) (*ParseFile_Result, error)
	// / load_package provides users with the ability to parse kcl program and semantic model
	// / information including symbols, types, definitions, etc.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "LoadPackage",
	// /     "params": {
	// /         "parse_args": {
	// /             "paths": ["./src/testdata/parse/main.k"]
	// /         },
	// /         "resolve_ast": true
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "program": "{...}",
	// /         "paths": ["./src/testdata/parse/main.k"],
	// /         "parse_errors": [],
	// /         "type_errors": [],
	// /         "symbols": { ... },
	// /         "scopes": { ... },
	// /         "node_symbol_map": { ... },
	// /         "symbol_node_map": { ... },
	// /         "fully_qualified_name_map": { ... },
	// /         "pkg_scope_map": { ... }
	// /     },
	// /     "id": 1
	// / }
	// / “`
	LoadPackage(context.Context, *LoadPackage_Args) (*LoadPackage_Result, error)
	// / list_options provides users with the ability to parse kcl program and get all option information.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ListOptions",
	// /     "params": {
	// /         "paths": ["./src/testdata/option/main.k"]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "options": [
	// /             { "name": "option1", "type": "str", "required": true, "default_value": "", "help": "option 1 help" },
	// /             { "name": "option2", "type": "int", "required": false, "default_value": "0", "help": "option 2 help" },
	// /             { "name": "option3", "type": "bool", "required": false, "default_value": "false", "help": "option 3 help" }
	// /         ]
	// /     },
	// /     "id": 1
	// / }
	// / “`
	ListOptions(context.Context, *ParseProgram_Args) (*ListOptions_Result, error)
	// / list_variables provides users with the ability to parse kcl program and get all variables by specs.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ListVariables",
	// /     "params": {
	// /         "files": ["./src/testdata/variables/main.k"],
	// /         "specs": ["a"]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "variables": {
	// /             "a": {
	// /                 "variables": [
	// /                     { "value": "1", "type_name": "int", "op_sym": "", "list_items": [], "dict_entries": [] }
	// /                 ]
	// /             }
	// /         },
	// /         "unsupported_codes": [],
	// /         "parse_errors": []
	// /     },
	// /     "id": 1
	// / }
	// / “`
	ListVariables(context.Context, *ListVariables_Args) (*ListVariables_Result, error)
	// / Execute KCL file with args. **Note that it is not thread safe.**
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ExecProgram",
	// /     "params": {
	// /         "work_dir": "./src/testdata",
	// /         "k_filename_list": ["test.k"]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "json_result": "{\"alice\": {\"age\": 18}}",
	// /         "yaml_result": "alice:\n  age: 18",
	// /         "log_message": "",
	// /         "err_message": ""
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Request with code
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ExecProgram",
	// /     "params": {
	// /         "k_filename_list": ["file.k"],
	// /         "k_code_list": ["alice = {age = 18}"]
	// /     },
	// /     "id": 2
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "json_result": "{\"alice\": {\"age\": 18}}",
	// /         "yaml_result": "alice:\n  age: 18",
	// /         "log_message": "",
	// /         "err_message": ""
	// /     },
	// /     "id": 2
	// / }
	// /
	// / // Error case - cannot find file
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ExecProgram",
	// /     "params": {
	// /         "k_filename_list": ["invalid_file.k"]
	// /     },
	// /     "id": 3
	// / }
	// /
	// / // Error Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "error": {
	// /         "code": -32602,
	// /         "message": "Cannot find the kcl file"
	// /     },
	// /     "id": 3
	// / }
	// /
	// / // Error case - no input files
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ExecProgram",
	// /     "params": {
	// /         "k_filename_list": []
	// /     },
	// /     "id": 4
	// / }
	// /
	// / // Error Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "error": {
	// /         "code": -32602,
	// /         "message": "No input KCL files or paths"
	// /     },
	// /     "id": 4
	// / }
	// / “`
	ExecProgram(context.Context, *ExecProgram_Args) (*ExecProgram_Result, error)
	// / Build the KCL program to an artifact.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "BuildProgram",
	// /     "params": {
	// /         "exec_args": {
	// /             "work_dir": "./src/testdata",
	// /             "k_filename_list": ["test.k"]
	// /         },
	// /         "output": "./build"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "path": "./build/test.k"
	// /     },
	// /     "id": 1
	// / }
	// / “`
	// Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.
	BuildProgram(context.Context, *BuildProgram_Args) (*BuildProgram_Result, error)
	// / Execute the KCL artifact with args. **Note that it is not thread safe.**
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ExecArtifact",
	// /     "params": {
	// /         "path": "./artifact_path",
	// /         "exec_args": {
	// /             "work_dir": "./src/testdata",
	// /             "k_filename_list": ["test.k"]
	// /         }
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "json_result": "{\"alice\": {\"age\": 18}}",
	// /         "yaml_result": "alice:\n  age: 18",
	// /         "log_message": "",
	// /         "err_message": ""
	// /     },
	// /     "id": 1
	// / }
	// / “`
	// Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.
	ExecArtifact(context.Context, *ExecArtifact_Args) (*ExecProgram_Result, error)
	// / Override KCL file with args.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "OverrideFile",
	// /     "params": {
	// /         "file": "./src/testdata/test.k",
	// /         "specs": ["alice.age=18"]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "result": true,
	// /         "parse_errors": []
	// /     },
	// /     "id": 1
	// / }
	// / “`
	OverrideFile(context.Context, *OverrideFile_Args) (*OverrideFile_Result, error)
	// / Get schema type mapping.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "GetSchemaTypeMapping",
	// /     "params": {
	// /         "exec_args": {
	// /             "work_dir": "./src/testdata",
	// /             "k_filename_list": ["main.k"],
	// /             "external_pkgs": [
	// /                 {
	// /                     "pkg_name":"pkg",
	// /                     "pkg_path": "./src/testdata/pkg"
	// /                 }
	// /             ]
	// /         },
	// /         "schema_name": "Person"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "schema_type_mapping": {
	// /             "Person": {
	// /                 "type": "schema",
	// /                 "schema_name": "Person",
	// /                 "properties": {
	// /                     "name": { "type": "str" },
	// /                     "age": { "type": "int" }
	// /                 },
	// /                 "required": ["name", "age"],
	// /                 "decorators": []
	// /             }
	// /         }
	// /     },
	// /     "id": 1
	// / }
	// / “`
	GetSchemaTypeMapping(context.Context, *GetSchemaTypeMapping_Args) (*GetSchemaTypeMapping_Result, error)
	// / Format code source.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "FormatCode",
	// /     "params": {
	// /         "source": "schema Person {\n    name: str\n    age: int\n}\nperson = Person {\n    name = \"Alice\"\n    age = 18\n}\n"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "formatted": "schema Person {\n    name: str\n    age: int\n}\nperson = Person {\n    name = \"Alice\"\n    age = 18\n}\n"
	// /     },
	// /     "id": 1
	// / }
	// / “`
	FormatCode(context.Context, *FormatCode_Args) (*FormatCode_Result, error)
	// / Format KCL file or directory path contains KCL files and returns the changed file paths.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "FormatPath",
	// /     "params": {
	// /         "path": "./src/testdata/test.k"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "changed_paths": []
	// /     },
	// /     "id": 1
	// / }
	// / “`
	FormatPath(context.Context, *FormatPath_Args) (*FormatPath_Result, error)
	// / Lint files and return error messages including errors and warnings.
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "LintPath",
	// /     "params": {
	// /         "paths": ["./src/testdata/test-lint.k"]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "results": ["Module 'math' imported but unused"]
	// /     },
	// /     "id": 1
	// / }
	// / “`
	LintPath(context.Context, *LintPath_Args) (*LintPath_Result, error)
	// / Validate code using schema and data strings.
	// /
	// / **Note that it is not thread safe.**
	// /
	// / # Examples
	// /
	// / “`jsonrpc
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "ValidateCode",
	// /     "params": {
	// /         "code": "schema Person {\n    name: str\n    age: int\n    check: 0 < age < 120\n}",
	// /         "data": "{\"name\": \"Alice\", \"age\": 10}"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "success": true,
	// /         "err_message": ""
	// /     },
	// /     "id": 1
	// / }
	// / “`
	ValidateCode(context.Context, *ValidateCode_Args) (*ValidateCode_Result, error)
	ListDepFiles(context.Context, *ListDepFiles_Args) (*ListDepFiles_Result, error)
	// / Build setting file config from args.
	// /
	// / # Examples
	// /
	// /
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "LoadSettingsFiles",
	// /     "params": {
	// /         "work_dir": "./src/testdata/settings",
	// /         "files": ["./src/testdata/settings/kcl.yaml"]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "kcl_cli_configs": {
	// /             "files": ["./src/testdata/settings/kcl.yaml"],
	// /             "output": "",
	// /             "overrides": [],
	// /             "path_selector": [],
	// /             "strict_range_check": false,
	// /             "disable_none": false,
	// /             "verbose": 0,
	// /             "debug": false,
	// /             "sort_keys": false,
	// /             "show_hidden": false,
	// /             "include_schema_type_path": false,
	// /             "fast_eval": false
	// /         },
	// /         "kcl_options": []
	// /     },
	// /     "id": 1
	// / }
	// / “`
	LoadSettingsFiles(context.Context, *LoadSettingsFiles_Args) (*LoadSettingsFiles_Result, error)
	// / Rename all the occurrences of the target symbol in the files. This API will rewrite files if they contain symbols to be renamed.
	// / Return the file paths that got changed.
	// /
	// / # Examples
	// /
	// /
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "Rename",
	// /     "params": {
	// /         "package_root": "./src/testdata/rename_doc",
	// /         "symbol_path": "a",
	// /         "file_paths": ["./src/testdata/rename_doc/main.k"],
	// /         "new_name": "a2"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "changed_files": ["./src/testdata/rename_doc/main.k"]
	// /     },
	// /     "id": 1
	// / }
	// / “`
	Rename(context.Context, *Rename_Args) (*Rename_Result, error)
	// / Rename all the occurrences of the target symbol and return the modified code if any code has been changed. This API won't rewrite files but return the changed code.
	// /
	// / # Examples
	// /
	// /
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "RenameCode",
	// /     "params": {
	// /         "package_root": "/mock/path",
	// /         "symbol_path": "a",
	// /         "source_codes": {
	// /             "/mock/path/main.k": "a = 1\nb = a"
	// /         },
	// /         "new_name": "a2"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "changed_codes": {
	// /             "/mock/path/main.k": "a2 = 1\nb = a2"
	// /         }
	// /     },
	// /     "id": 1
	// / }
	// / “`
	RenameCode(context.Context, *RenameCode_Args) (*RenameCode_Result, error)
	// / Test KCL packages with test arguments.
	// /
	// / # Examples
	// /
	// /
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "Test",
	// /     "params": {
	// /         "exec_args": {
	// /             "work_dir": "./src/testdata/testing/module",
	// /             "k_filename_list": ["main.k"]
	// /         },
	// /         "pkg_list": ["./src/testdata/testing/module/..."]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "info": [
	// /             {"name": "test_case_1", "error": "", "duration": 1000, "log_message": ""},
	// /             {"name": "test_case_2", "error": "some error", "duration": 2000, "log_message": ""}
	// /         ]
	// /     },
	// /     "id": 1
	// / }
	// / “`
	Test(context.Context, *Test_Args) (*Test_Result, error)
	// / Download and update dependencies defined in the kcl.mod file.
	// /
	// / # Examples
	// /
	// /
	// / // Request
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "UpdateDependencies",
	// /     "params": {
	// /         "manifest_path": "./src/testdata/update_dependencies"
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "external_pkgs": [
	// /             {"pkg_name": "pkg1", "pkg_path": "./src/testdata/update_dependencies/pkg1"}
	// /         ]
	// /     },
	// /     "id": 1
	// / }
	// /
	// / // Request with vendor flag
	// / {
	// /     "jsonrpc": "2.0",
	// /     "method": "UpdateDependencies",
	// /     "params": {
	// /         "manifest_path": "./src/testdata/update_dependencies",
	// /         "vendor": true
	// /     },
	// /     "id": 2
	// / }
	// /
	// / // Response
	// / {
	// /     "jsonrpc": "2.0",
	// /     "result": {
	// /         "external_pkgs": [
	// /             {"pkg_name": "pkg1", "pkg_path": "./src/testdata/update_dependencies/pkg1"}
	// /         ]
	// /     },
	// /     "id": 2
	// / }
	// / “`
	UpdateDependencies(context.Context, *UpdateDependencies_Args) (*UpdateDependencies_Result, error)
}

KclvmServiceServer is the server API for KclvmService service.

type KeyValuePair

type KeyValuePair struct {

	// Key of the pair.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Value of the pair.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Message representing a key-value pair.

func (*KeyValuePair) Descriptor deprecated

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

Deprecated: Use KeyValuePair.ProtoReflect.Descriptor instead.

func (*KeyValuePair) GetKey

func (x *KeyValuePair) GetKey() string

func (*KeyValuePair) GetValue

func (x *KeyValuePair) GetValue() string

func (*KeyValuePair) ProtoMessage

func (*KeyValuePair) ProtoMessage()

func (*KeyValuePair) ProtoReflect

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

func (*KeyValuePair) Reset

func (x *KeyValuePair) Reset()

func (*KeyValuePair) String

func (x *KeyValuePair) String() string

type LintPath_Args

type LintPath_Args struct {

	// Paths of the files to lint.
	Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
	// contains filtered or unexported fields
}

Message for lint file path request arguments.

func (*LintPath_Args) Descriptor deprecated

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

Deprecated: Use LintPath_Args.ProtoReflect.Descriptor instead.

func (*LintPath_Args) GetPaths

func (x *LintPath_Args) GetPaths() []string

func (*LintPath_Args) ProtoMessage

func (*LintPath_Args) ProtoMessage()

func (*LintPath_Args) ProtoReflect

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

func (*LintPath_Args) Reset

func (x *LintPath_Args) Reset()

func (*LintPath_Args) String

func (x *LintPath_Args) String() string

type LintPath_Result

type LintPath_Result struct {

	// List of lint results.
	Results []string `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

Message for lint file path response.

func (*LintPath_Result) Descriptor deprecated

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

Deprecated: Use LintPath_Result.ProtoReflect.Descriptor instead.

func (*LintPath_Result) GetResults

func (x *LintPath_Result) GetResults() []string

func (*LintPath_Result) ProtoMessage

func (*LintPath_Result) ProtoMessage()

func (*LintPath_Result) ProtoReflect

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

func (*LintPath_Result) Reset

func (x *LintPath_Result) Reset()

func (*LintPath_Result) String

func (x *LintPath_Result) String() string

type ListDepFiles_Args

type ListDepFiles_Args struct {

	// Working directory.
	WorkDir string `protobuf:"bytes,1,opt,name=work_dir,json=workDir,proto3" json:"work_dir,omitempty"`
	// Flag to use absolute paths.
	UseAbsPath bool `protobuf:"varint,2,opt,name=use_abs_path,json=useAbsPath,proto3" json:"use_abs_path,omitempty"`
	// Flag to include all files.
	IncludeAll bool `protobuf:"varint,3,opt,name=include_all,json=includeAll,proto3" json:"include_all,omitempty"`
	// Flag to use fast parser.
	UseFastParser bool `protobuf:"varint,4,opt,name=use_fast_parser,json=useFastParser,proto3" json:"use_fast_parser,omitempty"`
	// contains filtered or unexported fields
}

Message for list dependency files request arguments.

func (*ListDepFiles_Args) Descriptor deprecated

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

Deprecated: Use ListDepFiles_Args.ProtoReflect.Descriptor instead.

func (*ListDepFiles_Args) GetIncludeAll

func (x *ListDepFiles_Args) GetIncludeAll() bool

func (*ListDepFiles_Args) GetUseAbsPath

func (x *ListDepFiles_Args) GetUseAbsPath() bool

func (*ListDepFiles_Args) GetUseFastParser

func (x *ListDepFiles_Args) GetUseFastParser() bool

func (*ListDepFiles_Args) GetWorkDir

func (x *ListDepFiles_Args) GetWorkDir() string

func (*ListDepFiles_Args) ProtoMessage

func (*ListDepFiles_Args) ProtoMessage()

func (*ListDepFiles_Args) ProtoReflect

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

func (*ListDepFiles_Args) Reset

func (x *ListDepFiles_Args) Reset()

func (*ListDepFiles_Args) String

func (x *ListDepFiles_Args) String() string

type ListDepFiles_Result

type ListDepFiles_Result struct {

	// Root package path.
	Pkgroot string `protobuf:"bytes,1,opt,name=pkgroot,proto3" json:"pkgroot,omitempty"`
	// Package path.
	Pkgpath string `protobuf:"bytes,2,opt,name=pkgpath,proto3" json:"pkgpath,omitempty"`
	// List of file paths in the package.
	Files []string `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"`
	// contains filtered or unexported fields
}

Message for list dependency files response.

func (*ListDepFiles_Result) Descriptor deprecated

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

Deprecated: Use ListDepFiles_Result.ProtoReflect.Descriptor instead.

func (*ListDepFiles_Result) GetFiles

func (x *ListDepFiles_Result) GetFiles() []string

func (*ListDepFiles_Result) GetPkgpath

func (x *ListDepFiles_Result) GetPkgpath() string

func (*ListDepFiles_Result) GetPkgroot

func (x *ListDepFiles_Result) GetPkgroot() string

func (*ListDepFiles_Result) ProtoMessage

func (*ListDepFiles_Result) ProtoMessage()

func (*ListDepFiles_Result) ProtoReflect

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

func (*ListDepFiles_Result) Reset

func (x *ListDepFiles_Result) Reset()

func (*ListDepFiles_Result) String

func (x *ListDepFiles_Result) String() string

type ListMethod_Args

type ListMethod_Args struct {
	// contains filtered or unexported fields
}

Message for list method request arguments. Empty message.

func (*ListMethod_Args) Descriptor deprecated

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

Deprecated: Use ListMethod_Args.ProtoReflect.Descriptor instead.

func (*ListMethod_Args) ProtoMessage

func (*ListMethod_Args) ProtoMessage()

func (*ListMethod_Args) ProtoReflect

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

func (*ListMethod_Args) Reset

func (x *ListMethod_Args) Reset()

func (*ListMethod_Args) String

func (x *ListMethod_Args) String() string

type ListMethod_Result

type ListMethod_Result struct {

	// List of available method names.
	MethodNameList []string `protobuf:"bytes,1,rep,name=method_name_list,json=methodNameList,proto3" json:"method_name_list,omitempty"`
	// contains filtered or unexported fields
}

Message for list method response.

func (*ListMethod_Result) Descriptor deprecated

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

Deprecated: Use ListMethod_Result.ProtoReflect.Descriptor instead.

func (*ListMethod_Result) GetMethodNameList

func (x *ListMethod_Result) GetMethodNameList() []string

func (*ListMethod_Result) ProtoMessage

func (*ListMethod_Result) ProtoMessage()

func (*ListMethod_Result) ProtoReflect

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

func (*ListMethod_Result) Reset

func (x *ListMethod_Result) Reset()

func (*ListMethod_Result) String

func (x *ListMethod_Result) String() string

type ListOptions_Result added in v0.8.1

type ListOptions_Result struct {

	// List of available options.
	Options []*OptionHelp `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

Message for list options response.

func (*ListOptions_Result) Descriptor deprecated added in v0.8.1

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

Deprecated: Use ListOptions_Result.ProtoReflect.Descriptor instead.

func (*ListOptions_Result) GetOptions added in v0.8.1

func (x *ListOptions_Result) GetOptions() []*OptionHelp

func (*ListOptions_Result) ProtoMessage added in v0.8.1

func (*ListOptions_Result) ProtoMessage()

func (*ListOptions_Result) ProtoReflect added in v0.8.1

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

func (*ListOptions_Result) Reset added in v0.8.1

func (x *ListOptions_Result) Reset()

func (*ListOptions_Result) String added in v0.8.1

func (x *ListOptions_Result) String() string

type ListVariables_Args added in v0.8.4

type ListVariables_Args struct {

	// Files to be processed.
	Files []string `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
	// Specifications for variables.
	Specs []string `protobuf:"bytes,2,rep,name=specs,proto3" json:"specs,omitempty"`
	// Options for listing variables.
	Options *ListVariables_Options `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

Message for list variables request arguments.

func (*ListVariables_Args) Descriptor deprecated added in v0.8.4

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

Deprecated: Use ListVariables_Args.ProtoReflect.Descriptor instead.

func (*ListVariables_Args) GetFiles added in v0.9.0

func (x *ListVariables_Args) GetFiles() []string

func (*ListVariables_Args) GetOptions added in v0.9.0

func (x *ListVariables_Args) GetOptions() *ListVariables_Options

func (*ListVariables_Args) GetSpecs added in v0.8.4

func (x *ListVariables_Args) GetSpecs() []string

func (*ListVariables_Args) ProtoMessage added in v0.8.4

func (*ListVariables_Args) ProtoMessage()

func (*ListVariables_Args) ProtoReflect added in v0.8.4

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

func (*ListVariables_Args) Reset added in v0.8.4

func (x *ListVariables_Args) Reset()

func (*ListVariables_Args) String added in v0.8.4

func (x *ListVariables_Args) String() string

type ListVariables_Options added in v0.9.0

type ListVariables_Options struct {

	// Flag to merge program configuration.
	MergeProgram bool `protobuf:"varint,1,opt,name=merge_program,json=mergeProgram,proto3" json:"merge_program,omitempty"`
	// contains filtered or unexported fields
}

Message for list variables options.

func (*ListVariables_Options) Descriptor deprecated added in v0.9.0

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

Deprecated: Use ListVariables_Options.ProtoReflect.Descriptor instead.

func (*ListVariables_Options) GetMergeProgram added in v0.9.0

func (x *ListVariables_Options) GetMergeProgram() bool

func (*ListVariables_Options) ProtoMessage added in v0.9.0

func (*ListVariables_Options) ProtoMessage()

func (*ListVariables_Options) ProtoReflect added in v0.9.0

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

func (*ListVariables_Options) Reset added in v0.9.0

func (x *ListVariables_Options) Reset()

func (*ListVariables_Options) String added in v0.9.0

func (x *ListVariables_Options) String() string

type ListVariables_Result added in v0.8.4

type ListVariables_Result struct {

	// Map of variable lists by file.
	Variables map[string]*VariableList `` /* 159-byte string literal not displayed */
	// List of unsupported codes.
	UnsupportedCodes []string `protobuf:"bytes,2,rep,name=unsupported_codes,json=unsupportedCodes,proto3" json:"unsupported_codes,omitempty"`
	// List of parse errors encountered.
	ParseErrors []*Error `protobuf:"bytes,3,rep,name=parse_errors,json=parseErrors,proto3" json:"parse_errors,omitempty"`
	// contains filtered or unexported fields
}

Message for list variables response.

func (*ListVariables_Result) Descriptor deprecated added in v0.8.4

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

Deprecated: Use ListVariables_Result.ProtoReflect.Descriptor instead.

func (*ListVariables_Result) GetParseErrors added in v0.9.0

func (x *ListVariables_Result) GetParseErrors() []*Error

func (*ListVariables_Result) GetUnsupportedCodes added in v0.8.4

func (x *ListVariables_Result) GetUnsupportedCodes() []string

func (*ListVariables_Result) GetVariables added in v0.8.4

func (x *ListVariables_Result) GetVariables() map[string]*VariableList

func (*ListVariables_Result) ProtoMessage added in v0.8.4

func (*ListVariables_Result) ProtoMessage()

func (*ListVariables_Result) ProtoReflect added in v0.8.4

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

func (*ListVariables_Result) Reset added in v0.8.4

func (x *ListVariables_Result) Reset()

func (*ListVariables_Result) String added in v0.8.4

func (x *ListVariables_Result) String() string

type LoadPackage_Args added in v0.7.5

type LoadPackage_Args struct {

	// Arguments for parsing the program.
	ParseArgs *ParseProgram_Args `protobuf:"bytes,1,opt,name=parse_args,json=parseArgs,proto3" json:"parse_args,omitempty"`
	// Flag indicating whether to resolve AST.
	ResolveAst bool `protobuf:"varint,2,opt,name=resolve_ast,json=resolveAst,proto3" json:"resolve_ast,omitempty"`
	// Flag indicating whether to load built-in modules.
	LoadBuiltin bool `protobuf:"varint,3,opt,name=load_builtin,json=loadBuiltin,proto3" json:"load_builtin,omitempty"`
	// Flag indicating whether to include AST index.
	WithAstIndex bool `protobuf:"varint,4,opt,name=with_ast_index,json=withAstIndex,proto3" json:"with_ast_index,omitempty"`
	// contains filtered or unexported fields
}

Message for load package request arguments.

func (*LoadPackage_Args) Descriptor deprecated added in v0.7.5

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

Deprecated: Use LoadPackage_Args.ProtoReflect.Descriptor instead.

func (*LoadPackage_Args) GetLoadBuiltin added in v0.7.5

func (x *LoadPackage_Args) GetLoadBuiltin() bool

func (*LoadPackage_Args) GetParseArgs added in v0.7.5

func (x *LoadPackage_Args) GetParseArgs() *ParseProgram_Args

func (*LoadPackage_Args) GetResolveAst added in v0.7.5

func (x *LoadPackage_Args) GetResolveAst() bool

func (*LoadPackage_Args) GetWithAstIndex added in v0.7.5

func (x *LoadPackage_Args) GetWithAstIndex() bool

func (*LoadPackage_Args) ProtoMessage added in v0.7.5

func (*LoadPackage_Args) ProtoMessage()

func (*LoadPackage_Args) ProtoReflect added in v0.7.5

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

func (*LoadPackage_Args) Reset added in v0.7.5

func (x *LoadPackage_Args) Reset()

func (*LoadPackage_Args) String added in v0.7.5

func (x *LoadPackage_Args) String() string

type LoadPackage_Result added in v0.7.5

type LoadPackage_Result struct {

	// Program Abstract Syntax Tree (AST) in JSON format.
	Program string `protobuf:"bytes,1,opt,name=program,proto3" json:"program,omitempty"`
	// Returns the files in the order they should be compiled.
	Paths []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"`
	// List of parse errors.
	ParseErrors []*Error `protobuf:"bytes,3,rep,name=parse_errors,json=parseErrors,proto3" json:"parse_errors,omitempty"`
	// List of type errors.
	TypeErrors []*Error `protobuf:"bytes,4,rep,name=type_errors,json=typeErrors,proto3" json:"type_errors,omitempty"`
	// Map of scopes with scope index as key.
	Scopes map[string]*Scope `` /* 153-byte string literal not displayed */
	// Map of symbols with symbol index as key.
	Symbols map[string]*Symbol `` /* 155-byte string literal not displayed */
	// Map of node-symbol associations with AST index UUID as key.
	NodeSymbolMap map[string]*SymbolIndex `` /* 190-byte string literal not displayed */
	// Map of symbol-node associations with symbol index as key.
	SymbolNodeMap map[string]string `` /* 190-byte string literal not displayed */
	// Map of fully qualified names with symbol index as key.
	FullyQualifiedNameMap map[string]*SymbolIndex `` /* 216-byte string literal not displayed */
	// Map of package scope with package path as key.
	PkgScopeMap map[string]*ScopeIndex `` /* 185-byte string literal not displayed */
	// contains filtered or unexported fields
}

Message for load package response.

func (*LoadPackage_Result) Descriptor deprecated added in v0.7.5

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

Deprecated: Use LoadPackage_Result.ProtoReflect.Descriptor instead.

func (*LoadPackage_Result) GetFullyQualifiedNameMap added in v0.7.5

func (x *LoadPackage_Result) GetFullyQualifiedNameMap() map[string]*SymbolIndex

func (*LoadPackage_Result) GetNodeSymbolMap added in v0.7.5

func (x *LoadPackage_Result) GetNodeSymbolMap() map[string]*SymbolIndex

func (*LoadPackage_Result) GetParseErrors added in v0.7.5

func (x *LoadPackage_Result) GetParseErrors() []*Error

func (*LoadPackage_Result) GetPaths added in v0.7.5

func (x *LoadPackage_Result) GetPaths() []string

func (*LoadPackage_Result) GetPkgScopeMap added in v0.7.5

func (x *LoadPackage_Result) GetPkgScopeMap() map[string]*ScopeIndex

func (*LoadPackage_Result) GetProgram added in v0.7.5

func (x *LoadPackage_Result) GetProgram() string

func (*LoadPackage_Result) GetScopes added in v0.7.5

func (x *LoadPackage_Result) GetScopes() map[string]*Scope

func (*LoadPackage_Result) GetSymbolNodeMap added in v0.7.5

func (x *LoadPackage_Result) GetSymbolNodeMap() map[string]string

func (*LoadPackage_Result) GetSymbols added in v0.7.5

func (x *LoadPackage_Result) GetSymbols() map[string]*Symbol

func (*LoadPackage_Result) GetTypeErrors added in v0.7.5

func (x *LoadPackage_Result) GetTypeErrors() []*Error

func (*LoadPackage_Result) ProtoMessage added in v0.7.5

func (*LoadPackage_Result) ProtoMessage()

func (*LoadPackage_Result) ProtoReflect added in v0.7.5

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

func (*LoadPackage_Result) Reset added in v0.7.5

func (x *LoadPackage_Result) Reset()

func (*LoadPackage_Result) String added in v0.7.5

func (x *LoadPackage_Result) String() string

type LoadSettingsFiles_Args

type LoadSettingsFiles_Args struct {

	// Working directory.
	WorkDir string `protobuf:"bytes,1,opt,name=work_dir,json=workDir,proto3" json:"work_dir,omitempty"`
	// Setting files to load.
	Files []string `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
	// contains filtered or unexported fields
}

Message for load settings files request arguments.

func (*LoadSettingsFiles_Args) Descriptor deprecated

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

Deprecated: Use LoadSettingsFiles_Args.ProtoReflect.Descriptor instead.

func (*LoadSettingsFiles_Args) GetFiles

func (x *LoadSettingsFiles_Args) GetFiles() []string

func (*LoadSettingsFiles_Args) GetWorkDir

func (x *LoadSettingsFiles_Args) GetWorkDir() string

func (*LoadSettingsFiles_Args) ProtoMessage

func (*LoadSettingsFiles_Args) ProtoMessage()

func (*LoadSettingsFiles_Args) ProtoReflect

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

func (*LoadSettingsFiles_Args) Reset

func (x *LoadSettingsFiles_Args) Reset()

func (*LoadSettingsFiles_Args) String

func (x *LoadSettingsFiles_Args) String() string

type LoadSettingsFiles_Result

type LoadSettingsFiles_Result struct {

	// KCL CLI configuration.
	KclCliConfigs *CliConfig `protobuf:"bytes,1,opt,name=kcl_cli_configs,json=kclCliConfigs,proto3" json:"kcl_cli_configs,omitempty"`
	// List of KCL options as key-value pairs.
	KclOptions []*KeyValuePair `protobuf:"bytes,2,rep,name=kcl_options,json=kclOptions,proto3" json:"kcl_options,omitempty"`
	// contains filtered or unexported fields
}

Message for load settings files response.

func (*LoadSettingsFiles_Result) Descriptor deprecated

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

Deprecated: Use LoadSettingsFiles_Result.ProtoReflect.Descriptor instead.

func (*LoadSettingsFiles_Result) GetKclCliConfigs

func (x *LoadSettingsFiles_Result) GetKclCliConfigs() *CliConfig

func (*LoadSettingsFiles_Result) GetKclOptions

func (x *LoadSettingsFiles_Result) GetKclOptions() []*KeyValuePair

func (*LoadSettingsFiles_Result) ProtoMessage

func (*LoadSettingsFiles_Result) ProtoMessage()

func (*LoadSettingsFiles_Result) ProtoReflect

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

func (*LoadSettingsFiles_Result) Reset

func (x *LoadSettingsFiles_Result) Reset()

func (*LoadSettingsFiles_Result) String

func (x *LoadSettingsFiles_Result) String() string

type MapEntry added in v0.9.0

type MapEntry struct {

	// Key of the map entry.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Value of the map entry.
	Value *Variable `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Message representing a map entry.

func (*MapEntry) Descriptor deprecated added in v0.9.0

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

Deprecated: Use MapEntry.ProtoReflect.Descriptor instead.

func (*MapEntry) GetKey added in v0.9.0

func (x *MapEntry) GetKey() string

func (*MapEntry) GetValue added in v0.9.0

func (x *MapEntry) GetValue() *Variable

func (*MapEntry) ProtoMessage added in v0.9.0

func (*MapEntry) ProtoMessage()

func (*MapEntry) ProtoReflect added in v0.9.0

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

func (*MapEntry) Reset added in v0.9.0

func (x *MapEntry) Reset()

func (*MapEntry) String added in v0.9.0

func (x *MapEntry) String() string

type Message added in v0.7.3

type Message struct {

	// The error message text.
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// The position in the source code where the error occurred.
	Pos *Position `protobuf:"bytes,2,opt,name=pos,proto3" json:"pos,omitempty"`
	// contains filtered or unexported fields
}

Message representing a detailed error message with a position.

func (*Message) Descriptor deprecated added in v0.7.3

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetMsg added in v0.7.3

func (x *Message) GetMsg() string

func (*Message) GetPos added in v0.7.3

func (x *Message) GetPos() *Position

func (*Message) ProtoMessage added in v0.7.3

func (*Message) ProtoMessage()

func (*Message) ProtoReflect added in v0.7.3

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

func (*Message) Reset added in v0.7.3

func (x *Message) Reset()

func (*Message) String added in v0.7.3

func (x *Message) String() string

type OptionHelp added in v0.8.1

type OptionHelp struct {

	// Name of the option.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Type of the option.
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// Flag indicating if the option is required.
	Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"`
	// Default value of the option.
	DefaultValue string `protobuf:"bytes,4,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	// Help text for the option.
	Help string `protobuf:"bytes,5,opt,name=help,proto3" json:"help,omitempty"`
	// contains filtered or unexported fields
}

Message representing a help option.

func (*OptionHelp) Descriptor deprecated added in v0.8.1

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

Deprecated: Use OptionHelp.ProtoReflect.Descriptor instead.

func (*OptionHelp) GetDefaultValue added in v0.8.1

func (x *OptionHelp) GetDefaultValue() string

func (*OptionHelp) GetHelp added in v0.8.1

func (x *OptionHelp) GetHelp() string

func (*OptionHelp) GetName added in v0.8.1

func (x *OptionHelp) GetName() string

func (*OptionHelp) GetRequired added in v0.8.1

func (x *OptionHelp) GetRequired() bool

func (*OptionHelp) GetType added in v0.8.1

func (x *OptionHelp) GetType() string

func (*OptionHelp) ProtoMessage added in v0.8.1

func (*OptionHelp) ProtoMessage()

func (*OptionHelp) ProtoReflect added in v0.8.1

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

func (*OptionHelp) Reset added in v0.8.1

func (x *OptionHelp) Reset()

func (*OptionHelp) String added in v0.8.1

func (x *OptionHelp) String() string

type OverrideFile_Args

type OverrideFile_Args struct {

	// Path of the file to override.
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
	// List of override specifications.
	Specs []string `protobuf:"bytes,2,rep,name=specs,proto3" json:"specs,omitempty"`
	// List of import paths.
	ImportPaths []string `protobuf:"bytes,3,rep,name=import_paths,json=importPaths,proto3" json:"import_paths,omitempty"`
	// contains filtered or unexported fields
}

Message for override file request arguments.

func (*OverrideFile_Args) Descriptor deprecated

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

Deprecated: Use OverrideFile_Args.ProtoReflect.Descriptor instead.

func (*OverrideFile_Args) GetFile

func (x *OverrideFile_Args) GetFile() string

func (*OverrideFile_Args) GetImportPaths

func (x *OverrideFile_Args) GetImportPaths() []string

func (*OverrideFile_Args) GetSpecs

func (x *OverrideFile_Args) GetSpecs() []string

func (*OverrideFile_Args) ProtoMessage

func (*OverrideFile_Args) ProtoMessage()

func (*OverrideFile_Args) ProtoReflect

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

func (*OverrideFile_Args) Reset

func (x *OverrideFile_Args) Reset()

func (*OverrideFile_Args) String

func (x *OverrideFile_Args) String() string

type OverrideFile_Result

type OverrideFile_Result struct {

	// Result of the override operation.
	Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// List of parse errors encountered.
	ParseErrors []*Error `protobuf:"bytes,2,rep,name=parse_errors,json=parseErrors,proto3" json:"parse_errors,omitempty"`
	// contains filtered or unexported fields
}

Message for override file response.

func (*OverrideFile_Result) Descriptor deprecated

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

Deprecated: Use OverrideFile_Result.ProtoReflect.Descriptor instead.

func (*OverrideFile_Result) GetParseErrors added in v0.9.0

func (x *OverrideFile_Result) GetParseErrors() []*Error

func (*OverrideFile_Result) GetResult

func (x *OverrideFile_Result) GetResult() bool

func (*OverrideFile_Result) ProtoMessage

func (*OverrideFile_Result) ProtoMessage()

func (*OverrideFile_Result) ProtoReflect

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

func (*OverrideFile_Result) Reset

func (x *OverrideFile_Result) Reset()

func (*OverrideFile_Result) String

func (x *OverrideFile_Result) String() string

type PROTORPC_BuiltinService

type PROTORPC_BuiltinService interface {
	Ping(in *Ping_Args, out *Ping_Result) error
	ListMethod(in *ListMethod_Args, out *ListMethod_Result) error
}

type PROTORPC_BuiltinServiceClient

type PROTORPC_BuiltinServiceClient struct {
	*rpc.Client
}

func PROTORPC_DialBuiltinService

func PROTORPC_DialBuiltinService(network, addr string) (*PROTORPC_BuiltinServiceClient, error)

PROTORPC_DialBuiltinService connects to an PROTORPC_BuiltinService at the specified network address.

func PROTORPC_DialBuiltinServiceTimeout

func PROTORPC_DialBuiltinServiceTimeout(network, addr string, timeout time.Duration) (*PROTORPC_BuiltinServiceClient, error)

PROTORPC_DialBuiltinServiceTimeout connects to an PROTORPC_BuiltinService at the specified network address.

func PROTORPC_NewBuiltinServiceClient

func PROTORPC_NewBuiltinServiceClient(conn io.ReadWriteCloser) *PROTORPC_BuiltinServiceClient

PROTORPC_NewBuiltinServiceClient returns a PROTORPC_BuiltinService stub to handle requests to the set of PROTORPC_BuiltinService at the other end of the connection.

func (*PROTORPC_BuiltinServiceClient) AsyncListMethod

func (c *PROTORPC_BuiltinServiceClient) AsyncListMethod(in *ListMethod_Args, out *ListMethod_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_BuiltinServiceClient) AsyncPing

func (c *PROTORPC_BuiltinServiceClient) AsyncPing(in *Ping_Args, out *Ping_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_BuiltinServiceClient) ListMethod

func (*PROTORPC_BuiltinServiceClient) Ping

func (c *PROTORPC_BuiltinServiceClient) Ping(in *Ping_Args) (out *Ping_Result, err error)

type PROTORPC_KclvmService

type PROTORPC_KclvmService interface {
	Ping(in *Ping_Args, out *Ping_Result) error
	ExecProgram(in *ExecProgram_Args, out *ExecProgram_Result) error
	// Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.
	BuildProgram(in *BuildProgram_Args, out *BuildProgram_Result) error
	// Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.
	ExecArtifact(in *ExecArtifact_Args, out *ExecProgram_Result) error
	ParseProgram(in *ParseProgram_Args, out *ParseProgram_Result) error
	ListOptions(in *ParseProgram_Args, out *ListOptions_Result) error
	ListVariables(in *ListVariables_Args, out *ListVariables_Result) error
	LoadPackage(in *LoadPackage_Args, out *LoadPackage_Result) error
	FormatCode(in *FormatCode_Args, out *FormatCode_Result) error
	FormatPath(in *FormatPath_Args, out *FormatPath_Result) error
	LintPath(in *LintPath_Args, out *LintPath_Result) error
	OverrideFile(in *OverrideFile_Args, out *OverrideFile_Result) error
	GetSchemaTypeMapping(in *GetSchemaTypeMapping_Args, out *GetSchemaTypeMapping_Result) error
	ValidateCode(in *ValidateCode_Args, out *ValidateCode_Result) error
	ListDepFiles(in *ListDepFiles_Args, out *ListDepFiles_Result) error
	LoadSettingsFiles(in *LoadSettingsFiles_Args, out *LoadSettingsFiles_Result) error
	Rename(in *Rename_Args, out *Rename_Result) error
	RenameCode(in *RenameCode_Args, out *RenameCode_Result) error
	Test(in *Test_Args, out *Test_Result) error
	UpdateDependencies(in *UpdateDependencies_Args, out *UpdateDependencies_Result) error
	GetVersion(in *GetVersion_Args, out *GetVersion_Result) error
}

type PROTORPC_KclvmServiceClient

type PROTORPC_KclvmServiceClient struct {
	*rpc.Client
}

func PROTORPC_DialKclvmService

func PROTORPC_DialKclvmService(network, addr string) (*PROTORPC_KclvmServiceClient, error)

PROTORPC_DialKclvmService connects to an PROTORPC_KclvmService at the specified network address.

func PROTORPC_DialKclvmServiceTimeout

func PROTORPC_DialKclvmServiceTimeout(network, addr string, timeout time.Duration) (*PROTORPC_KclvmServiceClient, error)

PROTORPC_DialKclvmServiceTimeout connects to an PROTORPC_KclvmService at the specified network address.

func PROTORPC_NewKclvmServiceClient

func PROTORPC_NewKclvmServiceClient(conn io.ReadWriteCloser) *PROTORPC_KclvmServiceClient

PROTORPC_NewKclvmServiceClient returns a PROTORPC_KclvmService stub to handle requests to the set of PROTORPC_KclvmService at the other end of the connection.

func (*PROTORPC_KclvmServiceClient) AsyncBuildProgram added in v0.8.0

func (c *PROTORPC_KclvmServiceClient) AsyncBuildProgram(in *BuildProgram_Args, out *BuildProgram_Result, done chan *rpc.Call) *rpc.Call

Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.

func (*PROTORPC_KclvmServiceClient) AsyncExecArtifact added in v0.8.0

func (c *PROTORPC_KclvmServiceClient) AsyncExecArtifact(in *ExecArtifact_Args, out *ExecProgram_Result, done chan *rpc.Call) *rpc.Call

Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.

func (*PROTORPC_KclvmServiceClient) AsyncExecProgram

func (c *PROTORPC_KclvmServiceClient) AsyncExecProgram(in *ExecProgram_Args, out *ExecProgram_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncFormatCode

func (c *PROTORPC_KclvmServiceClient) AsyncFormatCode(in *FormatCode_Args, out *FormatCode_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncFormatPath

func (c *PROTORPC_KclvmServiceClient) AsyncFormatPath(in *FormatPath_Args, out *FormatPath_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncGetSchemaTypeMapping

func (c *PROTORPC_KclvmServiceClient) AsyncGetSchemaTypeMapping(in *GetSchemaTypeMapping_Args, out *GetSchemaTypeMapping_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncGetVersion added in v0.9.2

func (c *PROTORPC_KclvmServiceClient) AsyncGetVersion(in *GetVersion_Args, out *GetVersion_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncLintPath

func (c *PROTORPC_KclvmServiceClient) AsyncLintPath(in *LintPath_Args, out *LintPath_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncListDepFiles

func (c *PROTORPC_KclvmServiceClient) AsyncListDepFiles(in *ListDepFiles_Args, out *ListDepFiles_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncListOptions added in v0.8.1

func (c *PROTORPC_KclvmServiceClient) AsyncListOptions(in *ParseProgram_Args, out *ListOptions_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncListVariables added in v0.8.4

func (c *PROTORPC_KclvmServiceClient) AsyncListVariables(in *ListVariables_Args, out *ListVariables_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncLoadPackage added in v0.7.5

func (c *PROTORPC_KclvmServiceClient) AsyncLoadPackage(in *LoadPackage_Args, out *LoadPackage_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncLoadSettingsFiles

func (c *PROTORPC_KclvmServiceClient) AsyncLoadSettingsFiles(in *LoadSettingsFiles_Args, out *LoadSettingsFiles_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncOverrideFile

func (c *PROTORPC_KclvmServiceClient) AsyncOverrideFile(in *OverrideFile_Args, out *OverrideFile_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncParseFile added in v0.7.3

func (c *PROTORPC_KclvmServiceClient) AsyncParseFile(in *ParseFile_Args, out *ParseFile_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncParseProgram added in v0.7.3

func (c *PROTORPC_KclvmServiceClient) AsyncParseProgram(in *ParseProgram_Args, out *ParseProgram_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncPing

func (c *PROTORPC_KclvmServiceClient) AsyncPing(in *Ping_Args, out *Ping_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncRename added in v0.7.0

func (c *PROTORPC_KclvmServiceClient) AsyncRename(in *Rename_Args, out *Rename_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncRenameCode added in v0.7.0

func (c *PROTORPC_KclvmServiceClient) AsyncRenameCode(in *RenameCode_Args, out *RenameCode_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncTest added in v0.7.0

func (c *PROTORPC_KclvmServiceClient) AsyncTest(in *Test_Args, out *Test_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncUpdateDependencies added in v0.9.0

func (c *PROTORPC_KclvmServiceClient) AsyncUpdateDependencies(in *UpdateDependencies_Args, out *UpdateDependencies_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) AsyncValidateCode

func (c *PROTORPC_KclvmServiceClient) AsyncValidateCode(in *ValidateCode_Args, out *ValidateCode_Result, done chan *rpc.Call) *rpc.Call

func (*PROTORPC_KclvmServiceClient) BuildProgram added in v0.8.0

Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.

func (*PROTORPC_KclvmServiceClient) ExecArtifact added in v0.8.0

func (c *PROTORPC_KclvmServiceClient) ExecArtifact(in *ExecArtifact_Args) (out *ExecProgram_Result, err error)

Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.

func (*PROTORPC_KclvmServiceClient) ExecProgram

func (c *PROTORPC_KclvmServiceClient) ExecProgram(in *ExecProgram_Args) (out *ExecProgram_Result, err error)

func (*PROTORPC_KclvmServiceClient) FormatCode

func (c *PROTORPC_KclvmServiceClient) FormatCode(in *FormatCode_Args) (out *FormatCode_Result, err error)

func (*PROTORPC_KclvmServiceClient) FormatPath

func (c *PROTORPC_KclvmServiceClient) FormatPath(in *FormatPath_Args) (out *FormatPath_Result, err error)

func (*PROTORPC_KclvmServiceClient) GetSchemaTypeMapping

func (*PROTORPC_KclvmServiceClient) GetVersion added in v0.9.2

func (c *PROTORPC_KclvmServiceClient) GetVersion(in *GetVersion_Args) (out *GetVersion_Result, err error)

func (*PROTORPC_KclvmServiceClient) LintPath

func (c *PROTORPC_KclvmServiceClient) LintPath(in *LintPath_Args) (out *LintPath_Result, err error)

func (*PROTORPC_KclvmServiceClient) ListDepFiles

func (*PROTORPC_KclvmServiceClient) ListOptions added in v0.8.1

func (*PROTORPC_KclvmServiceClient) ListVariables added in v0.8.4

func (*PROTORPC_KclvmServiceClient) LoadPackage added in v0.7.5

func (c *PROTORPC_KclvmServiceClient) LoadPackage(in *LoadPackage_Args) (out *LoadPackage_Result, err error)

func (*PROTORPC_KclvmServiceClient) LoadSettingsFiles

func (*PROTORPC_KclvmServiceClient) OverrideFile

func (*PROTORPC_KclvmServiceClient) ParseFile added in v0.7.3

func (c *PROTORPC_KclvmServiceClient) ParseFile(in *ParseFile_Args) (out *ParseFile_Result, err error)

func (*PROTORPC_KclvmServiceClient) ParseProgram added in v0.7.3

func (*PROTORPC_KclvmServiceClient) Ping

func (c *PROTORPC_KclvmServiceClient) Ping(in *Ping_Args) (out *Ping_Result, err error)

func (*PROTORPC_KclvmServiceClient) Rename added in v0.7.0

func (c *PROTORPC_KclvmServiceClient) Rename(in *Rename_Args) (out *Rename_Result, err error)

func (*PROTORPC_KclvmServiceClient) RenameCode added in v0.7.0

func (c *PROTORPC_KclvmServiceClient) RenameCode(in *RenameCode_Args) (out *RenameCode_Result, err error)

func (*PROTORPC_KclvmServiceClient) Test added in v0.7.0

func (c *PROTORPC_KclvmServiceClient) Test(in *Test_Args) (out *Test_Result, err error)

func (*PROTORPC_KclvmServiceClient) UpdateDependencies added in v0.9.0

func (*PROTORPC_KclvmServiceClient) ValidateCode

type ParseFile_Args added in v0.7.3

type ParseFile_Args struct {

	// Path of the file to be parsed.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// Source code to be parsed.
	Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// External packages path.
	ExternalPkgs []*ExternalPkg `protobuf:"bytes,3,rep,name=external_pkgs,json=externalPkgs,proto3" json:"external_pkgs,omitempty"`
	// contains filtered or unexported fields
}

Message for parse file request arguments.

func (*ParseFile_Args) Descriptor deprecated added in v0.7.3

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

Deprecated: Use ParseFile_Args.ProtoReflect.Descriptor instead.

func (*ParseFile_Args) GetExternalPkgs added in v0.7.3

func (x *ParseFile_Args) GetExternalPkgs() []*ExternalPkg

func (*ParseFile_Args) GetPath added in v0.7.3

func (x *ParseFile_Args) GetPath() string

func (*ParseFile_Args) GetSource added in v0.7.3

func (x *ParseFile_Args) GetSource() string

func (*ParseFile_Args) ProtoMessage added in v0.7.3

func (*ParseFile_Args) ProtoMessage()

func (*ParseFile_Args) ProtoReflect added in v0.7.3

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

func (*ParseFile_Args) Reset added in v0.7.3

func (x *ParseFile_Args) Reset()

func (*ParseFile_Args) String added in v0.7.3

func (x *ParseFile_Args) String() string

type ParseFile_Result added in v0.7.3

type ParseFile_Result struct {

	// Abstract Syntax Tree (AST) in JSON format.
	AstJson string `protobuf:"bytes,1,opt,name=ast_json,json=astJson,proto3" json:"ast_json,omitempty"`
	// File dependency paths.
	Deps []string `protobuf:"bytes,2,rep,name=deps,proto3" json:"deps,omitempty"`
	// List of parse errors.
	Errors []*Error `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

Message for parse file response.

func (*ParseFile_Result) Descriptor deprecated added in v0.7.3

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

Deprecated: Use ParseFile_Result.ProtoReflect.Descriptor instead.

func (*ParseFile_Result) GetAstJson added in v0.7.3

func (x *ParseFile_Result) GetAstJson() string

func (*ParseFile_Result) GetDeps added in v0.7.3

func (x *ParseFile_Result) GetDeps() []string

func (*ParseFile_Result) GetErrors added in v0.7.3

func (x *ParseFile_Result) GetErrors() []*Error

func (*ParseFile_Result) ProtoMessage added in v0.7.3

func (*ParseFile_Result) ProtoMessage()

func (*ParseFile_Result) ProtoReflect added in v0.7.3

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

func (*ParseFile_Result) Reset added in v0.7.3

func (x *ParseFile_Result) Reset()

func (*ParseFile_Result) String added in v0.7.3

func (x *ParseFile_Result) String() string

type ParseProgram_Args added in v0.7.3

type ParseProgram_Args struct {

	// Paths of the program files to be parsed.
	Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
	// Source codes to be parsed.
	Sources []string `protobuf:"bytes,2,rep,name=sources,proto3" json:"sources,omitempty"`
	// External packages path.
	ExternalPkgs []*ExternalPkg `protobuf:"bytes,3,rep,name=external_pkgs,json=externalPkgs,proto3" json:"external_pkgs,omitempty"`
	// contains filtered or unexported fields
}

Message for parse program request arguments.

func (*ParseProgram_Args) Descriptor deprecated added in v0.7.3

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

Deprecated: Use ParseProgram_Args.ProtoReflect.Descriptor instead.

func (*ParseProgram_Args) GetExternalPkgs added in v0.7.3

func (x *ParseProgram_Args) GetExternalPkgs() []*ExternalPkg

func (*ParseProgram_Args) GetPaths added in v0.7.3

func (x *ParseProgram_Args) GetPaths() []string

func (*ParseProgram_Args) GetSources added in v0.7.3

func (x *ParseProgram_Args) GetSources() []string

func (*ParseProgram_Args) ProtoMessage added in v0.7.3

func (*ParseProgram_Args) ProtoMessage()

func (*ParseProgram_Args) ProtoReflect added in v0.7.3

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

func (*ParseProgram_Args) Reset added in v0.7.3

func (x *ParseProgram_Args) Reset()

func (*ParseProgram_Args) String added in v0.7.3

func (x *ParseProgram_Args) String() string

type ParseProgram_Result added in v0.7.3

type ParseProgram_Result struct {

	// Abstract Syntax Tree (AST) in JSON format.
	AstJson string `protobuf:"bytes,1,opt,name=ast_json,json=astJson,proto3" json:"ast_json,omitempty"`
	// Returns the files in the order they should be compiled.
	Paths []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"`
	// List of parse errors.
	Errors []*Error `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

Message for parse program response.

func (*ParseProgram_Result) Descriptor deprecated added in v0.7.3

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

Deprecated: Use ParseProgram_Result.ProtoReflect.Descriptor instead.

func (*ParseProgram_Result) GetAstJson added in v0.7.3

func (x *ParseProgram_Result) GetAstJson() string

func (*ParseProgram_Result) GetErrors added in v0.7.3

func (x *ParseProgram_Result) GetErrors() []*Error

func (*ParseProgram_Result) GetPaths added in v0.7.3

func (x *ParseProgram_Result) GetPaths() []string

func (*ParseProgram_Result) ProtoMessage added in v0.7.3

func (*ParseProgram_Result) ProtoMessage()

func (*ParseProgram_Result) ProtoReflect added in v0.7.3

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

func (*ParseProgram_Result) Reset added in v0.7.3

func (x *ParseProgram_Result) Reset()

func (*ParseProgram_Result) String added in v0.7.3

func (x *ParseProgram_Result) String() string

type Ping_Args

type Ping_Args struct {

	// Value to be sent in the ping request.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Message for ping request arguments.

func (*Ping_Args) Descriptor deprecated

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

Deprecated: Use Ping_Args.ProtoReflect.Descriptor instead.

func (*Ping_Args) GetValue

func (x *Ping_Args) GetValue() string

func (*Ping_Args) ProtoMessage

func (*Ping_Args) ProtoMessage()

func (*Ping_Args) ProtoReflect

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

func (*Ping_Args) Reset

func (x *Ping_Args) Reset()

func (*Ping_Args) String

func (x *Ping_Args) String() string

type Ping_Result

type Ping_Result struct {

	// Value received in the ping response.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Message for ping response.

func (*Ping_Result) Descriptor deprecated

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

Deprecated: Use Ping_Result.ProtoReflect.Descriptor instead.

func (*Ping_Result) GetValue

func (x *Ping_Result) GetValue() string

func (*Ping_Result) ProtoMessage

func (*Ping_Result) ProtoMessage()

func (*Ping_Result) ProtoReflect

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

func (*Ping_Result) Reset

func (x *Ping_Result) Reset()

func (*Ping_Result) String

func (x *Ping_Result) String() string

type Position

type Position struct {

	// Line number.
	Line int64 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"`
	// Column number.
	Column int64 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"`
	// Filename the position refers to.
	Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"`
	// contains filtered or unexported fields
}

Message representing a position in the source code.

func (*Position) Descriptor deprecated

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

Deprecated: Use Position.ProtoReflect.Descriptor instead.

func (*Position) GetColumn

func (x *Position) GetColumn() int64

func (*Position) GetFilename

func (x *Position) GetFilename() string

func (*Position) GetLine

func (x *Position) GetLine() int64

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) ProtoReflect

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

func (*Position) Reset

func (x *Position) Reset()

func (*Position) String

func (x *Position) String() string

type RenameCode_Args added in v0.7.0

type RenameCode_Args struct {

	// File path to the package root.
	PackageRoot string `protobuf:"bytes,1,opt,name=package_root,json=packageRoot,proto3" json:"package_root,omitempty"`
	// Path to the target symbol to be renamed.
	SymbolPath string `protobuf:"bytes,2,opt,name=symbol_path,json=symbolPath,proto3" json:"symbol_path,omitempty"`
	// Map of source code with filename as key and code as value.
	SourceCodes map[string]string `` /* 182-byte string literal not displayed */
	// New name of the symbol.
	NewName string `protobuf:"bytes,4,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
	// contains filtered or unexported fields
}

Message for rename code request arguments.

func (*RenameCode_Args) Descriptor deprecated added in v0.7.0

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

Deprecated: Use RenameCode_Args.ProtoReflect.Descriptor instead.

func (*RenameCode_Args) GetNewName added in v0.7.0

func (x *RenameCode_Args) GetNewName() string

func (*RenameCode_Args) GetPackageRoot added in v0.7.0

func (x *RenameCode_Args) GetPackageRoot() string

func (*RenameCode_Args) GetSourceCodes added in v0.7.0

func (x *RenameCode_Args) GetSourceCodes() map[string]string

func (*RenameCode_Args) GetSymbolPath added in v0.7.0

func (x *RenameCode_Args) GetSymbolPath() string

func (*RenameCode_Args) ProtoMessage added in v0.7.0

func (*RenameCode_Args) ProtoMessage()

func (*RenameCode_Args) ProtoReflect added in v0.7.0

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

func (*RenameCode_Args) Reset added in v0.7.0

func (x *RenameCode_Args) Reset()

func (*RenameCode_Args) String added in v0.7.0

func (x *RenameCode_Args) String() string

type RenameCode_Result added in v0.7.0

type RenameCode_Result struct {

	// Map of changed code with filename as key and modified code as value.
	ChangedCodes map[string]string `` /* 185-byte string literal not displayed */
	// contains filtered or unexported fields
}

Message for rename code response.

func (*RenameCode_Result) Descriptor deprecated added in v0.7.0

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

Deprecated: Use RenameCode_Result.ProtoReflect.Descriptor instead.

func (*RenameCode_Result) GetChangedCodes added in v0.7.0

func (x *RenameCode_Result) GetChangedCodes() map[string]string

func (*RenameCode_Result) ProtoMessage added in v0.7.0

func (*RenameCode_Result) ProtoMessage()

func (*RenameCode_Result) ProtoReflect added in v0.7.0

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

func (*RenameCode_Result) Reset added in v0.7.0

func (x *RenameCode_Result) Reset()

func (*RenameCode_Result) String added in v0.7.0

func (x *RenameCode_Result) String() string

type Rename_Args added in v0.7.0

type Rename_Args struct {

	// File path to the package root.
	PackageRoot string `protobuf:"bytes,1,opt,name=package_root,json=packageRoot,proto3" json:"package_root,omitempty"`
	// Path to the target symbol to be renamed.
	SymbolPath string `protobuf:"bytes,2,opt,name=symbol_path,json=symbolPath,proto3" json:"symbol_path,omitempty"`
	// Paths to the source code files.
	FilePaths []string `protobuf:"bytes,3,rep,name=file_paths,json=filePaths,proto3" json:"file_paths,omitempty"`
	// New name of the symbol.
	NewName string `protobuf:"bytes,4,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
	// contains filtered or unexported fields
}

Message for rename request arguments.

func (*Rename_Args) Descriptor deprecated added in v0.7.0

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

Deprecated: Use Rename_Args.ProtoReflect.Descriptor instead.

func (*Rename_Args) GetFilePaths added in v0.7.0

func (x *Rename_Args) GetFilePaths() []string

func (*Rename_Args) GetNewName added in v0.7.0

func (x *Rename_Args) GetNewName() string

func (*Rename_Args) GetPackageRoot added in v0.7.0

func (x *Rename_Args) GetPackageRoot() string

func (*Rename_Args) GetSymbolPath added in v0.7.0

func (x *Rename_Args) GetSymbolPath() string

func (*Rename_Args) ProtoMessage added in v0.7.0

func (*Rename_Args) ProtoMessage()

func (*Rename_Args) ProtoReflect added in v0.7.0

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

func (*Rename_Args) Reset added in v0.7.0

func (x *Rename_Args) Reset()

func (*Rename_Args) String added in v0.7.0

func (x *Rename_Args) String() string

type Rename_Result added in v0.7.0

type Rename_Result struct {

	// List of file paths that got changed.
	ChangedFiles []string `protobuf:"bytes,1,rep,name=changed_files,json=changedFiles,proto3" json:"changed_files,omitempty"`
	// contains filtered or unexported fields
}

Message for rename response.

func (*Rename_Result) Descriptor deprecated added in v0.7.0

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

Deprecated: Use Rename_Result.ProtoReflect.Descriptor instead.

func (*Rename_Result) GetChangedFiles added in v0.7.0

func (x *Rename_Result) GetChangedFiles() []string

func (*Rename_Result) ProtoMessage added in v0.7.0

func (*Rename_Result) ProtoMessage()

func (*Rename_Result) ProtoReflect added in v0.7.0

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

func (*Rename_Result) Reset added in v0.7.0

func (x *Rename_Result) Reset()

func (*Rename_Result) String added in v0.7.0

func (x *Rename_Result) String() string

type Scope added in v0.7.5

type Scope struct {

	// Type of the scope.
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	// Parent scope.
	Parent *ScopeIndex `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
	// Owner of the scope.
	Owner *SymbolIndex `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	// Children of the scope.
	Children []*ScopeIndex `protobuf:"bytes,4,rep,name=children,proto3" json:"children,omitempty"`
	// Definitions in the scope.
	Defs []*SymbolIndex `protobuf:"bytes,5,rep,name=defs,proto3" json:"defs,omitempty"`
	// contains filtered or unexported fields
}

Message representing a scope in KCL.

func (*Scope) Descriptor deprecated added in v0.7.5

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

Deprecated: Use Scope.ProtoReflect.Descriptor instead.

func (*Scope) GetChildren added in v0.7.5

func (x *Scope) GetChildren() []*ScopeIndex

func (*Scope) GetDefs added in v0.7.5

func (x *Scope) GetDefs() []*SymbolIndex

func (*Scope) GetKind added in v0.7.5

func (x *Scope) GetKind() string

func (*Scope) GetOwner added in v0.7.5

func (x *Scope) GetOwner() *SymbolIndex

func (*Scope) GetParent added in v0.7.5

func (x *Scope) GetParent() *ScopeIndex

func (*Scope) ProtoMessage added in v0.7.5

func (*Scope) ProtoMessage()

func (*Scope) ProtoReflect added in v0.7.5

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

func (*Scope) Reset added in v0.7.5

func (x *Scope) Reset()

func (*Scope) String added in v0.7.5

func (x *Scope) String() string

type ScopeIndex added in v0.7.5

type ScopeIndex struct {

	// Index identifier.
	I uint64 `protobuf:"varint,1,opt,name=i,proto3" json:"i,omitempty"`
	// Global identifier.
	G uint64 `protobuf:"varint,2,opt,name=g,proto3" json:"g,omitempty"`
	// Type of the scope.
	Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

Message representing a scope index.

func (*ScopeIndex) Descriptor deprecated added in v0.7.5

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

Deprecated: Use ScopeIndex.ProtoReflect.Descriptor instead.

func (*ScopeIndex) GetG added in v0.7.5

func (x *ScopeIndex) GetG() uint64

func (*ScopeIndex) GetI added in v0.7.5

func (x *ScopeIndex) GetI() uint64

func (*ScopeIndex) GetKind added in v0.7.5

func (x *ScopeIndex) GetKind() string

func (*ScopeIndex) ProtoMessage added in v0.7.5

func (*ScopeIndex) ProtoMessage()

func (*ScopeIndex) ProtoReflect added in v0.7.5

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

func (*ScopeIndex) Reset added in v0.7.5

func (x *ScopeIndex) Reset()

func (*ScopeIndex) String added in v0.7.5

func (x *ScopeIndex) String() string

type Symbol added in v0.7.5

type Symbol struct {

	// Type of the symbol.
	Ty *KclType `protobuf:"bytes,1,opt,name=ty,proto3" json:"ty,omitempty"`
	// Name of the symbol.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Owner of the symbol.
	Owner *SymbolIndex `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	// Definition of the symbol.
	Def *SymbolIndex `protobuf:"bytes,4,opt,name=def,proto3" json:"def,omitempty"`
	// Attributes of the symbol.
	Attrs []*SymbolIndex `protobuf:"bytes,5,rep,name=attrs,proto3" json:"attrs,omitempty"`
	// Flag indicating if the symbol is global.
	IsGlobal bool `protobuf:"varint,6,opt,name=is_global,json=isGlobal,proto3" json:"is_global,omitempty"`
	// contains filtered or unexported fields
}

Message representing a symbol in KCL.

func (*Symbol) Descriptor deprecated added in v0.7.5

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

Deprecated: Use Symbol.ProtoReflect.Descriptor instead.

func (*Symbol) GetAttrs added in v0.7.5

func (x *Symbol) GetAttrs() []*SymbolIndex

func (*Symbol) GetDef added in v0.7.5

func (x *Symbol) GetDef() *SymbolIndex

func (*Symbol) GetIsGlobal added in v0.7.5

func (x *Symbol) GetIsGlobal() bool

func (*Symbol) GetName added in v0.7.5

func (x *Symbol) GetName() string

func (*Symbol) GetOwner added in v0.7.5

func (x *Symbol) GetOwner() *SymbolIndex

func (*Symbol) GetTy added in v0.7.5

func (x *Symbol) GetTy() *KclType

func (*Symbol) ProtoMessage added in v0.7.5

func (*Symbol) ProtoMessage()

func (*Symbol) ProtoReflect added in v0.7.5

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

func (*Symbol) Reset added in v0.7.5

func (x *Symbol) Reset()

func (*Symbol) String added in v0.7.5

func (x *Symbol) String() string

type SymbolIndex added in v0.7.5

type SymbolIndex struct {

	// Index identifier.
	I uint64 `protobuf:"varint,1,opt,name=i,proto3" json:"i,omitempty"`
	// Global identifier.
	G uint64 `protobuf:"varint,2,opt,name=g,proto3" json:"g,omitempty"`
	// Type of the symbol or scope.
	Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

Message representing a symbol index.

func (*SymbolIndex) Descriptor deprecated added in v0.7.5

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

Deprecated: Use SymbolIndex.ProtoReflect.Descriptor instead.

func (*SymbolIndex) GetG added in v0.7.5

func (x *SymbolIndex) GetG() uint64

func (*SymbolIndex) GetI added in v0.7.5

func (x *SymbolIndex) GetI() uint64

func (*SymbolIndex) GetKind added in v0.7.5

func (x *SymbolIndex) GetKind() string

func (*SymbolIndex) ProtoMessage added in v0.7.5

func (*SymbolIndex) ProtoMessage()

func (*SymbolIndex) ProtoReflect added in v0.7.5

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

func (*SymbolIndex) Reset added in v0.7.5

func (x *SymbolIndex) Reset()

func (*SymbolIndex) String added in v0.7.5

func (x *SymbolIndex) String() string

type TestCaseInfo added in v0.7.0

type TestCaseInfo struct {

	// Name of the test case.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Error message if any.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// Duration of the test case in microseconds.
	Duration uint64 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"`
	// Log message from the test case.
	LogMessage string `protobuf:"bytes,4,opt,name=log_message,json=logMessage,proto3" json:"log_message,omitempty"`
	// contains filtered or unexported fields
}

Message representing information about a single test case.

func (*TestCaseInfo) Descriptor deprecated added in v0.7.0

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

Deprecated: Use TestCaseInfo.ProtoReflect.Descriptor instead.

func (*TestCaseInfo) GetDuration added in v0.7.0

func (x *TestCaseInfo) GetDuration() uint64

func (*TestCaseInfo) GetError added in v0.7.0

func (x *TestCaseInfo) GetError() string

func (*TestCaseInfo) GetLogMessage added in v0.7.0

func (x *TestCaseInfo) GetLogMessage() string

func (*TestCaseInfo) GetName added in v0.7.0

func (x *TestCaseInfo) GetName() string

func (*TestCaseInfo) ProtoMessage added in v0.7.0

func (*TestCaseInfo) ProtoMessage()

func (*TestCaseInfo) ProtoReflect added in v0.7.0

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

func (*TestCaseInfo) Reset added in v0.7.0

func (x *TestCaseInfo) Reset()

func (*TestCaseInfo) String added in v0.7.0

func (x *TestCaseInfo) String() string

type Test_Args added in v0.7.0

type Test_Args struct {

	// Execution program arguments.
	ExecArgs *ExecProgram_Args `protobuf:"bytes,1,opt,name=exec_args,json=execArgs,proto3" json:"exec_args,omitempty"`
	// List of KCL package paths to be tested.
	PkgList []string `protobuf:"bytes,2,rep,name=pkg_list,json=pkgList,proto3" json:"pkg_list,omitempty"`
	// Regular expression for filtering tests to run.
	RunRegexp string `protobuf:"bytes,3,opt,name=run_regexp,json=runRegexp,proto3" json:"run_regexp,omitempty"`
	// Flag to stop the test run on the first failure.
	FailFast bool `protobuf:"varint,4,opt,name=fail_fast,json=failFast,proto3" json:"fail_fast,omitempty"`
	// contains filtered or unexported fields
}

Message for test request arguments.

func (*Test_Args) Descriptor deprecated added in v0.7.0

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

Deprecated: Use Test_Args.ProtoReflect.Descriptor instead.

func (*Test_Args) GetExecArgs added in v0.7.0

func (x *Test_Args) GetExecArgs() *ExecProgram_Args

func (*Test_Args) GetFailFast added in v0.7.0

func (x *Test_Args) GetFailFast() bool

func (*Test_Args) GetPkgList added in v0.7.0

func (x *Test_Args) GetPkgList() []string

func (*Test_Args) GetRunRegexp added in v0.7.0

func (x *Test_Args) GetRunRegexp() string

func (*Test_Args) ProtoMessage added in v0.7.0

func (*Test_Args) ProtoMessage()

func (*Test_Args) ProtoReflect added in v0.7.0

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

func (*Test_Args) Reset added in v0.7.0

func (x *Test_Args) Reset()

func (*Test_Args) String added in v0.7.0

func (x *Test_Args) String() string

type Test_Result added in v0.7.0

type Test_Result struct {

	// List of test case information.
	Info []*TestCaseInfo `protobuf:"bytes,2,rep,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

Message for test response.

func (*Test_Result) Descriptor deprecated added in v0.7.0

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

Deprecated: Use Test_Result.ProtoReflect.Descriptor instead.

func (*Test_Result) GetInfo added in v0.7.0

func (x *Test_Result) GetInfo() []*TestCaseInfo

func (*Test_Result) ProtoMessage added in v0.7.0

func (*Test_Result) ProtoMessage()

func (*Test_Result) ProtoReflect added in v0.7.0

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

func (*Test_Result) Reset added in v0.7.0

func (x *Test_Result) Reset()

func (*Test_Result) String added in v0.7.0

func (x *Test_Result) String() string

type UnimplementedBuiltinServiceServer

type UnimplementedBuiltinServiceServer struct {
}

UnimplementedBuiltinServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedBuiltinServiceServer) ListMethod

func (*UnimplementedBuiltinServiceServer) Ping

type UnimplementedKclvmServiceServer

type UnimplementedKclvmServiceServer struct {
}

UnimplementedKclvmServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedKclvmServiceServer) BuildProgram added in v0.8.0

Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.

func (*UnimplementedKclvmServiceServer) ExecArtifact added in v0.8.0

Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.

func (*UnimplementedKclvmServiceServer) ExecProgram

func (*UnimplementedKclvmServiceServer) FormatCode

func (*UnimplementedKclvmServiceServer) FormatPath

func (*UnimplementedKclvmServiceServer) GetSchemaTypeMapping

func (*UnimplementedKclvmServiceServer) GetVersion added in v0.9.2

func (*UnimplementedKclvmServiceServer) LintPath

func (*UnimplementedKclvmServiceServer) ListDepFiles

func (*UnimplementedKclvmServiceServer) ListOptions added in v0.8.1

func (*UnimplementedKclvmServiceServer) ListVariables added in v0.8.4

func (*UnimplementedKclvmServiceServer) LoadPackage added in v0.7.5

func (*UnimplementedKclvmServiceServer) LoadSettingsFiles

func (*UnimplementedKclvmServiceServer) OverrideFile

func (*UnimplementedKclvmServiceServer) ParseFile added in v0.7.3

func (*UnimplementedKclvmServiceServer) ParseProgram added in v0.7.3

func (*UnimplementedKclvmServiceServer) Ping

func (*UnimplementedKclvmServiceServer) Rename added in v0.7.0

func (*UnimplementedKclvmServiceServer) RenameCode added in v0.7.0

func (*UnimplementedKclvmServiceServer) Test added in v0.7.0

func (*UnimplementedKclvmServiceServer) UpdateDependencies added in v0.9.0

func (*UnimplementedKclvmServiceServer) ValidateCode

type UpdateDependencies_Args added in v0.9.0

type UpdateDependencies_Args struct {

	// Path to the manifest file.
	ManifestPath string `protobuf:"bytes,1,opt,name=manifest_path,json=manifestPath,proto3" json:"manifest_path,omitempty"`
	// Flag to vendor dependencies locally.
	Vendor bool `protobuf:"varint,2,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// contains filtered or unexported fields
}

Message for update dependencies request arguments.

func (*UpdateDependencies_Args) Descriptor deprecated added in v0.9.0

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

Deprecated: Use UpdateDependencies_Args.ProtoReflect.Descriptor instead.

func (*UpdateDependencies_Args) GetManifestPath added in v0.9.0

func (x *UpdateDependencies_Args) GetManifestPath() string

func (*UpdateDependencies_Args) GetVendor added in v0.9.0

func (x *UpdateDependencies_Args) GetVendor() bool

func (*UpdateDependencies_Args) ProtoMessage added in v0.9.0

func (*UpdateDependencies_Args) ProtoMessage()

func (*UpdateDependencies_Args) ProtoReflect added in v0.9.0

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

func (*UpdateDependencies_Args) Reset added in v0.9.0

func (x *UpdateDependencies_Args) Reset()

func (*UpdateDependencies_Args) String added in v0.9.0

func (x *UpdateDependencies_Args) String() string

type UpdateDependencies_Result added in v0.9.0

type UpdateDependencies_Result struct {

	// List of external packages updated.
	ExternalPkgs []*ExternalPkg `protobuf:"bytes,3,rep,name=external_pkgs,json=externalPkgs,proto3" json:"external_pkgs,omitempty"`
	// contains filtered or unexported fields
}

Message for update dependencies response.

func (*UpdateDependencies_Result) Descriptor deprecated added in v0.9.0

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

Deprecated: Use UpdateDependencies_Result.ProtoReflect.Descriptor instead.

func (*UpdateDependencies_Result) GetExternalPkgs added in v0.9.0

func (x *UpdateDependencies_Result) GetExternalPkgs() []*ExternalPkg

func (*UpdateDependencies_Result) ProtoMessage added in v0.9.0

func (*UpdateDependencies_Result) ProtoMessage()

func (*UpdateDependencies_Result) ProtoReflect added in v0.9.0

func (*UpdateDependencies_Result) Reset added in v0.9.0

func (x *UpdateDependencies_Result) Reset()

func (*UpdateDependencies_Result) String added in v0.9.0

func (x *UpdateDependencies_Result) String() string

type ValidateCode_Args

type ValidateCode_Args struct {

	// Path to the data file.
	Datafile string `protobuf:"bytes,1,opt,name=datafile,proto3" json:"datafile,omitempty"`
	// Data content.
	Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// Path to the code file.
	File string `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"`
	// Source code content.
	Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"`
	// Name of the schema.
	Schema string `protobuf:"bytes,5,opt,name=schema,proto3" json:"schema,omitempty"`
	// Name of the attribute.
	AttributeName string `protobuf:"bytes,6,opt,name=attribute_name,json=attributeName,proto3" json:"attribute_name,omitempty"`
	// Format of the validation (e.g., "json", "yaml").
	Format string `protobuf:"bytes,7,opt,name=format,proto3" json:"format,omitempty"`
	// contains filtered or unexported fields
}

Message for validate code request arguments.

func (*ValidateCode_Args) Descriptor deprecated

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

Deprecated: Use ValidateCode_Args.ProtoReflect.Descriptor instead.

func (*ValidateCode_Args) GetAttributeName

func (x *ValidateCode_Args) GetAttributeName() string

func (*ValidateCode_Args) GetCode

func (x *ValidateCode_Args) GetCode() string

func (*ValidateCode_Args) GetData

func (x *ValidateCode_Args) GetData() string

func (*ValidateCode_Args) GetDatafile added in v0.8.0

func (x *ValidateCode_Args) GetDatafile() string

func (*ValidateCode_Args) GetFile added in v0.7.0

func (x *ValidateCode_Args) GetFile() string

func (*ValidateCode_Args) GetFormat

func (x *ValidateCode_Args) GetFormat() string

func (*ValidateCode_Args) GetSchema

func (x *ValidateCode_Args) GetSchema() string

func (*ValidateCode_Args) ProtoMessage

func (*ValidateCode_Args) ProtoMessage()

func (*ValidateCode_Args) ProtoReflect

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

func (*ValidateCode_Args) Reset

func (x *ValidateCode_Args) Reset()

func (*ValidateCode_Args) String

func (x *ValidateCode_Args) String() string

type ValidateCode_Result

type ValidateCode_Result struct {

	// Flag indicating if validation was successful.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// Error message from validation.
	ErrMessage string `protobuf:"bytes,2,opt,name=err_message,json=errMessage,proto3" json:"err_message,omitempty"`
	// contains filtered or unexported fields
}

Message for validate code response.

func (*ValidateCode_Result) Descriptor deprecated

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

Deprecated: Use ValidateCode_Result.ProtoReflect.Descriptor instead.

func (*ValidateCode_Result) GetErrMessage

func (x *ValidateCode_Result) GetErrMessage() string

func (*ValidateCode_Result) GetSuccess

func (x *ValidateCode_Result) GetSuccess() bool

func (*ValidateCode_Result) ProtoMessage

func (*ValidateCode_Result) ProtoMessage()

func (*ValidateCode_Result) ProtoReflect

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

func (*ValidateCode_Result) Reset

func (x *ValidateCode_Result) Reset()

func (*ValidateCode_Result) String

func (x *ValidateCode_Result) String() string

type Variable added in v0.8.4

type Variable struct {

	// Value of the variable.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// Type name of the variable.
	TypeName string `protobuf:"bytes,2,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
	// Operation symbol associated with the variable.
	OpSym string `protobuf:"bytes,3,opt,name=op_sym,json=opSym,proto3" json:"op_sym,omitempty"`
	// List items if the variable is a list.
	ListItems []*Variable `protobuf:"bytes,4,rep,name=list_items,json=listItems,proto3" json:"list_items,omitempty"`
	// Dictionary entries if the variable is a dictionary.
	DictEntries []*MapEntry `protobuf:"bytes,5,rep,name=dict_entries,json=dictEntries,proto3" json:"dict_entries,omitempty"`
	// contains filtered or unexported fields
}

Message representing a variable.

func (*Variable) Descriptor deprecated added in v0.8.4

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

Deprecated: Use Variable.ProtoReflect.Descriptor instead.

func (*Variable) GetDictEntries added in v0.9.0

func (x *Variable) GetDictEntries() []*MapEntry

func (*Variable) GetListItems added in v0.9.0

func (x *Variable) GetListItems() []*Variable

func (*Variable) GetOpSym added in v0.8.7

func (x *Variable) GetOpSym() string

func (*Variable) GetTypeName added in v0.8.7

func (x *Variable) GetTypeName() string

func (*Variable) GetValue added in v0.8.4

func (x *Variable) GetValue() string

func (*Variable) ProtoMessage added in v0.8.4

func (*Variable) ProtoMessage()

func (*Variable) ProtoReflect added in v0.8.4

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

func (*Variable) Reset added in v0.8.4

func (x *Variable) Reset()

func (*Variable) String added in v0.8.4

func (x *Variable) String() string

type VariableList added in v0.9.0

type VariableList struct {

	// List of variables.
	Variables []*Variable `protobuf:"bytes,1,rep,name=variables,proto3" json:"variables,omitempty"`
	// contains filtered or unexported fields
}

Message representing a list of variables.

func (*VariableList) Descriptor deprecated added in v0.9.0

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

Deprecated: Use VariableList.ProtoReflect.Descriptor instead.

func (*VariableList) GetVariables added in v0.9.0

func (x *VariableList) GetVariables() []*Variable

func (*VariableList) ProtoMessage added in v0.9.0

func (*VariableList) ProtoMessage()

func (*VariableList) ProtoReflect added in v0.9.0

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

func (*VariableList) Reset added in v0.9.0

func (x *VariableList) Reset()

func (*VariableList) String added in v0.9.0

func (x *VariableList) String() string

Jump to

Keyboard shortcuts

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