api

package
v0.10.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Argument

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

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

Deprecated: Use Argument.ProtoReflect.Descriptor instead.

func (*Argument) GetName

func (x *Argument) GetName() string

func (*Argument) GetValue

func (x *Argument) GetValue() string

func (*Argument) ProtoMessage

func (*Argument) ProtoMessage()

func (*Argument) ProtoReflect

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

func (*Argument) Reset

func (x *Argument) Reset()

func (*Argument) String

func (x *Argument) String() string

type BuildProgram_Args

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

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

Deprecated: Use BuildProgram_Args.ProtoReflect.Descriptor instead.

func (*BuildProgram_Args) GetExecArgs

func (x *BuildProgram_Args) GetExecArgs() *ExecProgram_Args

func (*BuildProgram_Args) GetOutput

func (x *BuildProgram_Args) GetOutput() string

func (*BuildProgram_Args) ProtoMessage

func (*BuildProgram_Args) ProtoMessage()

func (*BuildProgram_Args) ProtoReflect

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

func (*BuildProgram_Args) Reset

func (x *BuildProgram_Args) Reset()

func (*BuildProgram_Args) String

func (x *BuildProgram_Args) String() string

type BuildProgram_Result

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

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

Deprecated: Use BuildProgram_Result.ProtoReflect.Descriptor instead.

func (*BuildProgram_Result) GetPath

func (x *BuildProgram_Result) GetPath() string

func (*BuildProgram_Result) ProtoMessage

func (*BuildProgram_Result) ProtoMessage()

func (*BuildProgram_Result) ProtoReflect

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

func (*BuildProgram_Result) Reset

func (x *BuildProgram_Result) Reset()

func (*BuildProgram_Result) String

func (x *BuildProgram_Result) String() string

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

func (x *CliConfig) GetFastEval() bool

func (*CliConfig) GetFiles

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

func (*CliConfig) GetIncludeSchemaTypePath

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

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

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

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() string

func (*Error) GetLevel

func (x *Error) GetLevel() string

func (*Error) GetMessages

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

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type Example

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

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

Deprecated: Use Example.ProtoReflect.Descriptor instead.

func (*Example) GetDescription

func (x *Example) GetDescription() string

func (*Example) GetSummary

func (x *Example) GetSummary() string

func (*Example) GetValue

func (x *Example) GetValue() string

func (*Example) ProtoMessage

func (*Example) ProtoMessage()

func (*Example) ProtoReflect

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

func (*Example) Reset

func (x *Example) Reset()

func (*Example) String

func (x *Example) String() string

type ExecArtifact_Args

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

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

Deprecated: Use ExecArtifact_Args.ProtoReflect.Descriptor instead.

func (*ExecArtifact_Args) GetExecArgs

func (x *ExecArtifact_Args) GetExecArgs() *ExecProgram_Args

func (*ExecArtifact_Args) GetPath

func (x *ExecArtifact_Args) GetPath() string

func (*ExecArtifact_Args) ProtoMessage

func (*ExecArtifact_Args) ProtoMessage()

func (*ExecArtifact_Args) ProtoReflect

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

func (*ExecArtifact_Args) Reset

func (x *ExecArtifact_Args) Reset()

func (*ExecArtifact_Args) String

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

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

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

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

func (*ExecProgram_Args) GetPrintOverrideAst

func (x *ExecProgram_Args) GetPrintOverrideAst() bool

func (*ExecProgram_Args) GetShowHidden

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

func (x *ExecProgram_Result) GetErrMessage() string

func (*ExecProgram_Result) GetJsonResult

func (x *ExecProgram_Result) GetJsonResult() string

func (*ExecProgram_Result) GetLogMessage

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

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

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

Deprecated: Use ExternalPkg.ProtoReflect.Descriptor instead.

func (*ExternalPkg) GetPkgName

func (x *ExternalPkg) GetPkgName() string

func (*ExternalPkg) GetPkgPath

func (x *ExternalPkg) GetPkgPath() string

func (*ExternalPkg) ProtoMessage

func (*ExternalPkg) ProtoMessage()

func (*ExternalPkg) ProtoReflect

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

func (*ExternalPkg) Reset

func (x *ExternalPkg) Reset()

func (*ExternalPkg) String

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

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

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

Message for version request arguments. Empty message.

func (*GetVersion_Args) Descriptor deprecated

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

Deprecated: Use GetVersion_Args.ProtoReflect.Descriptor instead.

func (*GetVersion_Args) ProtoMessage

func (*GetVersion_Args) ProtoMessage()

func (*GetVersion_Args) ProtoReflect

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

func (*GetVersion_Args) Reset

func (x *GetVersion_Args) Reset()

func (*GetVersion_Args) String

func (x *GetVersion_Args) String() string

type GetVersion_Result

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

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

Deprecated: Use GetVersion_Result.ProtoReflect.Descriptor instead.

func (*GetVersion_Result) GetChecksum

func (x *GetVersion_Result) GetChecksum() string

func (*GetVersion_Result) GetGitSha

func (x *GetVersion_Result) GetGitSha() string

func (*GetVersion_Result) GetVersion

func (x *GetVersion_Result) GetVersion() string

func (*GetVersion_Result) GetVersionInfo

func (x *GetVersion_Result) GetVersionInfo() string

func (*GetVersion_Result) ProtoMessage

func (*GetVersion_Result) ProtoMessage()

func (*GetVersion_Result) ProtoReflect

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

func (*GetVersion_Result) Reset

func (x *GetVersion_Result) Reset()

func (*GetVersion_Result) String

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

func (x *KclType) GetBaseSchema() *KclType

func (*KclType) GetDecorators

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

func (*KclType) GetDefault

func (x *KclType) GetDefault() string

func (*KclType) GetDescription

func (x *KclType) GetDescription() string

func (*KclType) GetExamples

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

func (*KclType) GetFilename

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

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 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

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

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

Deprecated: Use ListOptions_Result.ProtoReflect.Descriptor instead.

func (*ListOptions_Result) GetOptions

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

func (*ListOptions_Result) ProtoMessage

func (*ListOptions_Result) ProtoMessage()

func (*ListOptions_Result) ProtoReflect

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

func (*ListOptions_Result) Reset

func (x *ListOptions_Result) Reset()

func (*ListOptions_Result) String

func (x *ListOptions_Result) String() string

type ListVariables_Args

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

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

Deprecated: Use ListVariables_Args.ProtoReflect.Descriptor instead.

func (*ListVariables_Args) GetFiles

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

func (*ListVariables_Args) GetOptions

func (x *ListVariables_Args) GetOptions() *ListVariables_Options

func (*ListVariables_Args) GetSpecs

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

func (*ListVariables_Args) ProtoMessage

func (*ListVariables_Args) ProtoMessage()

func (*ListVariables_Args) ProtoReflect

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

func (*ListVariables_Args) Reset

func (x *ListVariables_Args) Reset()

func (*ListVariables_Args) String

func (x *ListVariables_Args) String() string

type ListVariables_Options

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

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

Deprecated: Use ListVariables_Options.ProtoReflect.Descriptor instead.

func (*ListVariables_Options) GetMergeProgram

func (x *ListVariables_Options) GetMergeProgram() bool

func (*ListVariables_Options) ProtoMessage

func (*ListVariables_Options) ProtoMessage()

func (*ListVariables_Options) ProtoReflect

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

func (*ListVariables_Options) Reset

func (x *ListVariables_Options) Reset()

func (*ListVariables_Options) String

func (x *ListVariables_Options) String() string

type ListVariables_Result

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

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

Deprecated: Use ListVariables_Result.ProtoReflect.Descriptor instead.

func (*ListVariables_Result) GetParseErrors

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

func (*ListVariables_Result) GetUnsupportedCodes

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

func (*ListVariables_Result) GetVariables

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

func (*ListVariables_Result) ProtoMessage

func (*ListVariables_Result) ProtoMessage()

func (*ListVariables_Result) ProtoReflect

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

func (*ListVariables_Result) Reset

func (x *ListVariables_Result) Reset()

func (*ListVariables_Result) String

func (x *ListVariables_Result) String() string

type LoadPackage_Args

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

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

Deprecated: Use LoadPackage_Args.ProtoReflect.Descriptor instead.

func (*LoadPackage_Args) GetLoadBuiltin

func (x *LoadPackage_Args) GetLoadBuiltin() bool

func (*LoadPackage_Args) GetParseArgs

func (x *LoadPackage_Args) GetParseArgs() *ParseProgram_Args

func (*LoadPackage_Args) GetResolveAst

func (x *LoadPackage_Args) GetResolveAst() bool

func (*LoadPackage_Args) GetWithAstIndex

func (x *LoadPackage_Args) GetWithAstIndex() bool

func (*LoadPackage_Args) ProtoMessage

func (*LoadPackage_Args) ProtoMessage()

func (*LoadPackage_Args) ProtoReflect

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

func (*LoadPackage_Args) Reset

func (x *LoadPackage_Args) Reset()

func (*LoadPackage_Args) String

func (x *LoadPackage_Args) String() string

type LoadPackage_Result

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

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

Deprecated: Use LoadPackage_Result.ProtoReflect.Descriptor instead.

func (*LoadPackage_Result) GetFullyQualifiedNameMap

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

func (*LoadPackage_Result) GetNodeSymbolMap

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

func (*LoadPackage_Result) GetParseErrors

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

func (*LoadPackage_Result) GetPaths

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

func (*LoadPackage_Result) GetPkgScopeMap

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

func (*LoadPackage_Result) GetProgram

func (x *LoadPackage_Result) GetProgram() string

func (*LoadPackage_Result) GetScopes

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

func (*LoadPackage_Result) GetSymbolNodeMap

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

func (*LoadPackage_Result) GetSymbols

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

func (*LoadPackage_Result) GetTypeErrors

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

func (*LoadPackage_Result) ProtoMessage

func (*LoadPackage_Result) ProtoMessage()

func (*LoadPackage_Result) ProtoReflect

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

func (*LoadPackage_Result) Reset

func (x *LoadPackage_Result) Reset()

func (*LoadPackage_Result) String

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

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

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

Deprecated: Use MapEntry.ProtoReflect.Descriptor instead.

func (*MapEntry) GetKey

func (x *MapEntry) GetKey() string

func (*MapEntry) GetValue

func (x *MapEntry) GetValue() *Variable

func (*MapEntry) ProtoMessage

func (*MapEntry) ProtoMessage()

func (*MapEntry) ProtoReflect

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

func (*MapEntry) Reset

func (x *MapEntry) Reset()

func (*MapEntry) String

func (x *MapEntry) String() string

type Message

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

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetMsg

func (x *Message) GetMsg() string

func (*Message) GetPos

func (x *Message) GetPos() *Position

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type OptionHelp

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

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

Deprecated: Use OptionHelp.ProtoReflect.Descriptor instead.

func (*OptionHelp) GetDefaultValue

func (x *OptionHelp) GetDefaultValue() string

func (*OptionHelp) GetHelp

func (x *OptionHelp) GetHelp() string

func (*OptionHelp) GetName

func (x *OptionHelp) GetName() string

func (*OptionHelp) GetRequired

func (x *OptionHelp) GetRequired() bool

func (*OptionHelp) GetType

func (x *OptionHelp) GetType() string

func (*OptionHelp) ProtoMessage

func (*OptionHelp) ProtoMessage()

func (*OptionHelp) ProtoReflect

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

func (*OptionHelp) Reset

func (x *OptionHelp) Reset()

func (*OptionHelp) String

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

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 ParseFile_Args

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

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

Deprecated: Use ParseFile_Args.ProtoReflect.Descriptor instead.

func (*ParseFile_Args) GetExternalPkgs

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

func (*ParseFile_Args) GetPath

func (x *ParseFile_Args) GetPath() string

func (*ParseFile_Args) GetSource

func (x *ParseFile_Args) GetSource() string

func (*ParseFile_Args) ProtoMessage

func (*ParseFile_Args) ProtoMessage()

func (*ParseFile_Args) ProtoReflect

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

func (*ParseFile_Args) Reset

func (x *ParseFile_Args) Reset()

func (*ParseFile_Args) String

func (x *ParseFile_Args) String() string

type ParseFile_Result

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

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

Deprecated: Use ParseFile_Result.ProtoReflect.Descriptor instead.

func (*ParseFile_Result) GetAstJson

func (x *ParseFile_Result) GetAstJson() string

func (*ParseFile_Result) GetDeps

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

func (*ParseFile_Result) GetErrors

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

func (*ParseFile_Result) ProtoMessage

func (*ParseFile_Result) ProtoMessage()

func (*ParseFile_Result) ProtoReflect

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

func (*ParseFile_Result) Reset

func (x *ParseFile_Result) Reset()

func (*ParseFile_Result) String

func (x *ParseFile_Result) String() string

type ParseProgram_Args

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

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

Deprecated: Use ParseProgram_Args.ProtoReflect.Descriptor instead.

func (*ParseProgram_Args) GetExternalPkgs

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

func (*ParseProgram_Args) GetPaths

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

func (*ParseProgram_Args) GetSources

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

func (*ParseProgram_Args) ProtoMessage

func (*ParseProgram_Args) ProtoMessage()

func (*ParseProgram_Args) ProtoReflect

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

func (*ParseProgram_Args) Reset

func (x *ParseProgram_Args) Reset()

func (*ParseProgram_Args) String

func (x *ParseProgram_Args) String() string

type ParseProgram_Result

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

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

Deprecated: Use ParseProgram_Result.ProtoReflect.Descriptor instead.

func (*ParseProgram_Result) GetAstJson

func (x *ParseProgram_Result) GetAstJson() string

func (*ParseProgram_Result) GetErrors

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

func (*ParseProgram_Result) GetPaths

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

func (*ParseProgram_Result) ProtoMessage

func (*ParseProgram_Result) ProtoMessage()

func (*ParseProgram_Result) ProtoReflect

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

func (*ParseProgram_Result) Reset

func (x *ParseProgram_Result) Reset()

func (*ParseProgram_Result) String

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

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

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

Deprecated: Use RenameCode_Args.ProtoReflect.Descriptor instead.

func (*RenameCode_Args) GetNewName

func (x *RenameCode_Args) GetNewName() string

func (*RenameCode_Args) GetPackageRoot

func (x *RenameCode_Args) GetPackageRoot() string

func (*RenameCode_Args) GetSourceCodes

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

func (*RenameCode_Args) GetSymbolPath

func (x *RenameCode_Args) GetSymbolPath() string

func (*RenameCode_Args) ProtoMessage

func (*RenameCode_Args) ProtoMessage()

func (*RenameCode_Args) ProtoReflect

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

func (*RenameCode_Args) Reset

func (x *RenameCode_Args) Reset()

func (*RenameCode_Args) String

func (x *RenameCode_Args) String() string

type RenameCode_Result

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

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

Deprecated: Use RenameCode_Result.ProtoReflect.Descriptor instead.

func (*RenameCode_Result) GetChangedCodes

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

func (*RenameCode_Result) ProtoMessage

func (*RenameCode_Result) ProtoMessage()

func (*RenameCode_Result) ProtoReflect

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

func (*RenameCode_Result) Reset

func (x *RenameCode_Result) Reset()

func (*RenameCode_Result) String

func (x *RenameCode_Result) String() string

type Rename_Args

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

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

Deprecated: Use Rename_Args.ProtoReflect.Descriptor instead.

func (*Rename_Args) GetFilePaths

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

func (*Rename_Args) GetNewName

func (x *Rename_Args) GetNewName() string

func (*Rename_Args) GetPackageRoot

func (x *Rename_Args) GetPackageRoot() string

func (*Rename_Args) GetSymbolPath

func (x *Rename_Args) GetSymbolPath() string

func (*Rename_Args) ProtoMessage

func (*Rename_Args) ProtoMessage()

func (*Rename_Args) ProtoReflect

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

func (*Rename_Args) Reset

func (x *Rename_Args) Reset()

func (*Rename_Args) String

func (x *Rename_Args) String() string

type Rename_Result

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

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

Deprecated: Use Rename_Result.ProtoReflect.Descriptor instead.

func (*Rename_Result) GetChangedFiles

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

func (*Rename_Result) ProtoMessage

func (*Rename_Result) ProtoMessage()

func (*Rename_Result) ProtoReflect

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

func (*Rename_Result) Reset

func (x *Rename_Result) Reset()

func (*Rename_Result) String

func (x *Rename_Result) String() string

type Scope

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

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

Deprecated: Use Scope.ProtoReflect.Descriptor instead.

func (*Scope) GetChildren

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

func (*Scope) GetDefs

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

func (*Scope) GetKind

func (x *Scope) GetKind() string

func (*Scope) GetOwner

func (x *Scope) GetOwner() *SymbolIndex

func (*Scope) GetParent

func (x *Scope) GetParent() *ScopeIndex

func (*Scope) ProtoMessage

func (*Scope) ProtoMessage()

func (*Scope) ProtoReflect

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

func (*Scope) Reset

func (x *Scope) Reset()

func (*Scope) String

func (x *Scope) String() string

type ScopeIndex

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

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

Deprecated: Use ScopeIndex.ProtoReflect.Descriptor instead.

func (*ScopeIndex) GetG

func (x *ScopeIndex) GetG() uint64

func (*ScopeIndex) GetI

func (x *ScopeIndex) GetI() uint64

func (*ScopeIndex) GetKind

func (x *ScopeIndex) GetKind() string

func (*ScopeIndex) ProtoMessage

func (*ScopeIndex) ProtoMessage()

func (*ScopeIndex) ProtoReflect

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

func (*ScopeIndex) Reset

func (x *ScopeIndex) Reset()

func (*ScopeIndex) String

func (x *ScopeIndex) String() string

type ServiceClient

type ServiceClient interface {
	// Ping KclvmService, return the same value as the parameter
	Ping(in *Ping_Args) (out *Ping_Result, err error)
	// Execute KCL file with arguments and return the JSON/YAML result.
	ExecProgram(in *ExecProgram_Args) (out *ExecProgram_Result, err 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, err 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, err error)
	// Parse KCL single file to Module AST JSON string with import dependencies and parse errors.
	ParseFile(in *ParseFile_Args) (out *ParseFile_Result, err error)
	// Parse KCL program with entry files and return the AST JSON string.
	ParseProgram(in *ParseProgram_Args) (out *ParseProgram_Result, err error)
	// ListOptions provides users with the ability to parse KCL program and get all option information.
	ListOptions(in *ParseProgram_Args) (out *ListOptions_Result, err error)
	// ListVariables provides users with the ability to parse KCL program and get all variables by specs.
	ListVariables(in *ListVariables_Args) (out *ListVariables_Result, err error)
	// LoadPackage provides users with the ability to parse KCL program and semantic model information including symbols, types, definitions, etc.
	LoadPackage(in *LoadPackage_Args) (out *LoadPackage_Result, err error)
	// Format the code source.
	FormatCode(in *FormatCode_Args) (out *FormatCode_Result, err error)
	// Format KCL file or directory path contains KCL files and returns the changed file paths.
	FormatPath(in *FormatPath_Args) (out *FormatPath_Result, err error)
	// Lint files and return error messages including errors and warnings.
	LintPath(in *LintPath_Args) (out *LintPath_Result, err error)
	// Override KCL file with arguments. See [https://www.kcl-lang.io/docs/user_docs/guides/automation](https://www.kcl-lang.io/docs/user_docs/guides/automation) for more override spec guide.
	OverrideFile(in *OverrideFile_Args) (out *OverrideFile_Result, err error)
	// Get schema type mapping defined in the program.
	GetSchemaTypeMapping(in *GetSchemaTypeMapping_Args) (out *GetSchemaTypeMapping_Result, err error)
	// Validate code using schema and JSON/YAML data strings.
	ValidateCode(in *ValidateCode_Args) (out *ValidateCode_Result, err error)
	// List dependencies files of input paths.
	ListDepFiles(in *ListDepFiles_Args) (out *ListDepFiles_Result, err error)
	// Load the setting file config defined in `kcl.yaml`.
	LoadSettingsFiles(in *LoadSettingsFiles_Args) (out *LoadSettingsFiles_Result, err 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.
	Rename(in *Rename_Args) (out *Rename_Result, err 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.
	RenameCode(in *RenameCode_Args) (out *RenameCode_Result, err error)
	// Test KCL packages with test arguments.
	Test(in *Test_Args) (out *Test_Result, err error)
	// Download and update dependencies defined in the `kcl.mod` file and return the external package name and location list.
	UpdateDependencies(in *UpdateDependencies_Args) (out *UpdateDependencies_Result, err error)
	// GetVersion KclvmService, return the kclvm service version information
	GetVersion(in *GetVersion_Args) (out *GetVersion_Result, err error)
}

KCL service client interface.

type Symbol

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

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

Deprecated: Use Symbol.ProtoReflect.Descriptor instead.

func (*Symbol) GetAttrs

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

func (*Symbol) GetDef

func (x *Symbol) GetDef() *SymbolIndex

func (*Symbol) GetIsGlobal

func (x *Symbol) GetIsGlobal() bool

func (*Symbol) GetName

func (x *Symbol) GetName() string

func (*Symbol) GetOwner

func (x *Symbol) GetOwner() *SymbolIndex

func (*Symbol) GetTy

func (x *Symbol) GetTy() *KclType

func (*Symbol) ProtoMessage

func (*Symbol) ProtoMessage()

func (*Symbol) ProtoReflect

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

func (*Symbol) Reset

func (x *Symbol) Reset()

func (*Symbol) String

func (x *Symbol) String() string

type SymbolIndex

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

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

Deprecated: Use SymbolIndex.ProtoReflect.Descriptor instead.

func (*SymbolIndex) GetG

func (x *SymbolIndex) GetG() uint64

func (*SymbolIndex) GetI

func (x *SymbolIndex) GetI() uint64

func (*SymbolIndex) GetKind

func (x *SymbolIndex) GetKind() string

func (*SymbolIndex) ProtoMessage

func (*SymbolIndex) ProtoMessage()

func (*SymbolIndex) ProtoReflect

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

func (*SymbolIndex) Reset

func (x *SymbolIndex) Reset()

func (*SymbolIndex) String

func (x *SymbolIndex) String() string

type TestCaseInfo

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

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

Deprecated: Use TestCaseInfo.ProtoReflect.Descriptor instead.

func (*TestCaseInfo) GetDuration

func (x *TestCaseInfo) GetDuration() uint64

func (*TestCaseInfo) GetError

func (x *TestCaseInfo) GetError() string

func (*TestCaseInfo) GetLogMessage

func (x *TestCaseInfo) GetLogMessage() string

func (*TestCaseInfo) GetName

func (x *TestCaseInfo) GetName() string

func (*TestCaseInfo) ProtoMessage

func (*TestCaseInfo) ProtoMessage()

func (*TestCaseInfo) ProtoReflect

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

func (*TestCaseInfo) Reset

func (x *TestCaseInfo) Reset()

func (*TestCaseInfo) String

func (x *TestCaseInfo) String() string

type Test_Args

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

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

Deprecated: Use Test_Args.ProtoReflect.Descriptor instead.

func (*Test_Args) GetExecArgs

func (x *Test_Args) GetExecArgs() *ExecProgram_Args

func (*Test_Args) GetFailFast

func (x *Test_Args) GetFailFast() bool

func (*Test_Args) GetPkgList

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

func (*Test_Args) GetRunRegexp

func (x *Test_Args) GetRunRegexp() string

func (*Test_Args) ProtoMessage

func (*Test_Args) ProtoMessage()

func (*Test_Args) ProtoReflect

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

func (*Test_Args) Reset

func (x *Test_Args) Reset()

func (*Test_Args) String

func (x *Test_Args) String() string

type Test_Result

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

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

Deprecated: Use Test_Result.ProtoReflect.Descriptor instead.

func (*Test_Result) GetInfo

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

func (*Test_Result) ProtoMessage

func (*Test_Result) ProtoMessage()

func (*Test_Result) ProtoReflect

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

func (*Test_Result) Reset

func (x *Test_Result) Reset()

func (*Test_Result) String

func (x *Test_Result) String() string

type UpdateDependencies_Args

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

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

Deprecated: Use UpdateDependencies_Args.ProtoReflect.Descriptor instead.

func (*UpdateDependencies_Args) GetManifestPath

func (x *UpdateDependencies_Args) GetManifestPath() string

func (*UpdateDependencies_Args) GetVendor

func (x *UpdateDependencies_Args) GetVendor() bool

func (*UpdateDependencies_Args) ProtoMessage

func (*UpdateDependencies_Args) ProtoMessage()

func (*UpdateDependencies_Args) ProtoReflect

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

func (*UpdateDependencies_Args) Reset

func (x *UpdateDependencies_Args) Reset()

func (*UpdateDependencies_Args) String

func (x *UpdateDependencies_Args) String() string

type UpdateDependencies_Result

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

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

Deprecated: Use UpdateDependencies_Result.ProtoReflect.Descriptor instead.

func (*UpdateDependencies_Result) GetExternalPkgs

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

func (*UpdateDependencies_Result) ProtoMessage

func (*UpdateDependencies_Result) ProtoMessage()

func (*UpdateDependencies_Result) ProtoReflect

func (*UpdateDependencies_Result) Reset

func (x *UpdateDependencies_Result) Reset()

func (*UpdateDependencies_Result) String

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

func (x *ValidateCode_Args) GetDatafile() string

func (*ValidateCode_Args) GetFile

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

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

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

Deprecated: Use Variable.ProtoReflect.Descriptor instead.

func (*Variable) GetDictEntries

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

func (*Variable) GetListItems

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

func (*Variable) GetOpSym

func (x *Variable) GetOpSym() string

func (*Variable) GetTypeName

func (x *Variable) GetTypeName() string

func (*Variable) GetValue

func (x *Variable) GetValue() string

func (*Variable) ProtoMessage

func (*Variable) ProtoMessage()

func (*Variable) ProtoReflect

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

func (*Variable) Reset

func (x *Variable) Reset()

func (*Variable) String

func (x *Variable) String() string

type VariableList

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

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

Deprecated: Use VariableList.ProtoReflect.Descriptor instead.

func (*VariableList) GetVariables

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

func (*VariableList) ProtoMessage

func (*VariableList) ProtoMessage()

func (*VariableList) ProtoReflect

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

func (*VariableList) Reset

func (x *VariableList) Reset()

func (*VariableList) String

func (x *VariableList) String() string

Jump to

Keyboard shortcuts

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