diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f48e11b3..0a9db080 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,9 @@ on: - synchronize - reopened - ready_for_review + pull_request_review: + types: [submitted] + workflow_dispatch: concurrency: @@ -23,7 +26,7 @@ jobs: uses: ./.github/workflows/main_partial.yml full_checks: - if: github.event_name != 'pull_request' + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request_review' && github.event.review.state == 'approved' uses: ./.github/workflows/main_full.yml common_checks: diff --git a/plugin/ast/v1/ast.pb.go b/plugin/ast/v1/ast.pb.go index 4c662af5..4423c8f5 100644 --- a/plugin/ast/v1/ast.pb.go +++ b/plugin/ast/v1/ast.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: ast/v1/ast.proto @@ -204,11 +204,9 @@ type Attribute struct { func (x *Attribute) Reset() { *x = Attribute{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Attribute) String() string { @@ -219,7 +217,7 @@ func (*Attribute) ProtoMessage() {} func (x *Attribute) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -291,11 +289,9 @@ type BaseNode struct { func (x *BaseNode) Reset() { *x = BaseNode{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BaseNode) String() string { @@ -306,7 +302,7 @@ func (*BaseNode) ProtoMessage() {} func (x *BaseNode) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -379,11 +375,9 @@ type Node struct { func (x *Node) Reset() { *x = Node{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Node) String() string { @@ -394,7 +388,7 @@ func (*Node) ProtoMessage() {} func (x *Node) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -762,11 +756,9 @@ type Document struct { func (x *Document) Reset() { *x = Document{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Document) String() string { @@ -777,7 +769,7 @@ func (*Document) ProtoMessage() {} func (x *Document) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -809,11 +801,9 @@ type TextBlock struct { func (x *TextBlock) Reset() { *x = TextBlock{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TextBlock) String() string { @@ -824,7 +814,7 @@ func (*TextBlock) ProtoMessage() {} func (x *TextBlock) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -856,11 +846,9 @@ type Paragraph struct { func (x *Paragraph) Reset() { *x = Paragraph{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Paragraph) String() string { @@ -871,7 +859,7 @@ func (*Paragraph) ProtoMessage() {} func (x *Paragraph) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -904,11 +892,9 @@ type Heading struct { func (x *Heading) Reset() { *x = Heading{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Heading) String() string { @@ -919,7 +905,7 @@ func (*Heading) ProtoMessage() {} func (x *Heading) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -958,11 +944,9 @@ type ThematicBreak struct { func (x *ThematicBreak) Reset() { *x = ThematicBreak{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ThematicBreak) String() string { @@ -973,7 +957,7 @@ func (*ThematicBreak) ProtoMessage() {} func (x *ThematicBreak) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1006,11 +990,9 @@ type CodeBlock struct { func (x *CodeBlock) Reset() { *x = CodeBlock{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CodeBlock) String() string { @@ -1021,7 +1003,7 @@ func (*CodeBlock) ProtoMessage() {} func (x *CodeBlock) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1062,11 +1044,9 @@ type FencedCodeBlock struct { func (x *FencedCodeBlock) Reset() { *x = FencedCodeBlock{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FencedCodeBlock) String() string { @@ -1077,7 +1057,7 @@ func (*FencedCodeBlock) ProtoMessage() {} func (x *FencedCodeBlock) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1123,11 +1103,9 @@ type Blockquote struct { func (x *Blockquote) Reset() { *x = Blockquote{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Blockquote) String() string { @@ -1138,7 +1116,7 @@ func (*Blockquote) ProtoMessage() {} func (x *Blockquote) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1173,11 +1151,9 @@ type List struct { func (x *List) Reset() { *x = List{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *List) String() string { @@ -1188,7 +1164,7 @@ func (*List) ProtoMessage() {} func (x *List) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1242,11 +1218,9 @@ type ListItem struct { func (x *ListItem) Reset() { *x = ListItem{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListItem) String() string { @@ -1257,7 +1231,7 @@ func (*ListItem) ProtoMessage() {} func (x *ListItem) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1299,11 +1273,9 @@ type HTMLBlock struct { func (x *HTMLBlock) Reset() { *x = HTMLBlock{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HTMLBlock) String() string { @@ -1314,7 +1286,7 @@ func (*HTMLBlock) ProtoMessage() {} func (x *HTMLBlock) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1371,11 +1343,9 @@ type Text struct { func (x *Text) Reset() { *x = Text{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Text) String() string { @@ -1386,7 +1356,7 @@ func (*Text) ProtoMessage() {} func (x *Text) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1449,11 +1419,9 @@ type String struct { func (x *String) Reset() { *x = String{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *String) String() string { @@ -1464,7 +1432,7 @@ func (*String) ProtoMessage() {} func (x *String) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1517,11 +1485,9 @@ type CodeSpan struct { func (x *CodeSpan) Reset() { *x = CodeSpan{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CodeSpan) String() string { @@ -1532,7 +1498,7 @@ func (*CodeSpan) ProtoMessage() {} func (x *CodeSpan) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1565,11 +1531,9 @@ type Emphasis struct { func (x *Emphasis) Reset() { *x = Emphasis{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Emphasis) String() string { @@ -1580,7 +1544,7 @@ func (*Emphasis) ProtoMessage() {} func (x *Emphasis) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1622,11 +1586,9 @@ type LinkOrImage struct { func (x *LinkOrImage) Reset() { *x = LinkOrImage{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LinkOrImage) String() string { @@ -1637,7 +1599,7 @@ func (*LinkOrImage) ProtoMessage() {} func (x *LinkOrImage) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1693,11 +1655,9 @@ type AutoLink struct { func (x *AutoLink) Reset() { *x = AutoLink{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AutoLink) String() string { @@ -1708,7 +1668,7 @@ func (*AutoLink) ProtoMessage() {} func (x *AutoLink) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1762,11 +1722,9 @@ type RawHTML struct { func (x *RawHTML) Reset() { *x = RawHTML{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RawHTML) String() string { @@ -1777,7 +1735,7 @@ func (*RawHTML) ProtoMessage() {} func (x *RawHTML) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1817,11 +1775,9 @@ type Table struct { func (x *Table) Reset() { *x = Table{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Table) String() string { @@ -1832,7 +1788,7 @@ func (*Table) ProtoMessage() {} func (x *Table) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1873,11 +1829,9 @@ type TableRow struct { func (x *TableRow) Reset() { *x = TableRow{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TableRow) String() string { @@ -1888,7 +1842,7 @@ func (*TableRow) ProtoMessage() {} func (x *TableRow) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1935,11 +1889,9 @@ type TableCell struct { func (x *TableCell) Reset() { *x = TableCell{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TableCell) String() string { @@ -1950,7 +1902,7 @@ func (*TableCell) ProtoMessage() {} func (x *TableCell) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1990,11 +1942,9 @@ type TaskCheckbox struct { func (x *TaskCheckbox) Reset() { *x = TaskCheckbox{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TaskCheckbox) String() string { @@ -2005,7 +1955,7 @@ func (*TaskCheckbox) ProtoMessage() {} func (x *TaskCheckbox) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2044,11 +1994,9 @@ type Strikethrough struct { func (x *Strikethrough) Reset() { *x = Strikethrough{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Strikethrough) String() string { @@ -2059,7 +2007,7 @@ func (*Strikethrough) ProtoMessage() {} func (x *Strikethrough) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2094,11 +2042,9 @@ type CustomNode struct { func (x *CustomNode) Reset() { *x = CustomNode{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CustomNode) String() string { @@ -2109,7 +2055,7 @@ func (*CustomNode) ProtoMessage() {} func (x *CustomNode) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2159,11 +2105,9 @@ type Metadata struct { func (x *Metadata) Reset() { *x = Metadata{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Metadata) String() string { @@ -2174,7 +2118,7 @@ func (*Metadata) ProtoMessage() {} func (x *Metadata) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2222,11 +2166,9 @@ type FabricContentNode struct { func (x *FabricContentNode) Reset() { *x = FabricContentNode{} - if protoimpl.UnsafeEnabled { - mi := &file_ast_v1_ast_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ast_v1_ast_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FabricContentNode) String() string { @@ -2237,7 +2179,7 @@ func (*FabricContentNode) ProtoMessage() {} func (x *FabricContentNode) ProtoReflect() protoreflect.Message { mi := &file_ast_v1_ast_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2682,356 +2624,6 @@ func file_ast_v1_ast_proto_init() { if File_ast_v1_ast_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_ast_v1_ast_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Attribute); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*BaseNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Node); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*Document); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*TextBlock); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*Paragraph); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*Heading); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*ThematicBreak); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*CodeBlock); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*FencedCodeBlock); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*Blockquote); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*List); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*ListItem); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*HTMLBlock); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*Text); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*String); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*CodeSpan); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*Emphasis); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*LinkOrImage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*AutoLink); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*RawHTML); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*Table); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*TableRow); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*TableCell); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*TaskCheckbox); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*Strikethrough); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[26].Exporter = func(v any, i int) any { - switch v := v.(*CustomNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[27].Exporter = func(v any, i int) any { - switch v := v.(*Metadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ast_v1_ast_proto_msgTypes[28].Exporter = func(v any, i int) any { - switch v := v.(*FabricContentNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_ast_v1_ast_proto_msgTypes[0].OneofWrappers = []any{ (*Attribute_Bytes)(nil), (*Attribute_Str)(nil), diff --git a/plugin/pluginapi/v1/content.pb.go b/plugin/pluginapi/v1/content.pb.go index 55a7ddd1..378bc8c5 100644 --- a/plugin/pluginapi/v1/content.pb.go +++ b/plugin/pluginapi/v1/content.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: pluginapi/v1/content.proto @@ -81,11 +81,9 @@ type Location struct { func (x *Location) Reset() { *x = Location{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_content_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_content_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Location) String() string { @@ -96,7 +94,7 @@ func (*Location) ProtoMessage() {} func (x *Location) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_content_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -136,11 +134,9 @@ type ContentResult struct { func (x *ContentResult) Reset() { *x = ContentResult{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_content_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_content_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ContentResult) String() string { @@ -151,7 +147,7 @@ func (*ContentResult) ProtoMessage() {} func (x *ContentResult) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_content_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -195,11 +191,9 @@ type Content struct { func (x *Content) Reset() { *x = Content{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_content_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_content_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Content) String() string { @@ -210,7 +204,7 @@ func (*Content) ProtoMessage() {} func (x *Content) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_content_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -285,11 +279,9 @@ type ContentSection struct { func (x *ContentSection) Reset() { *x = ContentSection{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_content_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_content_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ContentSection) String() string { @@ -300,7 +292,7 @@ func (*ContentSection) ProtoMessage() {} func (x *ContentSection) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_content_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -333,11 +325,9 @@ type ContentElement struct { func (x *ContentElement) Reset() { *x = ContentElement{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_content_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_content_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ContentElement) String() string { @@ -348,7 +338,7 @@ func (*ContentElement) ProtoMessage() {} func (x *ContentElement) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_content_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -385,11 +375,9 @@ type ContentEmpty struct { func (x *ContentEmpty) Reset() { *x = ContentEmpty{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_content_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_content_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ContentEmpty) String() string { @@ -400,7 +388,7 @@ func (*ContentEmpty) ProtoMessage() {} func (x *ContentEmpty) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_content_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -524,80 +512,6 @@ func file_pluginapi_v1_content_proto_init() { if File_pluginapi_v1_content_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_pluginapi_v1_content_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Location); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_content_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ContentResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_content_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Content); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_content_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ContentSection); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_content_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ContentElement); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_content_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*ContentEmpty); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_pluginapi_v1_content_proto_msgTypes[2].OneofWrappers = []any{ (*Content_Element)(nil), (*Content_Section)(nil), diff --git a/plugin/pluginapi/v1/cty.pb.go b/plugin/pluginapi/v1/cty.pb.go index 0956e82f..e2cf80c3 100644 --- a/plugin/pluginapi/v1/cty.pb.go +++ b/plugin/pluginapi/v1/cty.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: pluginapi/v1/cty.proto @@ -44,11 +44,9 @@ type Cty struct { func (x *Cty) Reset() { *x = Cty{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_cty_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_cty_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Cty) String() string { @@ -59,7 +57,7 @@ func (*Cty) ProtoMessage() {} func (x *Cty) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_cty_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -229,11 +227,9 @@ type CtyType struct { func (x *CtyType) Reset() { *x = CtyType{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_cty_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_cty_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CtyType) String() string { @@ -244,7 +240,7 @@ func (*CtyType) ProtoMessage() {} func (x *CtyType) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_cty_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -277,11 +273,9 @@ type CtyValue struct { func (x *CtyValue) Reset() { *x = CtyValue{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_cty_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_cty_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CtyValue) String() string { @@ -292,7 +286,7 @@ func (*CtyValue) ProtoMessage() {} func (x *CtyValue) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_cty_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -329,11 +323,9 @@ type Cty_Primitive struct { func (x *Cty_Primitive) Reset() { *x = Cty_Primitive{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_cty_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_cty_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Cty_Primitive) String() string { @@ -344,7 +336,7 @@ func (*Cty_Primitive) ProtoMessage() {} func (x *Cty_Primitive) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_cty_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -420,11 +412,9 @@ type Cty_Object struct { func (x *Cty_Object) Reset() { *x = Cty_Object{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_cty_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_cty_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Cty_Object) String() string { @@ -435,7 +425,7 @@ func (*Cty_Object) ProtoMessage() {} func (x *Cty_Object) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_cty_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -469,11 +459,9 @@ type Cty_Mapping struct { func (x *Cty_Mapping) Reset() { *x = Cty_Mapping{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_cty_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_cty_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Cty_Mapping) String() string { @@ -484,7 +472,7 @@ func (*Cty_Mapping) ProtoMessage() {} func (x *Cty_Mapping) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_cty_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -526,11 +514,9 @@ type Cty_Sequence struct { func (x *Cty_Sequence) Reset() { *x = Cty_Sequence{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_cty_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_cty_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Cty_Sequence) String() string { @@ -541,7 +527,7 @@ func (*Cty_Sequence) ProtoMessage() {} func (x *Cty_Sequence) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_cty_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -583,11 +569,9 @@ type Cty_Capsule struct { func (x *Cty_Capsule) Reset() { *x = Cty_Capsule{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_cty_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_cty_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Cty_Capsule) String() string { @@ -598,7 +582,7 @@ func (*Cty_Capsule) ProtoMessage() {} func (x *Cty_Capsule) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_cty_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -645,11 +629,9 @@ type Cty_Dynamic struct { func (x *Cty_Dynamic) Reset() { *x = Cty_Dynamic{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_cty_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_cty_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Cty_Dynamic) String() string { @@ -660,7 +642,7 @@ func (*Cty_Dynamic) ProtoMessage() {} func (x *Cty_Dynamic) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_cty_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -686,11 +668,9 @@ type Cty_Object_Attr struct { func (x *Cty_Object_Attr) Reset() { *x = Cty_Object_Attr{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_cty_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_cty_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Cty_Object_Attr) String() string { @@ -701,7 +681,7 @@ func (*Cty_Object_Attr) ProtoMessage() {} func (x *Cty_Object_Attr) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_cty_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -891,128 +871,6 @@ func file_pluginapi_v1_cty_proto_init() { return } file_pluginapi_v1_data_proto_init() - if !protoimpl.UnsafeEnabled { - file_pluginapi_v1_cty_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Cty); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_cty_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*CtyType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_cty_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*CtyValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_cty_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*Cty_Primitive); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_cty_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*Cty_Object); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_cty_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*Cty_Mapping); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_cty_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*Cty_Sequence); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_cty_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*Cty_Capsule); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_cty_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*Cty_Dynamic); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_cty_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*Cty_Object_Attr); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_pluginapi_v1_cty_proto_msgTypes[0].OneofWrappers = []any{ (*Cty_Primitive_)(nil), (*Cty_Object_)(nil), diff --git a/plugin/pluginapi/v1/data.pb.go b/plugin/pluginapi/v1/data.pb.go index ab2a85a3..6ca32e6c 100644 --- a/plugin/pluginapi/v1/data.pb.go +++ b/plugin/pluginapi/v1/data.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: pluginapi/v1/data.proto @@ -37,11 +37,9 @@ type Data struct { func (x *Data) Reset() { *x = Data{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_data_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_data_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data) String() string { @@ -52,7 +50,7 @@ func (*Data) ProtoMessage() {} func (x *Data) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_data_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -153,11 +151,9 @@ type ListData struct { func (x *ListData) Reset() { *x = ListData{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_data_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_data_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListData) String() string { @@ -168,7 +164,7 @@ func (*ListData) ProtoMessage() {} func (x *ListData) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_data_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -200,11 +196,9 @@ type MapData struct { func (x *MapData) Reset() { *x = MapData{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_data_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_data_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MapData) String() string { @@ -215,7 +209,7 @@ func (*MapData) ProtoMessage() {} func (x *MapData) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_data_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -319,44 +313,6 @@ func file_pluginapi_v1_data_proto_init() { if File_pluginapi_v1_data_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_pluginapi_v1_data_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Data); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_data_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ListData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_data_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*MapData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_pluginapi_v1_data_proto_msgTypes[0].OneofWrappers = []any{ (*Data_StringVal)(nil), (*Data_NumberVal)(nil), diff --git a/plugin/pluginapi/v1/dataspec.pb.go b/plugin/pluginapi/v1/dataspec.pb.go index b2971947..56f44c84 100644 --- a/plugin/pluginapi/v1/dataspec.pb.go +++ b/plugin/pluginapi/v1/dataspec.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: pluginapi/v1/dataspec.proto @@ -40,11 +40,9 @@ type AttrSpec struct { func (x *AttrSpec) Reset() { *x = AttrSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_dataspec_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_dataspec_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AttrSpec) String() string { @@ -55,7 +53,7 @@ func (*AttrSpec) ProtoMessage() {} func (x *AttrSpec) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_dataspec_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -164,11 +162,9 @@ type BlockSpec struct { func (x *BlockSpec) Reset() { *x = BlockSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_dataspec_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_dataspec_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockSpec) String() string { @@ -179,7 +175,7 @@ func (*BlockSpec) ProtoMessage() {} func (x *BlockSpec) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_dataspec_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -264,11 +260,9 @@ type Attr struct { func (x *Attr) Reset() { *x = Attr{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_dataspec_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_dataspec_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Attr) String() string { @@ -279,7 +273,7 @@ func (*Attr) ProtoMessage() {} func (x *Attr) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_dataspec_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -343,11 +337,9 @@ type Block struct { func (x *Block) Reset() { *x = Block{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_dataspec_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_dataspec_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Block) String() string { @@ -358,7 +350,7 @@ func (*Block) ProtoMessage() {} func (x *Block) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_dataspec_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -421,11 +413,9 @@ type BlockSpec_NameMatcher struct { func (x *BlockSpec_NameMatcher) Reset() { *x = BlockSpec_NameMatcher{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_dataspec_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_dataspec_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockSpec_NameMatcher) String() string { @@ -436,7 +426,7 @@ func (*BlockSpec_NameMatcher) ProtoMessage() {} func (x *BlockSpec_NameMatcher) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_dataspec_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -485,11 +475,9 @@ type BlockSpec_NameMatcher_Exact struct { func (x *BlockSpec_NameMatcher_Exact) Reset() { *x = BlockSpec_NameMatcher_Exact{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_dataspec_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_dataspec_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockSpec_NameMatcher_Exact) String() string { @@ -500,7 +488,7 @@ func (*BlockSpec_NameMatcher_Exact) ProtoMessage() {} func (x *BlockSpec_NameMatcher_Exact) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_dataspec_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -700,80 +688,6 @@ func file_pluginapi_v1_dataspec_proto_init() { } file_pluginapi_v1_cty_proto_init() file_pluginapi_v1_hcl_proto_init() - if !protoimpl.UnsafeEnabled { - file_pluginapi_v1_dataspec_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*AttrSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_dataspec_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*BlockSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_dataspec_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Attr); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_dataspec_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*Block); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_dataspec_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*BlockSpec_NameMatcher); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_dataspec_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*BlockSpec_NameMatcher_Exact); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_pluginapi_v1_dataspec_proto_msgTypes[4].OneofWrappers = []any{ (*BlockSpec_NameMatcher_Exact_)(nil), } diff --git a/plugin/pluginapi/v1/hcl.pb.go b/plugin/pluginapi/v1/hcl.pb.go index 5d94e18a..ce3dab0f 100644 --- a/plugin/pluginapi/v1/hcl.pb.go +++ b/plugin/pluginapi/v1/hcl.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: pluginapi/v1/hcl.proto @@ -32,11 +32,9 @@ type Pos struct { func (x *Pos) Reset() { *x = Pos{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_hcl_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_hcl_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Pos) String() string { @@ -47,7 +45,7 @@ func (*Pos) ProtoMessage() {} func (x *Pos) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_hcl_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -95,11 +93,9 @@ type Range struct { func (x *Range) Reset() { *x = Range{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_hcl_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_hcl_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Range) String() string { @@ -110,7 +106,7 @@ func (*Range) ProtoMessage() {} func (x *Range) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_hcl_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -160,11 +156,9 @@ type Diagnostic struct { func (x *Diagnostic) Reset() { *x = Diagnostic{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_hcl_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_hcl_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Diagnostic) String() string { @@ -175,7 +169,7 @@ func (*Diagnostic) ProtoMessage() {} func (x *Diagnostic) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_hcl_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -303,44 +297,6 @@ func file_pluginapi_v1_hcl_proto_init() { if File_pluginapi_v1_hcl_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_pluginapi_v1_hcl_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Pos); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_hcl_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*Range); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_hcl_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Diagnostic); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/plugin/pluginapi/v1/plugin.pb.go b/plugin/pluginapi/v1/plugin.pb.go index d47732aa..3a5ce0d9 100644 --- a/plugin/pluginapi/v1/plugin.pb.go +++ b/plugin/pluginapi/v1/plugin.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: pluginapi/v1/plugin.proto @@ -28,11 +28,9 @@ type GetSchemaRequest struct { func (x *GetSchemaRequest) Reset() { *x = GetSchemaRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_plugin_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_plugin_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetSchemaRequest) String() string { @@ -43,7 +41,7 @@ func (*GetSchemaRequest) ProtoMessage() {} func (x *GetSchemaRequest) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_plugin_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -68,11 +66,9 @@ type GetSchemaResponse struct { func (x *GetSchemaResponse) Reset() { *x = GetSchemaResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_plugin_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_plugin_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetSchemaResponse) String() string { @@ -83,7 +79,7 @@ func (*GetSchemaResponse) ProtoMessage() {} func (x *GetSchemaResponse) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_plugin_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -117,11 +113,9 @@ type RetrieveDataRequest struct { func (x *RetrieveDataRequest) Reset() { *x = RetrieveDataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_plugin_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_plugin_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RetrieveDataRequest) String() string { @@ -132,7 +126,7 @@ func (*RetrieveDataRequest) ProtoMessage() {} func (x *RetrieveDataRequest) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_plugin_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -179,11 +173,9 @@ type RetrieveDataResponse struct { func (x *RetrieveDataResponse) Reset() { *x = RetrieveDataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_plugin_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_plugin_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RetrieveDataResponse) String() string { @@ -194,7 +186,7 @@ func (*RetrieveDataResponse) ProtoMessage() {} func (x *RetrieveDataResponse) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_plugin_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -237,11 +229,9 @@ type ProvideContentRequest struct { func (x *ProvideContentRequest) Reset() { *x = ProvideContentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_plugin_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_plugin_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProvideContentRequest) String() string { @@ -252,7 +242,7 @@ func (*ProvideContentRequest) ProtoMessage() {} func (x *ProvideContentRequest) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_plugin_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -313,11 +303,9 @@ type ProvideContentResponse struct { func (x *ProvideContentResponse) Reset() { *x = ProvideContentResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_plugin_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_plugin_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProvideContentResponse) String() string { @@ -328,7 +316,7 @@ func (*ProvideContentResponse) ProtoMessage() {} func (x *ProvideContentResponse) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_plugin_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -372,11 +360,9 @@ type PublishRequest struct { func (x *PublishRequest) Reset() { *x = PublishRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_plugin_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_plugin_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PublishRequest) String() string { @@ -387,7 +373,7 @@ func (*PublishRequest) ProtoMessage() {} func (x *PublishRequest) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_plugin_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -454,11 +440,9 @@ type PublishResponse struct { func (x *PublishResponse) Reset() { *x = PublishResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_plugin_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_plugin_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PublishResponse) String() string { @@ -469,7 +453,7 @@ func (*PublishResponse) ProtoMessage() {} func (x *PublishResponse) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_plugin_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -680,104 +664,6 @@ func file_pluginapi_v1_plugin_proto_init() { file_pluginapi_v1_hcl_proto_init() file_pluginapi_v1_schema_proto_init() file_pluginapi_v1_dataspec_proto_init() - if !protoimpl.UnsafeEnabled { - file_pluginapi_v1_plugin_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*GetSchemaRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_plugin_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*GetSchemaResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_plugin_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*RetrieveDataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_plugin_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*RetrieveDataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_plugin_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ProvideContentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_plugin_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*ProvideContentResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_plugin_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*PublishRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_plugin_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*PublishResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/plugin/pluginapi/v1/schema.pb.go b/plugin/pluginapi/v1/schema.pb.go index a2b703a9..f0e2aff7 100644 --- a/plugin/pluginapi/v1/schema.pb.go +++ b/plugin/pluginapi/v1/schema.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: pluginapi/v1/schema.proto @@ -138,11 +138,9 @@ type Schema struct { func (x *Schema) Reset() { *x = Schema{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_schema_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_schema_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Schema) String() string { @@ -153,7 +151,7 @@ func (*Schema) ProtoMessage() {} func (x *Schema) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_schema_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -230,11 +228,9 @@ type DataSourceSchema struct { func (x *DataSourceSchema) Reset() { *x = DataSourceSchema{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_schema_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_schema_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DataSourceSchema) String() string { @@ -245,7 +241,7 @@ func (*DataSourceSchema) ProtoMessage() {} func (x *DataSourceSchema) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_schema_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -302,11 +298,9 @@ type ContentProviderSchema struct { func (x *ContentProviderSchema) Reset() { *x = ContentProviderSchema{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_schema_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_schema_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ContentProviderSchema) String() string { @@ -317,7 +311,7 @@ func (*ContentProviderSchema) ProtoMessage() {} func (x *ContentProviderSchema) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_schema_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -381,11 +375,9 @@ type PublisherSchema struct { func (x *PublisherSchema) Reset() { *x = PublisherSchema{} - if protoimpl.UnsafeEnabled { - mi := &file_pluginapi_v1_schema_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pluginapi_v1_schema_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PublisherSchema) String() string { @@ -396,7 +388,7 @@ func (*PublisherSchema) ProtoMessage() {} func (x *PublisherSchema) ProtoReflect() protoreflect.Message { mi := &file_pluginapi_v1_schema_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -612,56 +604,6 @@ func file_pluginapi_v1_schema_proto_init() { return } file_pluginapi_v1_dataspec_proto_init() - if !protoimpl.UnsafeEnabled { - file_pluginapi_v1_schema_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Schema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_schema_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*DataSourceSchema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_schema_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*ContentProviderSchema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pluginapi_v1_schema_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*PublisherSchema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{