parserv1

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParserService_Deserialize_FullMethodName = "/runme.parser.v1.ParserService/Deserialize"
	ParserService_Serialize_FullMethodName   = "/runme.parser.v1.ParserService/Serialize"
)

Variables

View Source
var (
	CellKind_name = map[int32]string{
		0: "CELL_KIND_UNSPECIFIED",
		1: "CELL_KIND_MARKUP",
		2: "CELL_KIND_CODE",
	}
	CellKind_value = map[string]int32{
		"CELL_KIND_UNSPECIFIED": 0,
		"CELL_KIND_MARKUP":      1,
		"CELL_KIND_CODE":        2,
	}
)

Enum value maps for CellKind.

View Source
var (
	RunmeIdentity_name = map[int32]string{
		0: "RUNME_IDENTITY_UNSPECIFIED",
		1: "RUNME_IDENTITY_ALL",
		2: "RUNME_IDENTITY_DOCUMENT",
		3: "RUNME_IDENTITY_CELL",
	}
	RunmeIdentity_value = map[string]int32{
		"RUNME_IDENTITY_UNSPECIFIED": 0,
		"RUNME_IDENTITY_ALL":         1,
		"RUNME_IDENTITY_DOCUMENT":    2,
		"RUNME_IDENTITY_CELL":        3,
	}
)

Enum value maps for RunmeIdentity.

View Source
var File_runme_parser_v1_parser_proto protoreflect.FileDescriptor
View Source
var ParserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "runme.parser.v1.ParserService",
	HandlerType: (*ParserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Deserialize",
			Handler:    _ParserService_Deserialize_Handler,
		},
		{
			MethodName: "Serialize",
			Handler:    _ParserService_Serialize_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "runme/parser/v1/parser.proto",
}

ParserService_ServiceDesc is the grpc.ServiceDesc for ParserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterParserServiceServer

func RegisterParserServiceServer(s grpc.ServiceRegistrar, srv ParserServiceServer)

Types

type Cell

type Cell struct {
	Kind       CellKind          `protobuf:"varint,1,opt,name=kind,proto3,enum=runme.parser.v1.CellKind" json:"kind,omitempty"`
	Value      string            `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	LanguageId string            `protobuf:"bytes,3,opt,name=language_id,json=languageId,proto3" json:"language_id,omitempty"`
	Metadata   map[string]string `` /* 157-byte string literal not displayed */
	TextRange  *TextRange        `protobuf:"bytes,5,opt,name=text_range,json=textRange,proto3" json:"text_range,omitempty"`
	// contains filtered or unexported fields
}

func (*Cell) Descriptor deprecated

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

Deprecated: Use Cell.ProtoReflect.Descriptor instead.

func (*Cell) GetKind

func (x *Cell) GetKind() CellKind

func (*Cell) GetLanguageId

func (x *Cell) GetLanguageId() string

func (*Cell) GetMetadata

func (x *Cell) GetMetadata() map[string]string

func (*Cell) GetTextRange added in v1.0.2

func (x *Cell) GetTextRange() *TextRange

func (*Cell) GetValue

func (x *Cell) GetValue() string

func (*Cell) ProtoMessage

func (*Cell) ProtoMessage()

func (*Cell) ProtoReflect

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

func (*Cell) Reset

func (x *Cell) Reset()

func (*Cell) String

func (x *Cell) String() string

type CellKind

type CellKind int32
const (
	CellKind_CELL_KIND_UNSPECIFIED CellKind = 0
	CellKind_CELL_KIND_MARKUP      CellKind = 1
	CellKind_CELL_KIND_CODE        CellKind = 2
)

func (CellKind) Descriptor

func (CellKind) Descriptor() protoreflect.EnumDescriptor

func (CellKind) Enum

func (x CellKind) Enum() *CellKind

func (CellKind) EnumDescriptor deprecated

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

Deprecated: Use CellKind.Descriptor instead.

func (CellKind) Number

func (x CellKind) Number() protoreflect.EnumNumber

func (CellKind) String

func (x CellKind) String() string

func (CellKind) Type

type DeserializeRequest

type DeserializeRequest struct {
	Source  []byte                     `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Options *DeserializeRequestOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*DeserializeRequest) Descriptor deprecated

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

Deprecated: Use DeserializeRequest.ProtoReflect.Descriptor instead.

func (*DeserializeRequest) GetOptions added in v1.8.0

func (*DeserializeRequest) GetSource

func (x *DeserializeRequest) GetSource() []byte

func (*DeserializeRequest) ProtoMessage

func (*DeserializeRequest) ProtoMessage()

func (*DeserializeRequest) ProtoReflect

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

func (*DeserializeRequest) Reset

func (x *DeserializeRequest) Reset()

func (*DeserializeRequest) String

func (x *DeserializeRequest) String() string

type DeserializeRequestOptions added in v1.8.0

type DeserializeRequestOptions struct {
	Identity RunmeIdentity `protobuf:"varint,1,opt,name=identity,proto3,enum=runme.parser.v1.RunmeIdentity" json:"identity,omitempty"`
	// contains filtered or unexported fields
}

func (*DeserializeRequestOptions) Descriptor deprecated added in v1.8.0

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

Deprecated: Use DeserializeRequestOptions.ProtoReflect.Descriptor instead.

func (*DeserializeRequestOptions) GetIdentity added in v1.8.0

func (x *DeserializeRequestOptions) GetIdentity() RunmeIdentity

func (*DeserializeRequestOptions) ProtoMessage added in v1.8.0

func (*DeserializeRequestOptions) ProtoMessage()

func (*DeserializeRequestOptions) ProtoReflect added in v1.8.0

func (*DeserializeRequestOptions) Reset added in v1.8.0

func (x *DeserializeRequestOptions) Reset()

func (*DeserializeRequestOptions) String added in v1.8.0

func (x *DeserializeRequestOptions) String() string

type DeserializeResponse

type DeserializeResponse struct {
	Notebook *Notebook `protobuf:"bytes,1,opt,name=notebook,proto3" json:"notebook,omitempty"`
	// contains filtered or unexported fields
}

func (*DeserializeResponse) Descriptor deprecated

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

Deprecated: Use DeserializeResponse.ProtoReflect.Descriptor instead.

func (*DeserializeResponse) GetNotebook

func (x *DeserializeResponse) GetNotebook() *Notebook

func (*DeserializeResponse) ProtoMessage

func (*DeserializeResponse) ProtoMessage()

func (*DeserializeResponse) ProtoReflect

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

func (*DeserializeResponse) Reset

func (x *DeserializeResponse) Reset()

func (*DeserializeResponse) String

func (x *DeserializeResponse) String() string

type Frontmatter added in v1.2.1

type Frontmatter struct {
	Shell       string `protobuf:"bytes,1,opt,name=shell,proto3" json:"shell,omitempty"`
	Cwd         string `protobuf:"bytes,2,opt,name=cwd,proto3" json:"cwd,omitempty"`
	SkipPrompts bool   `protobuf:"varint,3,opt,name=skip_prompts,json=skipPrompts,proto3" json:"skip_prompts,omitempty"`
	// contains filtered or unexported fields
}

func (*Frontmatter) Descriptor deprecated added in v1.2.1

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

Deprecated: Use Frontmatter.ProtoReflect.Descriptor instead.

func (*Frontmatter) GetCwd added in v1.2.2

func (x *Frontmatter) GetCwd() string

func (*Frontmatter) GetShell added in v1.2.1

func (x *Frontmatter) GetShell() string

func (*Frontmatter) GetSkipPrompts added in v1.8.0

func (x *Frontmatter) GetSkipPrompts() bool

func (*Frontmatter) ProtoMessage added in v1.2.1

func (*Frontmatter) ProtoMessage()

func (*Frontmatter) ProtoReflect added in v1.2.1

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

func (*Frontmatter) Reset added in v1.2.1

func (x *Frontmatter) Reset()

func (*Frontmatter) String added in v1.2.1

func (x *Frontmatter) String() string

type Notebook

type Notebook struct {
	Cells       []*Cell           `protobuf:"bytes,1,rep,name=cells,proto3" json:"cells,omitempty"`
	Metadata    map[string]string `` /* 157-byte string literal not displayed */
	Frontmatter *Frontmatter      `protobuf:"bytes,3,opt,name=frontmatter,proto3" json:"frontmatter,omitempty"`
	// contains filtered or unexported fields
}

func (*Notebook) Descriptor deprecated

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

Deprecated: Use Notebook.ProtoReflect.Descriptor instead.

func (*Notebook) GetCells

func (x *Notebook) GetCells() []*Cell

func (*Notebook) GetFrontmatter added in v1.2.1

func (x *Notebook) GetFrontmatter() *Frontmatter

func (*Notebook) GetMetadata

func (x *Notebook) GetMetadata() map[string]string

func (*Notebook) ProtoMessage

func (*Notebook) ProtoMessage()

func (*Notebook) ProtoReflect

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

func (*Notebook) Reset

func (x *Notebook) Reset()

func (*Notebook) String

func (x *Notebook) String() string

type ParserServiceClient

type ParserServiceClient interface {
	Deserialize(ctx context.Context, in *DeserializeRequest, opts ...grpc.CallOption) (*DeserializeResponse, error)
	Serialize(ctx context.Context, in *SerializeRequest, opts ...grpc.CallOption) (*SerializeResponse, error)
}

ParserServiceClient is the client API for ParserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ParserServiceServer

type ParserServiceServer interface {
	Deserialize(context.Context, *DeserializeRequest) (*DeserializeResponse, error)
	Serialize(context.Context, *SerializeRequest) (*SerializeResponse, error)
	// contains filtered or unexported methods
}

ParserServiceServer is the server API for ParserService service. All implementations must embed UnimplementedParserServiceServer for forward compatibility

type RunmeIdentity added in v1.8.0

type RunmeIdentity int32
const (
	RunmeIdentity_RUNME_IDENTITY_UNSPECIFIED RunmeIdentity = 0 // aka NONE
	RunmeIdentity_RUNME_IDENTITY_ALL         RunmeIdentity = 1
	RunmeIdentity_RUNME_IDENTITY_DOCUMENT    RunmeIdentity = 2
	RunmeIdentity_RUNME_IDENTITY_CELL        RunmeIdentity = 3
)

func (RunmeIdentity) Descriptor added in v1.8.0

func (RunmeIdentity) Enum added in v1.8.0

func (x RunmeIdentity) Enum() *RunmeIdentity

func (RunmeIdentity) EnumDescriptor deprecated added in v1.8.0

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

Deprecated: Use RunmeIdentity.Descriptor instead.

func (RunmeIdentity) Number added in v1.8.0

func (RunmeIdentity) String added in v1.8.0

func (x RunmeIdentity) String() string

func (RunmeIdentity) Type added in v1.8.0

type SerializeRequest

type SerializeRequest struct {
	Notebook *Notebook                `protobuf:"bytes,1,opt,name=notebook,proto3" json:"notebook,omitempty"`
	Options  *SerializeRequestOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*SerializeRequest) Descriptor deprecated

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

Deprecated: Use SerializeRequest.ProtoReflect.Descriptor instead.

func (*SerializeRequest) GetNotebook

func (x *SerializeRequest) GetNotebook() *Notebook

func (*SerializeRequest) GetOptions added in v1.8.0

func (x *SerializeRequest) GetOptions() *SerializeRequestOptions

func (*SerializeRequest) ProtoMessage

func (*SerializeRequest) ProtoMessage()

func (*SerializeRequest) ProtoReflect

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

func (*SerializeRequest) Reset

func (x *SerializeRequest) Reset()

func (*SerializeRequest) String

func (x *SerializeRequest) String() string

type SerializeRequestOptions added in v1.8.0

type SerializeRequestOptions struct {
	Identity RunmeIdentity `protobuf:"varint,1,opt,name=identity,proto3,enum=runme.parser.v1.RunmeIdentity" json:"identity,omitempty"`
	// contains filtered or unexported fields
}

func (*SerializeRequestOptions) Descriptor deprecated added in v1.8.0

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

Deprecated: Use SerializeRequestOptions.ProtoReflect.Descriptor instead.

func (*SerializeRequestOptions) GetIdentity added in v1.8.0

func (x *SerializeRequestOptions) GetIdentity() RunmeIdentity

func (*SerializeRequestOptions) ProtoMessage added in v1.8.0

func (*SerializeRequestOptions) ProtoMessage()

func (*SerializeRequestOptions) ProtoReflect added in v1.8.0

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

func (*SerializeRequestOptions) Reset added in v1.8.0

func (x *SerializeRequestOptions) Reset()

func (*SerializeRequestOptions) String added in v1.8.0

func (x *SerializeRequestOptions) String() string

type SerializeResponse

type SerializeResponse struct {
	Result []byte `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*SerializeResponse) Descriptor deprecated

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

Deprecated: Use SerializeResponse.ProtoReflect.Descriptor instead.

func (*SerializeResponse) GetResult

func (x *SerializeResponse) GetResult() []byte

func (*SerializeResponse) ProtoMessage

func (*SerializeResponse) ProtoMessage()

func (*SerializeResponse) ProtoReflect

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

func (*SerializeResponse) Reset

func (x *SerializeResponse) Reset()

func (*SerializeResponse) String

func (x *SerializeResponse) String() string

type TextRange added in v1.0.2

type TextRange struct {
	Start uint32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	End   uint32 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*TextRange) Descriptor deprecated added in v1.0.2

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

Deprecated: Use TextRange.ProtoReflect.Descriptor instead.

func (*TextRange) GetEnd added in v1.0.2

func (x *TextRange) GetEnd() uint32

func (*TextRange) GetStart added in v1.0.2

func (x *TextRange) GetStart() uint32

func (*TextRange) ProtoMessage added in v1.0.2

func (*TextRange) ProtoMessage()

func (*TextRange) ProtoReflect added in v1.0.2

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

func (*TextRange) Reset added in v1.0.2

func (x *TextRange) Reset()

func (*TextRange) String added in v1.0.2

func (x *TextRange) String() string

type UnimplementedParserServiceServer

type UnimplementedParserServiceServer struct {
}

UnimplementedParserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedParserServiceServer) Deserialize

func (UnimplementedParserServiceServer) Serialize

type UnsafeParserServiceServer

type UnsafeParserServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeParserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ParserServiceServer will result in compilation errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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