From 7aa7ee122b51cab8bd206c1bcf9ba8c564cf47fc Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Thu, 2 Nov 2023 11:33:51 -0700 Subject: [PATCH] fix(ast): Re-add the ast.proto file This file had been accidentally deleted as part of the migration process --- buf.gen.yaml | 7 + buf.work.yaml | 3 + internal/ast/ast.pb.go | 1019 +++++++++++++++++++--------------------- protos/ast/ast.proto | 242 ++++++++++ protos/buf.yaml | 10 + 5 files changed, 757 insertions(+), 524 deletions(-) create mode 100644 buf.gen.yaml create mode 100644 buf.work.yaml create mode 100644 protos/ast/ast.proto create mode 100644 protos/buf.yaml diff --git a/buf.gen.yaml b/buf.gen.yaml new file mode 100644 index 0000000..5c60f5d --- /dev/null +++ b/buf.gen.yaml @@ -0,0 +1,7 @@ +version: v1 +managed: + enabled: true +plugins: + - plugin: buf.build/protocolbuffers/go:v1.30.0 + out: internal + opt: paths=source_relative diff --git a/buf.work.yaml b/buf.work.yaml new file mode 100644 index 0000000..4bddfe6 --- /dev/null +++ b/buf.work.yaml @@ -0,0 +1,3 @@ +version: v1 +directories: + - protos diff --git a/internal/ast/ast.pb.go b/internal/ast/ast.pb.go index bdb4c69..b0b1d3a 100644 --- a/internal/ast/ast.pb.go +++ b/internal/ast/ast.pb.go @@ -1,14 +1,15 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v3.6.1 -// source: python/ast.proto +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: ast/ast.proto package ast import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" sync "sync" ) @@ -25,6 +26,7 @@ type Node struct { unknownFields protoimpl.UnknownFields // Types that are assignable to Node: + // // *Node_ClassDef // *Node_Import // *Node_ImportFrom @@ -61,7 +63,7 @@ type Node struct { func (x *Node) Reset() { *x = Node{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[0] + mi := &file_ast_ast_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -74,7 +76,7 @@ func (x *Node) String() string { func (*Node) ProtoMessage() {} func (x *Node) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[0] + mi := &file_ast_ast_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -87,7 +89,7 @@ func (x *Node) ProtoReflect() protoreflect.Message { // Deprecated: Use Node.ProtoReflect.Descriptor instead. func (*Node) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{0} + return file_ast_ast_proto_rawDescGZIP(), []int{0} } func (m *Node) GetNode() isNode_Node { @@ -502,7 +504,7 @@ type Alias struct { func (x *Alias) Reset() { *x = Alias{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[1] + mi := &file_ast_ast_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -515,7 +517,7 @@ func (x *Alias) String() string { func (*Alias) ProtoMessage() {} func (x *Alias) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[1] + mi := &file_ast_ast_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -528,7 +530,7 @@ func (x *Alias) ProtoReflect() protoreflect.Message { // Deprecated: Use Alias.ProtoReflect.Descriptor instead. func (*Alias) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{1} + return file_ast_ast_proto_rawDescGZIP(), []int{1} } func (x *Alias) GetName() string { @@ -549,7 +551,7 @@ type Await struct { func (x *Await) Reset() { *x = Await{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[2] + mi := &file_ast_ast_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -562,7 +564,7 @@ func (x *Await) String() string { func (*Await) ProtoMessage() {} func (x *Await) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[2] + mi := &file_ast_ast_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -575,7 +577,7 @@ func (x *Await) ProtoReflect() protoreflect.Message { // Deprecated: Use Await.ProtoReflect.Descriptor instead. func (*Await) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{2} + return file_ast_ast_proto_rawDescGZIP(), []int{2} } func (x *Await) GetValue() *Node { @@ -597,7 +599,7 @@ type Attribute struct { func (x *Attribute) Reset() { *x = Attribute{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[3] + mi := &file_ast_ast_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -610,7 +612,7 @@ func (x *Attribute) String() string { func (*Attribute) ProtoMessage() {} func (x *Attribute) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[3] + mi := &file_ast_ast_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -623,7 +625,7 @@ func (x *Attribute) ProtoReflect() protoreflect.Message { // Deprecated: Use Attribute.ProtoReflect.Descriptor instead. func (*Attribute) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{3} + return file_ast_ast_proto_rawDescGZIP(), []int{3} } func (x *Attribute) GetValue() *Node { @@ -654,7 +656,7 @@ type AnnAssign struct { func (x *AnnAssign) Reset() { *x = AnnAssign{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[4] + mi := &file_ast_ast_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -667,7 +669,7 @@ func (x *AnnAssign) String() string { func (*AnnAssign) ProtoMessage() {} func (x *AnnAssign) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[4] + mi := &file_ast_ast_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -680,7 +682,7 @@ func (x *AnnAssign) ProtoReflect() protoreflect.Message { // Deprecated: Use AnnAssign.ProtoReflect.Descriptor instead. func (*AnnAssign) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{4} + return file_ast_ast_proto_rawDescGZIP(), []int{4} } func (x *AnnAssign) GetTarget() *Name { @@ -723,7 +725,7 @@ type Arg struct { func (x *Arg) Reset() { *x = Arg{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[5] + mi := &file_ast_ast_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -736,7 +738,7 @@ func (x *Arg) String() string { func (*Arg) ProtoMessage() {} func (x *Arg) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[5] + mi := &file_ast_ast_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -749,7 +751,7 @@ func (x *Arg) ProtoReflect() protoreflect.Message { // Deprecated: Use Arg.ProtoReflect.Descriptor instead. func (*Arg) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{5} + return file_ast_ast_proto_rawDescGZIP(), []int{5} } func (x *Arg) GetArg() string { @@ -778,7 +780,7 @@ type Arguments struct { func (x *Arguments) Reset() { *x = Arguments{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[6] + mi := &file_ast_ast_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -791,7 +793,7 @@ func (x *Arguments) String() string { func (*Arguments) ProtoMessage() {} func (x *Arguments) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[6] + mi := &file_ast_ast_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -804,7 +806,7 @@ func (x *Arguments) ProtoReflect() protoreflect.Message { // Deprecated: Use Arguments.ProtoReflect.Descriptor instead. func (*Arguments) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{6} + return file_ast_ast_proto_rawDescGZIP(), []int{6} } func (x *Arguments) GetArgs() []*Arg { @@ -834,7 +836,7 @@ type AsyncFor struct { func (x *AsyncFor) Reset() { *x = AsyncFor{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[7] + mi := &file_ast_ast_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -847,7 +849,7 @@ func (x *AsyncFor) String() string { func (*AsyncFor) ProtoMessage() {} func (x *AsyncFor) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[7] + mi := &file_ast_ast_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -860,7 +862,7 @@ func (x *AsyncFor) ProtoReflect() protoreflect.Message { // Deprecated: Use AsyncFor.ProtoReflect.Descriptor instead. func (*AsyncFor) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{7} + return file_ast_ast_proto_rawDescGZIP(), []int{7} } func (x *AsyncFor) GetTarget() *Node { @@ -898,7 +900,7 @@ type AsyncFunctionDef struct { func (x *AsyncFunctionDef) Reset() { *x = AsyncFunctionDef{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[8] + mi := &file_ast_ast_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -911,7 +913,7 @@ func (x *AsyncFunctionDef) String() string { func (*AsyncFunctionDef) ProtoMessage() {} func (x *AsyncFunctionDef) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[8] + mi := &file_ast_ast_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -924,7 +926,7 @@ func (x *AsyncFunctionDef) ProtoReflect() protoreflect.Message { // Deprecated: Use AsyncFunctionDef.ProtoReflect.Descriptor instead. func (*AsyncFunctionDef) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{8} + return file_ast_ast_proto_rawDescGZIP(), []int{8} } func (x *AsyncFunctionDef) GetName() string { @@ -968,7 +970,7 @@ type Assign struct { func (x *Assign) Reset() { *x = Assign{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[9] + mi := &file_ast_ast_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -981,7 +983,7 @@ func (x *Assign) String() string { func (*Assign) ProtoMessage() {} func (x *Assign) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[9] + mi := &file_ast_ast_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -994,7 +996,7 @@ func (x *Assign) ProtoReflect() protoreflect.Message { // Deprecated: Use Assign.ProtoReflect.Descriptor instead. func (*Assign) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{9} + return file_ast_ast_proto_rawDescGZIP(), []int{9} } func (x *Assign) GetTargets() []*Node { @@ -1031,7 +1033,7 @@ type Call struct { func (x *Call) Reset() { *x = Call{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[10] + mi := &file_ast_ast_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1044,7 +1046,7 @@ func (x *Call) String() string { func (*Call) ProtoMessage() {} func (x *Call) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[10] + mi := &file_ast_ast_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1057,7 +1059,7 @@ func (x *Call) ProtoReflect() protoreflect.Message { // Deprecated: Use Call.ProtoReflect.Descriptor instead. func (*Call) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{10} + return file_ast_ast_proto_rawDescGZIP(), []int{10} } func (x *Call) GetFunc() *Node { @@ -1096,7 +1098,7 @@ type ClassDef struct { func (x *ClassDef) Reset() { *x = ClassDef{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[11] + mi := &file_ast_ast_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1109,7 +1111,7 @@ func (x *ClassDef) String() string { func (*ClassDef) ProtoMessage() {} func (x *ClassDef) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[11] + mi := &file_ast_ast_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1122,7 +1124,7 @@ func (x *ClassDef) ProtoReflect() protoreflect.Message { // Deprecated: Use ClassDef.ProtoReflect.Descriptor instead. func (*ClassDef) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{11} + return file_ast_ast_proto_rawDescGZIP(), []int{11} } func (x *ClassDef) GetName() string { @@ -1173,7 +1175,7 @@ type Comment struct { func (x *Comment) Reset() { *x = Comment{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[12] + mi := &file_ast_ast_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1186,7 +1188,7 @@ func (x *Comment) String() string { func (*Comment) ProtoMessage() {} func (x *Comment) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[12] + mi := &file_ast_ast_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1199,7 +1201,7 @@ func (x *Comment) ProtoReflect() protoreflect.Message { // Deprecated: Use Comment.ProtoReflect.Descriptor instead. func (*Comment) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{12} + return file_ast_ast_proto_rawDescGZIP(), []int{12} } func (x *Comment) GetText() string { @@ -1222,7 +1224,7 @@ type Compare struct { func (x *Compare) Reset() { *x = Compare{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[13] + mi := &file_ast_ast_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1235,7 +1237,7 @@ func (x *Compare) String() string { func (*Compare) ProtoMessage() {} func (x *Compare) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[13] + mi := &file_ast_ast_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1248,7 +1250,7 @@ func (x *Compare) ProtoReflect() protoreflect.Message { // Deprecated: Use Compare.ProtoReflect.Descriptor instead. func (*Compare) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{13} + return file_ast_ast_proto_rawDescGZIP(), []int{13} } func (x *Compare) GetLeft() *Node { @@ -1278,6 +1280,7 @@ type Constant struct { unknownFields protoimpl.UnknownFields // Types that are assignable to Value: + // // *Constant_Str // *Constant_Int // *Constant_None @@ -1287,7 +1290,7 @@ type Constant struct { func (x *Constant) Reset() { *x = Constant{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[14] + mi := &file_ast_ast_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1300,7 +1303,7 @@ func (x *Constant) String() string { func (*Constant) ProtoMessage() {} func (x *Constant) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[14] + mi := &file_ast_ast_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1313,7 +1316,7 @@ func (x *Constant) ProtoReflect() protoreflect.Message { // Deprecated: Use Constant.ProtoReflect.Descriptor instead. func (*Constant) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{14} + return file_ast_ast_proto_rawDescGZIP(), []int{14} } func (m *Constant) GetValue() isConstant_Value { @@ -1378,7 +1381,7 @@ type Dict struct { func (x *Dict) Reset() { *x = Dict{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[15] + mi := &file_ast_ast_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1391,7 +1394,7 @@ func (x *Dict) String() string { func (*Dict) ProtoMessage() {} func (x *Dict) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[15] + mi := &file_ast_ast_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1404,7 +1407,7 @@ func (x *Dict) ProtoReflect() protoreflect.Message { // Deprecated: Use Dict.ProtoReflect.Descriptor instead. func (*Dict) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{15} + return file_ast_ast_proto_rawDescGZIP(), []int{15} } func (x *Dict) GetKeys() []*Node { @@ -1432,7 +1435,7 @@ type Expr struct { func (x *Expr) Reset() { *x = Expr{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[16] + mi := &file_ast_ast_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1445,7 +1448,7 @@ func (x *Expr) String() string { func (*Expr) ProtoMessage() {} func (x *Expr) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[16] + mi := &file_ast_ast_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1458,7 +1461,7 @@ func (x *Expr) ProtoReflect() protoreflect.Message { // Deprecated: Use Expr.ProtoReflect.Descriptor instead. func (*Expr) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{16} + return file_ast_ast_proto_rawDescGZIP(), []int{16} } func (x *Expr) GetValue() *Node { @@ -1481,7 +1484,7 @@ type For struct { func (x *For) Reset() { *x = For{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[17] + mi := &file_ast_ast_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1494,7 +1497,7 @@ func (x *For) String() string { func (*For) ProtoMessage() {} func (x *For) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[17] + mi := &file_ast_ast_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1507,7 +1510,7 @@ func (x *For) ProtoReflect() protoreflect.Message { // Deprecated: Use For.ProtoReflect.Descriptor instead. func (*For) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{17} + return file_ast_ast_proto_rawDescGZIP(), []int{17} } func (x *For) GetTarget() *Node { @@ -1545,7 +1548,7 @@ type FunctionDef struct { func (x *FunctionDef) Reset() { *x = FunctionDef{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[18] + mi := &file_ast_ast_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1558,7 +1561,7 @@ func (x *FunctionDef) String() string { func (*FunctionDef) ProtoMessage() {} func (x *FunctionDef) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[18] + mi := &file_ast_ast_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1571,7 +1574,7 @@ func (x *FunctionDef) ProtoReflect() protoreflect.Message { // Deprecated: Use FunctionDef.ProtoReflect.Descriptor instead. func (*FunctionDef) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{18} + return file_ast_ast_proto_rawDescGZIP(), []int{18} } func (x *FunctionDef) GetName() string { @@ -1615,7 +1618,7 @@ type If struct { func (x *If) Reset() { *x = If{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[19] + mi := &file_ast_ast_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1628,7 +1631,7 @@ func (x *If) String() string { func (*If) ProtoMessage() {} func (x *If) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[19] + mi := &file_ast_ast_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1641,7 +1644,7 @@ func (x *If) ProtoReflect() protoreflect.Message { // Deprecated: Use If.ProtoReflect.Descriptor instead. func (*If) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{19} + return file_ast_ast_proto_rawDescGZIP(), []int{19} } func (x *If) GetTest() *Node { @@ -1676,7 +1679,7 @@ type Import struct { func (x *Import) Reset() { *x = Import{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[20] + mi := &file_ast_ast_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1689,7 +1692,7 @@ func (x *Import) String() string { func (*Import) ProtoMessage() {} func (x *Import) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[20] + mi := &file_ast_ast_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1702,7 +1705,7 @@ func (x *Import) ProtoReflect() protoreflect.Message { // Deprecated: Use Import.ProtoReflect.Descriptor instead. func (*Import) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{20} + return file_ast_ast_proto_rawDescGZIP(), []int{20} } func (x *Import) GetNames() []*Node { @@ -1725,7 +1728,7 @@ type ImportFrom struct { func (x *ImportFrom) Reset() { *x = ImportFrom{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[21] + mi := &file_ast_ast_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1738,7 +1741,7 @@ func (x *ImportFrom) String() string { func (*ImportFrom) ProtoMessage() {} func (x *ImportFrom) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[21] + mi := &file_ast_ast_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1751,7 +1754,7 @@ func (x *ImportFrom) ProtoReflect() protoreflect.Message { // Deprecated: Use ImportFrom.ProtoReflect.Descriptor instead. func (*ImportFrom) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{21} + return file_ast_ast_proto_rawDescGZIP(), []int{21} } func (x *ImportFrom) GetModule() string { @@ -1780,9 +1783,9 @@ func (x *ImportFrom) GetLevel() int32 { // // Imports should be grouped in the following order: // -// Standard library imports. -// Related third party imports. -// Local application/library specific imports. +// Standard library imports. +// Related third party imports. +// Local application/library specific imports. // // You should put a blank line between each group of imports. // @@ -1798,7 +1801,7 @@ type ImportGroup struct { func (x *ImportGroup) Reset() { *x = ImportGroup{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[22] + mi := &file_ast_ast_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1811,7 +1814,7 @@ func (x *ImportGroup) String() string { func (*ImportGroup) ProtoMessage() {} func (x *ImportGroup) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[22] + mi := &file_ast_ast_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1824,7 +1827,7 @@ func (x *ImportGroup) ProtoReflect() protoreflect.Message { // Deprecated: Use ImportGroup.ProtoReflect.Descriptor instead. func (*ImportGroup) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{22} + return file_ast_ast_proto_rawDescGZIP(), []int{22} } func (x *ImportGroup) GetImports() []*Node { @@ -1843,7 +1846,7 @@ type Is struct { func (x *Is) Reset() { *x = Is{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[23] + mi := &file_ast_ast_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1856,7 +1859,7 @@ func (x *Is) String() string { func (*Is) ProtoMessage() {} func (x *Is) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[23] + mi := &file_ast_ast_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1869,7 +1872,7 @@ func (x *Is) ProtoReflect() protoreflect.Message { // Deprecated: Use Is.ProtoReflect.Descriptor instead. func (*Is) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{23} + return file_ast_ast_proto_rawDescGZIP(), []int{23} } type Keyword struct { @@ -1884,7 +1887,7 @@ type Keyword struct { func (x *Keyword) Reset() { *x = Keyword{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[24] + mi := &file_ast_ast_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1897,7 +1900,7 @@ func (x *Keyword) String() string { func (*Keyword) ProtoMessage() {} func (x *Keyword) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[24] + mi := &file_ast_ast_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1910,7 +1913,7 @@ func (x *Keyword) ProtoReflect() protoreflect.Message { // Deprecated: Use Keyword.ProtoReflect.Descriptor instead. func (*Keyword) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{24} + return file_ast_ast_proto_rawDescGZIP(), []int{24} } func (x *Keyword) GetArg() string { @@ -1938,7 +1941,7 @@ type Module struct { func (x *Module) Reset() { *x = Module{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[25] + mi := &file_ast_ast_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1951,7 +1954,7 @@ func (x *Module) String() string { func (*Module) ProtoMessage() {} func (x *Module) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[25] + mi := &file_ast_ast_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1964,7 +1967,7 @@ func (x *Module) ProtoReflect() protoreflect.Message { // Deprecated: Use Module.ProtoReflect.Descriptor instead. func (*Module) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{25} + return file_ast_ast_proto_rawDescGZIP(), []int{25} } func (x *Module) GetBody() []*Node { @@ -1985,7 +1988,7 @@ type Name struct { func (x *Name) Reset() { *x = Name{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[26] + mi := &file_ast_ast_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1998,7 +2001,7 @@ func (x *Name) String() string { func (*Name) ProtoMessage() {} func (x *Name) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[26] + mi := &file_ast_ast_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2011,7 +2014,7 @@ func (x *Name) ProtoReflect() protoreflect.Message { // Deprecated: Use Name.ProtoReflect.Descriptor instead. func (*Name) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{26} + return file_ast_ast_proto_rawDescGZIP(), []int{26} } func (x *Name) GetId() string { @@ -2030,7 +2033,7 @@ type Pass struct { func (x *Pass) Reset() { *x = Pass{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[27] + mi := &file_ast_ast_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2043,7 +2046,7 @@ func (x *Pass) String() string { func (*Pass) ProtoMessage() {} func (x *Pass) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[27] + mi := &file_ast_ast_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2056,7 +2059,7 @@ func (x *Pass) ProtoReflect() protoreflect.Message { // Deprecated: Use Pass.ProtoReflect.Descriptor instead. func (*Pass) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{27} + return file_ast_ast_proto_rawDescGZIP(), []int{27} } type Return struct { @@ -2070,7 +2073,7 @@ type Return struct { func (x *Return) Reset() { *x = Return{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[28] + mi := &file_ast_ast_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2083,7 +2086,7 @@ func (x *Return) String() string { func (*Return) ProtoMessage() {} func (x *Return) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[28] + mi := &file_ast_ast_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2096,7 +2099,7 @@ func (x *Return) ProtoReflect() protoreflect.Message { // Deprecated: Use Return.ProtoReflect.Descriptor instead. func (*Return) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{28} + return file_ast_ast_proto_rawDescGZIP(), []int{28} } func (x *Return) GetValue() *Node { @@ -2118,7 +2121,7 @@ type Subscript struct { func (x *Subscript) Reset() { *x = Subscript{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[29] + mi := &file_ast_ast_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2131,7 +2134,7 @@ func (x *Subscript) String() string { func (*Subscript) ProtoMessage() {} func (x *Subscript) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[29] + mi := &file_ast_ast_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2144,7 +2147,7 @@ func (x *Subscript) ProtoReflect() protoreflect.Message { // Deprecated: Use Subscript.ProtoReflect.Descriptor instead. func (*Subscript) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{29} + return file_ast_ast_proto_rawDescGZIP(), []int{29} } func (x *Subscript) GetValue() *Name { @@ -2172,7 +2175,7 @@ type Yield struct { func (x *Yield) Reset() { *x = Yield{} if protoimpl.UnsafeEnabled { - mi := &file_python_ast_proto_msgTypes[30] + mi := &file_ast_ast_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2185,7 +2188,7 @@ func (x *Yield) String() string { func (*Yield) ProtoMessage() {} func (x *Yield) ProtoReflect() protoreflect.Message { - mi := &file_python_ast_proto_msgTypes[30] + mi := &file_ast_ast_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2198,7 +2201,7 @@ func (x *Yield) ProtoReflect() protoreflect.Message { // Deprecated: Use Yield.ProtoReflect.Descriptor instead. func (*Yield) Descriptor() ([]byte, []int) { - return file_python_ast_proto_rawDescGZIP(), []int{30} + return file_ast_ast_proto_rawDescGZIP(), []int{30} } func (x *Yield) GetValue() *Node { @@ -2208,394 +2211,364 @@ func (x *Yield) GetValue() *Node { return nil } -var File_python_ast_proto protoreflect.FileDescriptor - -var file_python_ast_proto_rawDesc = []byte{ - 0x0a, 0x10, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2f, 0x61, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x0a, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x22, 0xb0, - 0x0b, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x33, 0x0a, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, - 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x79, 0x74, - 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x44, 0x65, 0x66, - 0x48, 0x00, 0x52, 0x08, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x44, 0x65, 0x66, 0x12, 0x2c, 0x0a, 0x06, - 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, - 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, - 0x48, 0x00, 0x52, 0x06, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x39, 0x0a, 0x0b, 0x69, 0x6d, - 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x16, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x49, 0x6d, 0x70, - 0x6f, 0x72, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x48, 0x00, 0x52, 0x0a, 0x49, 0x6d, 0x70, 0x6f, 0x72, - 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x2c, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, - 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x06, 0x4d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, - 0x41, 0x6c, 0x69, 0x61, 0x73, 0x48, 0x00, 0x52, 0x05, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x36, - 0x0a, 0x0a, 0x61, 0x6e, 0x6e, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, - 0x41, 0x6e, 0x6e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x48, 0x00, 0x52, 0x09, 0x41, 0x6e, 0x6e, - 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x26, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, - 0x74, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x48, 0x00, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x35, - 0x0a, 0x09, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x53, - 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x48, 0x00, 0x52, 0x09, 0x53, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, - 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x48, - 0x00, 0x52, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x32, 0x0a, 0x08, - 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x73, +var File_ast_ast_proto protoreflect.FileDescriptor + +var file_ast_ast_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x61, 0x73, 0x74, 0x2f, 0x61, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x03, 0x61, 0x73, 0x74, 0x22, 0xde, 0x09, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x2c, 0x0a, + 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0d, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x44, 0x65, 0x66, 0x48, + 0x00, 0x52, 0x08, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x44, 0x65, 0x66, 0x12, 0x25, 0x0a, 0x06, 0x69, + 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x73, + 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x48, 0x00, 0x52, 0x06, 0x49, 0x6d, 0x70, 0x6f, + 0x72, 0x74, 0x12, 0x32, 0x0a, 0x0b, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x66, 0x72, 0x6f, + 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x49, 0x6d, + 0x70, 0x6f, 0x72, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x48, 0x00, 0x52, 0x0a, 0x49, 0x6d, 0x70, 0x6f, + 0x72, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x25, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x22, 0x0a, + 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, + 0x73, 0x74, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x48, 0x00, 0x52, 0x05, 0x41, 0x6c, 0x69, 0x61, + 0x73, 0x12, 0x2f, 0x0a, 0x0a, 0x61, 0x6e, 0x6e, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x6e, 0x6e, 0x41, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x48, 0x00, 0x52, 0x09, 0x41, 0x6e, 0x6e, 0x41, 0x73, 0x73, 0x69, + 0x67, 0x6e, 0x12, 0x1f, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x48, 0x00, 0x52, 0x04, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x09, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x53, 0x75, 0x62, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x48, 0x00, 0x52, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x48, 0x00, 0x52, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x12, 0x2b, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x08, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, - 0x12, 0x2c, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x12, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x73, - 0x73, 0x69, 0x67, 0x6e, 0x48, 0x00, 0x52, 0x06, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x2f, - 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x13, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6d, - 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, - 0x26, 0x0a, 0x04, 0x65, 0x78, 0x70, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, - 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x48, - 0x00, 0x52, 0x04, 0x45, 0x78, 0x70, 0x72, 0x12, 0x26, 0x0a, 0x04, 0x63, 0x61, 0x6c, 0x6c, 0x18, - 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, - 0x73, 0x74, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x48, 0x00, 0x52, 0x04, 0x43, 0x61, 0x6c, 0x6c, 0x12, - 0x3c, 0x0a, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, - 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, - 0x73, 0x74, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x48, 0x00, - 0x52, 0x0b, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x23, 0x0a, - 0x03, 0x61, 0x72, 0x67, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x79, 0x74, - 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x72, 0x67, 0x48, 0x00, 0x52, 0x03, 0x41, - 0x72, 0x67, 0x12, 0x35, 0x0a, 0x09, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, - 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, - 0x73, 0x74, 0x2e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x48, 0x00, 0x52, 0x09, - 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x4c, 0x0a, 0x12, 0x61, 0x73, 0x79, - 0x6e, 0x63, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, - 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, - 0x73, 0x74, 0x2e, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x44, 0x65, 0x66, 0x48, 0x00, 0x52, 0x10, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x46, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x26, 0x0a, 0x04, 0x70, 0x61, 0x73, 0x73, 0x18, - 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, - 0x73, 0x74, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x48, 0x00, 0x52, 0x04, 0x50, 0x61, 0x73, 0x73, 0x12, - 0x26, 0x0a, 0x04, 0x64, 0x69, 0x63, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, - 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x44, 0x69, 0x63, 0x74, 0x48, - 0x00, 0x52, 0x04, 0x44, 0x69, 0x63, 0x74, 0x12, 0x20, 0x0a, 0x02, 0x69, 0x66, 0x18, 0x15, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, - 0x2e, 0x49, 0x66, 0x48, 0x00, 0x52, 0x02, 0x49, 0x66, 0x12, 0x2f, 0x0a, 0x07, 0x63, 0x6f, 0x6d, - 0x70, 0x61, 0x72, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x79, 0x74, - 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x48, - 0x00, 0x52, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x79, 0x74, - 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x48, 0x00, - 0x52, 0x06, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x12, 0x20, 0x0a, 0x02, 0x69, 0x73, 0x18, 0x18, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, - 0x74, 0x2e, 0x49, 0x73, 0x48, 0x00, 0x52, 0x02, 0x49, 0x73, 0x12, 0x2f, 0x0a, 0x07, 0x6b, 0x65, - 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x79, - 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, - 0x48, 0x00, 0x52, 0x07, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x29, 0x0a, 0x05, 0x79, - 0x69, 0x65, 0x6c, 0x64, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x79, 0x74, - 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x48, 0x00, 0x52, - 0x05, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x23, 0x0a, 0x03, 0x66, 0x6f, 0x72, 0x18, 0x1b, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, - 0x2e, 0x46, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x03, 0x46, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x05, 0x61, - 0x77, 0x61, 0x69, 0x74, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x79, 0x74, - 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x77, 0x61, 0x69, 0x74, 0x48, 0x00, 0x52, - 0x05, 0x41, 0x77, 0x61, 0x69, 0x74, 0x12, 0x33, 0x0a, 0x09, 0x61, 0x73, 0x79, 0x6e, 0x63, 0x5f, - 0x66, 0x6f, 0x72, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x79, 0x74, 0x68, - 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x46, 0x6f, 0x72, 0x48, - 0x00, 0x52, 0x08, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x46, 0x6f, 0x72, 0x12, 0x3c, 0x0a, 0x0c, 0x69, - 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x1e, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x49, - 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x49, 0x6d, - 0x70, 0x6f, 0x72, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x06, 0x0a, 0x04, 0x6e, 0x6f, 0x64, - 0x65, 0x22, 0x1b, 0x0a, 0x05, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2f, - 0x0a, 0x05, 0x41, 0x77, 0x61, 0x69, 0x74, 0x12, 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, - 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, - 0x47, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x26, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, - 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x74, 0x74, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x61, 0x74, 0x74, 0x72, 0x22, 0x99, 0x01, 0x0a, 0x09, 0x41, 0x6e, 0x6e, - 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x28, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, - 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x12, 0x30, 0x0a, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, - 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x06, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x6f, - 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, - 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x49, 0x0a, 0x03, 0x41, 0x72, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x61, - 0x72, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x72, 0x67, 0x12, 0x30, 0x0a, - 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, - 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0x63, 0x0a, 0x09, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x04, - 0x61, 0x72, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x79, 0x74, - 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x72, 0x67, 0x52, 0x04, 0x61, 0x72, 0x67, - 0x73, 0x12, 0x31, 0x0a, 0x0c, 0x6b, 0x77, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x5f, 0x61, 0x72, 0x67, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, - 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x72, 0x67, 0x52, 0x0a, 0x6b, 0x77, 0x6f, 0x6e, 0x6c, 0x79, - 0x61, 0x72, 0x67, 0x73, 0x22, 0x80, 0x01, 0x0a, 0x08, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x46, 0x6f, - 0x72, 0x12, 0x28, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, - 0x6f, 0x64, 0x65, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x24, 0x0a, 0x04, 0x69, - 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, - 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x69, 0x74, 0x65, - 0x72, 0x12, 0x24, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, - 0x65, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0xa3, 0x01, 0x0a, 0x10, 0x41, 0x73, 0x79, 0x6e, - 0x63, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, + 0x12, 0x25, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0b, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x48, 0x00, 0x52, + 0x06, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x28, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, + 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x43, + 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, + 0x74, 0x12, 0x1f, 0x0a, 0x04, 0x65, 0x78, 0x70, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x04, 0x45, 0x78, + 0x70, 0x72, 0x12, 0x1f, 0x0a, 0x04, 0x63, 0x61, 0x6c, 0x6c, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x48, 0x00, 0x52, 0x04, 0x43, + 0x61, 0x6c, 0x6c, 0x12, 0x35, 0x0a, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x64, 0x65, 0x66, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x73, 0x74, 0x2e, + 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x48, 0x00, 0x52, 0x0b, 0x46, + 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x1c, 0x0a, 0x03, 0x61, 0x72, + 0x67, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x72, + 0x67, 0x48, 0x00, 0x52, 0x03, 0x41, 0x72, 0x67, 0x12, 0x2e, 0x0a, 0x09, 0x61, 0x72, 0x67, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x73, + 0x74, 0x2e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x48, 0x00, 0x52, 0x09, 0x41, + 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x45, 0x0a, 0x12, 0x61, 0x73, 0x79, 0x6e, + 0x63, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x12, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x73, 0x79, 0x6e, 0x63, + 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x48, 0x00, 0x52, 0x10, 0x41, + 0x73, 0x79, 0x6e, 0x63, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x12, + 0x1f, 0x0a, 0x04, 0x70, 0x61, 0x73, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, + 0x61, 0x73, 0x74, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x48, 0x00, 0x52, 0x04, 0x50, 0x61, 0x73, 0x73, + 0x12, 0x1f, 0x0a, 0x04, 0x64, 0x69, 0x63, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, + 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x44, 0x69, 0x63, 0x74, 0x48, 0x00, 0x52, 0x04, 0x44, 0x69, 0x63, + 0x74, 0x12, 0x19, 0x0a, 0x02, 0x69, 0x66, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, + 0x61, 0x73, 0x74, 0x2e, 0x49, 0x66, 0x48, 0x00, 0x52, 0x02, 0x49, 0x66, 0x12, 0x28, 0x0a, 0x07, + 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, + 0x61, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x48, 0x00, 0x52, 0x07, 0x43, + 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x12, 0x25, 0x0a, 0x06, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x48, 0x00, 0x52, 0x06, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x12, 0x19, 0x0a, + 0x02, 0x69, 0x73, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x61, 0x73, 0x74, 0x2e, + 0x49, 0x73, 0x48, 0x00, 0x52, 0x02, 0x49, 0x73, 0x12, 0x28, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, + 0x6f, 0x72, 0x64, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x61, 0x73, 0x74, 0x2e, + 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x48, 0x00, 0x52, 0x07, 0x4b, 0x65, 0x79, 0x77, 0x6f, + 0x72, 0x64, 0x12, 0x22, 0x0a, 0x05, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x1a, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x48, 0x00, 0x52, + 0x05, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1c, 0x0a, 0x03, 0x66, 0x6f, 0x72, 0x18, 0x1b, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x48, 0x00, 0x52, + 0x03, 0x46, 0x6f, 0x72, 0x12, 0x22, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x69, 0x74, 0x18, 0x1c, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x77, 0x61, 0x69, 0x74, 0x48, + 0x00, 0x52, 0x05, 0x41, 0x77, 0x61, 0x69, 0x74, 0x12, 0x2c, 0x0a, 0x09, 0x61, 0x73, 0x79, 0x6e, + 0x63, 0x5f, 0x66, 0x6f, 0x72, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x61, 0x73, + 0x74, 0x2e, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x46, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x08, 0x41, 0x73, + 0x79, 0x6e, 0x63, 0x46, 0x6f, 0x72, 0x12, 0x35, 0x0a, 0x0c, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, + 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, + 0x73, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x48, 0x00, + 0x52, 0x0b, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x06, 0x0a, + 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x22, 0x1b, 0x0a, 0x05, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0x28, 0x0a, 0x05, 0x41, 0x77, 0x61, 0x69, 0x74, 0x12, 0x1f, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, + 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x40, 0x0a, 0x09, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, + 0x6f, 0x64, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x74, + 0x74, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x74, 0x74, 0x72, 0x22, 0x8b, + 0x01, 0x0a, 0x09, 0x41, 0x6e, 0x6e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x21, 0x0a, 0x06, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, + 0x73, 0x74, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, + 0x29, 0x0a, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x0a, + 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, + 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x69, 0x6d, 0x70, + 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x42, 0x0a, 0x03, + 0x41, 0x72, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x72, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x61, 0x72, 0x67, 0x12, 0x29, 0x0a, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, + 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x55, 0x0a, 0x09, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1c, 0x0a, + 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x61, 0x73, + 0x74, 0x2e, 0x41, 0x72, 0x67, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x2a, 0x0a, 0x0c, 0x6b, + 0x77, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x08, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x72, 0x67, 0x52, 0x0a, 0x6b, 0x77, 0x6f, + 0x6e, 0x6c, 0x79, 0x61, 0x72, 0x67, 0x73, 0x22, 0x6b, 0x0a, 0x08, 0x41, 0x73, 0x79, 0x6e, 0x63, + 0x46, 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x06, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x04, 0x69, 0x74, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, + 0x04, 0x69, 0x74, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, + 0x62, 0x6f, 0x64, 0x79, 0x22, 0x8e, 0x01, 0x0a, 0x10, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x46, 0x75, + 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, + 0x04, 0x41, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x73, + 0x74, 0x2e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, + 0x73, 0x12, 0x1d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, + 0x12, 0x23, 0x0a, 0x07, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x72, 0x65, + 0x74, 0x75, 0x72, 0x6e, 0x73, 0x22, 0x68, 0x0a, 0x06, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x12, + 0x23, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, + 0x6e, 0x0a, 0x04, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x1d, 0x0a, 0x04, 0x66, 0x75, 0x6e, 0x63, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, + 0x52, 0x04, 0x66, 0x75, 0x6e, 0x63, 0x12, 0x1d, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, + 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x28, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4b, 0x65, + 0x79, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x22, + 0xb8, 0x01, 0x0a, 0x08, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x29, 0x0a, 0x04, 0x41, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, - 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x72, 0x67, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x24, 0x0a, 0x04, 0x62, - 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, - 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x62, 0x6f, 0x64, - 0x79, 0x12, 0x2a, 0x0a, 0x07, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, - 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x22, 0x76, 0x0a, - 0x06, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x2a, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, - 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, - 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x43, - 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, - 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x83, 0x01, 0x0a, 0x04, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x24, - 0x0a, 0x04, 0x66, 0x75, 0x6e, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, - 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, - 0x66, 0x75, 0x6e, 0x63, 0x12, 0x24, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, - 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x2f, 0x0a, 0x08, 0x6b, 0x65, - 0x79, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, - 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, - 0x64, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x22, 0xd4, 0x01, 0x0a, 0x08, - 0x43, 0x6c, 0x61, 0x73, 0x73, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x05, - 0x62, 0x61, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, - 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x62, - 0x61, 0x73, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, - 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, - 0x64, 0x73, 0x12, 0x24, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, - 0x64, 0x65, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x38, 0x0a, 0x0e, 0x64, 0x65, 0x63, 0x6f, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, - 0x64, 0x65, 0x52, 0x0e, 0x64, 0x65, 0x63, 0x6f, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x6c, 0x69, - 0x73, 0x74, 0x22, 0x1d, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, - 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, - 0x74, 0x22, 0x87, 0x01, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x65, 0x12, 0x24, 0x0a, - 0x04, 0x6c, 0x65, 0x66, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, - 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6c, - 0x65, 0x66, 0x74, 0x12, 0x22, 0x0a, 0x03, 0x6f, 0x70, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, - 0x64, 0x65, 0x52, 0x03, 0x6f, 0x70, 0x73, 0x12, 0x32, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x61, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, - 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x0b, - 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x22, 0x54, 0x0a, 0x08, 0x43, - 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x12, 0x15, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x12, - 0x0a, 0x03, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x03, 0x69, - 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x04, 0x6e, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, - 0x48, 0x00, 0x52, 0x04, 0x6e, 0x6f, 0x6e, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x22, 0x56, 0x0a, 0x04, 0x44, 0x69, 0x63, 0x74, 0x12, 0x24, 0x0a, 0x04, 0x6b, 0x65, 0x79, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, - 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x12, - 0x28, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, - 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x2e, 0x0a, 0x04, 0x45, 0x78, 0x70, - 0x72, 0x12, 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, - 0x64, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x7b, 0x0a, 0x03, 0x46, 0x6f, 0x72, - 0x12, 0x28, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, - 0x64, 0x65, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x24, 0x0a, 0x04, 0x69, 0x74, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, - 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x69, 0x74, 0x65, 0x72, - 0x12, 0x24, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, - 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x9e, 0x01, 0x0a, 0x0b, 0x46, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x41, 0x72, - 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, - 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, - 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x24, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, - 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x2a, 0x0a, 0x07, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, - 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x22, 0x7b, 0x0a, 0x02, 0x49, 0x66, 0x12, 0x24, 0x0a, - 0x04, 0x74, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, - 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x74, - 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, - 0x6f, 0x64, 0x65, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x29, 0x0a, 0x07, 0x6f, 0x72, 0x5f, - 0x65, 0x6c, 0x73, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, - 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x6f, 0x72, - 0x65, 0x6c, 0x73, 0x65, 0x22, 0x30, 0x0a, 0x06, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x26, - 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, - 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, - 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x62, 0x0a, 0x0a, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, - 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x26, 0x0a, 0x05, - 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, - 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, + 0x12, 0x1f, 0x0a, 0x05, 0x62, 0x61, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x62, 0x61, 0x73, 0x65, + 0x73, 0x12, 0x25, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x08, + 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x1d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, + 0x65, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x31, 0x0a, 0x0e, 0x64, 0x65, 0x63, 0x6f, 0x72, + 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x0e, 0x64, 0x65, 0x63, 0x6f, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x1d, 0x0a, 0x07, 0x43, 0x6f, + 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x22, 0x72, 0x0a, 0x07, 0x43, 0x6f, 0x6d, + 0x70, 0x61, 0x72, 0x65, 0x12, 0x1d, 0x0a, 0x04, 0x6c, 0x65, 0x66, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6c, + 0x65, 0x66, 0x74, 0x12, 0x1b, 0x0a, 0x03, 0x6f, 0x70, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x03, 0x6f, 0x70, 0x73, + 0x12, 0x2b, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, + 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x22, 0x54, 0x0a, + 0x08, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x12, 0x15, 0x0a, 0x03, 0x73, 0x74, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x12, 0x12, 0x0a, 0x03, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, + 0x03, 0x69, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x04, 0x6e, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x48, 0x00, 0x52, 0x04, 0x6e, 0x6f, 0x6e, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x22, 0x48, 0x0a, 0x04, 0x44, 0x69, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x04, 0x6b, + 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, + 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x12, 0x21, 0x0a, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, + 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x27, 0x0a, + 0x04, 0x45, 0x78, 0x70, 0x72, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x66, 0x0a, 0x03, 0x46, 0x6f, 0x72, 0x12, 0x21, 0x0a, + 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, + 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x12, 0x1d, 0x0a, 0x04, 0x69, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, + 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x69, 0x74, 0x65, 0x72, 0x12, + 0x1d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, + 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x89, + 0x01, 0x0a, 0x0b, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x04, 0x41, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x1d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, + 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x23, 0x0a, 0x07, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, + 0x65, 0x52, 0x07, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x22, 0x66, 0x0a, 0x02, 0x49, 0x66, + 0x12, 0x1d, 0x0a, 0x04, 0x74, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, + 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x74, 0x65, 0x73, 0x74, 0x12, + 0x1d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, + 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x22, + 0x0a, 0x07, 0x6f, 0x72, 0x5f, 0x65, 0x6c, 0x73, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x6f, 0x72, 0x65, 0x6c, + 0x73, 0x65, 0x22, 0x29, 0x0a, 0x06, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1f, 0x0a, 0x05, + 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, + 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x5b, 0x0a, + 0x0a, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x39, 0x0a, 0x0b, 0x49, 0x6d, - 0x70, 0x6f, 0x72, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2a, 0x0a, 0x07, 0x69, 0x6d, 0x70, - 0x6f, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, - 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x69, 0x6d, - 0x70, 0x6f, 0x72, 0x74, 0x73, 0x22, 0x04, 0x0a, 0x02, 0x49, 0x73, 0x22, 0x43, 0x0a, 0x07, 0x4b, - 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x72, 0x67, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x72, 0x67, 0x12, 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, - 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x22, 0x2e, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x04, 0x62, 0x6f, - 0x64, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, - 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, - 0x22, 0x16, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x06, 0x0a, 0x04, 0x50, 0x61, 0x73, 0x73, - 0x22, 0x30, 0x0a, 0x06, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x12, 0x26, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, - 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x22, 0x5b, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, - 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x61, 0x6d, 0x65, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x73, 0x6c, 0x69, 0x63, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2e, - 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x22, - 0x2f, 0x0a, 0x05, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, - 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, - 0x79, 0x6c, 0x65, 0x63, 0x6f, 0x6e, 0x72, 0x6f, 0x79, 0x2f, 0x73, 0x71, 0x6c, 0x63, 0x2f, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2f, 0x61, + 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x32, 0x0a, 0x0b, 0x49, 0x6d, + 0x70, 0x6f, 0x72, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x23, 0x0a, 0x07, 0x69, 0x6d, 0x70, + 0x6f, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, + 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x22, 0x04, + 0x0a, 0x02, 0x49, 0x73, 0x22, 0x3c, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, + 0x10, 0x0a, 0x03, 0x61, 0x72, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x72, + 0x67, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x22, 0x27, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x04, + 0x62, 0x6f, 0x64, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, + 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x16, 0x0a, 0x04, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x22, 0x06, 0x0a, 0x04, 0x50, 0x61, 0x73, 0x73, 0x22, 0x29, 0x0a, 0x06, 0x52, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x4d, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, + 0x73, 0x6c, 0x69, 0x63, 0x65, 0x22, 0x28, 0x0a, 0x05, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1f, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, + 0x61, 0x73, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, + 0x71, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x73, 0x74, 0x42, 0x08, 0x41, 0x73, 0x74, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x73, 0x71, 0x6c, 0x63, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x73, 0x71, 0x6c, 0x63, + 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x2f, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x61, 0x73, 0x74, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, + 0x03, 0x41, 0x73, 0x74, 0xca, 0x02, 0x03, 0x41, 0x73, 0x74, 0xe2, 0x02, 0x0f, 0x41, 0x73, 0x74, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x03, 0x41, 0x73, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_python_ast_proto_rawDescOnce sync.Once - file_python_ast_proto_rawDescData = file_python_ast_proto_rawDesc + file_ast_ast_proto_rawDescOnce sync.Once + file_ast_ast_proto_rawDescData = file_ast_ast_proto_rawDesc ) -func file_python_ast_proto_rawDescGZIP() []byte { - file_python_ast_proto_rawDescOnce.Do(func() { - file_python_ast_proto_rawDescData = protoimpl.X.CompressGZIP(file_python_ast_proto_rawDescData) +func file_ast_ast_proto_rawDescGZIP() []byte { + file_ast_ast_proto_rawDescOnce.Do(func() { + file_ast_ast_proto_rawDescData = protoimpl.X.CompressGZIP(file_ast_ast_proto_rawDescData) }) - return file_python_ast_proto_rawDescData -} - -var file_python_ast_proto_msgTypes = make([]protoimpl.MessageInfo, 31) -var file_python_ast_proto_goTypes = []interface{}{ - (*Node)(nil), // 0: python.ast.Node - (*Alias)(nil), // 1: python.ast.Alias - (*Await)(nil), // 2: python.ast.Await - (*Attribute)(nil), // 3: python.ast.Attribute - (*AnnAssign)(nil), // 4: python.ast.AnnAssign - (*Arg)(nil), // 5: python.ast.Arg - (*Arguments)(nil), // 6: python.ast.Arguments - (*AsyncFor)(nil), // 7: python.ast.AsyncFor - (*AsyncFunctionDef)(nil), // 8: python.ast.AsyncFunctionDef - (*Assign)(nil), // 9: python.ast.Assign - (*Call)(nil), // 10: python.ast.Call - (*ClassDef)(nil), // 11: python.ast.ClassDef - (*Comment)(nil), // 12: python.ast.Comment - (*Compare)(nil), // 13: python.ast.Compare - (*Constant)(nil), // 14: python.ast.Constant - (*Dict)(nil), // 15: python.ast.Dict - (*Expr)(nil), // 16: python.ast.Expr - (*For)(nil), // 17: python.ast.For - (*FunctionDef)(nil), // 18: python.ast.FunctionDef - (*If)(nil), // 19: python.ast.If - (*Import)(nil), // 20: python.ast.Import - (*ImportFrom)(nil), // 21: python.ast.ImportFrom - (*ImportGroup)(nil), // 22: python.ast.ImportGroup - (*Is)(nil), // 23: python.ast.Is - (*Keyword)(nil), // 24: python.ast.Keyword - (*Module)(nil), // 25: python.ast.Module - (*Name)(nil), // 26: python.ast.Name - (*Pass)(nil), // 27: python.ast.Pass - (*Return)(nil), // 28: python.ast.Return - (*Subscript)(nil), // 29: python.ast.Subscript - (*Yield)(nil), // 30: python.ast.Yield -} -var file_python_ast_proto_depIdxs = []int32{ - 11, // 0: python.ast.Node.class_def:type_name -> python.ast.ClassDef - 20, // 1: python.ast.Node.import:type_name -> python.ast.Import - 21, // 2: python.ast.Node.import_from:type_name -> python.ast.ImportFrom - 25, // 3: python.ast.Node.module:type_name -> python.ast.Module - 1, // 4: python.ast.Node.alias:type_name -> python.ast.Alias - 4, // 5: python.ast.Node.ann_assign:type_name -> python.ast.AnnAssign - 26, // 6: python.ast.Node.name:type_name -> python.ast.Name - 29, // 7: python.ast.Node.subscript:type_name -> python.ast.Subscript - 3, // 8: python.ast.Node.attribute:type_name -> python.ast.Attribute - 14, // 9: python.ast.Node.constant:type_name -> python.ast.Constant - 9, // 10: python.ast.Node.assign:type_name -> python.ast.Assign - 12, // 11: python.ast.Node.comment:type_name -> python.ast.Comment - 16, // 12: python.ast.Node.expr:type_name -> python.ast.Expr - 10, // 13: python.ast.Node.call:type_name -> python.ast.Call - 18, // 14: python.ast.Node.function_def:type_name -> python.ast.FunctionDef - 5, // 15: python.ast.Node.arg:type_name -> python.ast.Arg - 6, // 16: python.ast.Node.arguments:type_name -> python.ast.Arguments - 8, // 17: python.ast.Node.async_function_def:type_name -> python.ast.AsyncFunctionDef - 27, // 18: python.ast.Node.pass:type_name -> python.ast.Pass - 15, // 19: python.ast.Node.dict:type_name -> python.ast.Dict - 19, // 20: python.ast.Node.if:type_name -> python.ast.If - 13, // 21: python.ast.Node.compare:type_name -> python.ast.Compare - 28, // 22: python.ast.Node.return:type_name -> python.ast.Return - 23, // 23: python.ast.Node.is:type_name -> python.ast.Is - 24, // 24: python.ast.Node.keyword:type_name -> python.ast.Keyword - 30, // 25: python.ast.Node.yield:type_name -> python.ast.Yield - 17, // 26: python.ast.Node.for:type_name -> python.ast.For - 2, // 27: python.ast.Node.await:type_name -> python.ast.Await - 7, // 28: python.ast.Node.async_for:type_name -> python.ast.AsyncFor - 22, // 29: python.ast.Node.import_group:type_name -> python.ast.ImportGroup - 0, // 30: python.ast.Await.value:type_name -> python.ast.Node - 0, // 31: python.ast.Attribute.value:type_name -> python.ast.Node - 26, // 32: python.ast.AnnAssign.target:type_name -> python.ast.Name - 0, // 33: python.ast.AnnAssign.annotation:type_name -> python.ast.Node - 0, // 34: python.ast.Arg.annotation:type_name -> python.ast.Node - 5, // 35: python.ast.Arguments.args:type_name -> python.ast.Arg - 5, // 36: python.ast.Arguments.kw_only_args:type_name -> python.ast.Arg - 0, // 37: python.ast.AsyncFor.target:type_name -> python.ast.Node - 0, // 38: python.ast.AsyncFor.iter:type_name -> python.ast.Node - 0, // 39: python.ast.AsyncFor.body:type_name -> python.ast.Node - 6, // 40: python.ast.AsyncFunctionDef.Args:type_name -> python.ast.Arguments - 0, // 41: python.ast.AsyncFunctionDef.body:type_name -> python.ast.Node - 0, // 42: python.ast.AsyncFunctionDef.returns:type_name -> python.ast.Node - 0, // 43: python.ast.Assign.targets:type_name -> python.ast.Node - 0, // 44: python.ast.Assign.value:type_name -> python.ast.Node - 0, // 45: python.ast.Call.func:type_name -> python.ast.Node - 0, // 46: python.ast.Call.args:type_name -> python.ast.Node - 24, // 47: python.ast.Call.keywords:type_name -> python.ast.Keyword - 0, // 48: python.ast.ClassDef.bases:type_name -> python.ast.Node - 0, // 49: python.ast.ClassDef.keywords:type_name -> python.ast.Node - 0, // 50: python.ast.ClassDef.body:type_name -> python.ast.Node - 0, // 51: python.ast.ClassDef.decorator_list:type_name -> python.ast.Node - 0, // 52: python.ast.Compare.left:type_name -> python.ast.Node - 0, // 53: python.ast.Compare.ops:type_name -> python.ast.Node - 0, // 54: python.ast.Compare.comparators:type_name -> python.ast.Node - 0, // 55: python.ast.Dict.keys:type_name -> python.ast.Node - 0, // 56: python.ast.Dict.values:type_name -> python.ast.Node - 0, // 57: python.ast.Expr.value:type_name -> python.ast.Node - 0, // 58: python.ast.For.target:type_name -> python.ast.Node - 0, // 59: python.ast.For.iter:type_name -> python.ast.Node - 0, // 60: python.ast.For.body:type_name -> python.ast.Node - 6, // 61: python.ast.FunctionDef.Args:type_name -> python.ast.Arguments - 0, // 62: python.ast.FunctionDef.body:type_name -> python.ast.Node - 0, // 63: python.ast.FunctionDef.returns:type_name -> python.ast.Node - 0, // 64: python.ast.If.test:type_name -> python.ast.Node - 0, // 65: python.ast.If.body:type_name -> python.ast.Node - 0, // 66: python.ast.If.or_else:type_name -> python.ast.Node - 0, // 67: python.ast.Import.names:type_name -> python.ast.Node - 0, // 68: python.ast.ImportFrom.names:type_name -> python.ast.Node - 0, // 69: python.ast.ImportGroup.imports:type_name -> python.ast.Node - 0, // 70: python.ast.Keyword.value:type_name -> python.ast.Node - 0, // 71: python.ast.Module.body:type_name -> python.ast.Node - 0, // 72: python.ast.Return.value:type_name -> python.ast.Node - 26, // 73: python.ast.Subscript.value:type_name -> python.ast.Name - 0, // 74: python.ast.Subscript.slice:type_name -> python.ast.Node - 0, // 75: python.ast.Yield.value:type_name -> python.ast.Node + return file_ast_ast_proto_rawDescData +} + +var file_ast_ast_proto_msgTypes = make([]protoimpl.MessageInfo, 31) +var file_ast_ast_proto_goTypes = []interface{}{ + (*Node)(nil), // 0: ast.Node + (*Alias)(nil), // 1: ast.Alias + (*Await)(nil), // 2: ast.Await + (*Attribute)(nil), // 3: ast.Attribute + (*AnnAssign)(nil), // 4: ast.AnnAssign + (*Arg)(nil), // 5: ast.Arg + (*Arguments)(nil), // 6: ast.Arguments + (*AsyncFor)(nil), // 7: ast.AsyncFor + (*AsyncFunctionDef)(nil), // 8: ast.AsyncFunctionDef + (*Assign)(nil), // 9: ast.Assign + (*Call)(nil), // 10: ast.Call + (*ClassDef)(nil), // 11: ast.ClassDef + (*Comment)(nil), // 12: ast.Comment + (*Compare)(nil), // 13: ast.Compare + (*Constant)(nil), // 14: ast.Constant + (*Dict)(nil), // 15: ast.Dict + (*Expr)(nil), // 16: ast.Expr + (*For)(nil), // 17: ast.For + (*FunctionDef)(nil), // 18: ast.FunctionDef + (*If)(nil), // 19: ast.If + (*Import)(nil), // 20: ast.Import + (*ImportFrom)(nil), // 21: ast.ImportFrom + (*ImportGroup)(nil), // 22: ast.ImportGroup + (*Is)(nil), // 23: ast.Is + (*Keyword)(nil), // 24: ast.Keyword + (*Module)(nil), // 25: ast.Module + (*Name)(nil), // 26: ast.Name + (*Pass)(nil), // 27: ast.Pass + (*Return)(nil), // 28: ast.Return + (*Subscript)(nil), // 29: ast.Subscript + (*Yield)(nil), // 30: ast.Yield +} +var file_ast_ast_proto_depIdxs = []int32{ + 11, // 0: ast.Node.class_def:type_name -> ast.ClassDef + 20, // 1: ast.Node.import:type_name -> ast.Import + 21, // 2: ast.Node.import_from:type_name -> ast.ImportFrom + 25, // 3: ast.Node.module:type_name -> ast.Module + 1, // 4: ast.Node.alias:type_name -> ast.Alias + 4, // 5: ast.Node.ann_assign:type_name -> ast.AnnAssign + 26, // 6: ast.Node.name:type_name -> ast.Name + 29, // 7: ast.Node.subscript:type_name -> ast.Subscript + 3, // 8: ast.Node.attribute:type_name -> ast.Attribute + 14, // 9: ast.Node.constant:type_name -> ast.Constant + 9, // 10: ast.Node.assign:type_name -> ast.Assign + 12, // 11: ast.Node.comment:type_name -> ast.Comment + 16, // 12: ast.Node.expr:type_name -> ast.Expr + 10, // 13: ast.Node.call:type_name -> ast.Call + 18, // 14: ast.Node.function_def:type_name -> ast.FunctionDef + 5, // 15: ast.Node.arg:type_name -> ast.Arg + 6, // 16: ast.Node.arguments:type_name -> ast.Arguments + 8, // 17: ast.Node.async_function_def:type_name -> ast.AsyncFunctionDef + 27, // 18: ast.Node.pass:type_name -> ast.Pass + 15, // 19: ast.Node.dict:type_name -> ast.Dict + 19, // 20: ast.Node.if:type_name -> ast.If + 13, // 21: ast.Node.compare:type_name -> ast.Compare + 28, // 22: ast.Node.return:type_name -> ast.Return + 23, // 23: ast.Node.is:type_name -> ast.Is + 24, // 24: ast.Node.keyword:type_name -> ast.Keyword + 30, // 25: ast.Node.yield:type_name -> ast.Yield + 17, // 26: ast.Node.for:type_name -> ast.For + 2, // 27: ast.Node.await:type_name -> ast.Await + 7, // 28: ast.Node.async_for:type_name -> ast.AsyncFor + 22, // 29: ast.Node.import_group:type_name -> ast.ImportGroup + 0, // 30: ast.Await.value:type_name -> ast.Node + 0, // 31: ast.Attribute.value:type_name -> ast.Node + 26, // 32: ast.AnnAssign.target:type_name -> ast.Name + 0, // 33: ast.AnnAssign.annotation:type_name -> ast.Node + 0, // 34: ast.Arg.annotation:type_name -> ast.Node + 5, // 35: ast.Arguments.args:type_name -> ast.Arg + 5, // 36: ast.Arguments.kw_only_args:type_name -> ast.Arg + 0, // 37: ast.AsyncFor.target:type_name -> ast.Node + 0, // 38: ast.AsyncFor.iter:type_name -> ast.Node + 0, // 39: ast.AsyncFor.body:type_name -> ast.Node + 6, // 40: ast.AsyncFunctionDef.Args:type_name -> ast.Arguments + 0, // 41: ast.AsyncFunctionDef.body:type_name -> ast.Node + 0, // 42: ast.AsyncFunctionDef.returns:type_name -> ast.Node + 0, // 43: ast.Assign.targets:type_name -> ast.Node + 0, // 44: ast.Assign.value:type_name -> ast.Node + 0, // 45: ast.Call.func:type_name -> ast.Node + 0, // 46: ast.Call.args:type_name -> ast.Node + 24, // 47: ast.Call.keywords:type_name -> ast.Keyword + 0, // 48: ast.ClassDef.bases:type_name -> ast.Node + 0, // 49: ast.ClassDef.keywords:type_name -> ast.Node + 0, // 50: ast.ClassDef.body:type_name -> ast.Node + 0, // 51: ast.ClassDef.decorator_list:type_name -> ast.Node + 0, // 52: ast.Compare.left:type_name -> ast.Node + 0, // 53: ast.Compare.ops:type_name -> ast.Node + 0, // 54: ast.Compare.comparators:type_name -> ast.Node + 0, // 55: ast.Dict.keys:type_name -> ast.Node + 0, // 56: ast.Dict.values:type_name -> ast.Node + 0, // 57: ast.Expr.value:type_name -> ast.Node + 0, // 58: ast.For.target:type_name -> ast.Node + 0, // 59: ast.For.iter:type_name -> ast.Node + 0, // 60: ast.For.body:type_name -> ast.Node + 6, // 61: ast.FunctionDef.Args:type_name -> ast.Arguments + 0, // 62: ast.FunctionDef.body:type_name -> ast.Node + 0, // 63: ast.FunctionDef.returns:type_name -> ast.Node + 0, // 64: ast.If.test:type_name -> ast.Node + 0, // 65: ast.If.body:type_name -> ast.Node + 0, // 66: ast.If.or_else:type_name -> ast.Node + 0, // 67: ast.Import.names:type_name -> ast.Node + 0, // 68: ast.ImportFrom.names:type_name -> ast.Node + 0, // 69: ast.ImportGroup.imports:type_name -> ast.Node + 0, // 70: ast.Keyword.value:type_name -> ast.Node + 0, // 71: ast.Module.body:type_name -> ast.Node + 0, // 72: ast.Return.value:type_name -> ast.Node + 26, // 73: ast.Subscript.value:type_name -> ast.Name + 0, // 74: ast.Subscript.slice:type_name -> ast.Node + 0, // 75: ast.Yield.value:type_name -> ast.Node 76, // [76:76] is the sub-list for method output_type 76, // [76:76] is the sub-list for method input_type 76, // [76:76] is the sub-list for extension type_name @@ -2603,13 +2576,13 @@ var file_python_ast_proto_depIdxs = []int32{ 0, // [0:76] is the sub-list for field type_name } -func init() { file_python_ast_proto_init() } -func file_python_ast_proto_init() { - if File_python_ast_proto != nil { +func init() { file_ast_ast_proto_init() } +func file_ast_ast_proto_init() { + if File_ast_ast_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_python_ast_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Node); i { case 0: return &v.state @@ -2621,7 +2594,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Alias); i { case 0: return &v.state @@ -2633,7 +2606,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Await); i { case 0: return &v.state @@ -2645,7 +2618,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Attribute); i { case 0: return &v.state @@ -2657,7 +2630,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AnnAssign); i { case 0: return &v.state @@ -2669,7 +2642,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Arg); i { case 0: return &v.state @@ -2681,7 +2654,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Arguments); i { case 0: return &v.state @@ -2693,7 +2666,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AsyncFor); i { case 0: return &v.state @@ -2705,7 +2678,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AsyncFunctionDef); i { case 0: return &v.state @@ -2717,7 +2690,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Assign); i { case 0: return &v.state @@ -2729,7 +2702,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Call); i { case 0: return &v.state @@ -2741,7 +2714,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ClassDef); i { case 0: return &v.state @@ -2753,7 +2726,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Comment); i { case 0: return &v.state @@ -2765,7 +2738,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Compare); i { case 0: return &v.state @@ -2777,7 +2750,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Constant); i { case 0: return &v.state @@ -2789,7 +2762,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Dict); i { case 0: return &v.state @@ -2801,7 +2774,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Expr); i { case 0: return &v.state @@ -2813,7 +2786,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*For); i { case 0: return &v.state @@ -2825,7 +2798,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FunctionDef); i { case 0: return &v.state @@ -2837,7 +2810,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*If); i { case 0: return &v.state @@ -2849,7 +2822,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Import); i { case 0: return &v.state @@ -2861,7 +2834,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ImportFrom); i { case 0: return &v.state @@ -2873,7 +2846,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ImportGroup); i { case 0: return &v.state @@ -2885,7 +2858,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Is); i { case 0: return &v.state @@ -2897,7 +2870,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Keyword); i { case 0: return &v.state @@ -2909,7 +2882,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Module); i { case 0: return &v.state @@ -2921,7 +2894,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Name); i { case 0: return &v.state @@ -2933,7 +2906,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Pass); i { case 0: return &v.state @@ -2945,7 +2918,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Return); i { case 0: return &v.state @@ -2957,7 +2930,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Subscript); i { case 0: return &v.state @@ -2969,7 +2942,7 @@ func file_python_ast_proto_init() { return nil } } - file_python_ast_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_ast_ast_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Yield); i { case 0: return &v.state @@ -2982,7 +2955,7 @@ func file_python_ast_proto_init() { } } } - file_python_ast_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_ast_ast_proto_msgTypes[0].OneofWrappers = []interface{}{ (*Node_ClassDef)(nil), (*Node_Import)(nil), (*Node_ImportFrom)(nil), @@ -3014,7 +2987,7 @@ func file_python_ast_proto_init() { (*Node_AsyncFor)(nil), (*Node_ImportGroup)(nil), } - file_python_ast_proto_msgTypes[14].OneofWrappers = []interface{}{ + file_ast_ast_proto_msgTypes[14].OneofWrappers = []interface{}{ (*Constant_Str)(nil), (*Constant_Int)(nil), (*Constant_None)(nil), @@ -3022,21 +2995,19 @@ func file_python_ast_proto_init() { type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ - // TinyGo does not support reflect, hardcode this for now - // GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - GoPackagePath: "github.com/sqlc-dev/sqlc-gen-python/internal/ast", - RawDescriptor: file_python_ast_proto_rawDesc, + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ast_ast_proto_rawDesc, NumEnums: 0, NumMessages: 31, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_python_ast_proto_goTypes, - DependencyIndexes: file_python_ast_proto_depIdxs, - MessageInfos: file_python_ast_proto_msgTypes, + GoTypes: file_ast_ast_proto_goTypes, + DependencyIndexes: file_ast_ast_proto_depIdxs, + MessageInfos: file_ast_ast_proto_msgTypes, }.Build() - File_python_ast_proto = out.File - file_python_ast_proto_rawDesc = nil - file_python_ast_proto_goTypes = nil - file_python_ast_proto_depIdxs = nil + File_ast_ast_proto = out.File + file_ast_ast_proto_rawDesc = nil + file_ast_ast_proto_goTypes = nil + file_ast_ast_proto_depIdxs = nil } diff --git a/protos/ast/ast.proto b/protos/ast/ast.proto new file mode 100644 index 0000000..a8daa62 --- /dev/null +++ b/protos/ast/ast.proto @@ -0,0 +1,242 @@ +syntax = "proto3"; + +package ast; + +option go_package = "github.com/sqlc-dev/sqlc-gen-python/internal/ast"; + +message Node { + oneof node { + ClassDef class_def = 1 [json_name="ClassDef"]; + Import import = 2 [json_name="Import"]; + ImportFrom import_from = 3 [json_name="ImportFrom"]; + Module module = 4 [json_name="Module"]; + Alias alias = 5 [json_name="Alias"]; + AnnAssign ann_assign = 6 [json_name="AnnAssign"]; + Name name = 7 [json_name="Name"]; + Subscript subscript = 8 [json_name="Subscript"]; + Attribute attribute = 9 [json_name="Attribute"]; + Constant constant = 10 [json_name="Constant"]; + Assign assign = 11 [json_name="Assign"]; + Comment comment = 12 [json_name="Comment"]; + Expr expr = 13 [json_name="Expr"]; + Call call = 14 [json_name="Call"]; + FunctionDef function_def = 15 [json_name="FunctionDef"]; + Arg arg = 16 [json_name="Arg"]; + Arguments arguments = 17 [json_name="Arguments"]; + AsyncFunctionDef async_function_def = 18 [json_name="AsyncFunctionDef"]; + Pass pass = 19 [json_name="Pass"]; + Dict dict = 20 [json_name="Dict"]; + If if = 21 [json_name="If"]; + Compare compare = 22 [json_name="Compare"]; + Return return = 23 [json_name="Return"]; + Is is = 24 [json_name="Is"]; + Keyword keyword = 25 [json_name="Keyword"]; + Yield yield = 26 [json_name="Yield"]; + For for = 27 [json_name="For"]; + Await await = 28 [json_name="Await"]; + AsyncFor async_for = 29 [json_name="AsyncFor"]; + ImportGroup import_group = 30 [json_name="ImportGroup"]; + } +} + +message Alias +{ + string name = 1 [json_name="name"]; +} + +message Await +{ + Node value = 1 [json_name="value"]; +} + +message Attribute +{ + Node value = 1 [json_name="value"]; + string attr = 2 [json_name="attr"]; +} + +message AnnAssign +{ + Name target = 1 [json_name="target"]; + Node annotation = 2 [json_name="annotation"]; + int32 simple = 3 [json_name="simple"]; + string Comment = 4 [json_name="comment"]; +} + +message Arg +{ + string arg = 1 [json_name="arg"]; + Node annotation = 2 [json_name="annotation"]; +} + +message Arguments +{ + repeated Arg args = 1 [json_name="args"]; + repeated Arg kw_only_args = 2 [json_name="kwonlyargs"]; +} + +message AsyncFor +{ + Node target = 1 [json_name="target"]; + Node iter = 2 [json_name="iter"]; + repeated Node body = 3 [json_name="body"]; +} + +message AsyncFunctionDef +{ + string name = 1 [json_name="name"]; + Arguments Args = 2 [json_name="args"]; + repeated Node body = 3 [json_name="body"]; + Node returns = 4 [json_name="returns"]; +} + +message Assign +{ + repeated Node targets = 1 [json_name="targets"]; + Node value = 2 [json_name="value"]; + string Comment = 3 [json_name="comment"]; +} + +message Call +{ + Node func = 1 [json_name="func"]; + repeated Node args = 2 [json_name="args"]; + repeated Keyword keywords = 3 [json_name="keywords"]; +} + +message ClassDef +{ + string name = 1 [json_name="name"]; + repeated Node bases = 2 [json_name="bases"]; + repeated Node keywords = 3 [json_name="keywords"]; + repeated Node body = 4 [json_name="body"]; + repeated Node decorator_list = 5 [json_name="decorator_list"]; +} + +// The Python ast module does not parse comments. It's not clear if this is the +// best way to support them in the AST +message Comment +{ + string text = 1 [json_name="text"]; +} + +message Compare +{ + Node left = 1 [json_name="left"]; + repeated Node ops = 2 [json_name="ops"]; + repeated Node comparators = 3 [json_name="comparators"]; +} + +message Constant +{ + oneof value { + string str = 1 [json_name="string"]; + int32 int = 2 [json_name="int"]; + bool none = 3 [json_name="none"]; + } +} + +message Dict +{ + repeated Node keys = 1 [json_name="keys"]; + repeated Node values = 2 [json_name="values"]; +} + +message Expr +{ + Node value = 1 [json_name="value"]; +} + +message For +{ + Node target = 1 [json_name="target"]; + Node iter = 2 [json_name="iter"]; + repeated Node body = 3 [json_name="body"]; +} + +message FunctionDef +{ + string name = 1 [json_name="name"]; + Arguments Args = 2 [json_name="args"]; + repeated Node body = 3 [json_name="body"]; + Node returns = 4 [json_name="returns"]; +} + +message If +{ + Node test = 1 [json_name="test"]; + repeated Node body = 2 [json_name="body"]; + repeated Node or_else = 3 [json_name="orelse"]; +} + +message Import +{ + repeated Node names = 1 [json_name="names"]; +} + +message ImportFrom +{ + string module = 1 [json_name="module"]; + repeated Node names = 2 [json_name="names"]; + int32 level = 3 [json_name="level"]; +} + +// Imports are always put at the top of the file, just after any module +// comments and docstrings, and before module globals and constants. +// +// Imports should be grouped in the following order: +// +// Standard library imports. +// Related third party imports. +// Local application/library specific imports. +// +// You should put a blank line between each group of imports. +// +// https://www.python.org/dev/peps/pep-0008/#imports +message ImportGroup +{ + repeated Node imports = 1 [json_name="imports"]; +} + +message Is +{ +} + +message Keyword +{ + string arg = 1 [json_name="arg"]; + Node value = 2 [json_name="value"]; +} + +message Module +{ + repeated Node body = 1 [json_name="body"]; +} + +message Name +{ + string id = 1 [json_name="id"]; +} + +message Pass +{ +} + +message Return +{ + Node value = 1 [json_name="value"]; +} + + +message Subscript +{ + Name value = 1 [json_name="value"]; + Node slice = 2 [json_name="slice"]; +} + +message Yield +{ + Node value = 1 [json_name="value"]; +} + + diff --git a/protos/buf.yaml b/protos/buf.yaml new file mode 100644 index 0000000..4c02d5a --- /dev/null +++ b/protos/buf.yaml @@ -0,0 +1,10 @@ +version: v1 +name: github.com/sqlc-dev/sqlc-gen-python +breaking: + use: + - FILE +lint: + use: + - DEFAULT + except: + - PACKAGE_VERSION_SUFFIX