parserv1

package
v1.2.3-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 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 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"`
	// contains filtered or unexported fields
}

func (*DeserializeRequest) Descriptor deprecated

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

Deprecated: Use DeserializeRequest.ProtoReflect.Descriptor instead.

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 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"`
	// 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) 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 SerializeRequest

type SerializeRequest struct {
	Notebook *Notebook `protobuf:"bytes,1,opt,name=notebook,proto3" json:"notebook,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) 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 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