package gen import ( "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" "google.golang.org/protobuf/runtime/protoimpl" "google.golang.org/protobuf/types/descriptorpb" ) // E_LuaPackage mirrors the option declared in options/tarantool/tarantool.proto. // We register it manually here to avoid having to ship a generated stub for our // own option file. var E_LuaPackage = &protoimpl.ExtensionInfo{ ExtendedType: (*descriptorpb.FileOptions)(nil), ExtensionType: (*string)(nil), Field: 60001, Name: "tarantool.lua_package", Tag: "bytes,60001,opt,name=lua_package", Filename: "tarantool/tarantool.proto", } // luaPackageOption returns the value of (tarantool.lua_package) on the file // options, or "" when unset. func luaPackageOption(f protoreflect.FileDescriptor) string { opts, _ := f.Options().(*descriptorpb.FileOptions) if opts == nil { return "" } v, ok := proto.GetExtension(opts, E_LuaPackage).(string) if !ok { return "" } return v }