fix(proto): File structure fix (#115)

This commit is contained in:
David Terpay
2023-05-04 16:07:48 -04:00
committed by GitHub
parent d58b36bf3d
commit 32e2af07e0
13 changed files with 472 additions and 492 deletions
+39 -42
View File
@@ -110,13 +110,13 @@ func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, proto
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "skipmev.pob.builder.module.v1.Module.authority":
case "pob.builder.module.v1.Module.authority":
return x.Authority != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: skipmev.pob.builder.module.v1.Module"))
panic(fmt.Errorf("proto3 declared messages do not support extensions: pob.builder.module.v1.Module"))
}
panic(fmt.Errorf("message skipmev.pob.builder.module.v1.Module does not contain field %s", fd.FullName()))
panic(fmt.Errorf("message pob.builder.module.v1.Module does not contain field %s", fd.FullName()))
}
}
@@ -128,13 +128,13 @@ func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "skipmev.pob.builder.module.v1.Module.authority":
case "pob.builder.module.v1.Module.authority":
x.Authority = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: skipmev.pob.builder.module.v1.Module"))
panic(fmt.Errorf("proto3 declared messages do not support extensions: pob.builder.module.v1.Module"))
}
panic(fmt.Errorf("message skipmev.pob.builder.module.v1.Module does not contain field %s", fd.FullName()))
panic(fmt.Errorf("message pob.builder.module.v1.Module does not contain field %s", fd.FullName()))
}
}
@@ -146,14 +146,14 @@ func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "skipmev.pob.builder.module.v1.Module.authority":
case "pob.builder.module.v1.Module.authority":
value := x.Authority
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: skipmev.pob.builder.module.v1.Module"))
panic(fmt.Errorf("proto3 declared messages do not support extensions: pob.builder.module.v1.Module"))
}
panic(fmt.Errorf("message skipmev.pob.builder.module.v1.Module does not contain field %s", descriptor.FullName()))
panic(fmt.Errorf("message pob.builder.module.v1.Module does not contain field %s", descriptor.FullName()))
}
}
@@ -169,13 +169,13 @@ func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) pro
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "skipmev.pob.builder.module.v1.Module.authority":
case "pob.builder.module.v1.Module.authority":
x.Authority = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: skipmev.pob.builder.module.v1.Module"))
panic(fmt.Errorf("proto3 declared messages do not support extensions: pob.builder.module.v1.Module"))
}
panic(fmt.Errorf("message skipmev.pob.builder.module.v1.Module does not contain field %s", fd.FullName()))
panic(fmt.Errorf("message pob.builder.module.v1.Module does not contain field %s", fd.FullName()))
}
}
@@ -191,13 +191,13 @@ func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value proto
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "skipmev.pob.builder.module.v1.Module.authority":
panic(fmt.Errorf("field authority of message skipmev.pob.builder.module.v1.Module is not mutable"))
case "pob.builder.module.v1.Module.authority":
panic(fmt.Errorf("field authority of message pob.builder.module.v1.Module is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: skipmev.pob.builder.module.v1.Module"))
panic(fmt.Errorf("proto3 declared messages do not support extensions: pob.builder.module.v1.Module"))
}
panic(fmt.Errorf("message skipmev.pob.builder.module.v1.Module does not contain field %s", fd.FullName()))
panic(fmt.Errorf("message pob.builder.module.v1.Module does not contain field %s", fd.FullName()))
}
}
@@ -206,13 +206,13 @@ func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protore
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "skipmev.pob.builder.module.v1.Module.authority":
case "pob.builder.module.v1.Module.authority":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: skipmev.pob.builder.module.v1.Module"))
panic(fmt.Errorf("proto3 declared messages do not support extensions: pob.builder.module.v1.Module"))
}
panic(fmt.Errorf("message skipmev.pob.builder.module.v1.Module does not contain field %s", fd.FullName()))
panic(fmt.Errorf("message pob.builder.module.v1.Module does not contain field %s", fd.FullName()))
}
}
@@ -222,7 +222,7 @@ func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protor
func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in skipmev.pob.builder.module.v1.Module", d.FullName()))
panic(fmt.Errorf("%s is not a oneof field in pob.builder.module.v1.Module", d.FullName()))
}
panic("unreachable")
}
@@ -488,32 +488,29 @@ var File_pob_builder_module_v1_module_proto protoreflect.FileDescriptor
var file_pob_builder_module_v1_module_proto_rawDesc = []byte{
0x0a, 0x22, 0x70, 0x6f, 0x62, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x6d, 0x6f,
0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x73, 0x6b, 0x69, 0x70, 0x6d, 0x65, 0x76, 0x2e, 0x70, 0x6f,
0x62, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f,
0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12,
0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x29, 0xba,
0xc0, 0x96, 0xda, 0x01, 0x23, 0x0a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x73, 0x6b, 0x69, 0x70, 0x2d, 0x6d, 0x65, 0x76, 0x2f, 0x70, 0x6f, 0x62, 0x2f, 0x78,
0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x42, 0xfa, 0x01, 0x0a, 0x21, 0x63, 0x6f, 0x6d,
0x2e, 0x73, 0x6b, 0x69, 0x70, 0x6d, 0x65, 0x76, 0x2e, 0x70, 0x6f, 0x62, 0x2e, 0x62, 0x75, 0x69,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x70, 0x6f, 0x62, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65,
0x72, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73,
0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31,
0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, 0x0a,
0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f,
0x72, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68,
0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x29, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x23, 0x0a, 0x21, 0x67,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6b, 0x69, 0x70, 0x2d, 0x6d,
0x65, 0x76, 0x2f, 0x70, 0x6f, 0x62, 0x2f, 0x78, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72,
0x42, 0xd0, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x62, 0x2e, 0x62, 0x75, 0x69,
0x6c, 0x64, 0x65, 0x72, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b,
0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x63,
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f,
0x70, 0x6f, 0x62, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x6d, 0x6f, 0x64, 0x75,
0x6c, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 0xa2, 0x02,
0x04, 0x53, 0x50, 0x42, 0x4d, 0xaa, 0x02, 0x1d, 0x53, 0x6b, 0x69, 0x70, 0x6d, 0x65, 0x76, 0x2e,
0x50, 0x6f, 0x62, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x4d, 0x6f, 0x64, 0x75,
0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1d, 0x53, 0x6b, 0x69, 0x70, 0x6d, 0x65, 0x76, 0x5c,
0x50, 0x6f, 0x62, 0x5c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x5c, 0x4d, 0x6f, 0x64, 0x75,
0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x29, 0x53, 0x6b, 0x69, 0x70, 0x6d, 0x65, 0x76, 0x5c,
0x50, 0x6f, 0x62, 0x5c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x5c, 0x4d, 0x6f, 0x64, 0x75,
0x6c, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
0x61, 0xea, 0x02, 0x21, 0x53, 0x6b, 0x69, 0x70, 0x6d, 0x65, 0x76, 0x3a, 0x3a, 0x50, 0x6f, 0x62,
0x3a, 0x3a, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x03, 0x50, 0x42, 0x4d, 0xaa, 0x02, 0x15, 0x50, 0x6f, 0x62, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64,
0x65, 0x72, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x50,
0x6f, 0x62, 0x5c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x21, 0x50, 0x6f, 0x62, 0x5c, 0x42, 0x75, 0x69, 0x6c, 0x64,
0x65, 0x72, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42,
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x50, 0x6f, 0x62, 0x3a, 0x3a,
0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a,
0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -530,7 +527,7 @@ func file_pob_builder_module_v1_module_proto_rawDescGZIP() []byte {
var file_pob_builder_module_v1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_pob_builder_module_v1_module_proto_goTypes = []interface{}{
(*Module)(nil), // 0: skipmev.pob.builder.module.v1.Module
(*Module)(nil), // 0: pob.builder.module.v1.Module
}
var file_pob_builder_module_v1_module_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type