1
1
mirror of https://github.com/github/semantic.git synced 2024-12-15 01:51:39 +03:00
semantic/proto/markdown_diff.proto

146 lines
2.6 KiB
Protocol Buffer

// This file was generated by proto-gen. Do not edit by hand.
syntax = "proto3";
package github.semantic.markdowndiff;
import "types.proto";
option java_package = "com.github.semantic.markdowndiff";
option go_package = "github.com/semantic/markdowndiff;markdown";
message MarkdownDiff {
oneof diff {
Merge merge = 1;
Delete delete = 2;
Insert insert = 3;
Replace replace = 4;
}
message Merge {
MarkdownSyntax syntax = 1;
}
message Delete {
MarkdownSyntax before = 1;
}
message Insert {
MarkdownSyntax after = 1;
}
message Replace {
MarkdownSyntax before = 1;
MarkdownSyntax after = 2;
}
}
message MarkdownSyntax {
oneof syntax {
Document document = 1;
BlockQuote blockQuote = 2;
Heading heading = 3;
HTMLBlock hTMLBlock = 4;
OrderedList orderedList = 5;
Paragraph paragraph = 6;
ThematicBreak thematicBreak = 7;
UnorderedList unorderedList = 8;
Table table = 9;
TableRow tableRow = 10;
TableCell tableCell = 11;
Code code = 12;
Emphasis emphasis = 13;
Image image = 14;
LineBreak lineBreak = 15;
Link link = 16;
Strong strong = 17;
Text text = 18;
Strikethrough strikethrough = 19;
Error error = 20;
List list = 21;
}
}
message Document {
repeated MarkdownDiff values = 1;
}
message BlockQuote {
repeated MarkdownDiff values = 1;
}
message Heading {
int64 headingLevel = 1;
repeated MarkdownDiff headingContent = 2;
repeated MarkdownDiff sectionContent = 3;
}
message HTMLBlock {
string value = 1;
}
message OrderedList {
repeated MarkdownDiff values = 1;
}
message Paragraph {
repeated MarkdownDiff values = 1;
}
message ThematicBreak { }
message UnorderedList {
repeated MarkdownDiff values = 1;
}
message Table {
repeated MarkdownDiff values = 1;
}
message TableRow {
repeated MarkdownDiff values = 1;
}
message TableCell {
repeated MarkdownDiff values = 1;
}
message Code {
string codeLanguage = 1;
string codeContent = 2;
}
message Emphasis {
repeated MarkdownDiff values = 1;
}
message Image {
string imageURL = 1;
string imageTitle = 2;
}
message LineBreak { }
message Link {
string linkUrl = 1;
string linkTitle = 2;
}
message Strong {
repeated MarkdownDiff values = 1;
}
message Text {
string value = 1;
}
message Strikethrough {
repeated MarkdownDiff values = 1;
}
message Error {
repeated ErrorSite errorCallStack = 1;
repeated string errorExpected = 2;
string errorActual = 3;
repeated MarkdownDiff errorChildren = 4;
}
message List {
repeated MarkdownDiff listContent = 1;
}